selectonemenu in p:dialog (2.1-RC1-SNAPSHOT)

UI Components for JSF
Post Reply
mikloman
Posts: 27
Joined: 18 Nov 2009, 00:23

18 Jul 2010, 13:23

Hello together
could it be, that the dialog in combination with a selectOneMenu is buggy if a customized converter in the selectOneMenu is used?
Example:

Code: Select all

<h:form prependId="false">
    <p:dialog id="dialogPiqueList"  widgetVar="dialogPiqueList">
             <h:outputLabel for="title2" value="Mitarbeiter:"/>
                            <h:selectOneMenu id="title2" value="#{piqueListBean.user}">
                                    <f:selectItem itemDisabled="true" itemLabel="Bitte wählen"/>
                                    <f:converter converterId="userConverter"/>
                                    <f:selectItems value="#{piqueListBean.allUser}" var="user" itemLabel="#{user.lastname}" itemValue="#{user}"/>
                                    <p:ajax event="change" actionListener="#{piqueListBean.userChanged}"  update="messagesPiqueList,title2"/>
                                </h:selectOneMenu>
                                <p:commandButton value="Trage Mitarbeiter ein" actionListener="#{piqueListBean.create}" update="dataTablePiqueList" onclick="dialogPiqueList.hide()"/>
                                </p:dialog>
This codesnippet never call the getAsObject()- Method in the Converter.
But if the p:dialog would be replaced with a p:panel it will works. But I should have the selectOneMenu in the dialog-component.

Thanks and regards
Mikloman

vlenair
Posts: 4
Joined: 10 Aug 2010, 09:59

10 Aug 2010, 10:01

Hi,

I'm facing the same problem.

Any idea of what happening to h:selectOneMenu in p:dialog ?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests