From b5509356115222884ce1a21e4458050d2699f29d Mon Sep 17 00:00:00 2001 From: Viacheslav Kabanovich Date: Wed, 30 Oct 2013 17:44:10 -0700 Subject: [PATCH] JBIDE-15826 Incorrect Constraint Problem for JSF composite component Constraint is removed. --- .../resources/meta/jsf2-components.meta | 12 +++++----- .../WebContent/resources/xdata/data.xhtml | 22 +++++++++++++++++++ .../JSF2ComponentsValidatorTest.java | 8 +++++++ 3 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/xdata/data.xhtml diff --git a/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf2-components.meta b/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf2-components.meta index cede0a785d..37821363fe 100644 --- a/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf2-components.meta +++ b/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf2-components.meta @@ -197,29 +197,29 @@ - + - + - + - + - + - + diff --git a/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/xdata/data.xhtml b/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/xdata/data.xhtml new file mode 100644 index 0000000000..2c6a29291f --- /dev/null +++ b/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/xdata/data.xhtml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/JSF2ComponentsValidatorTest.java b/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/JSF2ComponentsValidatorTest.java index cf4821d092..e43389b1d4 100644 --- a/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/JSF2ComponentsValidatorTest.java +++ b/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/JSF2ComponentsValidatorTest.java @@ -84,4 +84,12 @@ private boolean isMarkerExist(IMarker[] markers, String markerMesssage) throws C } return false; } + + public void testJSF2ComponentsConstraint() throws Exception { + IResource resource = project.findMember("/WebContent/resources/xdata/data.xhtml"); //$NON-NLS-1$ + assertTrue(resource.exists()); + IMarker[] markers = resource.findMarkers("org.jboss.tools.jst.web.constraintsmarker", true, 0); + assertEquals(0, markers.length); + } + } \ No newline at end of file