OpenFaces icon indicating copy to clipboard operation
OpenFaces copied to clipboard

DataTablePaginator not working correctly

Open openfaces opened this issue 10 years ago • 0 comments

As discussed before at https://groups.google.com/a/teamdev.com/forum/?fromgroups=#!topic/openfaces-forum/i3bmWnWm6yI I still encounter a problem with the datatable paginator. Depending on the content of the datatable it works correctly or not. I succeeded to narrow this down to small test application. Attached you find a zip file containing the project. You'll have to adjust the 2 properties jsf.home and openfaces.home to your needs. Then you can run ant to build and deploy. Deployment goes to $JBOSS_HOME/standalone/deployments. For other environments this also has to be adjusted.

Within index.xhtml the columns c3 to c5 are the relevant ones to look at. If all are commented out, everything works fine. The paginator works as it is expected. When only c3 is enabled, you can paginate until the last page. But the page index and the navigation elements do not get updated. When only c5 is enabled, the paginator works also, but the foldingPanel can no longer be folded or unfolded. Column c4 is the one I have in my full app. Enabling only this column shows the combination of both problems. And messages like this 17:43:53,093 WARNING [javax.enterprise.resource.webcontainer.jsf.application.view#saveDynamicActions] Unable to save dynamic action with clientId 'j_idt9:j_idt10:j_idt20:0:j_idt21--_defaultButtonsArea' because the UIComponent cannot be found 17:43:53,095 WARNING [javax.enterprise.resource.webcontainer.jsf.application.view#saveDynamicActions] Unable to save dynamic action with clientId 'j_idt9:j_idt10:j_idt20:0:j_idt21--_defaultButtonsArea--toggle' because the UIComponent cannot be found when going from page 1 to 2 and 17:45:53,950 WARNING [javax.enterprise.resource.webcontainer.jsf.application.view#saveDynamicActions] Unable to save dynamic action with clientId 'j_idt9:j_idt10:0:j_idt20:0:j_id3' because the UIComponent cannot be found for next page.

openfaces avatar Mar 11 '14 15:03 openfaces