Author: akazakov
Date: 2012-01-17 19:51:35 -0500 (Tue, 17 Jan 2012)
New Revision: 37923
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-10660 JSF EL validation is not scoped correctly
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-18
00:21:34 UTC (rev 37922)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/varAttributes.xhtml 2012-01-18
00:51:35 UTC (rev 37923)
@@ -44,5 +44,9 @@
</h:dataTable>
</h:dataTable>
+ <h:dataTable value="#{tipos}" var="_a"
border="#{_a.name}"/>
+ <h:dataTable value="#{testComponentForVars}" var="_a"
border="#{_a.items}"/>
+ <h:dataTable value="#{tipos}" var="_a"
border="#{_a.nonExistingBroken}"/>
+
</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-18
00:21:34 UTC (rev 37922)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2012-01-18
00:51:35 UTC (rev 37923)
@@ -133,7 +133,7 @@
// Test for
http://jira.jboss.com/jira/browse/JBIDE-999
IFile file = project.getFile("WebContent/varAttributes.xhtml");
int number = getMarkersNumberByGroupName(file,
SeamValidationErrorManager.MARKED_SEAM_PROJECT_MESSAGE_GROUP);
- assertEquals("Problem marker was found in varAttributes.xhtml file. Validator did
not recognize 'var' attribute.", 0, number);
+ assertEquals(1, number);
}
public void testMessageBundles() throws CoreException {