Daniel,
it is always possible to go back to the previous CVS snapshot but we won't in this
case :-) we have encountered some very annoying problems with real projects that led
us to apply these changes, after discussing about it (both on this list and on IM) we
agreed this to be the best compromise
the problem is that you need to pass in the form in the controller operations, but if
you have two actions deferring to the same operation there are two possible forms ...
so which one will you generate in the controller operation ? you can choose to
generate two operations (overloaded) or you can choose to use a shared interface
two operations is too cumbersome for the user, although easier to generate ... the
interfaces are a little trickier but they are 'lighter' in use
-- Wouter
besides, like this the UML is more strict and reflects better the generated code
-- Wouter
Daniel <[EMAIL PROTECTED]> wrote:
>Hi,
> I have a problem with $operation.interfaceType, it is now needed to
>put arguments in the controller operations (but I think that it's not
>necesary).
>Before changes of the template StrutsController.vsl, this generated a
>form from $action.formBeanType but now it's from
>$operation.interfaceType. Could be possible to insert again
>$action.formBeanType?, so you can obtain the parameters (from the form)
>without put arguments in the controller.
>
>BEFORE CHANGES:
>$visibility final $returnType ${operation.name}(ActionMapping mapping,
>$action.formBeanType form, HttpServletRequest request,
>HttpServletResponse response) throws Exception
> {
>#set($allowDummyData = ($dummyData == 'true'))
>#if ($allowDummyData)
>#set ($formFields = $action.actionFormFields)
>
>AFTER CHANGES:
> $visibility final $returnType ${operation.name}(ActionMapping
>mapping, $operation.interfaceType form, HttpServletRequest request,
>HttpServletResponse response) throws Exception
> {
>#set($allowDummyData = ($dummyData == 'true'))
>#if ($allowDummyData)
>#set ($formFields = $operation.formFields)
>
>Un saludo
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
>Use IT products in your business? Tell us what you think of them. Give us
>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
>http://productguide.itmanagersjournal.com/guidepromo.tmpl
>_______________________________________________
>Andromda-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/andromda-devel
>
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel