This is definitely possible. The easy way is to do
ajaxRequestTarget.addComponent(theParentComponent); the drawback being
that tho whole parent component will be redrawn, including childs that
were already on the page. If that is not acceptable, you could use
javascript to first create a child component of your parent with the
markupId of your new child (using
ajaxRequestTarget.prependJavascript("your javascript code that adds an
empty div with correct id to the parent"), and let wicket render the
child component by doing
ajaxRequestTarget.addComponent(theChildComponent).

On Tue, 29 Mar 2011 16:49 +0200, "kamiseq" <[email protected]> wrote:
> hi, I ve googled a bit but all I ve found are links about panels.
> 
> my problem is that I would like to create components (with corresponding
> html markup) and then add those components dynamically on request to
> target
> container, where child component could be other container that might be
> dynamically modified.
> what I read about panels is that you need always mark a placeholder for a
> child component so there is no way to add more or less child when my
> logic
> decides to do so.
> 
> is this possible in wicket? could someone point me to some materials
> about
> it?
> 
> pozdrawiam
> Paweł Kamiński
> 
> [email protected]
> [email protected]
> ______________________
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to