Re: child component lookup

2016-04-15 Thread Ilya Obshadko
Solved - I had to use @MixinAfter. Thanks everyone! On Sat, Apr 16, 2016 at 9:14 AM, Ilya Obshadko wrote: > Well, this is actually quite straightforward approach. However I have > encountered a problem that looks weird. This is my mixin code: > > *public* *class* ModalIntegration { > > @Inje

Re: child component lookup

2016-04-15 Thread Ilya Obshadko
Well, this is actually quite straightforward approach. However I have encountered a problem that looks weird. This is my mixin code: *public* *class* ModalIntegration { @InjectContainer *private* Form form; *void* afterRender ( MarkupWriter markupWriter ) { markupWriter.at

Re: child component lookup

2016-04-15 Thread Thiago H de Paula Figueiredo
On Fri, 15 Apr 2016 17:34:03 -0300, Barry Books wrote: yes Tapestry mixins may not be easy to understand at first, but when you do, you realize how powerful they are, specially when combined with a class transformation when you need to apply them to several component instances at once.

Re: child component lookup

2016-04-15 Thread Barry Books
yes On Friday, April 15, 2016, Ilya Obshadko wrote: > Barry, thanks for your suggestion - I think this is what I need. > > Do you mean an implementation of ComponentClassTransformWorker2? > > On Fri, Apr 15, 2016 at 2:12 PM, Barry Books > wrote: > > > I'm not exactly sure I understand the requi

Re: child component lookup

2016-04-15 Thread Ilya Obshadko
Pavel, thanks! My point is to handle this on modal level: this should be completely transparent for the form itself. On Fri, Apr 15, 2016 at 2:33 PM, Pavel Chernyak wrote: > Ilya, greetings. > > As for submit button i search inside modal body for form component or > specify form name in modal c

Re: child component lookup

2016-04-15 Thread Pavel Chernyak
Ilya, greetings. As for submit button i search inside modal body for form component or specify form name in modal component. So, after clicking button form submits. Onsuccess i invoke hideModal function(via hidemodal event). OnFailure i do nothing except updating formzone to show messages/errors e

Re: child component lookup

2016-04-15 Thread Ilya Obshadko
Barry, thanks for your suggestion - I think this is what I need. Do you mean an implementation of ComponentClassTransformWorker2? On Fri, Apr 15, 2016 at 2:12 PM, Barry Books wrote: > I'm not exactly sure I understand the requirements but I think you could do > this with a mixin on the form. At

Re: child component lookup

2016-04-15 Thread Barry Books
I'm not exactly sure I understand the requirements but I think you could do this with a mixin on the form. At the very least this would allow communication with the form mixin and the modal via the Environment service. The modal could put something in the environment and the mixin could add some st