[ http://issues.apache.org/jira/browse/TAPESTRY-525?page=all ]
Jesse Kuhnert resolved TAPESTRY-525:
------------------------------------
Fix Version: 4.0.1
Resolution: Fixed
Patch applied, thank you.
> Link components should not render during rewind in portlet mode
> ---------------------------------------------------------------
>
> Key: TAPESTRY-525
> URL: http://issues.apache.org/jira/browse/TAPESTRY-525
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Environment: Tapestry 4.0 beta 3, Jetspeed 2.0-M3
> Reporter: Raphael Jean
> Assignee: Jesse Kuhnert
> Fix For: 4.0.1
> Attachments: TAPESTRY-525-patch.txt
>
> When running as a portlet, there is no way to generate a link during the
> processAction() phase, that is the rewind phase.
> When a Link component attempts to render its link during rewind, the
> PortletLinkFactoryImpl crashes because _renderResponse is null.
> One solution is to change the renderComponent() method of
> AbstractLinkComponent:
> protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
> {
> + if (cycle.isRewinding())
> + return;
> getRenderer().renderLink(writer, cycle, this);
> }
> Not quite sure about the side effects...
--
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]