• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another newbie question


  • Subject: Re: Another newbie question
  • From: Mark Woollard <email@hidden>
  • Date: Sun, 3 Jan 2010 02:20:55 +0000

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Another newbie question
      • From: Andrew Lindesay <email@hidden>
    • Re: Another newbie question
      • From: Chuck Hill <email@hidden>
References: 
 >Another newbie question (From: Mark Woollard <email@hidden>)
 >Re: Another newbie question (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Re: Another newbie question
  • Next by Date: Re: Another newbie question
  • Previous by thread: Re: Another newbie question
  • Next by thread: Re: Another newbie question
  • Index(es):
    • Date
    • Thread