[
https://issues.jboss.org/browse/JBIDE-10699?page=com.atlassian.jira.plugi...
]
Alexey Kazakov updated JBIDE-10699:
-----------------------------------
Description:
1. Create JSF 2 KickStart project.
2. Open User.java
3. Add the following method to the class:
{code}
public List<String> getString() {
return new ArrayList<String>();
}
{code}
4. Open inputname.xhtml
5. Add the following method to the page:
{code}
<h:dataTable value="#{user.string}" var="test">
<h:outputText value="#{test.broken}" />
</h:dataTable>
{code}
6. Save the file.
7. ASSERT: "broken" is marked with warning that it cannot be resolved.
FAILURE: "broken" is marked only if you enable validation of EL variables
(Windows->Preferences->JBoss Tools->Web->Expression
Lenguage->Validation->Variable cannot be resolved->Warning).
was:
1. Create JSF 2 KickStart project.
2. Open User.java
3. Add the following method to the class:
{code}
public List<String> getString() {
return new ArrayList<String>();
}
{code}
4. Open inputname.xhtml
5. Add the following method to the page:
{code}
<h:dataTable value="#{user.string}" var="test">
<h:outputText value="#{test.broken}" />
</h:dataTable>
{code}
6. Save the file.
7. ASSERT: "broken" is marked with warning that it cannot be resolved.
Now it will be marked only if you enable validation of EL variables
(Windows->Preferences->JBoss Tools->Web->Expression
Lenguage->Validation->Variable cannot be resolved->Warning). Only properties
validation is enabled by default.
EL is not validated if "var" attribute is used
----------------------------------------------
Key: JBIDE-10699
URL:
https://issues.jboss.org/browse/JBIDE-10699
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JSF, jsp/jsf/xml source editing
Affects Versions: 3.3.0.Beta1
Reporter: Alexey Kazakov
Assignee: Alexey Kazakov
Fix For: 3.3.0.Beta1
Attachments: testProposal.png, testProposal.png, validationSettings.png
1. Create JSF 2 KickStart project.
2. Open User.java
3. Add the following method to the class:
{code}
public List<String> getString() {
return new ArrayList<String>();
}
{code}
4. Open inputname.xhtml
5. Add the following method to the page:
{code}
<h:dataTable value="#{user.string}" var="test">
<h:outputText value="#{test.broken}" />
</h:dataTable>
{code}
6. Save the file.
7. ASSERT: "broken" is marked with warning that it cannot be resolved.
FAILURE: "broken" is marked only if you enable validation of EL variables
(Windows->Preferences->JBoss Tools->Web->Expression
Lenguage->Validation->Variable cannot be resolved->Warning).
--
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