I am new to stackoverflow as a user, but I often use it because I saw something happening here with Prime! ;-)
Ok, now I am transferring the RichFaces 3.3.3 JSF 1.2 project to Mojarra 2.1.7 (SNAPSHOT 20120206) and PrimeFaces 3.3, which is an IMHO revelation for JSF.
In short, I looked for this error, mentioned in the topic for half a week, and I gave it an attempt to return to PF 3.2 and tataaaa rowSelect, and now all my other implementations work.
I have a simple form with datatable and selectionMode = "multiple" and ajax data:
<h:form> <p:dataTable id="massnahmenAuswahl" value="#{massnahmenController.massnahmen}" var="eineMassnahme" selection="#{massnahmenController.massnahmenSelected}" rowKey="#{eineMassnahme.massnahme}"> <p:ajax event="rowSelect" listener="#{massnahmenController.rowSelected}" process="@this" update="@this" /> <p:ajax event="rowUnselect" listener="#{massnahmenController.rowUnselected}" process="@this" update="@this" /> <p:ajax event="toggleSelect" listener="#{massnahmenController.rowToggleSelected}" process="@this" update="@this" /> <p:column selectionMode="multiple" style="width:18px" disabledSelection="#{!login.editable}" styleClass="checkbox" /> <p:column> <h:outputText escape="false" value="#{eineMassnahme.zeile}" /> </p:column> <p:column> <h:outputText escape="false" value="#{eineMassnahme.bezeichnung}" /> </p:column> <p:column> <fiona:labelImgGA for="#{eineMassnahme.massnahme}" /> </p:column> <p:column> <p:selectBooleanCheckbox value="#{eineMassnahme.vorjahr}" disabled="true" /> </p:column> <f:facet name="footer"> <p:commandButton value="Speichern" action="#{massnahmenController.speichern}" disabled="#{!login.editable}" process="@this" update="@form" /> <p:spacer/> <p:commandButton value="Weiter" action="#{massnahmenController.saveAndNext}" disabled="#{!login.editable}" process="@this" update="@form" /> </f:facet> </p:dataTable> </h:form>
Will this be fixed in the near future? So far, I really do PF! Do not disappoint me !; -)
UPDATE:
The solution is to use lazy = true with PF 3.3. I saw this in question 2993 in the PrimeFaces problem tracking program!
source share