Re: Form server side validation in zone

2012-11-20 Thread Lance Java
> ValidationTrackerImpl is final, so I cannot extend this class. But I found ValidationTrackerWrapper class, maybe I should extend this? Sounds good to me > Do I set it as a persisted property? It depends on which tapestry version you are using. Later versions of tapestry will NOT need flash persi

Re: Form server side validation in zone

2012-11-20 Thread nquirynen
ValidationTrackerImpl is final, so I cannot extend this class. But I found ValidationTrackerWrapper class, maybe I should extend this? I'm trying something like this: public class ValidationFieldTracker extends ValidationTrackerWrapper { private List fields; public Valid

Re: Form server side validation in zone

2012-11-20 Thread Lance Java
Actually, it's even easier... you don't need to worry about the environmental. 1. Extend ValidationTrackerImpl and override the recordError() methods to save the error fields 2. Pass your tracker to the form 3. Profit -- View this message in context: http://tapestry.1045711.n5.nabble.com/

Re: Form server side validation in zone

2012-11-20 Thread nquirynen
Hmm I'm not sure I understand what you mean with, or how to achieve something like that: Lance Java wrote > ValidationTracker is an environmental so you could wrap the existing > ValidationTracker and push() the wrapper onto the environment and keep > track of the fields this way. Can you give m

Re: Form server side validation in zone

2012-11-15 Thread Lance Java
ValidationTracker is an environmental so you could wrap the existing ValidationTracker and push() the wrapper onto the environment and keep track of the fields this way. I wonder if you could have a hidden zone in the UI which gets updated when the form is submitted. You then run some javascript o

Re: Form server side validation in zone

2012-11-15 Thread Thiago H de Paula Figueiredo
On Thu, 15 Nov 2012 09:55:15 -0200, nquirynen wrote: - More client side validation feeling - avoid unnecessary rerendering, database queries, etc. - some elements in the zone that were visually altered with javascript get reset to their initial state - ... In this case, you're going beyo

Re: Form server side validation in zone

2012-11-15 Thread nquirynen
- More client side validation feeling - avoid unnecessary rerendering, database queries, etc. - some elements in the zone that were visually altered with javascript get reset to their initial state - ... It's not a big problem, but it would surely be better if I could avoid these problems. But you

Re: Form server side validation in zone

2012-11-15 Thread Lance Java
Although I'm sure it can be done... it sounds like a lot of effort for not much gain. Why don't you want update the full zone? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-server-side-validation-in-zone-tp5718026p5718027.html Sent from the Tapestry - User mailing