UIX 2.2.16

oracle.cabo.servlet.expl
Class ControllerFunctions

java.lang.Object
  |
  +--oracle.cabo.servlet.expl.ControllerFunctions

public final class ControllerFunctions
extends java.lang.Object

The examples in this class assume that the 'ctrl' prefix is mapped to ServletConstants.BAJA_NAMESPACE


Method Summary
static java.lang.String destination(UIImplicitObject uix, java.lang.String name, java.lang.String event)
          Create a URL that navigates to the given page and triggers an event on it.
static java.lang.String eventUrl(UIImplicitObject uix, java.lang.String event)
          Convenience for triggering an event on the same page.
static java.lang.String pageUrl(UIImplicitObject uix, java.lang.String name)
          Create a URL to a given page.
static UINode parsePage(UIImplicitObject uix, java.lang.String name)
          Parses a page and produces the root UINode for the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

eventUrl

public static java.lang.String eventUrl(UIImplicitObject uix,
                                        java.lang.String event)
Convenience for triggering an event on the same page. Example:
 destination="${ctrl:eventUrl(uix, 'viewSource')}"
Parameters:
event - the event name to trigger

pageUrl

public static java.lang.String pageUrl(UIImplicitObject uix,
                                       java.lang.String name)
Create a URL to a given page. Example:
 destination="${ctrl:pageUrl(uix, 'home')}"
Parameters:
name - the page name to go to

parsePage

public static UINode parsePage(UIImplicitObject uix,
                               java.lang.String name)
Parses a page and produces the root UINode for the page. Example:
 <include node="${ctrl:parsePage(uix, 'home')} />"

destination

public static java.lang.String destination(UIImplicitObject uix,
                                           java.lang.String name,
                                           java.lang.String event)
Create a URL that navigates to the given page and triggers an event on it. Example:
 destination="${ctrl:destination(uix,
 'home','viewSource')}"
Parameters:
name - The UIX page name to go to.
event - The event name to trigger on the destination page.

UIX 2.2.16