p:ajax included in p:datatable problem

UI Components for JSF
Post Reply
cte
Posts: 19
Joined: 10 Jun 2011, 13:00

22 Jul 2011, 09:31

Hi,

in the primefaces showcase there is an example: http://www.primefaces.org/showcase-labs ... nstant.jsf.
It shows that one can insert a <p:ajax> into a <p:datatable>.

Code: Select all

<p:dataTable var="car" value="#{tableBean.cars}" paginator="true" rows="10"  
                 selection="#{tableBean.selectedCar}" selectionMode="single">
<p:ajax event="rowSelect" listener="#{tableBean.onRowSelect}" update=":form:display :form:growl" oncomplete="carDialog.show()" />  
If I try this on my own application I get the following exception:

Code: Select all

<p:ajax> Parent not an instance of ClientBehaviorHolder: org.primefaces.component.datatable.DataTable@24a2a9b8
What could be the problem here?
PrimeFaces 3.3.1, Mojarra 2.1.5

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

22 Jul 2011, 09:42

Hi,

You should tell us at least what PF version you use.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cte
Posts: 19
Joined: 10 Jun 2011, 13:00

22 Jul 2011, 09:44

Sorry, I'm using 3.0.M1
PrimeFaces 3.3.1, Mojarra 2.1.5

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

22 Jul 2011, 10:03

Upgrade to at least 3.0M2, it works from there... It is 'labs', so always the latests, and if you use labs, always upgrade to the latest... Could even mean using snapshots!!!!

cte
Posts: 19
Joined: 10 Jun 2011, 13:00

22 Jul 2011, 10:06

Thanks!
PrimeFaces 3.3.1, Mojarra 2.1.5

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 62 guests