> i've some trouble with the generated struts components - the server
side
> validation doesnt work.  I've disabled  JavaScript and now if i submit
a
> formular (eg. with empty fields) the struts validationframework should
> call the inputpage again with a message ({0} is required) but it loads
> the next forward.

So you have "serverValidation=true" and "clientValidation=false" ?

> I think that there is a bug in the StrutsAction.vsl. AndroMDA generate
a
> BaseFormBean for every UseCase an extends this BaseFormBean for every
> UserActivity (or Transition) but in the generated struts-config.xml it
> uses as name the name of the BaseFormBean (generatet from the
> XDoclettags) but in the validation.xml the formsetentry is the name of
> the correct formBean.
> 

no, this is normal. The action specific formbeans are only generated for
the validation framework (for example so that the javascript on the
client can properly be rendered)

what you did might work for now but you'll run into problems later: you
will have issues transfering parameters over several pages, and your
session will be messed up ... also performance-wise it is not a good
idea to use these beans, they will clutter server-side memory.

Open a jira issue and I'll take a look

-- Wouter





> For me i've changed the StrutsAction.vsl:
> 
> * @struts.action
> *        path="$class.actionPath"
> #if ($class.useCaseStart == true)
> *        name="$class.actionName"
> #else
> *        name="$class.formBeanName"
> #end
> 
> and it works fine - but i'm not sure if there are more changes or
other
> changes necessary or better.
> 
> Gru�
> 
> Dirk
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/andromda-user



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to