I don't. I expected it to be rendered twice with the same id ;). Which is not possible, thus I had to create two components with two ids to make the navigator appear twice.
Regards 2008/7/28 <[EMAIL PROTECTED]> > how would you expec the same component to render twice with different HTML > ids? > > -Igor > > On 7/28/08, Daniel Freitas <[EMAIL PROTECTED]> wrote: > > With the following markup: > > > > <div wicket:id="topNavigator"/> > > <div wicket:id="booksList"> > > <div wicket:id="books" class="book"> > > <!-- list of books --> > > </div> > > </div> > > <div wicket:id="bottomNavigator"/> > > > > > > It works ok with regular PaginNavigator or with this Ajax code: > > > > topPagingNavigator = new AjaxPagingNavigator("topNavigator", books) { > > > > @Override > > protected void onAjaxEvent(AjaxRequestTarget target) { > > if (target != null) { > > //Syncs bottom paging navigator > > target.addComponent(bottomPagingNavigator); > > } > > > > super.onAjaxEvent(target); > > } > > }; > > bottomPagingNavigator = new > AjaxPagingNavigator("bottomNavigator", > > books) { > > @Override > > protected void onAjaxEvent(AjaxRequestTarget target) { > > if (target != null) { > > //Syncs top paging navigator > > target.addComponent(topPagingNavigator); > > } > > > > super.onAjaxEvent(target); > > } > > }; > > add(topPagingNavigator); > > add(bottomPagingNavigator); > > > > I just wanted to avoid creating two components that do the same thing in > the > > same set of data (I just want to display it twice). I wonder if I might > run > > in the same problem whenever I want to display the same component in two > > different places... > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >