Martin Ravell wrote:
> This basically means I am not using the Validator. Sticking everything in
> the Action negates all the advantages of getting this stuff unbound.
>   
I don' really see it that way.

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



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

Reply via email to