>I call validate manually, but since I'm using DynaValidatorActionForms
>I'm using the validation defs from the validator XML config file. This
>is quite a bit more flexible to boot.
>
>In any case, I use tiles and validator together all the time so I'm not
>quite sure where your problem lies:
>
>    <action path="/NiceAction"
>            type="com.pingsite.actions.NiceAction"
>            name="niceBean"
>            input="page.NiceAction"
>            scope="request"
>            validate="false"
>            roles="Role1,Role2">
>      <set-property property="secure" value="false"/>
>      <forward name="confirm" path="/goto/ConfirmNiceAction"
>redirect="true"/>
>    </action>
>
>  <definition name="page.NiceAction" extends="template.form">
>    <put name="header" value="tile.header.nice"/>
>    <put name="title" value="Create Nice Thing"/>
>    <put name="content" value="form.niceForm"/>
>  </definition>
>
>etc.
>
>Dave


One of the main reasons I have for heading down this path was to use generic
validation defs. This alone should cut out a heap of tedious code.

So you call validate from within the Action?

Do you then have to forward back to the original page if you have errors?

Have you tried having validate="true" in your action?

Could I take a look at an example out of one of your Actions?

Thanks for showing me that the input can point to a tiles definition. I've
been trying this without luck. Perhaps I have something in my configuration
somewhere which is not setup 100% correctly.


Regards
Marty




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

Reply via email to