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

    Simple Portlet

    roderic

      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.

        • 1. Re: Simple Portlet
          gavin.king

          Portal support is the biggest remaining issue for 1.0. Roy is working in this on now. Sit tight for a couple of weeks and we should get there.

          • 2. Re: Simple Portlet
            jrodri

            i have a .ear project working on jboss seam (jboss-4.2.1 GA + jboss seam 2.0.0 beta1).

            i need to generate one portlet to include it in jira.

            could you please tell me how should i configure the portlet.xml and jboss-portlet.xml to generate the portlet..


            Regards

            Jaime