Re: Displaying error messages if form data not valid

2007-11-15 Thread jim
For completeness..here is a link to this design pattern: http://en.wikipedia.org/wiki/Post/Redirect/Get jim On Nov 2, 2:28 pm, RajeshD <[EMAIL PROTECTED]> wrote: > On Nov 2, 12:08 pm,jim<[EMAIL PROTECTED]> wrote: > > > OK. This approach works. Thanks. > > > Would you have any link to a best

Re: Displaying error messages if form data not valid

2007-11-02 Thread RajeshD
On Nov 2, 12:08 pm, jim <[EMAIL PROTECTED]> wrote: > OK. This approach works. Thanks. > > Would you have any link to a best practice where such a approach is > detailed? The very first simple view example in the New forms documentation shows what Malcolm recommended to you.

Re: Displaying error messages if form data not valid

2007-11-02 Thread jim
OK. This approach works. Thanks. Would you have any link to a best practice where such a approach is detailed? Thx.. Jim On Nov 2, 10:01 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-11-02 at 06:26 -0700, jim wrote: > > Hello, > > I have a form that accepts some data. If

Re: Displaying error messages if form data not valid

2007-11-02 Thread Malcolm Tredinnick
On Fri, 2007-11-02 at 06:26 -0700, jim wrote: > Hello, > I have a form that accepts some data. If the data is invalid, the > server side validation should detect this, redirect to the original > url and display error messages. I think your design is a bit backwards here. try to avoid using a

Displaying error messages if form data not valid

2007-11-02 Thread jim
Hello, I have a form that accepts some data. If the data is invalid, the server side validation should detect this, redirect to the original url and display error messages. I have got this working but the problem is that I had to pollute the request.sessions object with a lot of error