You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <be...@incubator.apache.org> on 2005/05/04 23:27:23 UTC

[jira] Updated: (BEEHIVE-601) Validation annotations do not work on a form bean that extends Struts ActionForm (and not FormData)

     [ http://issues.apache.org/jira/browse/BEEHIVE-601?page=all ]

Rich Feit updated BEEHIVE-601:
------------------------------

    Summary: Validation annotations do not work on a form bean that extends Struts ActionForm (and not FormData)  (was: Validation annotations to not work on a form bean that extends Struts ActionForm)

> Validation annotations do not work on a form bean that extends Struts ActionForm (and not FormData)
> ---------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-601
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-601
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Alpha, V1Beta, V1
>     Reporter: Rich Feit
>     Assignee: Rich Feit
>      Fix For: V1

>
> To reproduce this, create a page flow action that uses a form bean with validation annotations in it.  Make the form bean extend the Struts ActionForm, e.g.,
>     public static class MyForm extends org.apache.struts.action.ActionForm
>     {
>         private String _foo;
>         @Jpf.ValidatableProperty(
>             validateRequired=@Jpf.ValidateRequired()
>         )
>         public String getFoo()
>         {
>             return _foo;
>         }
>         public void setFoo( String foo )
>         {
>             _foo = foo;
>         }
>     }
> Run the action; notice that the validation annotations have no effect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira