Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-24 Thread Muhammad Gelbana
Just wondering if anyone had time to look this up. I can't decide if I did anything wrong. Thanks. On Tue, Nov 20, 2012 at 12:51 PM, Muhammad Gelbana wrote: > Ok so I ripped much of my original page's and kept the essentials only. > Thank you for your time. > > > On Tue, Nov 20, 2012 at 11:34 AM,

Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-20 Thread Ivan Khalopik
It doesn't matter how these controls are rendered by normal request or by zone update. They all will be rendered with fixed names and with errors connected to them. Just some rules to make this all work: - place FixedControlName mixin on form or zone. - define t:id attribute explicitly for all form

Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-19 Thread Muhammad Gelbana
I will recklessly assume I have fully comprehended your mixin. I couldn't get it to work thought since my zones are initially empty (filled later through ajax or a t:delegate if the page is refreshed) and your mixin operates on components being rendered. Also I have my fields in *t:block* elements

Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-19 Thread Ivan Khalopik
All this because of changed form controls names after ajax update (some hash added to the end). After form submission this controls saves their state for changed names (with hash) and then are rendered to client with normal names(without hash). As they searches for erros by name they can not find a

Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-19 Thread Muhammad Gelbana
By "changing" or "updating" the form fields I do *NOT* mean entering some values into them of course, but I mean reloading the fields using ajax, to load a whole another set of fields. On Mon, Nov 19, 2012 at 5:37 PM, Muhammad Gelbana wrote: > I use for each field. > > Here is some more enlighte

Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-19 Thread Muhammad Gelbana
I use for each field. Here is some more enlightening investigation results, based on the fact that the form's fields are changed using ajax, once the fields are updated, the fields errors are shown only after the first submission and the same happens every time the form field's are changed. So it

Re: [5.3.6] Validation errors are only shown on the second submit

2012-11-19 Thread Ivan Khalopik
Do you use component to show errors for whole form or just use separate components to show errors for particular field? On Mon, Nov 19, 2012 at 6:28 PM, Muhammad Gelbana wrote: > When I first load my page, some form's fields are changed through ajax and > then I submit the form (Without ajax) w