I need to inject the portlet css-path dynamically. I tried to do it like this 
but without any success


  | public class Portlet extends GenericPortlet{
  |     
  |      private static final String JSP_PATH = "/WEB-INF/jsp/info";
  | 
  |        @Override
  |     protected void doView(RenderRequest rRequest, RenderResponse rResponse) 
throws PortletException, IOException, UnavailableException
  |        {
  |           rResponse.setContentType("text/html");
  |           javax.portlet.PortletRequestDispatcher pRD = 
this.getPortletContext().getRequestDispatcher(JSP_PATH + "/view.jsp");
  |           rResponse.setProperty("HEADER_CONTENT", "/path/to/css");
  |           pRD.include(rRequest, rResponse);
  |        }
  |     }

What is wrong?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036286#4036286

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036286
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to