tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norbert Sándor (JIRA) <tapestry-...@jakarta.apache.org>
Subject [jira] Commented: (TAPESTRY-737) Support custom PageRenderSupportImpl in component Body
Date Fri, 04 Nov 2005 10:57:20 GMT
    [ http://issues.apache.org/jira/browse/TAPESTRY-737?page=comments#action_12356764 ] 

Norbert Sándor commented on TAPESTRY-737:

I have a complex page where I render large component groups conditionally. The components
should be rendered because of side effects of their rendering process but the output is not
written to the client. It is achieved using NullWriter if certain conditions met. It would
work but the scripts generated by these components are rendered as normal while they should
be ignored.

Now I solve it by subclassing Body and doing the checks in the addXScript methods.  A better
word is copypasting, because Body stores the pagesupportimpl as a private member so subclassing
is not really supported.

It is not an important feature (as you see I can solve it using a custom component) but maybe
someone else may have such comlex scenario and extensibility is always good in case of framework
components I think...
Maybe it was a bad idea to make it a parameter, it would be better as a protected method.


> Support custom PageRenderSupportImpl in component Body
> ------------------------------------------------------
>          Key: TAPESTRY-737
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-737
>      Project: Tapestry
>         Type: Improvement
>   Components: Framework
>     Versions: 4.0
>  Environment: 4b12
>     Reporter: Norbert Sándor

> Make it possible to use a custom PageRenderSupport implementation in Body, eg. by using
a pageRenderSupport parameter.
> BR,
> Norbi

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org

View raw message