Dashboard > WebWork > ... > Data Tags > property
  WebWork Log In View a printable version of the current page.  
  property
Added by tm_jee, last edited by Rainer Hermanns on Apr 13, 2007  (view change)
Labels: 
(None)

Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

Description

  • Used to get the property of a <i>value</i>, which will default to the top of
  • the stack if none is specified.

Parameters

Name

Required

Default

Type

Description

default false   String The default value to be used if value attribute is null
escape false true Boolean Whether to escape HTML
value false <top of stack> Object value to be displayed
id false   Object/String id for referencing element. For UI and form tags it will be used as HTML id attribute

Examples

<ww:push value="myBean">
    <!-- Example 1: -->
    <ww:property value="myBeanProperty" />

    <!-- Example 2: -->
    <ww:property value="myBeanProperty" default="a default value" />
</ww:push>
Example 1 prints the result of myBean's getMyBeanProperty() method.
Example 2 prints the result of myBean's getMyBeanProperty() method and if it is null, print 'a default value' instead.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators