Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Martijn Dashorst
On Wed, Apr 8, 2009 at 4:04 AM, Craig Tataryn crai...@tataryn.net wrote: 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. That is because a kitten gets killed every time you call such

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Craig Tataryn
On 8-Apr-09, at 3:27 AM, Martijn Dashorst wrote: On Wed, Apr 8, 2009 at 4:04 AM, Craig Tataryn crai...@tataryn.net wrote: 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. That is

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Martin Funk
look around in the area of HeaderContributor and how it is used in JavascriptPackageResource.getHeaderContributor and keep in mind, when implementing the method renderHead of class HeaderContributor, that IHeaderResponse contains a method .renderOnDomReadyJavascript( mf Am 08.04.2009 um

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Igor Vaynberg
we do not support getting the id from markup. this is because based on where your code is it is not always possible - eg you may need it before the markup for that component has been loaded or parsed, and we may not always know what the markup will be to do a just in time markup load. this is why

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Craig Tataryn
On 8-Apr-09, at 10:31 AM, Igor Vaynberg wrote: we do not support getting the id from markup. this is because based on where your code is it is not always possible - eg you may need it before the markup for that component has been loaded or parsed, and we may not always know what the markup will

id attribute of Component Tag in renderHead?

2009-04-07 Thread Craig Tataryn
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

Re: id attribute of Component Tag in renderHead?

2009-04-07 Thread Craig Tataryn
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