This page last changed on Dec 14, 2004 by casey.

<ww:combobox />

The combo box is basically an HTML INPUT of type text and HTML SELECT grouped together to give you a combo box functionality. You can place text in the INPUT control by using the SELECT control or type it in directly in the text field.

In this example, the SELECT will be populated from id=year attribute. Counter is itself an Iterator. It will span from first to last.

<ww:bean name="'webwork.util.Counter'" id="year">
  <ww:param name="'first'" value="text('firstBirthYear')"/>
  <ww:param name="'last'" value="2000"/>

  <ww:combobox label="'Birth year'" size="6" maxlength="4" name="'birthYear'" list="#year"/>
</ww:bean>

Attributes
Name Required Description
id no HTML id attribute
name yes HTML name attribute
value no Data to pass as field value
list no Iteratable source to populate from
size no HTML size attribute
maxlength no HTML maxlength attribute
disabled no HTML disabled attribute
tabindex no HTML tabindex attribute
onkeyup no HTML onkeyup attribute
onchange no HTML onchange attribute
onclick no HTML onclick attribute
cssClass no HTML class attribute
cssStyle no HTML style attribute
label no Text used as label in template
labelposition no Alignment of label (left,right,center)
theme no Theme to use
template no Name of template to use

Document generated by Confluence on Dec 14, 2004 16:36