Class Index | File Index

Classes


Namespace jsf

The top level global namespace for JavaServer Faces functionality.
Defined in: jsf.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
jsf
The top level global namespace for JavaServer Faces functionality.
Method Summary
Method Attributes Method Name and Description
<static>  

Return the value of Application.getProjectStage() for the currently running application instance.

<static>  
jsf.getViewState(form)

Collect and encode state for input controls associated with the specified form element.

Namespace Detail
jsf
The top level global namespace for JavaServer Faces functionality.
Method Detail
<static> jsf.getProjectStage()

Return the value of Application.getProjectStage() for the currently running application instance. Calling this method must not cause any network transaction to happen to the server.

Usage:


var stage = jsf.getProjectStage();
if (stage === ProjectStage.Development) {
 ...
} else if stage === ProjectStage.Production) {
 ...
}
Returns:
String String representing the current state of the running application in a typical product development lifecycle. Refer to javax.faces.application.Application.getProjectStage and javax.faces.application.ProjectStage.

<static> jsf.getViewState(form)

Collect and encode state for input controls associated with the specified form element.

Usage:


var state = jsf.getViewState(form);
Parameters:
form
The form element whose contained input controls will be collected and encoded. Only successful controls will be collected and encoded in accordance with: Section 17.13.2 of the HTML Specification.
Returns:
String The encoded state for the specified form's input controls.

Documentation generated by JsDoc Toolkit 2.0.2 on Tue Dec 16 2008 16:58:17 GMT-0500 (EST)