miercuri, 3 februarie 2016

Enter in / exit from a JSF flow

ENTER IN A JSF FLOW
Beside the implicit navigation via flow ID, when you need to use a navigation case (<navigation-case/>) to enter in a flow, you will have to specify the <to-flow-document-id>document_ID</to-flow-document-id> statement nested in the <navigation-case/> tag. If there is no document ID, that uses <to-flow-document-id/>. Moreover a <h:button/> (or <h:link/>) can be used to enter in such a flow, as follows:

<h:button id="..." value="enter flow" outcome="flow">
 <f:attribute name="to-flow-document-id" value="unique"/>
</h:button>

If you choose to write a programmatic navigation case, then JSF 2.2 comes with a method named, getToFlowDocumentId(), which should be overridden for indicating the document ID.

EXIT FROM A JSF FLOW
There are at least three ways of getting out of a flow: using <flow-return/>,using <flow-call/> or by abandoning the flow.

Read further here.

Niciun comentariu:

Trimiteți un comentariu