Details
Description
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...