Moderators: Sergey Smirnov, Charles Cowens
Sergey Smirnov wrote:This example works with JSF RI 1.0 Final Release.
got error
===
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
2. Run ant deploy
'hform[...] has a Null value or is not an object'hform[form+':'+target].value=form+':'+target;<f:view>
<h:dataTable (...)>
<h:column>
<h:form id="whereForm">
<h:commandButton id="find" action="showPlace" value="..." immediate="true" onmousedown="showPlaceList(this, 'placeList', 'find')" onclick="return false"/>
</h:form>
</h:column>
(...)
</h:dataTable>
<h:form id="placeList" target="list">
<h:inputHidden id="country" value="#{LibelleCodeRejetBean.codeRejet}">
</h:inputHidden>
<h:commandLink id="find" action="showPlace" value="">
<f:verbatim></f:verbatim>
</h:commandLink>
</h:form>
</f:view>
Return to JavaServer Faces Framework
Users browsing this forum: No registered users and 0 guests