2 Replies Latest reply on Oct 18, 2007 7:28 PM by Juan Rodriguez

    Simple Portlet

    Roderic Newbie

      Is it possible to put a simple seam app such as the registration example into a portlet? I have attempted using portal2.2.1RC2 and failed. Here are my efforts:

      portlet.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <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 /opt/SUNWps/dtd/portlet.xsd"
       version="1.0">
       <portlet>
      
       <portlet-name>Registration</portlet-name>
       <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
      
       <init-param>
       <name>default-view</name>
       <value>/register.seam</value>
       </init-param>
      
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
      
       <portlet-info>
       <title>Registration</title>
       </portlet-info>
      
       </portlet>
      </portlet-app>
      

      jboss-portlet.xml
      <portlet-app>
       <portlet>
       <portlet-name>Registration</portlet-name>
       <transaction>
       <trans-attribute>Required</trans-attribute>
       </transaction>
       <header-content>
       </header-content>
       </portlet>
      </portlet-app>
      


      I am very new at both seam and portlets, so this is basically cut, guess and paste.

      With this I am able to create a portlet instance for registraion, but when I use it in page, the page is empty.