... So you have "serverValidation=true" and "clientValidation=false" ?
I will use both validations and in the struts documentation i've seen that the server side validation will be used if the formBean extends ValidationForm (and of course struts-config validation=true) and thats okay in the generated Classes and xml-files, but the action name (in the struts-config.xml) and the formset name (in the validation.xml) are not the same.
...
Open a jira issue and I'll take a look
okay
Wouter Zoons wrote:
i've some trouble with the generated struts components - the serverside
validation doesnt work. I've disabled JavaScript and now if i submita
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 generatea
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
otherFor 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
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
------------------------------------------------------- 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
