General Attributes |
Attribute Name |
Mandatory/Optional |
Description |
field |
Mandatory |
Name of associated getter and setter on form bean |
type |
Optional |
Type of check box. HTML , IMAGE or CUSTOM |
imageOn |
Optional |
Image to display on the true state. |
imageOff |
Optional |
Image to display on the false state. |
displayOnly |
Optional |
Display only checkbox. Only valid for type IMAGE or CUSTOM. |
|
Events |
Event Name |
Description |
No Events |
|
Overview
This widget will create an HTML check box
|
|
In Browser

|
|
JSP Code
<Portlet:CheckBox field="fieldWithCachedModel" type="html"/>
|
|
|
How they work:
This widget creates an html checkbox on a screen.
|
Overview
This is a widget will display a check box on the screen that is not of
the default HTML type. It uses a default on and off image.
|
|
In Browser

|
|
JSP Code
<Portlet:CheckBox field="fieldWithCachedModel" type="image"/>
|
|
|
How they work:
This is a widget will display a check box on the screen that is not of
the default HTML type. It uses a default on and off image. Javascript
is used to hold the true and false values for posting
|
Overview
This is a widget will display a check box on the screen that is not of
the default HTML type. It uses a specified on and off image.
|
|
In Browser

|
|
JSP Code
<Portlet:CheckBox field="fieldWithCachedModel" type="custom"
displayOnly="true" imageOn="widgets/tests/testimage2_up.gif" imageOff="widgets/tests/testimage2_down.gif"/>
|
|
|
How they work:
This is a widget will display a check box on the screen that is not of
the default HTML type. It uses a specified on and off image. Javascript
is used to hold the true and false values for posting.
|