with a bit of javascript: this.options[this.selectedIndex] which you then append to the generated url.
-igor On Tue, Apr 7, 2009 at 2:55 PM, yxd0018 <ying_d...@ml.com> wrote: > > Thanks for your code. Appreciate a little more help. How do I get the > highlighted object from palette? I have this > List<ScenarioDefinition> choiceList = getAllScenarios(); > List<ScenarioDefinition> selectedChoice = > scenarioService.getScenarioByReportId( ); > this.palette = new Palette<Serializable>( "palette", new Model( > (Serializable)selectedChoice ) > , new Model( (Serializable)choiceList ), renderer, 10, false > ) ; > In Method onEvent(), however getParent().getDefaultModelObject() throw > exception. > > > add(new palette(.....) { > protected component newchoicescomponent() { > component choices=super.newchoicescomponent(); > choices.add(new ajaxeventbehavior("click") { > protected void onevent(ajaxrequettarget t) { > // do whatever you need > }});}}); > > -igor > > > -- > View this message in context: > http://www.nabble.com/retrieve-value-at-mouse-click-in-palette-tp22927443p22939123.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org