FYI, the only way I can seem to get the id value within renderHead is
to use Component's getMarkupAttributes(), but the JavaDoc tells me not
to use this method as it's supposed to be used by Wicket internally
only. And they use capital letters too when telling me this.
What to do, what to do...
On 7-Apr-09, at 7:34 PM, Craig Tataryn wrote:
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: [email protected]
For additional commands, e-mail: [email protected]