J4Fry Facelets Combo Tag
|Project name||J4Fry Facelets Flow [Subproject of J4Fry JSFComponents]|
|Prerequisites||JDK >= 1.4, JSF >= 1.1|
|Started with revision||1.2_02|
|Responsible developer||Ganesh Jung
Flow Tag aims
The Facelets flow tag is placed on an arbitrary page and inhibits double submits by setting a currentTimeMillis into the session as well as into the page via a h:inputHidden that is checked against the session via a custom validator.
Refer to the general JSF Components installation for installation instructions.
Additionally this tag needs Facelets support. Please refer to the facelets documentation for help in installing facelets.
You must set an id attribute as well as an errorMessage attribute. The tag must be placed inside the form that must not be submitted twice. Place it at the beginning of the form to make the flow validator the first validator that is evaluated. If you use AJAX on your page either use partial submit to avoid submitting the flow tag or remember to rerender the flow tag. Here's an example:
<fry:flow id="flow" errorMessage="This page page can only be submitted once" />