Re: Re: Re: setupRender not called for components

2010-11-18 Thread Massimo Lusetti
On Thu, Nov 18, 2010 at 12:16 PM, Massimo Lusetti wrote: > On Thu, Nov 18, 2010 at 12:01 PM, Thiago H. de Paula Figueiredo > wrote: > >> I don't think so. Having more than one event handler method for the same >> event is something to be avoided anyway. > > I don't want to argue, plus I can agre

Re: Re: Re: setupRender not called for components

2010-11-18 Thread Massimo Lusetti
On Thu, Nov 18, 2010 at 12:01 PM, Thiago H. de Paula Figueiredo wrote: > I don't think so. Having more than one event handler method for the same > event is something to be avoided anyway. I don't want to argue, plus I can agree with that but the facts are that now is possible and BTW it was pos

Re: Re: Re: setupRender not called for components

2010-11-18 Thread Thiago H. de Paula Figueiredo
On Thu, 18 Nov 2010 06:42:09 -0200, Massimo Lusetti wrote: Wouldn't be nice to have an "ordering" optional parameter to @SetupRender where you can specify the ordering of execution? ... The same maybe applies to @BeginRender and friends too... I don't think so. Having more than one event ha

Re: Re: Re: setupRender not called for components

2010-11-18 Thread Massimo Lusetti
On Thu, Nov 18, 2010 at 9:42 AM, Massimo Lusetti wrote: > On Wed, Nov 17, 2010 at 7:13 PM, Howard Lewis Ship wrote: > >> I'm sure some combination of the above rules is the explanation for why the >> method is not being invoked. > > I personally have run into a similar situation and I ended havi

Re: Re: Re: setupRender not called for components

2010-11-18 Thread Massimo Lusetti
On Wed, Nov 17, 2010 at 7:13 PM, Howard Lewis Ship wrote: > I'm sure some combination of the above rules is the explanation for why the > method is not being invoked. I personally have run into a similar situation and I ended having one @SetupRender annotated method that call various (private) m

Re: Re: Re: setupRender not called for components

2010-11-17 Thread Howard Lewis Ship
f your > component. > > Regards, nillehammer > > ----- original Nachricht > > Betreff: Re: Re: setupRender not called for components > Gesendet: Mi, 17. Nov 2010 > Von: Stephan Windmüller > > > On Wed, 17. Nov 2010, nille hammer wrote: > > >

Re: setupRender not called for components

2010-11-17 Thread Juan E. Maya
:) great ! :) On Wed, Nov 17, 2010 at 1:50 PM, Stephan Windmüller wrote: > On 17.11.2010 13:29, Juan E. Maya wrote: > >> Does ur component extend another one? > > Finally, this was the hint I needed. My component had an (obsolete) > inheritance from BeanDisplay which already had a setupRender met

Re: setupRender not called for components

2010-11-17 Thread Stephan Windmüller
On 17.11.2010 13:29, Juan E. Maya wrote: > Does ur component extend another one? Finally, this was the hint I needed. My component had an (obsolete) inheritance from BeanDisplay which already had a setupRender method. After removing this, all works fine. Thank you both very much! - Stephan ---

Re: Re: Re: setupRender not called for components

2010-11-17 Thread nille hammer
ender not called for components Gesendet: Mi, 17. Nov 2010 Von: Stephan Windmüller > On Wed, 17. Nov 2010, nille hammer wrote: > > > > | > > > | > > > | public boolean isSetupRender() { > > > | // Do stuff > > > | return false; > > &g

Re: Re: setupRender not called for components

2010-11-17 Thread Juan E. Maya
i guess we r missing something in ur code. Does ur component extend another one? do u have more than one setupRender in ur component (or parent classes)? could u post the component code? (please not pieces, it's hard to see the big picture) On Wed, Nov 17, 2010 at 1:01 PM, Stephan Windmüller wro

Re: Re: setupRender not called for components

2010-11-17 Thread Stephan Windmüller
On Wed, 17. Nov 2010, nille hammer wrote: > > | > > | > > | public boolean isSetupRender() { > > | // Do stuff > > | return false; > > | } > I don't know whether this will solve your problem, but you don't need > to put in an extra t:if to prevent your component from rendering. I > sugge

Re: Re: setupRender not called for components

2010-11-17 Thread nille hammer
Hi Stephan, > | > | > | public boolean isSetupRender() { > | // Do stuff > | return false; > | } I don't know whether this will solve your problem, but you don't need to put in an extra t:if to prevent your component from rendering. I suggest doing the checks in setupRender and return

Re: setupRender not called for components

2010-11-17 Thread Stephan Windmüller
On Wed, 17. Nov 2010, Juan E. Maya wrote: > Stephan, r u sure the component is being render at all? Yes, of course. Currently I am using a construct like | | | public boolean isSetupRender() { | // Do stuff | return false; | } at the beginning of my component for this. Everything else

Re: setupRender not called for components

2010-11-17 Thread Juan E. Maya
Stephan, r u sure the component is being render at all? could please post the code where u use the component? On Wed, Nov 17, 2010 at 10:34 AM, Stephan Windmüller wrote: > On 17.11.2010 10:29, niksami wrote: > >> That's strange... > > Yep. :) > >> TML code inside t:container, > > Container is a d

Re: setupRender not called for components

2010-11-17 Thread Stephan Windmüller
On 17.11.2010 10:29, niksami wrote: > That's strange... Yep. :) > TML code inside t:container, Container is a div: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> > called into the page with t:yourComponentName Yes. Regards Stephan -

Re: setupRender not called for components

2010-11-17 Thread niksami
That's strange... Did you do everything else what component needs to work? TML code inside t:container, called into the page with t:yourComponentName etc? -- View this message in context: http://tapestry.1045711.n5.nabble.com/setupRender-not-called-for-components-tp3268695p3268748.html Sent from

Re: setupRender not called for components

2010-11-17 Thread Stephan Windmüller
On 17.11.2010 10:09, niksami wrote: > Components can have only one setupRender(), for initalisation of variables, > etc. Try to have only one setupRender(), and of course you don't have > onActivate() inside the component. There is only one setupRender()-method in my component and no onActivate.

Re: setupRender not called for components

2010-11-17 Thread niksami
Components can have only one setupRender(), for initalisation of variables, etc. Try to have only one setupRender(), and of course you don't have onActivate() inside the component. -- View this message in context: http://tapestry.1045711.n5.nabble.com/setupRender-not-called-for-components-tp3268