Primefaces Liste De Choix Convertisseur

Je suis à l'aide de Primefaces 4.0 et JSF 2.2. J'ai utilisé une liste de choix avec un convertisseur. Le problème est que je n'ai pas le bon arg2 dans mon convertisseur. Il dit toujours 0. Mon espoir est que c'est l'id de l'élément et j'ai pu l'analyser de source/cible listes. Des Idées?

Mon Converter est inspiré par Comment écrire un convertisseur personnalisé pour <p:liste de choix>.

Ma Liste de choix de la déclaration est la suivante:

<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>

OriginalL'auteur user3172567 | 2014-04-22