If you write

<option jwcid="@Option" label="message:male" selected="false" />

ognl correctly resolve "false" as the literal "false" value in java.

You have to write something like:

<option jwcid="@Option" label="message:male" selected="selected" />

and then implemente the "selected" property in your page/component, e.g.:

public abstract boolean getSelected();
public abstract void setSelected(boolean selected);


On 10/4/07, Joshua Jackson <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> Today I got an error regarding binding in Tapestry 4.1.3 as such:
> Binding with value false (StaticBinding[false]) may not be updated.
> 36 <select jwcid="[EMAIL PROTECTED]">
> 37 <option jwcid="@Option" label="message:male" selected="false" />
> 38 <option jwcid="@Option" label="message:female" selected="false" />
> 39 </select>
>
> The problem is on line 37.
>
> How do I create an unstatic binding for property selected? Why can't I
> hardcode this?
>
> Thanks in advance.
>
> --
> It's not just about coding, it's a matter of fulfilling your core being
>
> YM!: thejavafreak
> Blog: http://joshuajava.wordpress.com/
>
> ---------------------------------------------------------------------
> 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]

Reply via email to