Thanks a lot for you time and help. Please find below the xml file and the code. I am using jboss 4.2.0 GA and portal 2.6
Note: Some of the Element Names are Stripped in the display. I do not know why portlet.xml ============================================ <portlet-app version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet" xmlns="http://java.sun.com/xml/ns/portlet"> CMS Render Portlet <portlet-name>CMSRender</portlet-name> <display-name>CMS Render Portlet</display-name> <portlet-class>com.portlet.PlainRenderPortlet</portlet-class> <portlet-info> CMS Renderer Title </portlet-info> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> <portlet-mode>EDIT_CONTENT</portlet-mode> <portlet-preferences> path /Company Home/highlights/sales.html </portlet-preferences> </portlet-app> portlet-instances.xml ================================================ <?xml version="1.0" standalone="yes"?> <!DOCTYPE deployments PUBLIC "-//JBoss Portal//DTD Portlet Instances 2.6//EN" "http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd"> <instance-id>cmsrenderInstance</instance-id> <portlet-ref>CMSRender</portlet-ref> path /Company Home/highlights/Manager.tml -object.xml ================================================ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE deployments PUBLIC "-//JBoss Portal//DTD Portal Object 2.6//EN" "http://www.jboss.org/portal/dtd/dtd/portal-object_2_6.dtd"> <parent-ref>default</parent-ref> <if-exists>overwrite</if-exists> <instance-name>cmsrenderInstance</instance-name> <component-ref>CMSRenderer.CMSRender</component-ref> <parent-ref>default</parent-ref> <if-exists>overwrite</if-exists> <page-name>CMSRenderPage</page-name> <window-name>cmsrenderWindow</window-name> <instance-ref>cmsrenderInstance</instance-ref> true center 0 Portlet Code: protected void doView(RenderRequest rReq, RenderResponse rRes) throws PortletException, PortletSecurityException, IOException{ rRes.setContentType("text/html"); PrintWriter writer = rRes.getWriter(); try{ String path=rReq.getPreferences().getValue("path", "/Company Home/highlights/default.html"); System.out.println("Path:"+path); /* I am doing my stuff here after getting the path from the peference. */ writer.println(getHtml()); } catch(Exception e){ e.printStackTrace(); } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068888#4068888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068888 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
