Re: Dispatch Action, fallback method

2005-04-12 Thread Giovanni Santini
I think we can do more: a) Load statically the methods of an action, I mean for the hashmap methods b) Use unspecified also for getDefaultMethod (or getFallbackMethod) c) In getMethod we only try to get the method from the hashmap without using reflection in this method. If method for the paramet

Re: Dispatch Action, fallback method

2005-04-12 Thread Martin Cooper
On Apr 12, 2005 6:12 AM, Joe Germuska <[EMAIL PROTECTED]> wrote: > This seems like a generally useful strategy. Is your intention to > name another method to which control would be dispatched? In that > case, what if that name failed too -- just throw an exception at that > point? > > How would

Re: Dispatch Action, fallback method

2005-04-12 Thread Giovanni Santini
I'm asking. I'll do that. There is other "enhancement" to propose. But I've evaluate before if they are general or not! Thank you very much. I hope to learn how to move in the open source community soon! Bye On Apr 12, 2005 3:48 PM, Joe Germuska <[EMAIL PROTECTED]> wrote: > > >>Anyway, I'd su

Re: Dispatch Action, fallback method

2005-04-12 Thread Joe Germuska
Anyway, I'd suggest filing an "enhancement" ticket in Bugzilla and if you can attach patches to implement this, so much the better! Thank you for the tips, I hope to give a little contribute to the open source community, (I've to check some legal problem with my company :( ) How can I ask to get i

Re: Dispatch Action, fallback method

2005-04-12 Thread Giovanni Santini
On Apr 12, 2005 3:12 PM, Joe Germuska <[EMAIL PROTECTED]> wrote: > > This seems like a generally useful strategy. Is your intention to > name another method to which control would be dispatched? *Yes* > In that > case, what if that name failed too -- just throw an exception at that > point?

Re: Dispatch Action, fallback method

2005-04-12 Thread Joe Germuska
This seems like a generally useful strategy. Is your intention to name another method to which control would be dispatched? In that case, what if that name failed too -- just throw an exception at that point? How would you configure the name of the fallback method? Would you define a consta

Dispatch Action, fallback method

2005-04-12 Thread Giovanni Santini
Hi, We use a Dispatch Action for each setup screen that we've to develop. Setup screen are called from overview and workflow screen. I think it's good to add in the NoSuchMethodException a call to a method, something like "getFallbackMethod" defined in the dispatch action base class. In that cas