Thanks a lot for clarifications
Finally I was able to find onSelect method :)
What I need is "client only" menu item (with no round trip to server)
Currently I'm achieving this as follows:
new MenuItem() {
@Override
public void onClick(AjaxRequestTarget target) {
Hi,
I think this is a reasonable improvement.
Since it changes the behavior we can do it only in 8.x (before 8.0.0).
Please create a ticket and if no one objects we will make the change!
Thank you!
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Tue, Jul 11,
Hi Maxim,
MenuItem is a pojo, not a component/widget. You can use the
Menu#getItemList (jquery-ui) or Menu#getMenuItemsMap (kendo-ui) to add
menu-items and then reload the widget with the ART.
But I did not understood what you want/need to listen, there is no lazy
load (in ajax) for instance. The
I guess I bit the hand that fed me...
I attached the confirmation Modal to the Panel, and this was attached to the
cell which belonged to the row which was deleted before.
Will change my code tomorrow
--
View this message in context:
Hello Sebastien,
I'm trying to add MenuItem to wicket-jquery-ui menu with client only JS handler
As I understand I need to add AjaxCallListener to MenuItem but it
seems I'm unable to find the correct place for it :(
Maybe you can help?
--
WBR
Maxim aka solomax
Hi,
I've created a reusable panel (DeleteObjectPanel.java) which contains a
BootstrapAjaxButton
for deleting database entries.
After clicking the button, a Bootstrap Modal (ConfirmDeleteModal.java) appears
for confirmation.
Both are in the package example.confirm.
MCVE is here:
Hi guys,
we stumbled on a behavior and I'm not sure why it is implemented as it is ;)
It concerns the reading of PageParameters. They all use the StringValue
constructor without passing the Session locale.
The StringValue will in turn use the systems locale.
So when I retrieve a _en formatted