One more thing regarding suggestion:

The link on the second component points to a secured page (that needs login).

--- On Mon, 5/17/10, David Chang <[email protected]> wrote:

> From: David Chang <[email protected]>
> Subject: Re: When is AbstractBehavior#bind not called?
> To: [email protected]
> Date: Monday, May 17, 2010, 9:30 PM
> Any suggestion about minimal design
> changes?
> 
> Thanks!
> 
> --- On Mon, 5/17/10, Igor Vaynberg <[email protected]>
> wrote:
> 
> > From: Igor Vaynberg <[email protected]>
> > Subject: Re: When is AbstractBehavior#bind not
> called?
> > To: [email protected]
> > 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 <[email protected]>
> > 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: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> > 
> > 
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to