> I understand the changes and why, but the users like CRUD screens...
> 
> Really I used a similar approach in the CRUD case before asking you,
but I
> needed to be sure that is the best way.
> In my case, I changed the template to render only one form with onclik
> events in the buttons and ignoring fields already rendered, now I'm
> thinking about a way to keep the struts validator working that way...
I
> think it's ok.
> 

yeah, that's another issue ... considering the way struts renders
dynamic javascript there is a problem when you have two forms that need
validation on the same screen

struts generates required() validateIntegers() methods etc... but we
need this function to be different for each form, I have this in the
back of my head, I'll take on this issue as soon as I have some time



> About reusing the activity graph with another controller class, since
we
> can assign only one class with the activity graph, I'm thinking in a
way
> to create new classes inheriting the controller methods, but the
following
> code:
> 
>     private final static Controller INSTANCE = new Controller();
> 
> makes it impossible... maybe the controller class should have a static
> method to initialize the singleton and that could be different to each
new
> derived class... any idea ?
> 


good point

I will work with a getInstance method that lazily constructs the class,
I will commit that code in a moment, so if you update from cvs tomorrow
you have it too (there's 24hrs delay on the anonymous cvs server)

You can then override this method, I will no longer make it final etc...

Wouter.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to