Gawain Hammond wrote:
...
That's a lot of problems, and to work-around each problem you've moved
to a more sophisticated and complicated solution hoping for the best.
You'll need to get the plain-old-validation working first. If validation
fails, your action's execute method is not invoked, so you need to
ensure all the data needed by the page is available in that case. eg.
If you have a select that needs a list of values, then populate the list
in the prepare method rather than the execute method.
Client-side validation is then generated from your server-side
validation settings. It'll only works with xhtml or css_xhtml theme'd
forms with validate=true. If it fails in individual tags it's possible
there's something wrong with the markup. When you isolate it to certain
fields your browser can help you work this out.
If you want to use ajax validation you'll need to ensure you're using
the default interceptor stack for 2.1.2. It'll use your server-side
validation settings. You'll need the sx:head tag in your page and need
to be attentive to where you use ajax theme'd tags verses other themes
(eg. if you don't want the form posted via ajax).
I suggest you go back to basics; create a new minimal form with a
minimal action and it get it to work.
Hope that helps,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]