Package webwork.dispatcher
Class DynamicViewMapping
java.lang.Object
webwork.dispatcher.DynamicViewMapping
- All Implemented Interfaces:
ViewMapping
This view mapping allows for dynamic values to be used in the view specification. The dynamic expressions are
specified as: ${someWWExpression} The expression will be looked up on the value stack. When all dynamic expressions
have been looked up the DynamicViewMapping also checks if the view is an action, and wraps the view it in a
ViewActionWrapper in that case. If the view did not contain dynamic data then it is cached, otherwise it is not.
- Version:
- $Revision: 1.2 $
- Author:
- Dick Zetterberg (dick@transitor.se)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Mapprotected ViewMappingprotected static org.apache.commons.logging.Logprotected final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcheckDynamicView(String view) Check if the supplied string specifies a dynamic view.protected intgetMatchingBrace(String view, int dynStart) Get view corresponding to given action and view name
-
Field Details
-
log
protected static org.apache.commons.logging.Log log -
delegate
-
cache
-
actionSuffix
-
actionSuffixParam
-
NULL_VIEW
-
-
Constructor Details
-
DynamicViewMapping
-
-
Method Details
-
getView
Get view corresponding to given action and view name- Specified by:
getViewin interfaceViewMapping
-
checkDynamicView
Check if the supplied string specifies a dynamic view. In that case lookup the dynamic elements on the stack. If not, return null. The parameter view should not be null -
getMatchingBrace
-