LUDA is just too complex and too outmoded, as Paul says. However, since you want to use LUDA, I don't get what your problem is. Can you provide the code?
Here is what I understand: A. you are using javascript to set the action. B. then you have "separate methods" for each action. You need to spell out what B means, if we are to assist you. At any rate, I cannot tell what B means in your case. So, either change to something other than LUDA (recommended) or let us know what you are doing in more detail? Presumably, since you are using LUDA, you have a set number of methods no matter what action is being set by your javascript and this set number have the same names in each action. (This architectrue seems suspect to me. But, I don't know what you are doing, so it might make a lot of sense that is not obvious.) I hope I am not being obtuse. If so, please advise. Thanks. Jack On Thu, 4 Nov 2004 14:47:28 +0100, Václavík Radek <[EMAIL PROTECTED]> wrote: > Hi, > > I wanted to follow best practices and thus using LUDA, but I found the > following weekness: I have to rewrite code common to all of the actions in > every action method. > > When using JavaScript to set e.g. the action attribute, I can do some common > stuff in the execute method and then decide (if) what specific code to do > based on the action. However, if there are separate methods for each action, > I would have to either rewrite that code or make some common method and move > the code there (then there is problem with returning variables, or having > them as class variables - both doesn't seem very nice). > > Am I missing something here? How are you guys dealing with this? > > Thx for tips. > > Radek > > -- "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]