Picklist, transfer-event not triggered in dialog

UI Components for JSF
Post Reply
kpp
Posts: 14
Joined: 28 Apr 2014, 15:58

18 May 2016, 11:47

I have a problem with picklist in dialog.
Basically I have an edit controller for a person with, besides other properties, a picklist. If i use the same code in a dialog I have to use drag'n'drop to have the transfer event trigger, it doesn't get triggered if I double click an item or use the controls.
In my edit page all is working properly.

Following code is used:

Code: Select all

<p:pickList value="#{personEdit.personFunctionModel}" var="c" itemValue="#{c}"
                        itemLabel="#{c.name}" showSourceFilter="true" showTargetFilter="true"
                        filterMatchMode="contains" id="personFunctions">
                        <o:converter converterId="omnifaces.ListConverter" list="#{personEdit.allPersonFunctions}" />
                        <p:ajax event="transfer" oncomplete="UnloadConfirm.setConfirmUnload(true);" global="false" listener="#{personEdit.handleTransfer}"/>
                    </p:pickList>
The other code is basically like this:

edit page:

Code: Select all

<o:form includeRequestParams="true" class="form-horizontal" acceptcharset="UTF-8" id="mainform">
[...]
<ui:include src="__editForm.xhtml" />
</o:form>
dialog:

Code: Select all

<p:dialog header="#{msg['entity.person']} #{msg['action.add']}" widgetVar="addPersonDialog" modal="true" width="1100" resizable="false"
        draggable="true" closable="false">
        <o:form includeRequestParams="true" class="form-horizontal">
            <p:scrollPanel mode="native" styleClass="dialog-scrollpanel">
                <p:messages />

                <ui:include src="../../person/__editForm.xhtml" />
            </p:scrollPanel>
        </o:form>
</p:dialog>
Dialog is used liked this (no nested forms:

Code: Select all

<o:form>
[...]
</o:form>
<ui:include src="dialogAddPerson.xhtml" />

Does anyone have similiar issues or any idea what's wrong with this code?
PF 5.3.10
Wildfly 9.0.1 Final
JSF 2.2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests