• 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: OGNL and Wonder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OGNL and Wonder


  • Subject: Re: OGNL and Wonder
  • From: Anjo Krank <email@hidden>
  • Date: Fri, 3 Sep 2004 09:14:02 +0200

Hi Benjamin,

Am 02.09.2004 um 22:35 schrieb Benjamin J Doherty:

I'd like to see more widgets for java client. Project Wonder has pretty much nothing on the Java Client side, and I'll be happy to give my stuff away once I get anything useful together. The basic EOWidgets are fine for most functions, but I'd like some JRadioButtons as well as the gold mine of Swing widgets (I saw a nice date selector today) that already exist work themselves into subclasses of EOWidgetController. The example on page 268 of the Desktop Apps book supplied by Apple is obviously pulled out of someone's arse, because the example there fails to compile.

That was my impression, too and also one of the reasons I didn't do much with JC - and that it seemed pretty hard to debug at that time. So if you want to contribute a JavaClient section in Wonder, I'd be happy to help you set it up:)


Right now my "problem" is to make a friendlier widget for a Sex attribute. It's a one character field, and the user enters M or F (or nothing or T if they're so inclined). I thought a relationship and enumeration entity was overkill, especially since that still only allows for a cumbersome drop-down menu. That's not very simple to use for such a binary attribute (my gender studies professors would probably want a many-to-many gendered relationship, and so would chastise me for being such a structuralist).

In D2W, I'm using a component that gets an NSArray of NSDictionaries ({"M"="Male"}, {"F" = "Female"}) where the key is the actual code and the value is the display name. As this can also be run through the localizer, you can easily have the display names in different languages. (I'm using an NSArray because otherwise you can't set the order of the keys)


Cheers, Anjo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: OGNL and Wonder
      • From: Benjamin J Doherty <email@hidden>
References: 
 >OGNL and Wonder (From: James Cicenia <email@hidden>)
 >Re: OGNL and Wonder (From: Benjamin J Doherty <email@hidden>)

  • Prev by Date: Re: problem with selectedObject of EOFormController in Java Client
  • Next by Date: RE: problem with selectedObject of EOFormController in Java Client
  • Previous by thread: Re: OGNL and Wonder
  • Next by thread: Re: OGNL and Wonder
  • Index(es):
    • Date
    • Thread