[gatein-issues] [JBoss JIRA] (GTNPORTAL-2422) error using the createActionURL() of the renderResponse
Trong Tran (JIRA)
jira-events at lists.jboss.org
Mon May 7 00:55:20 EDT 2012
[ https://issues.jboss.org/browse/GTNPORTAL-2422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690648#comment-12690648 ]
Trong Tran commented on GTNPORTAL-2422:
---------------------------------------
I'm not sure to get the situation of this issue ? how is it fixed ?
> error using the createActionURL() of the renderResponse
> -------------------------------------------------------
>
> Key: GTNPORTAL-2422
> URL: https://issues.jboss.org/browse/GTNPORTAL-2422
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: PC integration, WebUI
> Affects Versions: 3.2.0-GA
> Environment: a simple portlet extending the GenericPortlet
> Reporter: Luca Stancapiano
> Assignee: Matt Wringe
>
> Here my portlet:
> {code}
> public class MyPortlet extends GenericPortlet {
> @Override
> protected void doView(RenderRequest request, RenderResponse response)
> throws PortletException, IOException {
> response.setContentType("text/html");
> PrintWriter writer = response.getWriter();
> writer.print("<p><a href='" + response.createActionURL() + "'>"
> + "Click</a></p>");
> }
> @Override
> public void processAction(ActionRequest request, ActionResponse response)
> throws PortletException, IOException {
> PortletRequestContext context = (PortletRequestContext) WebuiRequestContext
> .getCurrentInstance();
> }
> }
> {code}
> When i click on the generated href in the page of the portlet I get this error:
> org.exoplatform.portal.application.PortalRequestContext cannot be cast to org.exoplatform.webui.application.portlet.PortletRequestContext
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list