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,

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 : > As far as I can tell yes. But maybe someone with better knowledge can > enlighten us? > > /Robert -- Best regards Alex -

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öm: In the addToolbar() method you have: WebMarkupContainer it

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 : > In the addToolbar() method you have: > WebMarkupContainer item = new ToolbarContainer(container.newChildId()); > > That's where the magic happens :) > > Regards > Robert -- Best regards Alex -

Re: DataTable and "toolbar"

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

Re: DataTable and "toolbar"

2011-02-11 Thread Alex Shubert
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 wrote: > Hi, u use this id to create an AbstractToolbar to be add to DataTable using > one of its method like: > DataTable#addTopToolba

Re: DataTable and "toolbar"

2011-02-11 Thread Pedro Santos
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 wrote: > Hello > > Recently I found public static final String TOOLBAR_COMPONENT_ID = > "toolbar";

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