RE: right click popup context menu
I have a similar requirement for my project .could you share the implementation or guide me to the example which can help to implement context menu on right of a grid cell in Wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/right-click-popup-context-menu-tp1872802p4343078.html Sent from the Users forum 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
Re: right click popup context menu
Hi Doug, thank you very much for your time and patience. I try it again using only the dependencies from the contrib-yui-examples AND IT'S WORKING. Unfortunately we strongly use the generic concept from java and the current context2menu is at the moment only supported by wicket1.3, which is not jdk1.5 compatible (at least concerning the generics concept). Any idea about the scheduling planing of context2menu in wicket 1.4? Thanks, mkamneng. Doug Leeper wrote: I just updated from SVN for projects wicketstuff-yui-examples and wicket-contrib-yui. Did a mvn eclipse:eclipse on both. in the wicketstuff-yui-examples, i did a mvn jetty:run There were no errors and I was able to access the web app and subsequently the menu2 examples. As far as your error...not sure. There has to be some other error that you are not mentioning. What other errors are you seeing in eclipse? -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p2233.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: right click popup context menu
I just updated from SVN for projects wicketstuff-yui-examples and wicket-contrib-yui. Did a mvn eclipse:eclipse on both. in the wicketstuff-yui-examples, i did a mvn jetty:run There were no errors and I was able to access the web app and subsequently the menu2 examples. As far as your error...not sure. There has to be some other error that you are not mentioning. What other errors are you seeing in eclipse? -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19986080.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: right click popup context menu
Hello Doug, I'm still looking forward to hear from you. I'm new in wicket and I have at the moment time to investigate why a lot of wicket-contrib-yui components can't be added in wicket components (wicket version 13 and 1.4). I will be very happy if you can give me some advise where to start to find the reason of those compilation errors. Thanks, mkamneng mkamneng wrote: I try it with apache-wicket-1.3.4 and apache-wicket-1.4-m3 and I'm getting the same compilation errors! Doug Leeper wrote: what version of wicket are you using? I have not tested/ported any of the menu2 with wicket 1.4. -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19884337.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: right click popup context menu
Hello Doug, I'm have some difficulties getting the contextMenu running. I checkout today the wicket-contrib-yui project from the svn and install it using maven. Trying after that using the wicket-contrib-yui.jar and all dependencies to create my context menu in the same way as in the ContextMenu2Page example page, I get some compilation errors that I cannot explain: It's not possible to add a yui component to a wicket component: eg public class TestPage extends WebPage { ... public TestPage (final PageParameters parameters) { ... WebMarkupContainer treeContainer = new WebMarkupContainer( treeContextMenu); ... cmBehavior = new YuiContextMenuBehavior(nodeMenu ); treeContainer.add(cmBehavior); } } Error by treeContainer.add(cmBehavior): The method add(Component...) in the type MarkupContainer is not applicable for the arguments (YuiContextMenuBehavior) Please, I will appreciate any help! Thanks, mkamneng. Doug Leeper wrote: Take a look at wicket-contrib-yui. There is a context menu (built on top of YUI) contained in org.wicketstuff.yui.markup.html.menu2.contextMenu There are some examples in wicketstuff-yui-examples for the Context Menu (tree and list/data view) Note: these are SVN projects located at http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/ Let me know if you have any questions as I am the author of this contribution. - Doug -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19865344.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: right click popup context menu
what version of wicket are you using? I have not tested/ported any of the menu2 with wicket 1.4. -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19865384.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: right click popup context menu
I try it with apache-wicket-1.3.4 and apache-wicket-1.4-m3 and I'm getting the same compilation errors! Doug Leeper wrote: what version of wicket are you using? I have not tested/ported any of the menu2 with wicket 1.4. -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19865616.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: right click popup context menu
Hello Karen, Op donderdag 06-03-2008 om 10:42 uur [tijdzone -0500], schreef Karen Schaper: I have a data table and for each row that is generated, I'd like to be able to right click on the row and have actions that I can perform on the row appear in a popup menu. At risk of stating the obvious, I feel compelled to point out that depending on the second mouse button to show a context menu is bad practice. It's not very discoverable, and moreover, some browsers / browser extensions block javascript from gaining control over the context menu under the second mouse button. For generic pop-up menu guidelines in webapps, please see: http://developers.sun.com/docs/web-app-guidelines/uispec4_1/07-simple.html#7.2.3.4 regards, -- Reinout van Schouwen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: right click popup context menu
Take a look at wicket-contrib-yui. There is a context menu (built on top of YUI) contained in org.wicketstuff.yui.markup.html.menu2.contextMenu There are some examples in wicketstuff-yui-examples for the Context Menu (tree and list/data view) Note: these are SVN projects located at http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/ Let me know if you have any questions as I am the author of this contribution. - Doug -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p15903821.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: right click popup context menu
Thanks for the reply Doug. I actually found this project and now have a context menu appearing when clicking on the id column for a row. Now I just need to make my different actions actually work and the table refreshed. Right now I using the TestAction inner class that is in your example. In the onClick method of the TestAction the targetId is the id of the row that I am right clicking on to get the context menu. Is there a way to get the object that the row is based on? Thanks Karen -Original Message- From: Doug Leeper [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 2:20 PM To: users@wicket.apache.org Subject: Re: right click popup context menu Take a look at wicket-contrib-yui. There is a context menu (built on top of YUI) contained in org.wicketstuff.yui.markup.html.menu2.contextMenu There are some examples in wicketstuff-yui-examples for the Context Menu (tree and list/data view) Note: these are SVN projects located at http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/ Let me know if you have any questions as I am the author of this contribution. - Doug -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p15 903821.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: right click popup context menu
In the populateItem, you will need to do the following: contextMenuBehavior.applyAttributes(item, popupMenu, new Model( rowId)); Where rowId is the value you are looking for when the action has been selected (the targetId in the onClick method) private class MyAction extends AbstractYuiMenuAction implements IYuiMenuAjaxAction { public void onClick(AjaxRequestTarget target, String targetId) { // targetId == the rowId in applyAttributes } } -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p15908004.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: right click popup context menu
Yep. I have that working just as you described below. Glad I'm doing it correctly. Thanks -Original Message- From: Doug Leeper [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 5:43 PM To: users@wicket.apache.org Subject: RE: right click popup context menu In the populateItem, you will need to do the following: contextMenuBehavior.applyAttributes(item, popupMenu, new Model( rowId)); Where rowId is the value you are looking for when the action has been selected (the targetId in the onClick method) private class MyAction extends AbstractYuiMenuAction implements IYuiMenuAjaxAction { public void onClick(AjaxRequestTarget target, String targetId) { // targetId == the rowId in applyAttributes } } -- View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p15 908004.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]