Re: DataTable and toolbar

2011-02-13 Thread Jeremy Thomerson
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,

DataTable and toolbar

2011-02-11 Thread Alex Shubert
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

Re: DataTable and toolbar

2011-02-11 Thread Pedro Santos
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

Re: DataTable and toolbar

2011-02-11 Thread Alex Shubert
: 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

Re: DataTable and toolbar

2011-02-11 Thread Robert Dahlström
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

Re: DataTable and toolbar

2011-02-11 Thread Alex Shubert
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 --

Re: DataTable and toolbar

2011-02-11 Thread Robert Dahlström
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

Re: DataTable and toolbar

2011-02-11 Thread Alex Shubert
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