-1

In doc it doesn't have a property render and i did a smoke test by having other components wrapping around p:ajax (Exception: but event attribute is unavailable) am i missing something here?

<p:ajax event="rowSelectCheckbox" listerner="somemethod()" update="someId"/>
Luídne
  • 123
  • 2
  • 5
userJ
  • 65
  • 1
  • 11

2 Answers2

1

Just omit the event totally:

<p:ajax listener="..." update="..."/>

It defaults to event="valueChange" and process="@this", which is often what one want.

If it does'nt work as expected check the Primefaces user guide, find your component and look for "Ajax behavior events" or look for attributes beginning with "on...".

About h:outputLink: its not a Primefaces tag so it should have been f:ajax for this one. However it does'nt work because of this.

Read more in this answer.

Community
  • 1
  • 1
Jaqen H'ghar
  • 4,305
  • 2
  • 14
  • 26
1

rowSelectCheckbox will be use with SelectEvent.

xhtml

<p:ajax event="rowSelectCheckbox" listerner="#{bean.selectCheckbox}" update="someId"/>

managedbean

public void selectCheckbox(SelectEvent event){

}
Agie
  • 114
  • 1
  • 1
  • 7