Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-02 Thread Igor Vaynberg
the approach isnt much different in 2.0 just that you can find the loginpanel in the constructor -igor On 2/2/07, Ryan <[EMAIL PROTECTED]> wrote: Looks like that is what I am going to have to do. Yet another reason wicket 2.0 is going to be nice. =) Ryan On 2/1/07, Igor Vaynberg <[EMAIL PR

Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-02 Thread Ryan
Looks like that is what I am going to have to do. Yet another reason wicket 2.0 is going to be nice. =) Ryan On 2/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 2/1/07, Ryan <[EMAIL PROTECTED]> wrote: > > You don't get off that easy. =) > > > > What if login link parent is not the same paren

Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Igor Vaynberg
On 2/1/07, Ryan <[EMAIL PROTECTED]> wrote: You don't get off that easy. =) What if login link parent is not the same parent as the login panel... for instance like 5 levels deep where passing it through all the constructors is highly undesirable. you have to pass a reference somehow. if you

Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Ryan
You don't get off that easy. =) What if login link parent is not the same parent as the login panel... for instance like 5 levels deep where passing it through all the constructors is highly undesirable. Ryan On 2/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > class mypage extends webpage { >

Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Igor Vaynberg
class mypage extends webpage { public mypage() { final Panel loginpanel=loginpanel=new LoginPanel(...); add(loginpanel); add(new LoginLink(..., loginpanel)); add(new LoginLink(..., loginpanel)); } } -igor On 2/1/07, Ryan <[EMAIL PROTECTED]> wrote: I

[Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Ryan
I am working on creating an "inline login link" that when clicked uses javascript to present a previously hidden login form (if javascript is disabled it will go to a login page). There will be several login links on a single page so I would like to render the login form once and have each link ref