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
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
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
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
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
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
};
}
protected static class SelectEvent extends JQueryEvent {
private final String key;
public SelectEvent() {
super();
this.key =
RequestCycleUtils.getQueryParameterValue("key").toString();
}
public St
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
{var m = 'clicked: ' + key;
> > window.console
> > > && console.log(m) || alert(m); }, %s});});", selector,
> items.toString());
> > > }
> > >
> > > }
> > >
> > > 4. $() method just prints jquery context menu
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
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
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
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
13 matches
Mail list logo