class myitem extends item implements IOnClickHandler { protected oncomponenttag(tag) { tag.put("onclick").urlfor(IOnClickHandler.INTERFACE); }
public void onclick() { whatever(); } } -igor On Mon, Jan 12, 2009 at 2:18 AM, Gohan <hal...@gmail.com> wrote: > > Hi, > > I have a DataView using a custom Item that I create when the newItem method > is called. My question is, how do I add an onclick event handler to this > Item that allows me to select the model object for a particular row? Or > perhaps I can achieve this in some other way? > > Thanks > Johan > -- > View this message in context: > http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21411736.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