Re: wicket-jquery-ui menu item with client handler

2017-07-11 Thread Maxim Solodovnik
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) {

Re: Localization of PageParameters

2017-07-11 Thread Martin Grigorov
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,

Re: wicket-jquery-ui menu item with client handler

2017-07-11 Thread Sebastien
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

Re: reusable Panel with Delete-Button and Confirmation Dialog (Bootstrap Modal), issue with page refresh

2017-07-11 Thread UlrichKnaack
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:

wicket-jquery-ui menu item with client handler

2017-07-11 Thread Maxim Solodovnik
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

reusable Panel with Delete-Button and Confirmation Dialog (Bootstrap Modal), issue with page refresh

2017-07-11 Thread Knaack, Ulrich
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:

Localization of PageParameters

2017-07-11 Thread Ravi
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