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

Vlado Pakan (JIRA) jira-events at lists.jboss.org
Fri Feb 3 06:35:49 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-10660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vlado Pakan closed JBIDE-10660.
-------------------------------


    
> 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
>          Components: jsp/jsf/xml source editing
>    Affects Versions: 3.3.0.M5
>            Reporter: Cody Lerum
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.Beta1
>
>
> 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