Board index JavaServer Faces General RowEdit listener 3.0 usage

RowEdit listener 3.0 usage

Components, Ajax Framework, Utilities and More.

Post 10 Aug 2011, 23:19

Posts: 85
What is the correct syntax to call the rowEdit listener in 3.0? I know about the "ajax as behavior" changes, and am okay on the DataTableFeatureCompatibilityMatrix . Here is the start of the table

<p:dataTable rows="20" var="llRow" value="#{ldapApprovalTable}" paginator="true">
<p:ajax event="rowEdit" listener="#{ldapApproval.editRow}">

and the listener signature


public void editRow(RowEditEvent evt) {
...
}

The table displays and the editor toggles correctly between states, but the listener is not called. I also tried event="editRow", no dice. Thanks.
ENVIRONMENT
Prime Faces 3.4. Mojarra 2.1.11, Tomcat 7.029, Spring Web Flow 2.3.1, Spring Security 3.1.1, Spring 3.1.2, Hibernate 4.1.6


Post 11 Aug 2011, 14:57

Posts: 85
I've seen that link, as I said. Question is, what is the correct spec for rowEdit events/listener in 3.0? Something like

<p:ajax event="rowEdit" listener="#{bean.editListener}"/>

where the listener has the signature in my post. Or not...
ENVIRONMENT
Prime Faces 3.4. Mojarra 2.1.11, Tomcat 7.029, Spring Web Flow 2.3.1, Spring Security 3.1.1, Spring 3.1.2, Hibernate 4.1.6

Post 12 Aug 2011, 01:33
kukeltje Expert Member

Posts: 6221
Location: Netherlands
In another post i read something about it being called 'cellEdit'
Ronald van Kuijk
______________________________
PrimeFaces 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/


Return to General