0% found this document useful (0 votes)
88 views3 pages

JSF 1

JavaServer faces is technology for building web application user interfaces. It allows development of very rich componentand event-based pages. NetUI Page Flow treats JSF pages as first-class citizens.

Uploaded by

haiyaramala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views3 pages

JSF 1

JavaServer faces is technology for building web application user interfaces. It allows development of very rich componentand event-based pages. NetUI Page Flow treats JSF pages as first-class citizens.

Uploaded by

haiyaramala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Java Server Faces

Table of contents
1 Introduction........................................................................................................................2
2 Enabling Java Server Faces................................................................................................2
2.1 Integrate JSF Tags in Your Web App........................................................................... 2
2.2 Configure Your Web Application................................................................................. 2

Java, J2EE, and JCP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other
countries.
Java Server Faces

1. Introduction
JavaServer Faces is technology for building web application user interfaces. It allows
development of very rich component- and event-based pages. NetUI Page Flow treats JSF
pages as first-class citizens. In addition to allowing the use of "straight" JSF features, it
integrates in the following ways:
• When a JSF page is accessed directly or from a Page Flow action, an associated "backing
bean" class is looked up. If it exists, an instance is created and managed by the
framework. This bean can contain JSF component references, event handlers, etc., and it
can raise Page Flow actions, with or without form beans attached. Its lifetime is tied to
the lifetime of the JSF page.
• Components in JSF pages can also raise Page Flow actions directly, with or without form
beans attached, using the built-in action attribute.
• Pages can databind to NetUI objects using JSF-style expressions like
#{pageFlow.someProperty} or
#{pageInput.somePageInput.someProperty}.
• A page can databind to properties in its associated backing bean through a "backing"
context, e.g., #{backing.someProperty}.
• When returning to a JSF page through the navigateTo feature, the page's component tree
and its backing bean are restored.
The NetUI / JSF Sample demonstrates these features.

2. Enabling Java Server Faces


To enable Java Server Faces in a Beehive web application, complete the following steps:

2.1. Integrate JSF Tags in Your Web App


Integrate JSF into your webapp. You can use either MyFaces v1.0.9 or later, or the
JSF Reference Implementation v1.1_01.

2.2. Configure Your Web Application


Add the following snippet to your WEB-INF/faces-config.xml file:
<factory>
<application-factory>
org.apache.beehive.netui.pageflow.faces.PageFlowApplicationFactory
</application-factory>
</factory>
This goes underneath the <application> element and before the

Java, J2EE, and JCP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other
countries.
Java Server Faces

<navigation-rule> element(s).
Java, J2EE, and JCP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other
countries.
© 2004, Apache Software Foundation

Java, J2EE, and JCP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other
countries.

You might also like