Hi (again),

Another problem that I've encountered: ListView doesn't seem to play nicely
with StatelessForm. A stateless form is supposed to work and accept input no
matter if the page exists or not. Now the problem that I'm facing is when a
user logs into the system, views certain page with StatelessForm and
ListView inside it, then opens another tab, logs out, then logs in again,
returns to the first tab with the named StatelessForm and finally submits
it. The result is that the user's input is ignored, the form is constructed
anew and immediately after that its onSubmit() method is invoked. I've
debugged the code, and it seems that the reason for such behavior is that
ListView doesn't populate its children until the rendering phase, so the
input components that are located inside ListView don't get a chance to
update their values from the user's input. Calling form.beforeRender() from
the page's constructor works around the problem (though I'm not sure it
doesn't introduce other issues).

-Kirill

Reply via email to