if you are just contributing to head then the proper way is to let
your behavior implement IHeaderContributor

-igor

On Tue, May 18, 2010 at 1:08 PM, David Chang <david_q_zh...@yahoo.com> wrote:
> what i can do in onbeforerender to make the component 1's bind get called (in 
> my case, the behavior contributes js and css to <head>)?
>
> components, not behaviors, have onbeforerender, correct?
>
> Thanks!
>
> --- On Mon, 5/17/10, Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
>
>> From: Igor Vaynberg <igor.vaynb...@gmail.com>
>> Subject: Re: When is AbstractBehavior#bind not called?
>> To: users@wicket.apache.org
>> Date: Monday, May 17, 2010, 10:26 PM
>> behaviors have onbeforerender which
>> will be called no matter what kind
>> of link is used.
>>
>> -igor
>>
>> On Mon, May 17, 2010 at 6:30 PM, David Chang <david_q_zh...@yahoo.com>
>> wrote:
>> > Any suggestion about minimal design changes?
>> >
>> > Thanks!
>> >
>> > --- On Mon, 5/17/10, Igor Vaynberg <igor.vaynb...@gmail.com>
>> wrote:
>> >
>> >> From: Igor Vaynberg <igor.vaynb...@gmail.com>
>> >> Subject: Re: When is AbstractBehavior#bind not
>> called?
>> >> To: users@wicket.apache.org
>> >> Date: Monday, May 17, 2010, 11:27 AM
>> >> the first link is a bookmarkable
>> >> link, it recreates the page instance.
>> >> bind is only called when the behavior is *added*
>> to the
>> >> component.
>> >>
>> >> link 2 is not a bookmarkable link, it doesnt
>> recreate the
>> >> page
>> >> instance so the behavior is not added because a
>> page
>> >> instance where
>> >> the behavior has already been added is used, thus
>> no bind
>> >> call
>> >>
>> >> -igor
>> >>
>> >> On Mon, May 17, 2010 at 6:22 AM, David Chang
>> <david_q_zh...@yahoo.com>
>> >> wrote:
>> >> > I have a top page which has two panel-based
>> >> components.
>> >> >
>> >> > Component 1 implements AbstractBehavior's
>> bind
>> >> method.
>> >> >
>> >> > Component 2 has a wicket Link pointing to a
>> child
>> >> page.
>> >> >
>> >> > When I am at the top page, refresh always
>> gets #bind
>> >> called.
>> >> >
>> >> > When I click the Link in Component 2, the
>> bind method
>> >> in Component 1 does not get called.
>> >> >
>> >> > Can anybody tell why this happened?
>> >> >
>> >> > I am quite puzzled. I am kind of new in
>> wicket. I am
>> >> using wicket 1.4.8 on tomcat.
>> >> >
>> >> > Regards.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> ---------------------------------------------------------------------
>> >> > 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
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> 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