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

2017-07-27 Thread Maxim Solodovnik
Hello Sebastien, Just was able to check it It works, unfortunately I was unable to abopt it for my needs ... :( What I need is 1) some menu items should work via server round-trip 2) couple of menu items should be client-side only I tried to "return true/false" from handler but it doesn't work

PropertyListView does not render the value from the html page to xml property

2017-07-27 Thread extraquoo
Hi I am creating a PropertyListView to dynamically populate rows to collect data of contact information. I am able to map the wicket id between html and panel class. However, when I click save button , the value does not persist in the corresponding object. The code is below *main class code:*

Re: Toastr popups and Form's onSubmit

2017-07-27 Thread Vit Rozkovec
Would it work to add a behavior to the component, passing behavior's url to Toastr and calling this url via Wicket.Ajax? In the behavior you would then redirect to the page you need. On 07/27/2017 04:43 PM, Martin Grigorov wrote: You will have to do some refactoring ... Instead of using

Re: Toastr popups and Form's onSubmit

2017-07-27 Thread Martin Grigorov
You will have to do some refactoring ... Instead of using Wicket's setResponsePage() you will need to use Toastr's callbacks toastr.options.onHidden = function() { console.log('goodbye'); }toastr.options.onCloseClick = function() { console.log('close button clicked'); } and do the redirect

Re: NPE in org.apache.wicket.request.http.handler.RedirectRequestHandler.respond

2017-07-27 Thread Wayne W
Thanks Martin, I've put logging everywhere but still can't track it down. Its just this jetty instance causing not, not sure why. I'm going to side step the issue and upgrade to 7.8.10 as I need that replication fix live asap. Many thanks On Wed, Jul 26, 2017 at 11:51 AM, Martin Grigorov

Re: Toastr popups and Form's onSubmit

2017-07-27 Thread ssamarin
I probably don't need a label, problem is that onSubmit of the form typically calls redirect to another page. I tried AjaxButton, but can't get redirect being called *after* toastr popup shows up. Ideally, I want popup, wait few seconds till it closes (or user closes it) - do redirect. -- View

Re: Toastr popups and Form's onSubmit

2017-07-27 Thread Martin Grigorov
Hi, Do you really need a Label ? I think you should be able to accomplish the same with: target.appendJavaScript(Toastr.build(...)); Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 27, 2017 at 3:28 PM, ssamarin wrote: >

Toastr popups and Form's onSubmit

2017-07-27 Thread ssamarin
Hello, I'm integrating toastr popups (https://github.com/CodeSeven/toastr) into our application. For it to work properly, I need to add Behavior to Label and then add that label to AjaxRequestTarget. I'm wondering on how to wire this with Form's and onSubmit methods. Custom Ajax buttons

Re: how to implement resource bundle to get text from the xml file

2017-07-27 Thread Martin Grigorov
Then Component.getString(String) should work. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jul 26, 2017 at 8:00 PM, extraquoo wrote: > the current project use the i18n xml like below >

Re: Form Children values

2017-07-27 Thread Martin Grigorov
Hi, You need to get a reference to the Checkboxes' models somehow. The Form instantiates the Panel, and the Panel instantiates the Checkboxes. So you have several options: - pass the models from the form to the panel to the checkboxes - introduce getter methods where needed so you can reach them

Form Children values

2017-07-27 Thread ASHU_JAVA
Hello All, I wanted to fetch the current value of 3 checkbox's on the submit button. The "Checkbox" is not part of my form, instead its part of a Wicket Panel called inside the form. The hierarchy of checkbox values inside form object is shown in below screenshot:-

Re: Message Scroll Banner in Wickets

2017-07-27 Thread Martin Grigorov
Great! I hope you have learnt something new while debugging this problem! :-) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 27, 2017 at 11:21 AM, ASHU_JAVA wrote: > Hello All, > > I've resolved my issue by overriding the

Re: Message Scroll Banner in Wickets

2017-07-27 Thread ASHU_JAVA
Hello All, I've resolved my issue by overriding the renderHead() method inside MyPanel.java as below:- @Override public void renderHead(IHeaderResponse response) { response.renderString(""); response.renderOnDomReadyJavaScript("$(function () { $('.marquee').marquee({ duration: