You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Todd O'Bryan <to...@mac.com> on 2006/02/09 07:07:58 UTC

How fields get updated

Tapestry 3.0.3, still.

I'm losing some field values and I think it's because they get set  
very indirectly. I have a generic database object that has a number  
of items, each of which has a key, a numeric value, and a text value.  
I've subclassed the db object and written a getFoos() method which  
returns the text values all the items that have a specific key as a  
String[] indexed by the numeric value. That works fine.  
Unfortunately, when I set the values in a form, they don't make it  
back to the database object.

I have a corresponding setFoos(String[]), which should copy stuff  
back to the db object, but I'm not sure if that's the right idea.  
Would I be better off with a List of some sort? Anything immediately  
jump to mind or can anyone exactly explain how the update works  
during rewind, especially in a @base:For, so I can figure out where  
the process could be going wrong?

Other (singleton) properties of the db object are being set as they  
should, so I suspect it's the relative indirection that's fouling  
things up.

Thanks,
Todd

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org