This content has been marked as final.
Show 1 reply
-
1. Re: Have a rich:datascroller + an a:commandlink inside rich:
bloodcell2 Oct 3, 2009 7:57 PM (in response to bloodcell2)I just realized that <f:facet> probably accepts only one UI component nested inside it, and that's why we should wrap the a:commandButton and rich:datascroller together inside an h:panelGroup or, as in my case, an h:panelGrid.
(I then realized this was a dumb ass question, but if I already asked it - might as well answer it) :<f:facet name="footer"> <h:panelGrid columns="2"> <rich:datascroller for="itemTable" id="sc" align="center" maxPages="100" renderIfSinglePage="false" /> <a:commandButton value="Add an item" action="#{myBean.newItem}" oncomplete="Richfaces.showModalPanel('itemDetails');" reRender="itemDetails" ajaxSingle="true" immediate="true" /> </h:panelGrid> </f:facet>