1

I am using jsf 2.0 with prime faces 5.5. i have an

 <h:link onClick="#{searchBean.resetLists}" ....

pl tell me if this or any other set up could be used here. my compulsion is h:link, i cant change it to commandLink or commandButton.

jaykio77
  • 379
  • 1
  • 7
  • 22

1 Answers1

2

Use a remote command

<p:remoteCommand name="resetLists" action="#{searchBean.resetLists}"/>

<h:link onclick="resetLists()" ....

You can read more about remoteCommand in the PrimeFaces ShowCase.

Yagami Light
  • 1,756
  • 4
  • 19
  • 39
David Florez
  • 1,460
  • 2
  • 13
  • 26