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,
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
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
:
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
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
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
--
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
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