Hello Mark; Could you use a "java.text.Format" subclass and bind this into the "FieldEditor" component using a "format" binding to provide for the differing parser/formatter -- much in the fashion by which WOTextField works?
cheers. > There is a base component FieldEditor which does in-place editing using the > AjaxInPlace component + 2 ERXWOTemplate instances for the edit and view > modes. I then am wanting to derive from this to create StringFieldEditor / > IntegerFieldEditor / etc that specialize the java to provide view and edit > values in different ways as required. The html in FieldEditor component > doesn't need to change, and it doesn't make sense to me to have multiple > copies in the derived classes. What I'd like to happen is the base class html > be used and the overridden getter methods in the derived java class provide > the data for display. Is this an approach that applicable to WO? If not how > would this be approached to limit duplication of code / html? ___ Andrew Lindesay www.lindesay.co.nz _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
