I tried that, but the page property is updated to false, regardless of the checkbox selection.

Andy




Ulrich Stärk schrieb:
Bind the value property of your checkbox to a page property.

E.g. in your page class:

public abstract boolean isChecked();
public abstract void setChecked(boolean checked);

and in your template:

<input jwcid="[EMAIL PROTECTED]"
  displayName="literal:Hotels"
  value="ognl:checked"/>
<label jwcid="@FieldLabel"
  field="component:doHotelSearchCheckbox">Hotels</label>

Uli

Am Mo, 18.02.2008, 13:03, schrieb Andy Pahne:
Hello,

I have a problem with what I would consider a very basic use case:

There's a component:

     <input jwcid="[EMAIL PROTECTED]"
          displayName="literal:Hotels"
          value="ognl:reservationQuery.searchForHotels"/>
   <label jwcid="@FieldLabel"
field="component:doHotelSearchCheckbox">Hotels</label>


Unfortunatly reservationQuery.searchForHotels is updated to 'false' in
the rewind phase, no matter whether the checkbox was selected or not.

Is there something wrong with my component definition?

Thanks,
Andy



--
Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Andy Pahne
System Architektur & Software Design

net22 GmbH
Ehrenbergweg 24
32760 Detmold

http://www.net22.de

Email     [EMAIL PROTECTED]
Telefon   +49 (5231) 58 06 40
Mobil     +49 (174) 171 68 70

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to