on 5/6/2000 5:45 PM, dave bryson <[EMAIL PROTECTED]> wrote:

> Cool!  Along these same lines, what about a way for template authors to
> specify required fields.  Maybe some type of object in the context that
> could be used.
>
> Like this: <input type="text" name="$required("fname")">
> then Turbine could have a standard way of dealing with this.
> 
> Sorry to get of track from your suggestion, you just got me thinking.

That is a very interesting idea, although not entirely necessary because you
will find out quickly enough if you are missing anything. :-)

BTW, I'm just about in testing phase of this thing ActionEvent thing...it is
like less than 30 lines of code and very easy to follow! I tested it with a
main() and it is working beautifully. Now just have to plug it into the
system and off we go.

For speed, the interface will be like this:

<input type=submit name="eventSubmit_doDelete" value="Delete">

It will loop over the keys in the ParameterParser, find the key that begins
with "eventSubmit_", strip that off and then attempt to execute your
doDelete() method in your WebMacroSiteAction. For compatibility, if that
method doesn't exist, then it will execute your doPerform() method instead.

Yes! This is going to save mad amounts of debugging time and make the Action
code SO much cleaner and faster.

-jon

--
    Java Servlet Based - Open Source  |        Collab.Net
        Bug/Issue Tracking System     |
       <http://scarab.tigris.org/>    |  <http://Collab.Net/jobs/>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to