Tag Name: <a2:if />

Description

If tag

Perform basic condition flow. 'If' tag could be used by itself or with 'Else If' Tag and/or single/multiple 'Else' Tag.

  <a:if test="%{false}"> <div>Will Not Be Executed</div> </a:if> <a:elseif test="%{true}"> <div>Will Be Executed</div> </a:elseif> <a:else> <div>Will Not Be Executed</div> </a:else>  

Attributes

Name

Required

Default

Type

Description

test true   Boolean Expression to determine if body of tag is to be displayed
id false   Object/String id for referencing element. For UI and form tags it will be used as HTML id attribute

Back to Taglib Index