the event is triggered on clientside, so you need to pass back what item was clicked there.
you can either do it by adding a unique behavior - which then has a unique path - which is that "id" you are passing back. or you need to append some unique id on client side using javascript so it can tell which row was clicked. -igor On 8/13/07, Kirk Israel <[EMAIL PROTECTED]> wrote: > > I have a Context Menu Object and Behavior... right now I construct one > Context Menu for the whole Data Table (extends > AjaxFallbackDefaultDataTable) component that links to it... then on > newRowItem() I add a unique ContextMenuBehavior (extends > AbstractBehavior) to that item before returning. > > My ContextMenuComponent currently constructs AjaxFallbackLink > derivatives to connect to the functions that will actually do the > work. > > My question is, what's the best way of getting information on which > Table item was actually clicked to the context menu? Obviously I'd > rather not give each table item its own context menu... is there > anything in AbstractBehavior that would get triggered when the user > right clicks, and thus let me set a global-ish variable in the parent > component that the contextmenu could then read? Or have we gone about > that wrong, and it needs to be some other kind of behavior to activate > server-side code when the behavior gets activated? > > I might be still having trouble setting my mind to the appropriate > Wicket way of thinking about this kind of issue. > > Thanks... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
