Re: DataTable NavigationToolbar visibility problem

2009-08-28 Thread Michael Mosmann
  Using
 wicket+wicket-extensions 1.4.0.  How do I ensure that the nav toolbar
 reappears properly when the number of results become pageable again?

use wicket 1.4.1 as it's a bug in wicket 1.4.0

mm:)


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DataTable NavigationToolbar visibility problem

2009-08-27 Thread Aaron Hiniker
I have a DefaultDataTable that is sourcing data from a custom
SortableDataTable.

My size() and iterator() implementations are not cached, but are executing
each on each call (I have confirmed that size() is getting called on each
page render).

My problem is:

When I add a filter to my query that returns a 0 row count, the
NavigationToolbar is hidden, and when I remove the filter, the results come
back as expected but the NavigationToolbar doesn't reappear.

I attached a debugger and it appears that the
NavigationToolbar#onBeforeRender() is not getting called when I remove the
filter, so the visibility state will never be updated.  Using
wicket+wicket-extensions 1.4.0.  How do I ensure that the nav toolbar
reappears properly when the number of results become pageable again?

Thanks,

Aaron


Re: DataTable NavigationToolbar visibility problem

2009-08-27 Thread Maarten Bosteels
Hi,

Can't really tell you what the solution is.
But the wicket devs might be interested to know that I noticed the same
problem in the wicket phonebook example.
So at least reproducing the problem should be easy :-)

http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook/

regards,
Maarten

On Thu, Aug 27, 2009 at 10:19 PM, Aaron Hiniker hin...@gmail.com wrote:

 I have a DefaultDataTable that is sourcing data from a custom
 SortableDataTable.

 My size() and iterator() implementations are not cached, but are executing
 each on each call (I have confirmed that size() is getting called on each
 page render).

 My problem is:

 When I add a filter to my query that returns a 0 row count, the
 NavigationToolbar is hidden, and when I remove the filter, the results come
 back as expected but the NavigationToolbar doesn't reappear.

 I attached a debugger and it appears that the
 NavigationToolbar#onBeforeRender() is not getting called when I remove the
 filter, so the visibility state will never be updated.  Using
 wicket+wicket-extensions 1.4.0.  How do I ensure that the nav toolbar
 reappears properly when the number of results become pageable again?

 Thanks,

 Aaron