The ch.dunes.web.webview.WebviewPage class provides methods that you call in OGNL expressions in Web view component template HTML files.

The WebviewPage class extends the Tapestry class org.apache.tapestry.html.BasePage.

The WebviewPage class defines the following methods:

Table 1. Methods of the WebviewPage class

Method

Returns

Description

addQueryParameter(
boolean condition, 
java.lang.String url, 
java.lang.String parameterName, 
java.lang.Object parameterValue)

java.lang.String

Adds a parameter to a server query if a given condition is met.

addQueryParameter(
java.lang.String url, 
java.lang.String parameterName, 
java.lang.Object parameterValue)

java.lang.String

Adds a parameter to a server query.

executeAction(java.lang.String actionAttributeName)

java.lang.Object

Runs an action in the server and returns the result.

executeAction(
java.lang.String 
actionAttributeName, 
java.lang.Object actionParameters)

java.lang.Object

Runs an action in the server and returns the result.

getAbsoluteUrl(java.lang.String relativeUrl)

java.lang.String

Returns the absolute URL from a relative URL.

getAttribute(java.lang.String attributeName)

java.lang.Object

Returns the Web view attribute of the specified name. Use this method instead of getAttributes().get(String) because it returns an exception if it does not find the attribute.

getAttribute(
java.lang.String attributeName, 
java.lang.Object defaultValue)

java.lang.Object

Returns the Web view attribute of the specified name.

getAttributes()

java.util.HashMap

Returns a hash map containing the Web view attributes.

getBaseURL()

java.lang.String

Returns the URL of the Web view.

getBrowser()

ch.dunes.web.Browser

Returns a Browser object that contains information about the browser in which the user accesses the Web view.

getDojoPath()

org.apache.tapestry.IAsset

Returns the path to any Dojo widgets in the Web view as a Tapestry IAsset object.

getDojoSource()

org.apache.tapestry.IAsset

Returns the source of any Dojo widgets in the Web view as a Tapestry IAsset object.

getPageUrl()

java.lang.String

Returns the URL of the current page without the URL parameters.

getPageUrlWithQuerryString()

java.lang.String

Returns the URL of the current page with the URL parameters.

getParameter(java.lang.String parameterName)

java.lang.Object

Returns a query parameter value, or null if no query parameter is provided in the request. If multiple values are provided, it returns the first value.

getParameters(java.lang.String parameterName)

java.lang.Object[]

Retrieves an array of values for a query parameter.

getRequest()

Abstract HttpServletRequest

Returns HTTP servlet requests.

The WebviewPage class inherits the following methods from class java.lang.Object:

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString,wait, wait, wait

Fields

  • public static java.lang.String DEFAULT_FLASH_TYPE

  • public static java.lang.String LOGIN_MESSAGE_ATTRIBUTE

  • public static java.lang.String DEFAULT_LOGIN_MESSAGE

Constructor

WebviewPage()