Child pages
  • WOCheckBox

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

A WOCheckBox object displays itself in the HTML page as its namesake, a check box user interface control. It corresponds to the HTML element <INPUT TYPE="CHECKBOX"...>.

If you want to create a list of check boxes, use the WXCheckBoxList dynamic element in the WebObjects examples.

Usage

Code Block

WOCheckBox {
  value=defaultValue; 
  [selection=selectedValue;] 
  [name=fieldName;] 
  [disabled=aBoolean;] ... 
}

WOCheckBox {
  checked=aBoolean; 
  [name=fieldName;] 
  [disabled=aBoolean;] ... 
}

...

Java methods

WOD-style

Code Block
 

Inline bindings (WOOGNL)

Code Block
<wo:checkbox name="MyCheck" checked = "~true" />

Related documents