[Idrs-dev] New RML Tags Added...
Brought to you by:
bigman921
|
From: Marc B. <mbo...@ya...> - 2002-04-13 16:19:29
|
Hello everyone. I am prooud to announce that two new RML tags have been added to help working with HTML forms. The first tag is the <yesno> tag. This tag allows for the easy creation of Yes/No option choices. The tag not only generates a set of input tags, but also allows for the value of that tag to come from a request parameter, a database field or an object property. It will also allow for the value to allways come from a parameter first when it should be comming from a db or property. This makes form processesing much easier as there is no need to manually check or load form values. for instance, the following tag: <$ x=0; $> <yesno name="= \"yesnodb\" + x " srcType="db" paramFirst="true" >yesno.val</yesno> with no request parameter named "yesnodb0" and a value of "true" for yesno.val will generate : <input type="radio" name="yesnodb0" value="true" CHECKED> Yes <input type="radio" name="yesnodb0" value="false"> No and with a request parameter named "yesnodb0" set to "false" and a value of "true" for yesno.val will generate : <input type="radio" name="yesnodb0" value="true" > Yes <input type="radio" name="yesnodb0" value="false" CHECKED> No As you can see, this is the first set towordsmaking form handling a two page process, one for entering information and one for handling it. If there is an error, the request can simply be forwarded back to the entry page with all the entered data intact. The second tag is alonf the same lines, but is more gener purpose. THis tag is the <formInput> tag. It acts like <yesno>, except that it allows for the generation of any input type - text,password,checkbox,radio,hidden and textarea - all with the same type of functionality of <yesno>. I would also like to know if anyone has some spare time to contribute to the servlet re-building. Tim has made a great start with the UML doc, we now just need to move forward and begin implementation. If anyone can help out with that, it would be greatly appreciated. Thanks Marc |