on 1/5/2001 4:00 PM, "Diethelm Guallar, Gonzalo"
<[EMAIL PROTECTED]> wrote:
> This will probably prove I'm clueless... anyway...
>
> File ActionLoader, method exec(), does this:
>
> getInstance(name).perform(data);
>
> Method getInstance() returns an object of class
> Action. This class declares method perform as:
>
> protected void perform( RunData data )
> throws Exception;
>
> Stupid question: how can ActionLoader invoke method
> perform() over an Action object, if this method is
> declared a protected? Shouldn't it be accessible only
> to class Action and all its descendants?
Exactly. It is. Your class will be a descendant of the Action class and
therefore you don't have permission problems.
> I realized this when trying to change the invocation
> to a method passed as a String parameter. When trying
> to reflect the default method name ("perform"), I
> get an exception NoSuchMethod.
Keep digging a bit. We may have to make this stuff not be protected in order
to get what you want.
Hmmmmmmm...I also just figured out that VelocityActionEvent.java has a
method called doEvents() and that will cause problems if someone tries to
make a button named "eventSubmit_doEvents". I will look into renaming that
method. :-)
-jon
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]