--- "Paananen, Tero" <[EMAIL PROTECTED]> wrote: > > > From what I've seen most custom tags seem to have been > > > implemented as one big doStartTag() or doEndTag(). The > > > entire implementation of the tag is in that one method. > > > > I have worked to move most of the code out of doStartTag() > > and doEndTag() for many tags. My pattern has been to have > > a "render*" method that returns a String with the HTML to > > be rendered that you can override to render things how you > > like. > > David, > > You have an example of a tag you've refactored with > this pattern?
FormTag and JavascriptValidatorTag (this one still isn't pretty but it's *much* better than the original). David > > -TPP > > ----------------------------------------- > This email may contain confidential and privileged material for the sole > use of the intended recipient(s). Any review, use, retention, > distribution or disclosure by others is strictly prohibited. If you are > not the intended recipient (or authorized to receive for the recipient), > please contact the sender by reply email and delete all copies of this > message. Also, email is susceptible to data corruption, interception, > tampering, unauthorized amendment and viruses. We only send and receive > emails on the basis that we are not liable for any such corruption, > interception, tampering, amendment or viruses or any consequence > thereof. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]