Works great with a Container.
Thanks Ernesto, you're the best :)
Saludo
Chris
-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
Gesendet: Mittwoch, 11. November 2009 10:28
An: users@wicket.apache.org
Betreff: Re: AbstractAjaxTimerBehavior causes except
I didn't mean to 'replace' but to 'add'. You need both lines.
On Wed, 2009-11-11 at 10:06 +0100, Giambalvo, Christian wrote:
> Hi Martin,
>
> this doesn't work.
>
> @Override
> protected void onTimer(AjaxRequestTarget target)
> {
> Label t2 = new L
You're right Ernesto, your example works, but what if I want to replace a whole
panel and not just the model of a label?
-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
Gesendet: Mittwoch, 11. November 2009 10:15
An: users@wicket.apache.org
Betreff:
Hi Martin,
this doesn't work.
@Override
protected void onTimer(AjaxRequestTarget target)
{
Label t2 = new Label("message", "Test " + testCounter);
t2.setOutputMarkupId(true);
test = t2;
testCounter++;
Btw, the exception is thrown on first call not on second round trip.
-Ursprüngliche Nachricht-
Von: Giambalvo, Christian [mailto:christian.giamba...@excelsisnet.com]
Gesendet: Mittwoch, 11. November 2009 09:39
An: users@wicket.apache.org
Betreff: AW: AbstractAjaxTimerBehavior causes
Hi Ernesto,
the label was just an example.
In my app i try to replace the navigation (you remember your suggestion with a
timer?)
The navigation is a panel. So recreate the whole panel and then try to replace
it with the new one.
This is where the AbstractAjaxTimerBehavior comes in.
Greets Chri