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 <raju.challagun...@gmail.com> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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

Reply via email to