• 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: Overriding WODisplayGroup methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding WODisplayGroup methods


  • Subject: Re: Overriding WODisplayGroup methods
  • From: Art Isbell <email@hidden>
  • Date: Thu, 15 Dec 2005 11:43:52 -1000

On Dec 15, 2005, at 11:32 AM, email@hidden wrote:

I created a separate java file for this class MyDisplayGroup and added it to my project.

Then I changed my the instance variable for my localizationCodesDG on my component page to be of type MyDisplayGroup. Finally, I changed the corresponding *.woo file back to

class=MyDisplayGroup;

I got an error similar to my original one:

Error: com.webobjects.foundation.NSForwardException [java.lang.IllegalArgumentException] While trying to set the field "localizationCodesDG" on an object of type LocalizationCodePage we expected a MyDisplayGroup but received a com.webobjects.appserver.WODisplayGroup with a value of sortOrdering=() qualifier=null localKeys=() insertedObjectDefaultValues={} numberOfObjectsPerBatch=2>. This often happens if you forget to use a formatter.

Looks like you're using Java's default package. Maybe you need to create a package for your custom classes and then specify the fully- qualified class name as the error message does for WODisplayGroup. Putting everything into custom packages is probably a good idea even if it doesn't solve this problem.


If this fails, there may be a bug in the logic that creates a WODisplayGroup that's in a WOComponent template. If you're intent on using WODisplayGroup, maybe you should try removing it from the WOComponent template and creating a MyDisplayGroup programmatically.

Aloha,
Art

_______________________________________________
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: Overriding WODisplayGroup methods
      • From: Sam Barnum <email@hidden>
References: 
 >Re: Overriding WODisplayGroup methods (From: Wolfram Stebel <email@hidden>)
 >Re: Overriding WODisplayGroup methods (From: email@hidden)

  • Prev by Date: Re: Overriding WODisplayGroup methods
  • Next by Date: No Instance Available
  • Previous by thread: Re: Overriding WODisplayGroup methods
  • Next by thread: Re: Overriding WODisplayGroup methods
  • Index(es):
    • Date
    • Thread