• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Converting JSF app to portlets using RAD

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I require to convert the JSF application to portlets.

Can someone provide some links / docs which talks about how to convert
the same.

I am using the following tech :

RAD v6.0 (ide)
websphere portal server v5.0

Thanks in advance,

Gseth
 
Gaurav Seth
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Was successfully able to do it, its pretty simple. Here are the steps :

1. Export the JSF project as WAR, including the source files.
2. Using RAD, create the new faces portlet (in my case 168) project.
3. Now, import the JSF App (.war) into Portlet Project.
4. Changes to be done in the following files
a. faces-config.xml - Add <factory>
<faces-context-factory>com.ibm.faces.context.PortletFacesContextFactoryImpl</faces-context-factory>
</factory>
and
<variable-resolver>com.ibm.faces.application.PortletVariableResolver</variable-resolver>
b. Web.xml - Remove the reference to FacesServlet.
c. Add taglib reference for portlets - http://java.sun.com/portlet for URL and /WEB-INF/tld/std-portlet.tld for location
d. Portlet.xml - Change the value of init param of �com.ibm.faces.portlet.page.view� to �/xyz.jsp� (entry point of App)
e. JSP files - add the following the tags and Remove HTML, Body, Head tags

<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<portlet efineObjects />

You are now all set to run the application on portal server.

- Gaurav
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic