You can extend the framework based on JavaServer Faces technology and then run a JSR 168-compliant portlet on Sun Java System Portal Server 6. This article describes the setup procedures, offers sample code, and summarizes the known issues.
Tutorial Details:
Contents
- Modifying Your Application for Compliance With JSR 168
- Deploying the WAR File
- Creating a Channel for Your Portlet
- Viewing the New Channel on Your Desktop Portal
- Troubleshooting
- Appendix A: Sample Application
- Appendix B: Bugs In Portlet Integration Library
- Appendix C: Sample portlet.xml File
- Appendix D: Sample web.xml File
- Appendix E: Extension of the JavaServer Faces Framework
- References
- About the Authors
Modifying Your Application for Compliance With JSR 168
First, revise your application so that it complies with JSR 168. Follow these steps:
Create a portlet.xml source file.
Your portlet\'s Web archive (WAR) file must include the contents of a portlet.xml file with the proper entries. For an example, see Appendix C. Be sure to set the first page of your portlet as the value for the tag of the portlet\'s init parameter com.sun.faces.portlet.INIT_VIEW.
Download the jsf-portlet.jar file, which is part of javaserverfaces_portlet.class, and place the file in the application directory.
jsf-portlet.jar is the portlet integration library that must reside with your application in the WEB-INF/lib subdirectory. That way, your application can run as a portlet.
Alternatively, you can append the location of jsf-portlet.jar to the container\'s class path. However, the portlet then depends on the deployment setting in the container and may not be entirely self-contained.
Appendix B describes the known bugs in jsf-portlet.jar.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Running JavaServer Faces Technology-Based Portlets on Sun Java System Portal Server 6 2005Q1
View Tutorial: Running JavaServer Faces Technology-Based Portlets on Sun Java System Portal Server 6 2005Q1
Related
Tutorials:
Rumble in the
jungle: J2EE versus .Net, Part
1
Rumble in the
jungle: J2EE versus .Net, Part
1 |
A first look at JavaServer Faces, Part I
A first look at JavaServer Faces, Part Learn how to implement Web-based user interfaces with JSF |
A first look at JavaServer Faces, Part
2
A first look at JavaServer Faces, Part
2 |
Develop Java
portlets
Develop Java
portlets |
Let the mobile
games begin, Part 2
Let the mobile
games begin, Part 2 |
Introducing the Portlet Specification, Part 1
Introducing the Get your feet wet with the specification's underlying terms and concepts |
Introducing the
Portlet Specification, Part 2
Introducing the
Portlet Specification, Part 2 |
SAAJ: No strings attached
SAAJ: No strings attached |
Introduction to JavaServer Faces
This article is meant to acquaint the reader with JavaServer Faces, commonly known as JSF. JSF technology simplifies building the user interface for web applications. It does this by providing a higher-level framework for working with your web app, repres |
Put JSF to work
Build a real-world Web application with JavaServer Faces, the Spring Framework, and Hibernate
Summary
Building a real-world Web application using JavaServer Faces is not a trivial task. This article shows you how to integrate JSF, the Spring Framewor |
Portlet Community
Portlet Community
If J2EE based portals, JSR 168 or WSRP mean anything to you, you have come to the right place. |
JavaServer Pages Technology - Documentation
Sun's tutorial for Java Server Pages that provide a good introduction to design web pages with JSP. |
JavaServer Faces Technology
JavaServer Faces technology is a server-side user interface component framework for Java technology-based Web applications. |
Integrating Struts, Tiles, and JavaServer Faces
Integrating Struts, Tiles, and JavaServer Faces. Bring the power, flexibility, and manageability of the three technologies together. |
Atricle Struts, JavaServer Faces, and Java Studio Creator:
The Evolution of Web Application Frameworks Sun Microsystems' Craig McClanahan, the creator of the Apache Struts Framework, co-specification lead for JavaServer Faces 1.0, and prime architect for Sun Java Studio Creator's new release, explains all three. |
Struts, JavaServer Faces, and Java Studio Creator:
The Evolution of Web Application Frameworks Sun Microsystems' Craig McClanahan, the creator of the Apache Struts Framework, co-specification lead for JavaServer Faces 1.0, and prime architect for Sun Java Studio Creator's new release, explains all three. |
Migrating From Microsoft Windows to the Sun Java Desktop System (pdf)
System administrators interested in migrating from a Microsoft Windows operating system to the Sun Java Desktop System can refer to this Sun technical white paper, which gives step-by-step migration procedures and a description of the interoperability be |
News: World Records Broken with Sun Studio 10 Software and the Solaris 10 OS
Sun submits new performance world record for Sun Studio 10 compilers and the Solaris 10 operating system. |
Running JavaServer Faces Technology-Based Portlets on Sun Java System Portal Server 6 2005Q1
You can extend the framework based on JavaServer Faces technology and then run a JSR 168-compliant portlet on Sun Java System Portal Server 6. This article describes the setup procedures, offers sample code, and summarizes the known issues. |
JavaServer Faces in Action, Chapter 8
Shows how to build a static Login page with JavaServer Faces and JSP technology by importing the proper tag libraries, and adding HtmlGraphicImage and HtmlOutputText components. |
|
|
|