| org.apache.tapestry.internal.services.LinkFactory
All known Subclasses: org.apache.tapestry.internal.services.LinkFactoryImpl,
Method Summary | |
void | addListener(LinkFactoryListener listener) Adds a listener, to be notified any time an action or render link is created; this allows the
listener to modify the link (by adding additional query parameters to the link). | Link | createActionLink(ComponentPageElement component, String action, boolean forForm, Object... context) Creates a stateful action link. | Link | createPageLink(Page page, boolean override, Object... activationContext) Creates a render link for the page. | Link | createPageLink(String page, boolean override, Object... context) As with
LinkFactory.createPageLink(Page,boolean,Object[]) , but the page is specified by
logical name, rather than as an instance. |
addListener | void addListener(LinkFactoryListener listener)(Code) | | Adds a listener, to be notified any time an action or render link is created; this allows the
listener to modify the link (by adding additional query parameters to the link).
Parameters: listener - |
createActionLink | Link createActionLink(ComponentPageElement component, String action, boolean forForm, Object... context)(Code) | | Creates a stateful action link. Action links are built for components. Action links are
encoded by the current request (that is, bound to the current request's session, if any).
Parameters: component - the component for which an action link is to be generated Parameters: action - a name associated with the action Parameters: forForm - true if the link is for a form, false otherwise Parameters: context - Additional path data, each value will be converted to a string and appended to theURI a link |
createPageLink | Link createPageLink(Page page, boolean override, Object... activationContext)(Code) | | Creates a render link for the page. If an activation context is supplied then that context is
built into the URI. If no activation context is supplied, then the activation context is
obtained from the page itself, by triggering a passivate event on its root component.
When the activationContext is an empty array, the targetted page is checked to see if it can
provide an activation context. This is accomplished by triggering a "passivate" event on the
targetted page. If the override parameter is true, this will not occur (even when the
activation context is empty).
Parameters: page - the page to which a link should be created Parameters: override - if true, then the provided activation context is always used even if empty Parameters: activationContext - the activation context for the page |
createPageLink | Link createPageLink(String page, boolean override, Object... context)(Code) | | As with
LinkFactory.createPageLink(Page,boolean,Object[]) , but the page is specified by
logical name, rather than as an instance.
Parameters: page - the logical name of the page to generate a link to Parameters: override - if true, then the provided activation context is always used even if empty Parameters: context - activation context for the page |
|
|