Using JavaServer Faces (JSF) Popup Window Example


This example shows how to use a client-side script to control a form field rendered by JSF, how to launch a popup window and return a result back to the main window, and how to use the standard JSF Navigation Framework for navigation in a multiple-windows interface environment. The example uses client state saving method. in case of using server state saving method the approach might be different.
Download: jsf-popup.zip (1.65Mb)

Download Instruction

1) Download zip archive and unzip it into any folder

Using with Eclipse


How to import it:

1. Copy jsf-popup folder under Eclipse workspace
2. Run Eclipse
3. Select File->Import->Existing Project into Workspace
4. Select jsf-popup for "Project contents" and click Finish
5. Select the jsf-popup project and build it (optional step if you set automatic rebuild on modification in Eclipse Preferences)


How to deploy it:

The jsf-popup project contains a folder 'ant' with a build.xml script in it.
1. In this script, set the deploy.dir property value to the folder name you want to deploy the WAR file in.
2. Run Ant on the build.xml script using the deploy target to deploy.


Using without Eclipse

1. Go to jsf-popup/ant folder
2. In build.xml script, set the deploy.dir property value to the folder name you want to deploy the WAR file in
3. Run ant deploy

See Also:


Using JSF Navigation Handler Decorator
This short example shows how to use the Javaserver Faces Navigation Handler
decorator to extend the standard navigation mechanism used in the JSF.

JSF Tutorials Net
The catalog contains useful links to tutorials, examples and presentation materials.