Re: setRowsPerPage with AjaxFallbackDefaultDataTable
Replacing onBeforeRender() in NavigationToolbar to @Override public boolean isVisible() { return table.getPageCount()1; } works well. Do I need to open issue? On Mon, Mar 16, 2009 at 4:57 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: It is AjaxFallbackDefaultDataTable from wicket-extensions 1.4-SNAPSHOT. Table refreshes fully with toolbar inside it, table has id of course. NavigationToolbar (base for AjaxNavigationToolbar) seems to have �...@override protected void onBeforeRender() { setVisible(table.getPageCount() 1); super.onBeforeRender(); } But I think it will never fire after it becomes invisible. On Mon, Mar 16, 2009 at 4:36 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Hmm, is the topbar a separate component? If so you'll simply have to add it to the target as well. Anton Veretennikov wrote: Thank you, Linda. I don't hide it. It hides itself. I suppose it must show itself again if rowsCount rowsPerPage. -- Tony. On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to true? (If not, the Ajax-code can't find the component anymore.) Linda Anton Veretennikov wrote: Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart 20 40 60 80 ... Everything is working but: Once top bar with navigation 1 2 3 4 hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRowsPerPage with AjaxFallbackDefaultDataTable
When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to true? (If not, the Ajax-code can't find the component anymore.) Linda Anton Veretennikov wrote: Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart 20 40 60 80 ... Everything is working but: Once top bar with navigation 1 2 3 4 hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRowsPerPage with AjaxFallbackDefaultDataTable
Thank you, Linda. I don't hide it. It hides itself. I suppose it must show itself again if rowsCount rowsPerPage. -- Tony. On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to true? (If not, the Ajax-code can't find the component anymore.) Linda Anton Veretennikov wrote: Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart 20 40 60 80 ... Everything is working but: Once top bar with navigation 1 2 3 4 hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRowsPerPage with AjaxFallbackDefaultDataTable
Hmm, is the topbar a separate component? If so you'll simply have to add it to the target as well. Anton Veretennikov wrote: Thank you, Linda. I don't hide it. It hides itself. I suppose it must show itself again if rowsCount rowsPerPage. -- Tony. On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to true? (If not, the Ajax-code can't find the component anymore.) Linda Anton Veretennikov wrote: Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart 20 40 60 80 ... Everything is working but: Once top bar with navigation 1 2 3 4 hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRowsPerPage with AjaxFallbackDefaultDataTable
It is AjaxFallbackDefaultDataTable from wicket-extensions 1.4-SNAPSHOT. Table refreshes fully with toolbar inside it, table has id of course. NavigationToolbar (base for AjaxNavigationToolbar) seems to have @Override protected void onBeforeRender() { setVisible(table.getPageCount() 1); super.onBeforeRender(); } But I think it will never fire after it becomes invisible. On Mon, Mar 16, 2009 at 4:36 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Hmm, is the topbar a separate component? If so you'll simply have to add it to the target as well. Anton Veretennikov wrote: Thank you, Linda. I don't hide it. It hides itself. I suppose it must show itself again if rowsCount rowsPerPage. -- Tony. On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to true? (If not, the Ajax-code can't find the component anymore.) Linda Anton Veretennikov wrote: Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart 20 40 60 80 ... Everything is working but: Once top bar with navigation 1 2 3 4 hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org