I am using Primefaces 4.0 and JSF 2.2. I used a pickup with a converter. The problem is that I am not getting the correct arg2 in my converter. He always says 0 . My expectation is that this is the identifier of the element, and I could parse it from the source / target lists. Any ideas?
My Converter inspired How to write your own converter for <p: pickList> .
My picklist ad is as follows:
<p:pickList value="#{loadingPlaceGroups.pickList}" style="margin:0" var="loadingPlace" converter="primeFacesPickListConverter" itemValue="#{loadingPlace}" itemLabel="#{loadingPlace.name}#{loadingPlace.location.address.street}#{loadingPlace.location.address.houseNr}#{loadingPlace.location.address.zipCode}#{loadingPlace.location.address.city}" showSourceFilter="true" showTargetFilter="true" filterMatchMode="contains" styleClass="picklist500x350source picklist500x350target"> <f:facet name="sourceCaption">Alle Ladestellen</f:facet> <f:facet name="targetCaption">Gewählte Ladestellen</f:facet> <p:column style="border-bottom:1px solid lightgray"> <p:panelGrid> <p:row> <p:column style="padding-left:0;font-size:12pt"> <h:outputLabel value="#{loadingPlace.name}" style="font-weight:bold" /> </p:column> </p:row> <p:row> <p:column style="padding:0"> <h:outputLabel value="#{loadingPlace.location.address.street} #{loadingPlace.location.address.houseNr}" /> </p:column> </p:row> <p:row> <p:column style="padding:0"> <h:outputLabel value="#{loadingPlace.location.address.zipCode} #{loadingPlace.location.address.city}" /> </p:column> </p:row> </p:panelGrid> </p:column> </p:pickList>
java converter primefaces
user3172567
source share