Author: akazakov
Date: 2012-01-23 20:23:45 -0500 (Mon, 23 Jan 2012)
New Revision: 38057
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/varAttributes.xhtml
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
https://issues.jboss.org/browse/JBIDE-10699 EL is not validated if "var"
attribute is used
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/varAttributes.xhtml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/varAttributes.xhtml 2012-01-24
01:23:41 UTC (rev 38056)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/varAttributes.xhtml 2012-01-24
01:23:45 UTC (rev 38057)
@@ -44,10 +44,18 @@
</h:dataTable>
</h:dataTable>
- <h:dataTable value="#{tipos}" var="_a"
border="#{_a.name}"/>
- <h:dataTable value="#{testComponentForVars}" var="_a"
border="#{_a.test}"/>
- <h:dataTable value="#{tipos}" var="_a"
border="#{_a.nonExistingBroken}"/>
- <h:dataTable value="#{tipos.nonExistingBroken}"/>
+ <h:dataTable value="#{tipos}" var="_a"
border="#{_a.name}"/>
+ <h:dataTable value="#{testComponentForVars}" var="_a"
border="#{_a.test}"/>
+ <h:dataTable value="#{tipos}" var="_a"
border="#{_a.nonExistingBroken}"/>
+ <h:dataTable value="#{tipos.nonExistingBroken}"/>
+ <h:dataTable value="#{setItems}" var="value">
+ <h:outputText value="#{value.nonExistingBroken}"/>
+ </h:dataTable>
+
+ <h:dataTable value="#{nonExistingBroken}" var="valueBroken">
+ <h:outputText value="#{valueBroken.name}"/>
+ </h:dataTable>
+
</ui:define>
</ui:composition>
\ No newline at end of file
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2012-01-24
01:23:41 UTC (rev 38056)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2012-01-24
01:23:45 UTC (rev 38057)
@@ -139,7 +139,7 @@
TestUtil.validate(file);
String messagePattern =
MessageFormat.format(ELValidationMessages.UNKNOWN_EL_VARIABLE_PROPERTY_NAME, new
Object[]{"nonExistingBroken"});
- AbstractResourceMarkerTest.assertMarkerIsCreated(file, messagePattern, false, 49, 50);
+ AbstractResourceMarkerTest.assertMarkerIsCreated(file, messagePattern, false, 49, 50,
53, 56, 57);
List<IMarker> markers = getMarkersByGroupName(file,
SeamValidationErrorManager.MARKED_SEAM_PROJECT_MESSAGE_GROUP);
StringBuffer sb = new StringBuffer("Here is a list of found markers in
").append(file.getFullPath().toOSString()).append(markers.size()==0?" : [":
" : [\r\n"); //$NON-NLS-1$ //$NON-NLS-2$");