Re: Wicket context menu component

2013-06-17 Thread bronius
Yes I agree, thanks again :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-context-menu-component-tp4659306p4659544.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Wicket context menu component

2013-06-17 Thread Sebastien
Hi Bronius, You're welcome! Yes, the usage you performed is the intended one. In your case however, maybe you can optimize it, because when a menu-item is clicked, both IMenuItem#onClick() and Menu#onClick() are triggered (in that order). So instead of a 'switch' statement in Menu#onClick(), you

Re: Wicket context menu component

2013-06-17 Thread bronius
menu 4": System.out.println("Clicked " + item.getTitle().getObject() + " on " + selectedLink.getModelObject().getNickname()); break; } } }; Big thanks and best regards! :) bronius -- View this message in context: http://ap

Re: Wicket context menu component

2013-06-15 Thread Sebastien
do you think? I don't have much wicket experience, but > wicketish way for me seems that context menu behavior could be added to > link > component and then from that behavior I could invoke link's onClick lets > say. How would you would go forward from here for that kind o

Re: Wicket context menu component

2013-06-12 Thread bronius
kind of use case? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-context-menu-component-tp4659306p4659436.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe

Re: Wicket context menu component

2013-06-11 Thread Sebastien
Hi, glad to read it is almost working :) getQueryParameterValue("options") does return anything because it's not transmitted server side (due to CallbackParameter.context("options"), which does not pass the parameter to the ajax callback). But even you did transmit it, you probably got an "[object

Re: Wicket context menu component

2013-06-11 Thread bronius
}; } protected static class SelectEvent extends JQueryEvent { private final String key; public SelectEvent() { super(); this.key = RequestCycleUtils.getQueryParameterValue("key").toString(); } public St

Re: Wicket context menu component

2013-06-10 Thread Sebastien
implemented shows context menu, and callback > function is invoked(from jquery parameter), but I lack knowledge on how to > convert that callback function to wicket one. Menu example is ok, but its > different and also it seems I understand what separate methods do, but > because of my in

Re: Wicket context menu component

2013-06-10 Thread Sebastien
{var m = 'clicked: ' + key; > > window.console > > > && console.log(m) || alert(m); }, %s});});", selector, > items.toString()); > > > } > > > > > > } > > > > > > 4. $() method just prints jquery context menu

Re: Wicket context menu component

2013-06-10 Thread bronius
wicket one. Menu example is ok, but its different and also it seems I understand what separate methods do, but because of my inexperience I lack bigger picture understanding how everything works together. Any help is really appreciated :) -- View this message in context: http://apache-wicket.1842946.n

Re: Wicket context menu component

2013-06-10 Thread Martin Grigorov
context menu initialization stuff from > > here: http://medialize.github.io/jQuery-contextMenu/demo.html > > > > 5. Now when add this behavior to Page and add div class="userContextMenu" > > to > > html right click on it gives me context menu so its working. Cl

Re: Wicket context menu component

2013-06-10 Thread Sebastien
class="userContextMenu" > to > html right click on it gives me context menu so its working. Clicking on > menu also shows me simple alert message as it is in callback parameter. > > 6. So far so good, but now Im interested in how to link this to wicket > component listener

Wicket context menu component

2013-06-09 Thread bronius
arameter. 6. So far so good, but now Im interested in how to link this to wicket component listener. I will put this menu on multiple links, so i would like to receive both on which link user clicked for context menu and which menu item he have chosen. How would you implement this? Also am I even