in last case i think rendering will be once because the components are
kept in map with markupid of component as key in ajaxrequesttarget.

On Thu, Jul 14, 2011 at 9:11 PM, Andrea Del Bene <adelb...@ciseonweb.it> wrote:
> Hi,
>>
>> If you have an ajax event and then you call target.addComponent on
>> another component or collection of other components.
>
> What do you mean with "another component"? You should be able to add any
> component you want, except AbstractRepeater subclasses (ListView,
> RepeatingView, ecc...). These components must be inside a different
> container to be updated via Ajax (i.e. you must call addComponent on this
> container).
>>
>> Are there issues with calling target.addComponent on components that
>> aren't visible or maybe detached from the page?
>
> You can call addComponent on invisible component but you must call
> setOutputMarkupPlaceholderTag before adding them (see Component JavaDoc). I
> never tried calling addComponent on a detached component...
>
>>
>> Or calling target.addComponent more than once on a particular component?
>>
> That should lead to a multiple rendering of the component.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
thank you,

regards,
Vineet Semwal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to