Hi,
On Thu, Jun 22, 2017 at 6:41 PM, Lon Varscsak
wrote:
> It’s really not that complex. The form has invalid input, something
> happens and the model object changes the state of said input, the form does
> not reflect the new model changes. I was just hoping for something
> automatic.
>
Ther
It’s really not that complex. The form has invalid input, something
happens and the model object changes the state of said input, the form does
not reflect the new model changes. I was just hoping for something
automatic.
-Lon
On Wed, Jun 21, 2017 at 9:53 PM, Sven Meier wrote:
> Hi Lon,
>
> w
Hi Lon,
whatever you are trying to do, it's sounds too complicated.
FormComponents keep invalid input. That's an essential feature. Clear the input
when you no longer want it.
You can use your own implementation that clears invisible components too.
I fail to see what that has to do with models
Digging in a little deeper, I learned that if my data comes from the forms
model (which is not how I’m currently doing things), and then create a new
model, everything works as I’d expect.
So in my case, I have a bunch of FormComponents that use a PropertyModel to
do their work. Rather than visit
Yeah, I had convinced myself on the way home that it was a feature
too…until I thought about the model data having changed.
So I looked into the form.clearInput() (thanks for that tip) and the model
object is in a particular state that has field is hidden at the time I do
the clear. So it’s that
Hi,
if you reuse a component after a submit with validation errors, you'll
have to reset all form components.
Otherwise the form components will render their previous invalid input -
this is an intended feature, to give the user the ability to edit his
previous input.
Calling clearInput() o
I have a scenario where I have a form and the user puts in a bad value in
FieldA, and then also puts in proper values in FieldB and FieldC. FieldB
and FieldC never receive their values (in the model object), I’m assuming
because the form processing stops at the error for FieldA. The user
dismisse