My latest testing of Intake has led to the following assumption... o If you initialize (and display) a form using mapTo(formBean), then the user enters valid form data (isAllValid() == true), then you re-display the form, and call mapTo() again with different initilialization data, the user's input does not get replaced. In other words, once a user has entered data, updating that data seems impossible.
FWIW, I'm trying to do some auto-completion and data scrubbing on user data. Their input may be acceptable, but not normalized (to it's "proper" format). For instance, I want to allow a user to type "CA" into a field, and when the form redisplays (with search results appended to the bottom), "CA" is now "CALIFORNIA". My intent is to have the formBean setters scrub/normalize the data, use the formBean to interact with our data tier, then display the results using mapTo(formBean) which now contains normalized data. I've verified that the formBean contains normalized data in the context, but no matter what, the original user data is re-displayed. I suspect that the new (normalized) value can't override Field.testValue. Anyone have any thoughts on this one? -Mitch -- To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>
