From: <fza...@us...> - 2005-05-22 15:27:27
|
Update of /cvsroot/struts/ajaxtags/WEB-INF/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3991/WEB-INF/src Modified Files: history.txt readme.txt Log Message: Index: history.txt =================================================================== RCS file: /cvsroot/struts/ajaxtags/WEB-INF/src/history.txt,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** history.txt 21 May 2005 22:51:35 -0000 1.9 --- history.txt 22 May 2005 15:27:18 -0000 1.10 *************** *** 43,46 **** --- 43,47 ---- ajaxFRM variable that ajaxRequestSender sets so that the response handler has a reference to the form if needed (as in example 5). + * The example custom XML generator was misnamed. Corrected. Index: readme.txt =================================================================== RCS file: /cvsroot/struts/ajaxtags/WEB-INF/src/readme.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** readme.txt 21 May 2005 22:06:52 -0000 1.7 --- readme.txt 22 May 2005 15:27:18 -0000 1.8 *************** *** 1,3 **** ! AjaxTags 1.0 Alpha 2 Frank W. Zammetti --- 1,3 ---- ! AjaxTags 1.0 Beta 2 Frank W. Zammetti *************** *** 26,36 **** still pretty darned simple)... ! 1. Update your struts.jar with the one from AjaxTags. The JAR is a released ! Struts JAR with some minor changes, specifically, about 12 new classes ! and two modified ones). When Struts 1.3 comes out the taglib ! will be in a separate JAR, but until then it's all monolithic. See the ! Building AjaxTags section below for details on supported versions of Struts. ! 2. Replace your struts-html.tld file with the AjaxTags version. 3. Add the AjaxInit plug-in to your struts-config.xml file like so: --- 26,34 ---- still pretty darned simple)... ! 1. Build AjaxTags. You will need to supply the struts.jar you wish to ! "Ajax-enable". See the "Building AjaxTags" below for details. ! 2. Replace the struts.jar and struts-html.tld file in your project with the ! AjaxTags version emitted by the build process. 3. Add the AjaxInit plug-in to your struts-config.xml file like so: *************** *** 46,56 **** 5. For any form element you wish to Ajax-enable, add an ajaxRef attribute to ! it. In addition, add an ajaxRef to the containing form. This can be ! any value you wish, it is a reference value to a configuration file. ! ajaxRefs for form elements should be unique within the form (they will be ! looked up by form and then by element, so you can have an ajaxRef in one ! form that is the same as an element in another). ajaxRefs on forms can ! be duplicated, however, this will result in both forms using the same ! definition in the config file, so be sure that's what you meant to do! 6. Add the <enableAjax> tag to your page AFTER ALL OTHER AJAX-ENABLED FORM --- 44,48 ---- 5. For any form element you wish to Ajax-enable, add an ajaxRef attribute to ! it. In addition, add an ajaxRef to the containing form. 6. Add the <enableAjax> tag to your page AFTER ALL OTHER AJAX-ENABLED FORM *************** *** 117,122 **** Next comes the <form> elements. Each <html:form> tag on any page that you want ! to have AJax-enabled elements in will have an entry. Choose an ajaxRef any ! way you wish and make sure the ajaxRef in the config file in the <form> element matches the ajaxRef element you add to the <html:form> tag on your page! --- 109,114 ---- Next comes the <form> elements. Each <html:form> tag on any page that you want ! to have Ajax-enabled elements in will have an entry. ajaxRef can be any value ! you wish, just make sure the ajaxRef in the config file in the <form> element matches the ajaxRef element you add to the <html:form> tag on your page! *************** *** 125,128 **** --- 117,126 ---- you are Ajax-enabling on your page. + ajaxRefs for form elements should be unique within the form (they will be + looked up by form and then by element, so you can have an ajaxRef in one form + that is the same as an element in another). ajaxRefs on forms can be + duplicated, however, this will result in both forms using the same definition + in the config file, so be sure that's what you meant to do! + Within an <element> are a series of <event> elements. You can Ajax-enabled any UI event that the Struts HTML taglibs already implement. Simply add an <event> *************** *** 249,253 **** You will need to build AjaxTags for the version of Struts you wish to use. The following versions are supported: 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, ! 1.2.5, 1.2.6, 1.2.7. The build procedure is as follows: --- 247,253 ---- You will need to build AjaxTags for the version of Struts you wish to use. The following versions are supported: 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, ! 1.2.5, 1.2.6, 1.2.7. Building AjaxTags amounts to compiling the code (for ! AjaxTags as well as the sample app), updating the struts.jar, and the ! struts-html.tld file. The build procedure is as follows: *************** *** 268,269 **** --- 268,273 ---- point ready to be exeuted. You will also find javadocs have been created in ajaxtags/web-inf/src. + + Enjoy! + + -Frank W. Zammetti |