[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28831#action_28831
]
Philipp Bärfuss commented on MAGNOLIA-3234:
-------------------------------------------
So instead we should introduce a special actionResult (value returned by
mode.execute()) which will skip the rendering.
if(!skipRendering(actionResult)){
render
}
Unfortunately this value cannot be null or "" as this are the default values.
So use "skip-rendering".
Benefits:
- no changes in the resource module needed
- no special template definition class
We could even go as far as supporting the same pattern as for virtual URIs ->
"redirect:URI", "forward:URI"
> Make it possible to skip rendering
> ----------------------------------
>
> Key: MAGNOLIA-3234
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3234
> Project: Magnolia
> Issue Type: Task
> Components: templating
> Reporter: Federico Grilli
> Assignee: Federico Grilli
> Fix For: 4.3.3, 5.0
>
>
> When realizing the new redirect functionality the need arose for skipping the
> rendering of templates under certain conditions. This can be achieved by
> skipping the call to the onRender(..) method in AbstractRenderer.render(..)
> method when the determineTemplatePath(..) method for a certain template
> returns null. So far, this caused an IllegalStateException but now this
> should not be the case anymore and a null templatePath would simply mean 'do
> not render anything'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------