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]

Reply via email to