[ 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. BR, Norbi > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
