Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Accessing data with JSF portlets

Visual development tools make Website creation easy

Masato Noguchi (mnoguchi@us.ibm.com), Software Engineer, IBM
Masato Noguchi is an advisory software engineer for IBM Rational -- WebSphere Portal Tools.
Takeshi Watanabe (nabet@us.ibm.com), Product Manager, IBM
Takeshi Watanabe is a product manager for Rational Desktop products at IBM Rational.

Summary:  In this tutorial, you'll learn how to create portlets using the new visual development functions in WebSphere Studio Application Developer V5.1.2 and Portal Toolkit V5.0.2.2. In particular, you'll use: JavaServer Faces, WebSphere Data Object, and Click-to-Action. We'll apply these features to create a sample auction database portal. The programming models and runtime frameworks, along with new easy-to-use tools, make it easier to build applications running on WebSphere Portal. Some of this technology is so new that it is for prototyping purposes only. However, learning about it now will help you prepare so you can implement it when it is available.

Date:  25 Jul 2004
Level:  Intermediate PDF:  A4 and Letter (940 KB | 53 pages)Get Adobe® Reader®

Activity:  5473 views
Comments:  

Before you start

About this tutorial

In this tutorial, you'll learn how to create portlets using the new visual development functions in WebSphere Studio Application Developer V5.1.2 and Portal Toolkit V5.0.2.2. In particular, we'll look at the following features:

  • JavaServer™ Faces, for portlet user interfaces
  • WebSphere Data Object, for accessing a database
  • Click-to-Action, for communication between portlets

JavaServer Faces (JSF) is a new standard (JSR 127) that can help you build Web application user interfaces (for more on JSF technology, see Resources). WebSphere Studio V5.1.2 now supports the final release of the JSF 1.0 specification, and Portal Toolkit V5.0.2.2 enables the creation of JSF application as portlets running on WebSphere Portal.

WebSphere Data Object (WDO) makes it easier to access data objects, such as database tables, from Web applications. WDO is not supported in WebSphere Portal V5.0, but WebSphere Studio V5.1.2 allows you to use WDO with portlets for prototyping purposes only, so you can evaluate how WDO works in harmony with JSF to build portlets quickly. WDO will be replaced by a new standard, called Service Data Objects (SDO, JSR 235), in a future release of the WebSphere platform. However, learning about WDO now will help you prepare to implement SDO when it is available.

WebSphere Studio V5.1.2 and Portal Toolkit V5.0.2.2 also enable portlet communication using the WebSphere Portal Click-to-Action feature.

The programming models and runtime frameworks discussed here, along with new easy-to-use tools based on them, can improve the productivity of developers building applications running on WebSphere Portal. You may apply the methodology outlined in this tutorial to your custom portlet development projects.


Prerequisites

To create portlets in this tutorial, you'll need the following software installed on your computer:

  • WebSphere Studio Application Developer V5.1.2
    • Portal Toolkit V5.0.2.2
    • WebSphere Portal V5.0.2.1 (installed as the Portal Test Environment by the Portal Toolkit installation program)

    Portal Toolkit V5.0.2.2 and WebSphere Portal V5.0.2.1 are packaged in WebSphere Studio 5.1.2.

  • Download DB2 UDB V8.2

Who should take this tutorial?

This tutorial is for anyone who builds custom-made portlet applications and wants to leverage new programming models and tools to build them quickly.

To get the most out of this tutorial, you should have basic knowledge of:

  • Portlet applications running on WebSphere Portal
  • Database applications, particularly J2EE™ applications that access DB2
  • WebSphere Studio Application Developer and Portal Toolkit

This tutorial does not require advanced Java programming skills.

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=142855
TutorialTitle=Accessing data with JSF portlets
publish-date=07252004
author1-email=mnoguchi@us.ibm.com
author1-email-cc=
author2-email=nabet@us.ibm.com
author2-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.