Alexey Kazakov created JBIDE-10661:
--------------------------------------
Summary: EL validator should ignore ELs with syntax errors
Key: JBIDE-10661
URL:
https://issues.jboss.org/browse/JBIDE-10661
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 3.3.0.Beta1
Reporter: Alexey Kazakov
Assignee: Alexey Kazakov
Fix For: 3.3.0.Beta1
1. Create JSF 2 Kick Start project.
2. Open WebContent/pages/inputname.xhtml
3. Add #{asd.} in any text node:
{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ez="http://java.sun.com/jsf/composite/demo">
#{asd.}
<ui:composition template="/templates/common.xhtml">
<ui:define name="pageTitle">Input User Name</ui:define>
<ui:define name="pageHeader">JSF 2 Hello Application</ui:define>
<ui:define name="body">
<h:message showSummary="true" showDetail="false"
style="color: red; font-weight: bold;" for="inputname" />
<ez:input id="inputname" label="#{msgs.prompt}"
value="#{user.name}" action="#{user.sayHello}" submitlabel="Say
Hello"/>
</ui:define>
</ui:composition>
</html>
{code}
4. Save the file.
5. See problems view. There are two EL KB problems. One is "'asd.' cannot be
resolved". And the other one is "Syntax error". We should ignore EL if
there is a syntax error. So the only correct warning for #{abc.} is the syntax problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira