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>
edit page:
Code: Select all
<o:form includeRequestParams="true" class="form-horizontal" acceptcharset="UTF-8" id="mainform">
[...]
<ui:include src="__editForm.xhtml" />
</o:form>
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>
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?