Cookie Notice

public class

DynamicViewMapping

extends Object
implements ViewMapping
java.lang.Object
   ↳ webwork.dispatcher.DynamicViewMapping

Class Overview

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.

See Also

Summary

Fields
protected final Object NULL_VIEW
protected String actionSuffix
protected String actionSuffixParam
protected Map cache
protected ViewMapping delegate
protected static Log log
Public Constructors
DynamicViewMapping(ViewMapping aDelegate)
Public Methods
Object getView(String anActionName, String aViewName)
Get view corresponding to given action and view name
Protected Methods
String checkDynamicView(String view)
Check if the supplied string specifies a dynamic view.
int getMatchingBrace(String view, int dynStart)
[Expand]
Inherited Methods
From class java.lang.Object
From interface webwork.dispatcher.ViewMapping

Fields

protected final Object NULL_VIEW

protected String actionSuffix

protected String actionSuffixParam

protected Map cache

protected ViewMapping delegate

protected static Log log

Public Constructors

public DynamicViewMapping (ViewMapping aDelegate)

Public Methods

public Object getView (String anActionName, String aViewName)

Get view corresponding to given action and view name

Protected Methods

protected String checkDynamicView (String view)

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

protected int getMatchingBrace (String view, int dynStart)

Feedback?
View cookie preferences