Web application context for the IT Mill Toolkit applications.
3.1
Inheritance Path. java.lang.Object-> com.itmill.toolkit.terminal.web.WebApplicationContext
Parameters
listener
The listener to be added.
Add transaction listener to this context.
Parameters
application context for HttpSession.
Get application context for HttpSession.
Parameters
Collection containing all applications in this context
Get the applications in this context. Get all applications in this context. Each application context contains all applications that are open for one user.
Parameters
The application base directory
Returns application context base directory. Typically an application is deployed in a such way that is has application directory. For web applications this directory is the root directory of the web applications. In some cases application might not have application directory (for example web applications running inside of war).
Parameters
HttpSession this application context resides in
Get the http-session application is running in.
Parameters
window
Window for which the action is queried
Action to be set into Form action attribute
Get the form action for given window.
By default, this action is "", which preserves the current url. Commonly
this is wanted to be set to
application.getUrl().toString()
or
window.getUrl().toString()
in order to clean any local
links or parameters set from the action.
Parameters
listener
The listener to be removed.
Remove transaction listener from this context.
Parameters
window
Window for which the action is set
action
New action for the window.
Set the form action for given window.
By default, this action is "", which preserves the current url. Commonly
this is wanted to be set to
application.getUrl().toString()
or
window.getUrl().toString()
in order to clean any local
links or parameters set from the action.