[jbosstools-issues] [JBoss JIRA] (JBIDE-10660) JSF EL validation is not scoped correctly

Cody Lerum (JIRA) jira-events at lists.jboss.org
Tue Jan 17 17:55:18 EST 2012


Cody Lerum created JBIDE-10660:
----------------------------------

             Summary: JSF EL validation is not scoped correctly
                 Key: JBIDE-10660
                 URL: https://issues.jboss.org/browse/JBIDE-10660
             Project: Tools (JBoss Tools)
          Issue Type: Bug
    Affects Versions: 3.3.0.M5
            Reporter: Cody Lerum


Given the following code if you hold down control and click on the second #{_a....} it will take you to a type of providerAccountType where it should be providerAccountScope. It seems that if you keep using _a as the var it will always follow the first declaration even though it should be scoped to only be visible in the h:selectOneMenu. This can be confirmed by trying to use the #{_a} completely outside of the <h:selectOneMenu> and seeing that code assist resolves the _a to the first type of providerAccountType

{code}
<h:selectOneMenu value="#{providerBillingAccount.providerAccountType}" required="true" requiredMessage="Required">
   <f:selectItem itemLabel="Choose"/>
   <f:selectItems value="#{enumValues.providerAccountType}" var="_a" itemLabel="#{_a.displayName}" />
</h:selectOneMenu>

<h:selectOneMenu value="#{providerBillingAccount.providerAccountScope}" required="true" requiredMessage="Required">
   <f:selectItem itemLabel="Choose"/>
   <f:selectItems value="#{enumValues.providerAccountScope}" var="_a" itemLabel="#{_a.displayName}" />
</h:selectOneMenu>
{code}

--
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

        


More information about the jbosstools-issues mailing list