Within a component's renderHead method is it possible to get the value of the id attribute for the component tag?

For instance, I have:

<div wicket:id="multi" id="boo"></div>

And within renderHead if I use getMarkupId() I get "multi1" back, if I use getMarkupId(false) I get null.

The JavaDoc for renderHead indicates:
"either the id attribute set explicitly via a call to setMarkupId(String), id attribute defined in the markup, or an automatically generated id - in that order"

It doesn't seem to be behaving as described. Is this a bug? Or am I misinterpreting things?

Thanks,

Craig.

--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket
twitter: craiger






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

Reply via email to