The Request object should be able to determine the
event using forms like the following:
<FORM ACTION="State.Event.jsm">
<INPUT NAME="textData">
<INPUT TYPE="submit" NAME="event.Event1"
VALUE="Do
First Thing">
<INPUT TYPE="submit" NAME="event.Event2"
VALUE="Do
Second Thing">
<INPUT TYPE="image" NAME="event.Event3"
SRC="...">
</FORM>
The point being, that the VALUE of the submit button is
not the actual event name, since for display purposes,
we want to use a different value. So instead, the
event name is encoded in the parameter name. The
Request code would enumerate all the parameters to find
one that begins with "event.". Furthermore, image
buttons should work. For that to work, we just need to
remove the ".x" or ".y" from the end of the request
parameter name to get the event name.
Also, when using the .jsm notation, the request
parameters are ignored. It should first check if the
request parameters were submitted, and then fall back
on parsing the servletPath. That way in the form above,
if the user presses a button, that will specify the
event. But if the user just presses enter from the
text field, and the form is submitted with no event
parameters, the event is determined from the servletPath.
- Chris
Brian O'Byrne
None
None
Public
|
Date: 2003-04-06 21:05 Logged In: YES |
|
Date: 2003-03-18 15:59 Logged In: YES |
|
Date: 2003-03-17 23:23 Logged In: YES |
|
Date: 2003-03-17 20:24 Logged In: YES |
|
Date: 2003-03-16 14:35 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2003-04-10 20:30 | bobyrne |
| close_date | - | 2003-04-10 20:30 | bobyrne |
| assigned_to | nobody | 2003-03-17 23:23 | bobyrne |