Re: Extending Textfield Question
"Howard M. Lewis Ship" <[email protected]> Wed, 8 Jan 2003 07:00:49 -0500
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <011001c2b70d$9629b9d0$3dc41e42@howardczkz2sl3> |
TextField is designed for this, fortunately (mostly to support ValidField). You should be able to copy the TextField .jwc into your application and modify it to point to your own class. Add the class parameter as direction "in" to a property named "styleClass". Subclass TextField and override beforeCloseTag() to insert your styleClass property. By putting TextField into the application specification it will automatically take effect for all the pages of your application. ----- Original Message ----- From: Dorothy Gantenbein To: [email protected] Sent: Tuesday, January 07, 2003 8:37 PM Subject: [Tapestry-developer] Extending Textfield Question Hi - We would like to have our own textfield with an HTML 'class' parameter. This class parameter would have a default to our pre-defined style. Should I inherit from Tapestry's TextField or use delegation? If I use delegation, how do I pass the informal parameters to the contained Tapestry TextField? Thanks... Dorothy Dorothy Gantenbein Software Architect 650.534.1077 | t 650.534.1020 | f [email protected]