Name your method doDeletefile()
Notice the 'F' in file is lowercase.

For more documentation, refer to here:
http://jakarta.apache.org/turbine/turbine-2/howto/action-event-howto.htm
l

A snippet from this page reads:
Thus, the convention is this: 

The variable name MUST have the prefix "eventSubmit_". 
The variable name after the prefix MUST begin with the letters "do". 
The first letter after the "do" will be capitalized and the rest will be
lowercase

-----Original Message-----
From: Peter Neubauer [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 19, 2002 7:14 AM
To: Turbine Users List
Subject: method names in actions?

Hi,
is it right that I can't have a method called doDeleteFile(data,
context) in my action?
When I try to trigger it with
<input type="submit" name="eventSubmit_doDeleteFile" value="Delete"/>
Turbien gets into doPerform instead.
But it works when I rename the whole thing to 
doDeletefile()
and trigger it via
<input type="submit" name="eventSubmit_doDeletefile" value="Delete"/>

Why is that?

/peter

_____________________________________________________
F�lj VM p� n�ra h�ll p� Yahoo!s officielle VM-sajt www.yahoo.se/vm2002
H�ll dig ajour med nyheter och resultat, med vinnare och f�rlorare...

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to