title

FreeMarker widgets for showing information

@show.page

Shows the html header and body. This includes all necessary CSS (lookAndFeel) and Javascript files, the document type, and so on. Any content you nest in this tag will be added to the body.

Parameters of @show.page:

pageTitle (optional, default empty)
the page's main title. title (optional, default empty)
additional title. Separated from main title with '-'. defaultTitle (optional, default empty)
only used in MUM, CMS (admin): overwrites the title in the <h1> headline of the macro
@show.header (MUM). The value is passed to the parameter 'defaultTitle' of @show.header.
lookAndFeel (optional, default 'mum')
defines the look and feel (=laf) of the page. Default value is 'mum'. direction (optional, default empty)
declares the direction that the text should run: left-right or right-left. zoneStyle (optional, default empty)
adds a CSS style to the body. compatibility (optional, default empty)
compatibility meta tag for IE. onLoad (optional, default empty)
a JavaScript to execute when the body finishes loading.

 

@show.string

Shows a fieldset displaying a label and a property of an object. The object is usually described in the model and persisted in the database. Examples: User.name or Article.title. The property is shown as string. If parameter 'value' is empty any content you nest in this tag will be shown instead of the value.

Parameters of @show.string:

label (optional, default empty)
the label for the property. idLabel (optional, default empty)
The id for the label.. value (optional, default empty)
the value of the property, shown as <span>. idValue (optional, default empty)
The id for the value. title (optional, default empty)
the title which is used in label and value tag. cssClass (optional, default 'label')
a CSS class used for the fieldset. Default class: 'label'.

 

@show.text

Shows a fieldset displaying a label and a property of an object. Works similar like @string, but uses a <div> instead of a <span> for the property value.

Parameters of @show.text:

label (optional, default empty)
the label for the property. idLabel (optional, default empty)
The id for the label. value (optional, default empty)
the value of the property, shown as <div>. idValue (optional, default empty)
The id for the value. title (optional, default empty)
the title which is used in label and value tag. cssClass (optional, default 'label')
a CSS class used for the fieldset. Default class: 'label'.

 

@show.link

Shows an html <a> tag, safe against html hacking which is helpful in case the link information comes directly from the database. If paramater 'label' is empty any content you nest in this tag will be shown instead of the label.

Parameters of @show.link:

target (required)
url of the link target. label (optional, default empty)
link text to show (inside the <a> element). value (optional, default empty)
the value of the property, shown as <div>. title (optional, default parameter 'label' if exists or empty)
the link title (shown by most browsers as a tooltip). targetFrame (optional, default '_top')
defines which window will open by the link. onClick (optional, default empty)
a JavaScript to execute when the link is clicked. toolTip (optional, default empty)
a tooltip framed by a <span> element, shown after the label. cssClass (optional, default empty)
a CSS class used for the <a> element.

 

@show.tree

This highly specialized macro displays a draggabble tree starting from a root node. It also generates JavaScript controls for drag-and-drop operations associated with an update action. When a node A is dropped on node B, the tree calls an action to update the system, passing A's id as the source id and B's id as the target id.

The root element should be an object with a references to children which are displayed as the first-level elements of the tree. The tree searches for each element for its children property effectively displaying a tree of objects.

Parameters of @show.tree:

elements (required)
the children of the root element. Expects a collection of objects. updateAction (required)
url of the action that will be called to update the tree (drag/drop). srcParam (required)
name of the action paramater to pass the source node's id when a drop occurs. destParam (required)
name of the action parameter to send the target node's id when a drop occurs. rootId (optional, 'root.id')
the id of the root object. rootName (optional, default 'root.name')
the name of the root object to display as the label for the root node rootIcon (optional, default empty)
an icon to display for the root node. showRoot (optional, default 'true')
if set to 'false' the root node will be hidden and the tree starts with the children. editable (optional, default empty)
if true, allows to drag and drop the nodes. sortable (optional, default 'true')
if true, the order of the children of a node can be changed. highlight (optional, default empty)
an object that must be highlighted when encountered in the tree (usually used
for "the current value" kind of trees)

Nested content of @show.tree: Nested content is usually the @show.node macro.

Example for @show.tree:

<@show.tree 
    elements=childrenOfRoot
updateAction="${base}/admin/article/category/set-parent.action"
    srcParam="child.id"
    destParam="parent.id"
    rootId=0
    rootName=action.getText("label.ArticleCategory.tree.root")
    rootIcon="${base}/mum-static/images/tree/branch_active.gif"
    editable=editable?string
    sortable=true
  ; node, parentId>
   <@show.node id=node.id label=name ... >
       ...
   </@show.node>
</@show.tree>

Screenshot (example) for @show.tree:

tree_example.png

 

@show.node

Is used in combination with the macro @show.tree. It displays a draggable tree node.

Parameters of @show.node:

id (required)
The ID of the object to be displayed as a node. label (required)
the text to be displayed as the label of the node. editable (required)
if true, the node can de dragged. Should be passed from the macro @show.tree. draggable (optional, default 'true')
name of the action paramater to pass the source node's id when a drop occurs. droppable (optional, default 'true')
name of the action parameter to send the target node's id when a drop occurs. onClick (optional, default empty)
some JavaScript to execute when the node is clicked. icon (optional, default empty)
url of an image to use as node icon. tooltip (optional, default empty)
text to use as node tooltip ( title attribute). cssClass (optional, default empty)
a CSS class used for the <span> element which frames the label of the node. parentId (optional, default '-1')
the parentId should be passed from the macro @show.tree. requestedLocale (optional, default 'locale')
optional. If empty, it takes the locale of the basic action.

Nested content of @show.node: Whatever you nest inside the node will be considered additional content to be displayed when the user hovers the mouse over the node.

Example for @show.node:

<@show.node
    id=node.id
    label=node.name
    icon="${base}/pics/tree/leaf.gif"
    tooltip="drag node to move it">
  <@show.link obj=node idParam="groupId" label="Manage group" />
</@show.node>

 

@show.tabbedPane

This macro displays a tabbed pane with Ajax-filled tabs. The pane itself is filled with another FreeMarker template from the Ajax call. The look and feel of the tabbed pane is highly customizable. Frequently used in the administration area of MUM and CMS. See also @show.tab below.

Parameters of @show.tabbedPane:

name (required)
each tabbed pane on a page must have a unique name. active (optional, default empty)
if provided, the tab will automatically open with the given name. isBox (optional, default 'true')
displays a back box around the pane with a border. showHeader (optional, default 'true')
adds a header to the back box. showFooter (optional, default 'true')
adds a footer with round corners to the back box. headerRounded (optional, default 'false')
sets the header of the back box to round corners. cssClass (optional, default empty)
a CSS class used for the tabbedPane itself or the back box (if isBox==true).

 

@show.tab

Adds a tab to a tabbed pane (see @show.tabbedPane above). By default, tabs use an Ajax call to fetch content from the server and display it inside the tabbed pane using a FreeMarker template. If the content is fetched with Ajax, any forms it contains will be modified to submit their content using Ajax too.

Parameters of @show.tab:

name (optional, default empty)
name of the tab, must be unique within the pane. url (optional, default empty)
the url the tab-content is loaded using ajax.. title (optional, default empty)
a title for the tab link. newPage (optional, default 'false')
if true, the tab link will open in a new page. linkClass (optional, default empty)
an extra CSS class for the tab link. iconClass (optional, default empty)
an extra CSS class for the tab icon.
separator (optional, default '|')
an extra span with the given text will be shown (deprecated). processForm (optional, default 'true')
if true, process the forms in the HTML result to use an ajax hook from the tabbed pane.

Example for @show.tabbedPane and @show.tab:

<@show.tabbedPane name="userOps" cssClass="view" isBox=false active="user.edit">
   <#if modifyUser>
      <@show.tab name="user.edit" iconClass="editTab"
         url="${base}/admin/user/edit.action?user.id=${user.id?c}"
         showDivision=false />
   </#if>
   <#if createUser>
      <@show.tab name="user.create" iconClass="createUser"
         url="${base}/admin/user/create.action"
         showDivision=false />
   </#if>
   <#if changePassUser>
      <@show.tab name="user.change-password" iconClass="manageAuthorization"
         url="${base}/admin/user/edit-password.action?user.id=${user.id?c}"
         showDivision=false />
   </#if>
   <#if selectUserGroup>
      <@show.tab name="user.select-groups" iconClass="manageGroup"
         url="${base}/admin/user/select-group.action?user.id=${user.id?c}"
         showDivision=false />
   </#if>
</@show.tabbedPane>

Screenshot (example) for @show.tabbedPane and @show.tab:

tabbedPane.png

 

@show.tabContainer

This macro displays a container with tabs. Works similar to @show.tabbedPane but doesn't use Ajax calls for the container. The container itself is filled with the nested content of the @show.tabItem macro (see below). Usually filled with an unordered list <ul>. The container can be combined with Ajax using the callback parameters.

Parameters of @show.tabContainer:

id (required)
id for the container. beforeChangeCallback (optional, default empty)
JavaScript callback function called before activating a tab. afterChangeCallback (optional, default empty)
Javascript callback function called after activating a tab. activeCssClass (optional, default 'active')
a CSS class used for the active tab. cssClass (optional, default empty)
a CSS class used for the container and the tab list (<ul> element).

 

@show.tabItem

Adds a tab to a tab container (see @show.tabContainer above). The tab can be combined with Ajax using the onClick parameter.

Parameters of @show.tabItem:

id (required)
id for the container. label (required)
a text shown as a label for the tab. onClick (optional, default empty)
a JavaScript to execute when the tab is clicked. showTab (optional, default 'false')
if true, the tab is activated and the nested content is shown as tab item. fixed (optional, default 'false')
if true the value 'fixed' is added to the cssClass parameter. cssClass (optional, default empty)
a CSS class used for the tab itself (<li> element).

Example for @show.tabContainer and @show.tabItem:

<@show.tabContainer id="permissionsTab" activeCssClass="active" >
   <@show.tabItem id="optionGroupPermission"
      label=action.getText("label.groupPermission.title")
      showTab=true cssClass="active">
         <ul class="list" id="availableGroupPermission">
            <#list groupPermissions?keys as key>
               <#if key_index % 2 == 0>
                  <#assign cssClass = "even" />
               <#else>
                  <#assign cssClass = "" />
               </#if>
               <li class="${cssClass}" ... </li>
            </#list>
         </ul>
   </@show.tabItem>
   <@show.tabItem id="optionSinglePermission"
      label=action.getText("label.simplePermission.title")>
         <ul class="list" id="availableSimplePermission">
            <#list simplePermissions?keys as key>
               <#if key_index % 2 == 0>
                  <#assign cssClass = "even ${cssClass}" />
               <#else>
                  <#assign cssClass= "" />
               </#if>
               <li class="${cssClass}" ... </li>
            </#list>
         </ul>
   </@show.tabItem>
</@show.tabContainer>

Screenshot (example) for @show.tabContainer and @show.tabItem:

tabbedContainer.png


term paper writing service . att uverse coupon codes . this is the one