Author: scabanovich
Date: 2008-10-20 09:34:17 -0400 (Mon, 20 Oct 2008)
New Revision: 10985
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/constraint/ELConstraint.java
Log:
Added '${' EL start
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/constraint/ELConstraint.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/constraint/ELConstraint.java 2008-10-20
13:11:52 UTC (rev 10984)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/constraint/ELConstraint.java 2008-10-20
13:34:17 UTC (rev 10985)
@@ -12,7 +12,7 @@
public boolean accepts(String value) {
if(value != null) {
- if(value.startsWith("#{") && value.endsWith("}")) {
+ if((value.startsWith("#{") || value.startsWith("${"))
&& value.endsWith("}")) {
return true;
}
if(value.length() >= 2 && value.startsWith("@") &&
value.endsWith("@")) {
@@ -27,7 +27,7 @@
*/
public String getError(String value) {
if(accepts(value)) return null;
- if(value.startsWith("#{")) {
+ if(value.startsWith("#{") || value.startsWith("${")) {
return "value is not a correct EL.";
}
if(value.startsWith("@")) {
Show replies by date