java - Deselecting a table row in PrimeFaces -


i have table this:

<p:datatable id="table" selectionmode="single">        ...      <p:ajax event="rowselect" listener="#{mybean.onrowselect}" update="somestuff"/>     <p:ajax event="rowunselect" listener="#{mybean.onrowunselect}" update="otherstuff"/>  </p:datatable> 

does know how trigger rowunselect event on ui ?

another thing, possible values of selectionmode attribute ? don't seem in documentation.

thanks,

to trigger rowunselect, once row selected, hold control key , click on row again. way row gets unselected, , ajax event executed.

possibles values selectionmode attribute "single" , "multiple".


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -