Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-21 Thread Rob Audenaerde
Hi Sven, Thanks for double-checking! The weird thing is that I thought this solved my problem, but when I tried to create the quickstart; I couldn't reproduce it either :o. I seem to have been mistakenly assuming it was this piece of code that fixed the problem. So I tried to build it more towar

Re: Wicket and Chat Bots

2020-01-21 Thread Martijn Dashorst
Well, sounds like a good plan! Wicket was originally conceived as a VoiceXML framework by Jonathan Locke (if you go back long enough in the history you'll find references to com.voicetribe packages), but he pivoted to HTML when he needed to build a website. So Wicket has been developed with this i

Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-21 Thread Ernesto Reinaldo Barreiro
Hi, I don't know if it is related or not but I have experienced a similar problem while using borders. I don't remember the exact situation but I can try to dig our code base and find out what was it. On Tue, Jan 21, 2020 at 10:14 AM Rob Audenaerde wrote: > Hi Sven, > > Thanks for double-checki

Call for presentations for ApacheCon North America 2020 now open

2020-01-21 Thread Rich Bowen
Dear Apache enthusiast, (You’re receiving this message because you are subscribed to one or more project mailing lists at the Apache Software Foundation.) The call for presentations for ApacheCon North America 2020 is now open at https://apachecon.com/acna2020/cfp ApacheCon will be held at

Need an event later than 'done'

2020-01-21 Thread Entropy
In our app we display a veil after any button click that goes to the server to prevent users double-submitting. Which they do. Alot. Double-submits cause a variety of mischief for us ranging from StaleObjectExceptions in hibernate to wicket exceptions about buttons not being enabled and others.

Re: Need an event later than 'done'

2020-01-21 Thread Sven Meier
Hi Entropy, the trick is do keep the veil up whenever a redirect happens as the result of an Ajax request. Similar to what wicket-ajax-jquery.js is doing with it's Ajax indicator:                         if (attrs.i && context.isRedirecting !== true) {                             Wicket.DOM.h

StringResourceModel parameter and AJAX update

2020-01-21 Thread Zbynek Vavros
Hi, just simple use-case but I can't figure it out. I have DropDownChoice that selects User and Label having StringResourceModel where the parameter (new StringResourceModel(...).setParameter(selectedUser)) is the selected user. How do I update the Label's model so that it reflects User selected

Re: Need an event later than 'done'

2020-01-21 Thread Entropy
That seems promising. If you could look how you did it in your other project that would be great. I suppose if I could get access to the response XML I could look for the redirect in that. I'm not sure where it is though or even if it's provided to this event. -- Sent from: http://apache-wicket

Re: StringResourceModel parameter and AJAX update

2020-01-21 Thread Ernesto Reinaldo Barreiro
Hi, Instead of passing as parameter selectedUser try passing new IModel { getObject() { return selectedUser; } } as parameter. If you are using wicket 7.x then instead of IModel you could use an AbstractReadonlyModel On Tue, Jan 21, 2020 at 11:31 PM Zbynek Vavros wrote: > Hi,

Re: Need an event later than 'done'

2020-01-21 Thread Ernesto Reinaldo Barreiro
Hi, I know this is not bulletproof but I always add a timeOut to hiding the veil, usually 300, 400 milliseconds, so that there is some margin for AJAX request to finish. Also some AJAX requests are so fast that veil + almost not visible. spinner is On Tue, Jan 21, 2020 at 11:59 PM Entropy wrote:

Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-21 Thread Sven Meier
Ah, our old friends 'enclosures'! Problem is that a component inside an enclosure is really inside it only during rendering of its markup. But the strategy walking through the component hierarchy to render all headers doesn't know anything about that enclosure o_O As it has been written many t