Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
add(state.buildYourComponent("someWicketId")); On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote: > > > > can you elaborate how it relates to wicket? > > Scott Swank wrote on 07/12/07 19:22: > > > May I suggest the "state pattern" :). > > public class Yours > { > private YourState state; > > pu

Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Ittay Dror
can you elaborate how it relates to wicket? Scott Swank wrote on 07/12/07 19:22: May I suggest the "state pattern" :). public class Yours { private YourState state; public Foo someMethod() { return state.getFoo(); } etc. } http://en.wikipedia.org/wiki/State_pattern On

Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
May I suggest the "state pattern" :). public class Yours { private YourState state; public Foo someMethod() { return state.getFoo(); } etc. } http://en.wikipedia.org/wiki/State_pattern On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > Say I have some entit

[Wicket-user] page variations (in 1.2)

2007-07-12 Thread Ittay Dror
Hi, Say I have some entity E, and it can have states A,B,C. now, for each state, I render the entity a bit differently (showing more or less information, changing colors). The page is comprised of many, sometimes nested (in panels) components. What is the best way to achieve those variations,