Re: Another newbie question
Re: Another newbie question
- Subject: Re: Another newbie question
- From: Andrew Lindesay <email@hidden>
- Date: Sun, 3 Jan 2010 15:28:47 +1300
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden