Madhavan Thirumalai <mad <at> letsgaggle.com> writes: > Is there any way to generate Javascript for client side validation without > having to write your own component as described in Chapter 8.2 of Tapestry > in Action. Can I simply register my own Javascript validators against a page > and figure out what the fields will be named?
You can use a Script component and put your script in a .script file. But encapsulating it in a component is a much better way IMO. > Is there any way I can avoid writing my own renderComponent() method and > generating html in JAVA? I would prefer to keep all the stuff that's > visually displayed in the html files. Let your component (eg, Foo) extend BaseComponent instead of AbstractComponent. Then put the html code in Foo.html. -- Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
