Maybe expanding will make things clearer... 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?
Thanks Mark On 3 Jan 2010, at 02:04, Andrew Lindesay wrote: > Hi Mark; > > If I understand you correctly, I would typically create smaller re-usable > components to put into two different larger components. > > cheers. > >> I have a component (java/html/api/woo/wod) and want to create a derived >> component that specialises some of the java functionality, but doesn't need >> to modify the html of the base component. I can't figure out how to get the >> derived component to return the base class html since the derived classes >> just extend the java class. > > ___ > Andrew Lindesay > www.lindesay.co.nz > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com