setOutputMarkupHolderTag(true) is there for the use case where you
want to place an empty element (e.g. an empty "div" with an ID
assigned to it)  and later on replace it, via AJAX, with real
contents. E.g.

final WebMarkupContainer div = new WebMarkupContainer("div");
 div.setVisible(false);
 div.setOutputMarkupHolderTag(true);
 // contents added to div

will place a

<div id="generatedId" style="display:none;"></div>

later on via AJAX you could do

onClick(AjaxRequestTarget target) {
     div.setVisible(true);
     target.add(div);
}

which will produce

<div id="generatedId">Contents here</div>

Regards,

Ernesto

On Mon, Nov 21, 2011 at 10:38 AM, raju.ch <[email protected]> wrote:
> Can anyone tell me the difference b/w SetoutputMarkupId(true) and
> SetOutputMarkupHolderTag(true)?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Difference-b-w-SetoutputMarkupId-true-and-SetOutputMarkupHolderTag-true-tp4091035p4091035.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to