I would like to create a reusable component that behaves just like a
WOTextField.  This component would accept all the attributes that
WOTextField allows (e.g. "name", "maxlength", "dateformat", etc.).  The
only difference would be that this component would add a "size=10"
attribute.

I considered creating a reusable component.  For example, called "Foo":

      Foo.html
      --------
      <webobject name=txt></webobject>

      Foo.wod
      -------
      txt: WOTextField { value = value; size = 10; }

The "Foo" component would only allow me to set the value.  If I wanted
to set other WOTextField attributes I would have to add them explicitly
in Foo.wod.

Is it possible to somehow "subclass" WOTextField to achieve this?

Orest
--
Orest Jarosiewicz
TIAA-CREF

____________________________________________________________________
More than just email--Get your FREE Netscape WebMail account today at 
http://home.netscape.com/netcenter/mail

Reply via email to