I tried to do the following below but I got an error could not update
component hierarchy.
WicketMessage: Cannot modify component hierarchy after render phase has
started (page version cant change then anymore)
Is there an event method (like onAfterRender) that I could use without
error?
whats the usecase?
-igor
On Tue, Jan 25, 2011 at 9:37 AM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com wrote:
I tried to do the following below but I got an error could not update
component hierarchy.
WicketMessage: Cannot modify component hierarchy after render phase has
started (page
...@gmail.com]
Sent: Tuesday, January 25, 2011 12:40 PM
To: users@wicket.apache.org
Subject: Re: Call onAfterRender and change default model without error
whats the usecase?
-igor
On Tue, Jan 25, 2011 at 9:37 AM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com wrote:
I tried to do
(state1));
}
onAfterRender() {
getDefaultModel().set(state2));
}
-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: Tuesday, January 25, 2011 12:40 PM
To: users@wicket.apache.org
Subject: Re: Call onAfterRender and change default model without error
() {
setDefaultModel(new ModelString(EnabledLight));
}
}
...
span wicket:id=trafficLight/span
-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: Tuesday, January 25, 2011 1:01 PM
To: users@wicket.apache.org
Subject: Re: Call onAfterRender and change default model
: RE: Call onAfterRender and change default model without error
Here is a use-case for my request below:
Let's say I am implementing a traffic stop light Wicket component. There are
only two states, on and off. The default state is off but I can manually
change the state to on. (E.g. some
-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: Tuesday, January 25, 2011 1:01 PM
To: users@wicket.apache.org
Subject: Re: Call onAfterRender and change default model without error
you didnt answer my question
-igor
On Tue, Jan 25, 2011 at 9:58 AM, Brown, Berlin [GCG-PFS
wicket:id=trafficLight/span
-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: Tuesday, January 25, 2011 1:01 PM
To: users@wicket.apache.org
Subject: Re: Call onAfterRender and change default model without error
you didnt answer my question
-igor
: Re: Call onAfterRender and change default model without error
this still doesnt explain the need to switch it to disabled in
onafterrender...
-igor
On Tue, Jan 25, 2011 at 11:19 AM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com wrote:
Here is a use-case for my request below:
Let's