setOutputMarkupId(true) on org.apache.wicket.markup.html.panel.Panel

2011-01-26 Thread agilbert
I'm trying to understand what it means to output a markup ID on a reusable wicket panel. If I understand correctly, the wicket:panel element is removed from production markup and can contain elements that aren't necessarily wrapped in a single element (e.g. a div). So, what does Wicket do when

Re: setOutputMarkupId(true) on org.apache.wicket.markup.html.panel.Panel

2011-01-26 Thread Igor Vaynberg
calling setoutputmarkupid on a panel will output an id to the tag to which the panel is attached, eg add(new mypanel(foo)) div wicket:id=foo -- the tag that will have markup id output since you attach a panel to wicket:container tag and call setoutputmarkupid(true) on it, the id will never be

Re: setOutputMarkupId(true) on org.apache.wicket.markup.html.panel.Panel

2011-01-26 Thread Allen
Igor, Thanks for the explanation...I was indeed attaching my Panel to a wicket:container tag. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupId-true-on-org-apache-wicket-markup-html-panel-Panel-tp3238774p3238938.html Sent from the Users forum mailing