You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephan Windmüller <st...@tu-dortmund.de> on 2010/11/17 09:44:23 UTC
setupRender not called for components
Hi!
The documentation states that each component may have a setupRender method:
http://tapestry.apache.org/tapestry5.1/guide/rendering.html
This works for pages, but the methods of my components are not called,
even when I name them setupRender() _and_ annotate them with @SetupRender.
What am I doing wrong?
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: setupRender not called for components
Posted by Stephan Windmüller <st...@tu-dortmund.de>.
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
| <t:if test="setupRender"/>
|
| public boolean isSetupRender() {
| // Do stuff
| return false;
| }
at the beginning of my component for this. Everything else is rendered
fine.
> could please post the code where u use the component?
This is how I use it in the page:
| <div class="${subelementCSS}">
| <t:myComponent object="myObject" showLinks="true"/>
| </div>
Regards
Stephan
Re: setupRender not called for components
Posted by "Juan E. Maya" <ma...@gmail.com>.
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
<st...@tu-dortmund.de> wrote:
> On 17.11.2010 10:29, niksami wrote:
>
>> That's strange...
>
> Yep. :)
>
>> TML code inside t:container,
>
> Container is a div:
>
> <div class="report"
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
>
>> called into the page with t:yourComponentName
>
> Yes.
>
> Regards
> Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: setupRender not called for components
Posted by Stephan Windmüller <st...@tu-dortmund.de>.
On 17.11.2010 10:29, niksami wrote:
> That's strange...
Yep. :)
> TML code inside t:container,
Container is a div:
<div class="report"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> called into the page with t:yourComponentName
Yes.
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: setupRender not called for components
Posted by niksami <ni...@fleka.me>.
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 the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: setupRender not called for components
Posted by Stephan Windmüller <st...@tu-dortmund.de>.
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.
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: setupRender not called for components
Posted by niksami <ni...@fleka.me>.
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-tp3268695p3268721.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org