[jboss-user] [JBoss Portal] - Re: org.jboss.portal.portlet.container.PortletInitialization

klsateesh do-not-reply at jboss.com
Thu Aug 17 09:06:42 EDT 2006


Hi,

  Thanks for your reply..

   Here is the my sample portlet..

  
  | 
  | package com.lmco.dpa;
  |   
  | // Import Statements go here..
  | 
  | public class AssessSamplePortlet extends GenericPortlet{
  |     
  |     /** Creates a new instance of AssessSamplePortlet */
  |     public AssessSamplePortlet() {
  |         
  |     }
  |     
  |     protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException {
  |       rResponse.setContentType("text/html");
  |       PrintWriter writer = rResponse.getWriter();
  |       writer.write("Assessment Sample Portlet!");
  |       writer.close();
  |    }
  |     
  | }
  | 
  |   


  portlet-instances.xml:

  
  | <?xml version="1.0" standalone="yes"?>
  | <deployments>
  |    <deployment>
  |       <instance>
  |          <instance-id>AssessSamplePortletInstance</instance-id>
  |          <portlet-ref>AssessSamplePortlet</portlet-ref>
  |       </instance>
  |    </deployment>
  | </deployments>
  |   

  portlet.xml:
  
  |   <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
  |              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |              xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
  |              version="1.0">
  |    <portlet>
  |       <portlet-name>AssessSamplePortlet</portlet-name>
  |       <portlet-class>com.lmco.dpa.AssessSamplePortlet</portlet-class>
  |       <supports>
  |          <mime-type>text/html</mime-type>
  |          <portlet-mode>VIEW</portlet-mode>
  |       </supports>
  |       <portlet-info>
  |          <title>AssessSample Portlet</title>
  |       </portlet-info>
  |    </portlet>
  | </portlet-app>
  |     

    jbossportlet-object.xml:
   
  | 
  |     <?xml version="1.0" encoding="UTF-8"?>
  | <deployments>
  |    <deployment>
  |       <if-exists>overwrite</if-exists>
  |       <parent-ref>default.default</parent-ref>
  |       <window>
  |          <window-name>AssessSamplePortletWindow</window-name>
  |          <instance-ref>AssessSamplePortletInstance</instance-ref>
  |          <region>center</region>
  |          <height>1</height>
  |       </window>
  |    </deployment>
  | </deployments>
  | 
  |    

   And i have an Empty web.xml 

   My Web Application name is jbossportal . Is there a naming convention for xxx-object.xml file ?

Thanks
Sateesh

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965732



More information about the jboss-user mailing list