jsf 2 - Jsf2 - Richfaces4 - Data scroller actionListener not called with datatable -


to make short, in jsf page, have 2 rich:datatable.

the first 1 loaded within onload event of page.

the second 1 loaded when row clicked within first.

both tables have rich:datascroller.

everything working fine except don't find how make working actionlistener of datascroller.

schematically have

<rich:collapsiblepanel> <h:form>     <h:panelgroup id="table1">         <rich:datatable>             <f:facet name="header">             </f:facet>             <rich:column>             </rich:column>             <f:facet name="footer">                 <rich:datascroller rerender="table1,table2" page="1" actionlistener="#{mybean.ac}"/>             </f:facet>         </rich:datatable>     </h:panelgroup>     <h:panelgroup id="table2">         <rich:datatable rendered="#{mybean.rowselected != null}">             <f:facet name="header">             </f:facet>                   <rich:column>             </rich:column>             <f:facet name="footer">                 <rich:datascroller rerender="table1" page="1" />             </f:facet>         </rich:datatable>     </h:panelgroup> </h:form> </rich:collapsiblepanel> 

in bean have

long rowselected;  public void ac() { rowselected = null; system.out.println("xxxxxxxxxxxxxxxxxxxxxxxxxx"); } 

but nothing do, never succeeded make work.

i tried without différence

public void ac(actionevent ae)    -  using javax.faces.event.actionevent 

and

action="#{mybean.ac}" 

<rich:datascroller> has neither action nor actionlistener attributes. if you're using richfaces 4.3 can use scrolllistener. see docs.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -