So no way to make this a little more pretty?:

        public void onRendered(final Component component) {
                super.onRendered(component);
                HeaderResponse headerResponse=new HeaderResponse(){
                
                        @Override
                        protected Response getRealResponse() {
                                return component.getResponse();
                        }
                };
                headerResponse.renderOnDomReadyJavascript(getNiftyJS(tagName));
        }

What I had before was essentially this:

        @Override
        public void renderHead(IHeaderResponse response) {
                response.renderOnLoadJavascript(getNiftyJS(tagName));
}




2009/5/4 nino martinez wael <nino.martinez.w...@gmail.com>:
> Ohh ok thanks :)
>
> My memory are rusty:) I've done this before :)
>
>
> 2009/5/3 Johan Compagner <jcompag...@gmail.com>:
>> You only can know then when it is getting rendered so not before.
>>
>> So for example the onComponentTag methods of component/behavior
>>
>> On 03/05/2009, nino martinez wael <nino.martinez.w...@gmail.com> wrote:
>>> Hi
>>>
>>> How do I get the underlying tag type of a component (the tag the
>>> component are bound to)..
>>>
>>> For example
>>>
>>> <div wicket:id="mycomponent"></div>
>>>
>>> I want to pickup "div"...
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>

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

Reply via email to