Re: [T5] Form errors persisted in session?

2008-03-28 Thread Kristian Marinkovic
hi,

this came up several times on this list... and i think there was also
a JIRA entry

the answers are:
1) add a @Meta annotation to change the strategy of @Persist 
without attribute (Howard)

2) clear the errors manually (as pointed out by Angelo)

3) pass in a own ValidationTracker instance to the Form being 
persisted with @Persist("flash") (tracker parameter)

4) more general solution to 3) create your own Form component
by extending Tapestry Form 

for more details search the list (www.nabble.com,...)

g,
kris




"Renat Zubairov" <[EMAIL PROTECTED]> 
28.03.2008 09:11
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: [T5] Form errors persisted in session?







Hi

Thanks for the info, but generally IMHO it's a bug when error
validation status is stored in the session. How do you think?

Renat

On 27/03/2008, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>  how about:
>
>  @Component
>private Form regForm;
>  void cleanupRender() {
>   regForm.clearErrors();
>
>   }
>
>
>  Renat Zubairov wrote:
>  >
>  > Hi
>  >
>  > Where are the validation results of the BeanEdit persisted in T5?
>  > I disabled javascript then submited empty form, then enabled
>  > javascript and opened empty form without any sumbit, but errors are
>  > still there. Only when I dropped the cookie error
>  > messages went away.
>  >
>  > --
>  > Best regards,
>  > Renat Zubairov
>  >
>
> > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>  --
>
> View this message in context: 
http://www.nabble.com/-T5--Form-errors-persisted-in-session--tp16339068p16340460.html

>  Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best regards,
Renat Zubairov

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [T5] Form errors persisted in session?

2008-03-28 Thread Renat Zubairov
Hi

Thanks for the info, but generally IMHO it's a bug when error
validation status is stored in the session. How do you think?

Renat

On 27/03/2008, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>  how about:
>
>  @Component
>private Form regForm;
>  void cleanupRender() {
>   regForm.clearErrors();
>
>   }
>
>
>  Renat Zubairov wrote:
>  >
>  > Hi
>  >
>  > Where are the validation results of the BeanEdit persisted in T5?
>  > I disabled javascript then submited empty form, then enabled
>  > javascript and opened empty form without any sumbit, but errors are
>  > still there. Only when I dropped the cookie error
>  > messages went away.
>  >
>  > --
>  > Best regards,
>  > Renat Zubairov
>  >
>
> > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>  --
>
> View this message in context: 
> http://www.nabble.com/-T5--Form-errors-persisted-in-session--tp16339068p16340460.html
>  Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best regards,
Renat Zubairov

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Form errors persisted in session?

2008-03-27 Thread Angelo Chen

how about:

@Component
   private Form regForm;
void cleanupRender() {
  regForm.clearErrors();
  }


Renat Zubairov wrote:
> 
> Hi
> 
> Where are the validation results of the BeanEdit persisted in T5?
> I disabled javascript then submited empty form, then enabled
> javascript and opened empty form without any sumbit, but errors are
> still there. Only when I dropped the cookie error
> messages went away.
> 
> -- 
> Best regards,
> Renat Zubairov
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Form-errors-persisted-in-session--tp16339068p16340460.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Form errors persisted in session?

2008-03-27 Thread Josh Canfield
I believe they are persisted in the session by the form in it's
validation tracker.

I'm not 100% sure that this is the best approach, but I have used:

void cleanupRender() {
_myForm.clearErrors();
}

to make sure old errors don't stick around.

Josh

On Thu, Mar 27, 2008 at 1:22 PM, Renat Zubairov
<[EMAIL PROTECTED]> wrote:
> Hi
>
> Where are the validation results of the BeanEdit persisted in T5?
> I disabled javascript then submited empty form, then enabled
> javascript and opened empty form without any sumbit, but errors are
> still there. Only when I dropped the cookie error
> messages went away.
>
> --
> Best regards,
> Renat Zubairov
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Form errors persisted in session?

2008-03-27 Thread Renat Zubairov
Hi

Where are the validation results of the BeanEdit persisted in T5?
I disabled javascript then submited empty form, then enabled
javascript and opened empty form without any sumbit, but errors are
still there. Only when I dropped the cookie error
messages went away.

-- 
Best regards,
Renat Zubairov

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]