|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DialogStateMapper
DialogStateMapper
is an interface describing a pluggable
mechanism to map between the state ID within a SCXML dialog definition
and the corresponding JavaServer Faces view identifier
that should be rendered when the dialog state machine comes to rest in
that state.
By default, an identity transform is applied i.e. the
JavaServer Faces view identifier
used is the same as
the dialog state identifier.
The default behavior can be changed by replacing the application
scoped bean at key Globals.STATE_MAPPER
. The replacement
must implement DialogStateMapper
.
Method Summary | |
---|---|
String |
mapStateId(String dialogName,
String stateId,
javax.faces.context.FacesContext context)
Return the JavaServer Faces view identifier that
corresponds to current dialog state. |
Method Detail |
---|
String mapStateId(String dialogName, String stateId, javax.faces.context.FacesContext context)
Return the JavaServer Faces view identifier
that
corresponds to current dialog state. The current FacesContext
instance is also available so developers can consult pertinent
information such as user role, current locale, user agent making
the request etc. to map the state identifier to the view
identifier, if needed.
dialogName
- The logical name of the dialog this state belongs tostateId
- The state identifier for the current dialog statecontext
- The current FacesContext
view identifier
that should
be rendered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |