Try something like this in the onClick(AjaxRequestTarget):
this.add(new SimpleAttributeModifier(class, foobar));
target.add(this);
previouslyClicked.add(new SimpleAttributeModifier(class, otherclass));
target.add(previouslyClicked);
previouslyClicked = this;
--
Jeremy Thomerson
You can add an AttributeModifier to the wicket component representing
your div, which picks the correct attribute based on the model, and
add the divs to the target in your AjaxFallbackLink.onClick().
-Clint
On Wed, Apr 22, 2009 at 12:52 PM, Dane Laverty
danelave...@chemeketa.edu wrote:
I'm
Fabulous. Thank you for the quick response!
-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Sent: Wednesday, April 22, 2009 10:58 AM
To: users@wicket.apache.org
Subject: Re: Clickably Selectable DIVs
Try something like this in the onClick(AjaxRequestTarget
:09 AM, Dane Laverty
danelave...@chemeketa.edu wrote:
Fabulous. Thank you for the quick response!
-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Sent: Wednesday, April 22, 2009 10:58 AM
To: users@wicket.apache.org
Subject: Re: Clickably Selectable DIVs