see #addbottomtoolbar()

-igor

On Fri, Nov 21, 2008 at 2:57 AM, Alex Parvulescu
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> i have a question about the toolbars in the DataTable component.
>
> my use case is this : i want to embed a small editor in a bottom toolbar.Its
> a simple ok / cancel panel.
>
> I see that there no access to the 'bottomToolbars' variable in the DataTable
> its private and final and has no accessors.
>
> Plus theres no way i can replace a toolbar, if i try
> table.get(DataTable.TOOLBAR_COMPONENT_ID) the result is null,
> another approach is table.replace(new EditToolbar(table)); - which outputs
> an error: org.apache.wicket.WicketRuntimeException: Cannot replace a
> component which has not been added: id='toolbar'...
>
> My guess is that this is because of the   DataTable#addToolbar method:
> toolbar.setRenderBodyOnly(true); ..
>
> I have no workaround for this , except to drop the toolbars and start new
> with some panels.
>
> My question is if theres a reason toolbars are hidden away from the user,
> theres no clear way of working with them, except to initialise, and them let
> them be.
>
>
> btw i am using wicket 1.3.4
>
> thanks,
>
> Alex
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to