<priya.aiyer <at> polaris.co.in> writes:

> 
> 
> Aaron -
> 
> Have you tried using "jsf-portlet.jar", a bridge provided by Sun Java?
> 
> Please refer to the article -
> http://developers.sun.com/prodtech/portalserver/reference/techart/jsf-po
> rtlets.html
> 
> I tried using them but face the issue of only the "Title" of the portlet
> getting displayed and body missing in J2.
> 
> - Priya -
> 

No I haven't, I have generally steered clear of the sun implementations 
because of a few reasons.  One is the license issues, I prefere myfaces 
because of the GPL.  The other is that for jetspeed, all of the examples 
use the myfaces implementation, not the sun implementation. 

As I mentioned in my last post on our other thread, this may be why you are 
running into some of your problems by mixing the jar files of the two
implementations. 

Since there is a portlet specification and the J2EE standards, it is of 
course it the long-term goal that we should be able to swap implementations 
(ie. the jar files) in our applications and they should function identically. 
However because portlet technology is so new, it may be a little while 
before this dream comes true.  Sun's implementation will no doubt work on 
their portal implementation,  but that of course does not help us for jetspeed.

If you do not want to use the jsf bridge implementation, I suggest using 
the myfaces portlet implementation:

org.apache.myfaces.portlet.MyFacesGenericPortlet

I can run my app under both jetspeed and outside of jetspeed in this mode.
In fact, I will probably switch back to this.  Refer to the jsf-demo-myfaces
example app (not jsf-demo).

In this case, my lib contains:

commons-beanutils-1.6.1.jar
commons-codec-1.2.jar
commons-collections-2.1.jar
commons-digester-1.5.jar
commons-el-1.0.jar
commons-logging-1.0.3.jar
log4j-1.2.8.jar
myfaces-1.0.9.jar
myfaces-jsf-api-1.0.9.jar

*NOTE* the portals-bridges-jsf-0.4-SNAPSHOT.jar is ABSENT.

And I change my portlet.xml config to be (the main change being the
portlet-class element):

<portlet-app id="jsfapp" version="1.0">
  <portlet id="manageProfile">
    <init-param>
      <name>default-view</name>
      <value>/home.jsp</value>
    </init-param>
        <init-param>
      <name>ViewPage</name>
      <value>/home.jsp</value>
    </init-param>
        <init-param>
      <name>HelpPage</name>
      <value>/help.jsp</value>
    </init-param>
    <description>My JSF App</description>
    <portlet-name>manageProfile</portlet-name>
    <display-name>My JSF App</display-name>
<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <portlet-info>
      <title>My JSF App</title>
      <short-title>My JSF App</short-title>
    </portlet-info>
  </portlet>
</portlet-app>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to