Author: akazakov
Date: 2012-01-17 19:21:34 -0500 (Tue, 17 Jan 2012)
New Revision: 37922
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
Log:
https://issues.jboss.org/browse/JBIDE-10660 JSF EL validation is not scoped correctly
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2012-01-17
22:49:35 UTC (rev 37921)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2012-01-18
00:21:34 UTC (rev 37922)
@@ -583,9 +583,7 @@
int length = ((IndexedRegion) node).getLength();
start = node.getStartOffset();
- length = (node.hasEndTag() ? node
- .getEndStructuredDocumentRegion()
- .getEnd() : ((IDOMNode) node.getOwnerDocument()).getEndOffset() - 1 - start);
+ length = node.getEndOffset() - start;
context.addVar(new Region(start, length), var);
}