[t5.4-beta-6] Page class member variable scope

2014-07-12 Thread Muhammad Gelbana
I hope I selected a valid subject ! When I handle a VALUE_CHANGED event for a Select component. I receive the current value for the Select component as an event handler method parameter. I use this parameter to set a member variable in the page's class. @OnEvent(component = "parameterType", valu

Re: Wait for the triggerEvent to finish

2014-07-12 Thread Lance Java
The proper way to solve this is to wait on the client. Only trigger onSuccess after the first event has finished. It's hard to help much more without a bit more info. If that's not possible (I doubt) then you can wait serverside. The first event could put an AtomicBoolean or CountDownLatch onto th

Wait for the triggerEvent to finish

2014-07-12 Thread Boris Horvat
Hi everyone, I have a component that triggers the event, once the event is triggered, it will go to OnSuccess method that will try to refresh the zone as you can see below private CaptureResultCallback triggerEvent(Object value, Object[] context) { CaptureResultCallback callback = new Ca

Re: [T5.4] helper components and mixins module: tapestry5-xtensions

2014-07-12 Thread Ilya Obshadko
On Fri, Jul 11, 2014 at 1:14 PM, Lance Java wrote: Thanks for sharing. > > I'm not sure that your AddAttribute mixin is necessary. Are you aware that > setting an attribute to null results in the attribute not being present? > That was a first thing I tried when faced the problem (with setting r