I just tried your ajaxtags sample app
I'd just suggest to use a validator like design (separate tag) :
<html:form ... >
<!-- get the form name from parent html:form and associate it to an
Ajax definition -->
<ajax:script method="ajaxEvent"/>
<html:button property="button1" onclick="ajaxEvent_onclick"/>
</html:form>
Advantages :
1. This may NOT require to change struts tags (and so not have to extend
both EL and NON-EL tags)
2. <ajax:script> can use staticJavascript="true"
dynamicJavascript="true" as validator <html:javascript> to allow storage
of static script in a separate .js.
Static javascript should be the Ajax core (maybe a plugable Ajax library ?)
Dynamic javascript is build from your struts-ajax.xml and includes the
Ajax event handlers. They may be any custom javascript code, or use
"standard" scripts like your "stdInnerHTML".
3. <ajax:script> can use an optionnal action attribute to get the ajax
definition, or refer to the parent <html:form>. Default method name
could be '<form-name>AjaxEvent()', to map validator validate<formName>()
Nico.
Frank W. Zammetti a écrit :
Well, I'm certainly open to that... I didn't view it as anything but
adding to the existing library so my first thought was not a new
subproject. As I mentioned in the post, it doesn't alter any existing
code written against the taglib as it exists today, and in my mind
that makes it not a new subproject.
If everyone agreed it should be though, I wouldn't argue. But at
least at this point, I don't see it that way, I think it really is
just an expansion on the existing project. In fact, since my thinking
was that this should be a drop-in replacement for the existing taglib,
that says to me it shouldn't be a new subproject (unless there is some
reason that goal is not a good idea?).
This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or use this
message or any part thereof. If you receive this message in error, please
notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]