ng-objects

Dynamic elements

Documentation for the standard dynamic elements that come with the framework.


<wo:content />

ng.appserver.elements.NGComponentContent

Documentation forthcoming


<wo:if>

Container element
ng.appserver.elements.NGConditional

Wraps content in a template and decides to render it based on a condition. If the binding [condition] evaluates to $false, the contained content will not be rendered (and vice versa). If the 'negate' binding is set to $true, the condition will be flipped.

Bindings
  • condition
    The condition to evaluate
  • negate
    Can be set to $true to 'flip' the condition

<wo:form>

Container element
ng.appserver.elements.NGForm

An HTML form, specifically for use with component actions

Bindings
  • action
    The action to invoke when the form is submitted
  • method
    The form's method (POST or GET). Defaults to 'POST'

<wo:container>

Container element
ng.appserver.elements.NGGenericContainer

Documentation forthcoming


<wo:element />

ng.appserver.elements.NGGenericElement

Documentation forthcoming


<wo:link>

Container element
ng.appserver.elements.NGHyperlink

Documentation forthcoming


<wo:img />

ng.appserver.elements.NGImage

Displays an image. Bindings that are not part of the elements standard associations are passed on as attributes to the generated img tag.

Bindings
  • filename
    Path to a webserver resource
  • src
    Same as using an src attribute on a regular img tag
  • data
    byte array containing image data

<wo:script />

ng.appserver.elements.NGJavaScript

Documentation forthcoming


<wo:popUpButton />

ng.appserver.elements.NGPopUpButton

Documentation forthcoming


<wo:repetition>

Container element
ng.appserver.elements.NGRepetition

Iterates over items in [list], with [item] taking on the value of the object for each iteration. Or iterates [count] times. If [index] is bound, that variable will take on the current index.

Bindings
  • list
    A java.util.List of objects to iterate over
  • item
    Takes the value of the object currently being iterated over
  • index
    Takes the number of the current iteration. Zero based, i.e. the first iteration is zero.
  • count
    Can be used instead of [list] and [item] to just iterate [count] times

<wo:str />

ng.appserver.elements.NGString

Renders to a string in a template. If anything other than a string gets passed to [value] it, toString() will be invoked on it to render it.

Bindings
  • value
    The value to display. If not a string, toString() will be invoked on th object to render it
  • escapeHTML
    Indicates if you want to escape reserved HTML characters to entity values (&lt;, &gt;, single quote and double quote). Defaults to true
  • valueWhenEmpty
    The value to display if [value] is null or empty (zero length string)

<wo:stylesheet />

ng.appserver.elements.NGStylesheet

Documentation forthcoming


<wo:submit />

ng.appserver.elements.NGSubmitButton

Documentation forthcoming


<wo:switch />

ng.appserver.elements.NGSwitchComponent

Documentation forthcoming


<wo:textfield />

ng.appserver.elements.NGTextField

Documentation forthcoming