Re: DataTable and toolbar
WebMarkupContainer requires an ID. The magic here is happening in the ToolbarContainer class, which is delegating its rendering to the toolbar that you passed in. The requirement of the toolbar component ID appears to be somewhat arbitrary, probably just to remove confusion about what ID to use, or else for legacy reasons where it may have appeared in the markup. On Fri, Feb 11, 2011 at 7:48 AM, Alex Shubert alex.shub...@gmail.comwrote: It looks like WebMarkupContainer does not require ID at all. It somehow unusuall 2011/2/11 Robert Dahlström robert.dahlst...@bwin.org: As far as I can tell yes. But maybe someone with better knowledge can enlighten us? /Robert -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: DataTable and toolbar
Hi, u use this id to create an AbstractToolbar to be add to DataTable using one of its method like: DataTable#addTopToolbar DataTable#addBottomToolbar On Fri, Feb 11, 2011 at 11:08 AM, Alex Shubert alex.shub...@gmail.comwrote: Hello Recently I found public static final String TOOLBAR_COMPONENT_ID = toolbar; in DataTable sources but can't find such ID in markups. How exactly does it works? Thanks -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: DataTable and toolbar
Sure thing, but how exactly does it works if there are no such ID in html markup for DataTable? =) This was the question. On 11 February 2011 16:18, Pedro Santos pedros...@gmail.com wrote: Hi, u use this id to create an AbstractToolbar to be add to DataTable using one of its method like: DataTable#addTopToolbar DataTable#addBottomToolbar On Fri, Feb 11, 2011 at 11:08 AM, Alex Shubert alex.shub...@gmail.comwrote: Hello Recently I found public static final String TOOLBAR_COMPONENT_ID = toolbar; in DataTable sources but can't find such ID in markups. How exactly does it works? Thanks -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable and toolbar
In the addToolbar() method you have: WebMarkupContainer item = new ToolbarContainer(container.newChildId()); That's where the magic happens :) Regards Robert On 02/11/2011 02:26 PM, Alex Shubert wrote: Sure thing, but how exactly does it works if there are no such ID in html markup for DataTable? =) This was the question. On 11 February 2011 16:18, Pedro Santospedros...@gmail.com wrote: Hi, u use this id to create an AbstractToolbar to be add to DataTable using one of its method like: DataTable#addTopToolbar DataTable#addBottomToolbar On Fri, Feb 11, 2011 at 11:08 AM, Alex Shubertalex.shub...@gmail.comwrote: Hello Recently I found public static final String TOOLBAR_COMPONENT_ID = toolbar; in DataTable sources but can't find such ID in markups. How exactly does it works? Thanks -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable and toolbar
So, the toolbar id just droppped out? It is used only as a marker? 2011/2/11 Robert Dahlström robert.dahlst...@bwin.org: In the addToolbar() method you have: WebMarkupContainer item = new ToolbarContainer(container.newChildId()); That's where the magic happens :) Regards Robert -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable and toolbar
As far as I can tell yes. But maybe someone with better knowledge can enlighten us? /Robert On 02/11/2011 02:38 PM, Alex Shubert wrote: So, the toolbar id just droppped out? It is used only as a marker? 2011/2/11 Robert Dahlströmrobert.dahlst...@bwin.org: In the addToolbar() method you have: WebMarkupContainer item = new ToolbarContainer(container.newChildId()); That's where the magic happens :) Regards Robert - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable and toolbar
It looks like WebMarkupContainer does not require ID at all. It somehow unusuall 2011/2/11 Robert Dahlström robert.dahlst...@bwin.org: As far as I can tell yes. But maybe someone with better knowledge can enlighten us? /Robert -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org