From jira-events at lists.jboss.org Tue Apr 24 17:05:17 2012 Content-Type: multipart/mixed; boundary="===============1042649242034208708==" MIME-Version: 1.0 From: Luca Stancapiano (JIRA) To: gatein-issues at lists.jboss.org Subject: [gatein-issues] [JBoss JIRA] (GTNPORTAL-2422) error using the createActionURL() of the renderResponse Date: Tue, 24 Apr 2012 17:05:17 -0400 Message-ID: <854825999.29851.1335301517796.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 740870255.29713.1335299958433.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============1042649242034208708== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/GTNPORTAL-2422?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Luca Stancapiano updated GTNPORTAL-2422: ---------------------------------------- Description: = 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 =3D response.getWriter(); writer.print("

" + "Click

"); } @Override public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { PortletRequestContext context =3D (PortletRequestContext) WebuiRequestCon= text .getCurrentInstance(); } } {code} When i click on the generated href in the page of the portlet I get this er= ror: org.exoplatform.portal.application.PortalRequestContext cannot be cast to o= rg.exoplatform.webui.application.portlet.PortletRequestContext was: Here my portlet: public class MyPortlet extends GenericPortlet { @Override protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { response.setContentType("text/html"); PrintWriter writer =3D response.getWriter(); writer.print("

" + "Click

"); } @Override public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { // TODO Auto-generated method stub PortletRequestContext context =3D (PortletRequestContext) WebuiRequestCon= text .getCurrentInstance(); } } When i click on the generated href in the page of the portlet I get this er= ror: org.exoplatform.portal.application.PortalRequestContext cannot be cast to o= rg.exoplatform.webui.application.portlet.PortletRequestContext = > 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 =3D response.getWriter(); > writer.print("

" > + "Click

"); > } > @Override > public void processAction(ActionRequest request, ActionResponse response) > throws PortletException, IOException { > PortletRequestContext context =3D (PortletRequestContext) WebuiRequestC= ontext > .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 administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1042649242034208708==--