-
Bug
-
Resolution: Done
-
Major
-
3.3.0.M5
-
None
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>