You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mindbridge <mi...@yahoo.com> on 2003/03/16 19:57:12 UTC

Re: Binding value

Hi Timofey,

Here is the problem:
<option jwcid="@Option"  ***selected="ognl:true"***  label="ognl:visit.generalObject.catalogEntry [0].catalog"/>

As Howard said, 'selected' is a read/write field, but the OGNL expression 'true' is read-only and hence the error. The exception would probably contain that information -- it is very helpful when locating what's wrong.

You can use the Component Reference (http://jakarta.apache.org/tapestry/doc/ComponentReference/index.html) when programming to determine what fields are read, write, or read/write.

Just adding my 2c.

Best regards,
-mb

  ----- Original Message ----- 
  From: Timofey Korolev 
  To: Tapestry users 
  Sent: Monday, July 14, 2003 6:08 PM
  Subject: Binding value


  Hello, Tapestry-people! ;-)

  I'm new to tapestry, but trying ti get use of it ;)
  I've made a very complex object with Array-fields that is stored as a field in a Visit.class. My template reads its fields and makes a very big form with fields.
  But when i'm trying to submit this form i got:
  Binding value may not be updated.

  here are the precise lines of template page:

  <select jwcid="@Select" multiple="ognl:false">
         <option jwcid="@Option" selected="ognl:true" label="ognl:visit.generalObject.catalogEntry [0].catalog"/>
      </select>

  What can be wrong?

  Thank you.

-- 
Regards,
CEO Linux-Online.Ru
Korolyov Timofey

www.linuxshop.ru :: www.prefnews.ru :: www.dotstyle.ru

JabberID: timoha@jabber.ru