Namespace jsf
The top level global namespace for JavaServer Faces functionality.
Defined in: jsf.js.
Constructor Attributes | Constructor Name and Description |
---|---|
The top level global namespace for JavaServer Faces functionality.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
jsf.implversion
An integer specifying the implementation version that this file implements. |
<static> |
jsf.specversion
An integer specifying the specification version that this file implements. |
Method Attributes | Method Name and Description |
---|---|
<static> |
jsf.getProjectStage()
Return the value of |
<static> |
jsf.getViewState(form)
Collect and encode state for input controls associated
with the specified |
An integer specifying the implementation version that this file implements.
It's a monotonically increasing number, reset with every increment of
jsf.specversion
This number is implementation dependent.
An integer specifying the specification version that this file implements. It's format is: rightmost two digits, bug release number, next two digits, minor release number, leftmost digits, major release number. This number may only be incremented by a new release of the specification.
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 tojavax.faces.application.Application.getProjectStage
andjavax.faces.application.ProjectStage
.
Collect and encode state for input controls associated
with the specified form
element. This will include
all input controls of type hidden
.
Usage:
var state = jsf.getViewState(form);
- Parameters:
- form
- The
form
element whose containedinput
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.