• 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: 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

References: 
 >Another newbie question (From: Mark Woollard <email@hidden>)
 >Re: Another newbie question (From: Andrew Lindesay <email@hidden>)
 >Re: Another newbie question (From: Mark Woollard <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: How do I add a button or link on a D2W page?
  • Index(es):
    • Date
    • Thread