I have a panel inside a composite component with 2 selectOneMenu components.
When I use <h:selectOneMenu> components, things work fine.
If I change the xhtml page code to use <p:selectOneMenu> components, the components to not work as expected.
The <f:selectItems> list gets filled with a bunch of random stuff that looks like page code - I get page text and other things from the page in the list.
This happens in both PF 3.0-M4 and PF 3.0-RC1-Snapshot (11/178/2011 version).
Here is the page code that works just fine:
Code: Select all
<h:selectOneMenu style="width: 310px;" value="#{customerProfileSessionBean.selectedAccountType}"
valueChangeListener="#{customerProfileSessionBean.accountTypeValueChange}" >
<f:selectItems value="#{customerProfileSessionBean.accountTypeList}"/>
</h:selectOneMenu>
<h:outputText value="Account Status: " />
<h:selectOneMenu style="width: 310px;" value="#{customerProfileSessionBean.selectedAccountStatus}"
valueChangeListener="#{customerProfileSessionBean.accountStatusValueChange}" >
<f:selectItems value="#{customerProfileSessionBean.accountStatusList}"/>
</h:selectOneMenu>
Is there something I am missing?
Shouldn't the following work if the above code works?
Code: Select all
<p:selectOneMenu style="width: 310px;" value="#{customerProfileSessionBean.selectedAccountType}"
valueChangeListener="#{customerProfileSessionBean.accountTypeValueChange}" >
<f:selectItems value="#{customerProfileSessionBean.accountTypeList}"/>
</p:selectOneMenu>
<h:outputText value="Account Status: " />
<p:selectOneMenu style="width: 310px;" value="#{customerProfileSessionBean.selectedAccountStatus}"
valueChangeListener="#{customerProfileSessionBean.accountStatusValueChange}" >
<f:selectItems value="#{customerProfileSessionBean.accountStatusList}"/>
</p:selectOneMenu>
I did not find any references to this by doing a search for selectOneMenu in the forum.
I can provide the code I use to fill the <f:selectItems> lists if that would be helpful.
Let me know if I am doing something wrong here.
Thanks.