Get return value of ajax event in Wicket 6.9.1

2013-11-11 Thread Daniela L
Hi, this is my first question, so i hope I get everything right. I am trying to catch the event of the user closing the browser window in wicket. I followed this example: http://stackoverflow.com/questions/16527463/call-java-component-from-javascript-and-retreive-value and I managed to get the

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-11 Thread Daniela L
().releaseSavedBlockedFreeCalendarEvent(); } Hi, You need to make an Ajax call to the server. On Mon, Nov 11, 2013 at 2:10 PM, Daniela L danigal...@gmail.com danigal...@gmail.com wrote: Hi, this is my first question, so i hope I get everything right. I am trying to catch the event

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-11 Thread Daniela L
AbstractDefaultAjaxBehavior { @Override protected void respond(AjaxRequestTarget target) { AppointmentSession.get().releaseSavedBlockedFreeCalendarEvent(); } Hi, You need to make an Ajax call to the server. On Mon, Nov 11, 2013 at 2:10 PM, Daniela L danigal

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-11 Thread Daniela L
I thought adding respond was the ajax call to the server, am I wrong? I didn't work much with ajax, i am sorry 2013/11/11 Martin Grigorov mgrigo...@apache.org Did you do what I suggested you ? On Mon, Nov 11, 2013 at 3:49 PM, Daniela L danigal...@gmail.com wrote: Hi, I have tryed

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-12 Thread Daniela L
Ajax API: Wicket.Ajax.get(...). Just try with the line I've added in your JS code On Mon, Nov 11, 2013 at 4:04 PM, Daniela L danigal...@gmail.com wrote: I thought adding respond was the ajax call to the server, am I wrong? I didn't work much with ajax, i am sorry 2013/11/11 Martin

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-13 Thread Daniela L
); //tryed both //pageExitWarningBehavior.detach(myTextField); } }; 2013/11/12 Daniela L danigal...@gmail.com Hi, thank you so much for your help this works fantastic. I am so happy I was trying around with this for days :-) 2013/11/11 Martin

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-13 Thread Daniela L
. On Wed, Nov 13, 2013 at 10:02 AM, Daniela L danigal...@gmail.com wrote: Hi, I have another problem regarding this question. Now every time the page is left the message Do you want to leave the page is popping up, but when the user correctly fills the form on the page and hits the submit

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-14 Thread Daniela L
; + } + };)); On Wed, Nov 13, 2013 at 4:12 PM, Daniela L danigal...@gmail.com wrote: Hi, I am sorry I don't get it. How and when to set the JS variable? Like this: mySubmitButton.add(new AjaxEventBehavior(onclick) { @Override protected void onEvent(AjaxRequestTarget

Fwd: Feedback Messages prevent DropDownChoice updating Textfields

2014-02-11 Thread Daniela L
Hi, I am trying to implement a Feedback for every Form Component and a catch all Feedback Panel in wicket 6.12.0. Everything works fine except for the case when a user causes a error which is shown in the Feedback Panel of the Component, e.g. the Textfield firstName is left empty. After that the

Re: Feedback Messages prevent DropDownChoice updating Textfields

2014-02-12 Thread Daniela L
Hi, sometimes one doesn't see the obvious things, I simply had to add a lastName.clearInput(); in the onUpdate method and everything works as expected. I hope that helps anybody having the same problem :-) Best Regards Daniela Hi, I am trying to implement a Feedback for every Form Component and

Close Browser Behavior

2014-03-12 Thread Daniela L
Hi, I am using a close browser behavior to clean up user data if the user closes the browser window. I also use a CheckBox to toggle the visibility of some Textfields. Unfortunately the refresh through the click of the CheckBox triggers the close browser behavior. How can this be avoided? Here is

Re: Close Browser Behavior

2014-03-12 Thread Daniela L
, On Wed, Mar 12, 2014 at 1:15 PM, Daniela L danigal...@gmail.com wrote: Hi, I am using a close browser behavior to clean up user data if the user closes the browser window. I also use a CheckBox to toggle the visibility of some Textfields. Unfortunately the refresh through the click

Re: Close Browser Behavior

2014-03-13 Thread Daniela L
-03-12 14:31 GMT+01:00 Martin Grigorov mgrigo...@apache.org: On Wed, Mar 12, 2014 at 3:20 PM, Daniela L danigal...@gmail.com wrote: Hi Martin, thank you very much for your quick and brilliant answer :-) Changing to AjaxCheckBox did the trick. It seems to be very difficult to provide

Re: Close Browser Behavior

2014-03-14 Thread Daniela L
Session#invalidate[Now]() explicitly. Martin Grigorov Wicket Training and Consulting On Thu, Mar 13, 2014 at 4:34 PM, Daniela L danigal...@gmail.com wrote: Hi Martin, if found the reason why the data is not freed in onInvalidate, the Spring/Hibernate update to the database issues

Re: Close Browser Behavior

2014-03-17 Thread Daniela L
the There is no application attached to current thread ContainerBackgroundProcessor exception. Many thanks for the help. Best regards Daniela 2014-03-14 14:51 GMT+01:00 Daniela L danigal...@gmail.com: Hi Martin, it is definitely a problem in my code :-)) But unfortunately I do not understand how

Re: EqualInputValidator for PasswortTextfield

2014-04-01 Thread Daniela L
could of course override the value as well if you like. Best regards, Alasdair -Ursprüngliche Nachricht- Von: Daniela L [mailto:danigal...@gmail.com] Gesendet: Montag, 31. März 2014 12:24 An: users@wicket.apache.org Betreff: EqualInputValidator for PasswortTextfield Hi, I have two