I don't think there is a feature like that.
You could try a disabled/readOnly field that is not submitted with the form
instead of the hiddenfield.
Or you bind the hiddenfield's text to a property in your backing bean and
implement some custom logic in your getters and setters, which would
delegate to the object's getters and setters only in special cases.
Stevy
Q Beukes wrote:
>
> Hey,
>
> My second question is if I can have it reference the same value, but the
> change in one, doesn't change both.
>
> So basically, TextField references object.id by reference (meaning
> changing
> the text field changes the object value).
>
> And HiddenField references object.id by value (copies the value), so
> changing it doesn't change object.id, and changing textfield doesn't
> changed
> hidden field's value. Basically a way to store and post the "original"
> value.
>
--
View this message in context: http://www.nabble.com/Hidden-field-for-%22remembering%22-an-old-value.-tp18559843p18572156.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.