Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10660

JSF EL validation is not scoped correctly

XMLWordPrintable

      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

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

            alexeykazakov Alexey Kazakov
            cody.lerum@gmail.com Cody Lerum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: