• 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: email@hidden
  • Date: Thu, 15 Dec 2005 16:32:01 -0500

Hi Wolfram,

On 15 Dec, 2005, at 04:03 PM, Wolfram Stebel wrote:

Am 15.12.2005 21:19 Uhr schrieb "email@hidden" unter <email@hidden>:

Hi Art,

Thanks.

I tried changing the .woo file from

class=MyDisplayGroup

to
class=LocalizationCodePage.MyDisplayGroup

as you mentioned, and my page still would not load.

The error I received this time was

Error:  com.webobjects.foundation.NSForwardException
[java.lang.IllegalArgumentException] Attempt to insert null object
into an com.webobjects.foundation.NSMutableDictionary.
Reason: Attempt to insert null object into an
com.webobjects.foundation.NSMutableDictionary

So still no luck overriding some of the methods in the WODisplayGroup
by extending my own class (MyDisplayGroup).

Any other suggestions?
Yeah,

Art's idea with
class=LocalizationCodePage.MyDisplayGroup
is not bad, but i dont think that WO can resolve anonymous classes (it can
not deal with static methods, so that makes me cautious).


try it with a MyDisplayGroup in it's own class file.


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


//
//  MyDisplayGroup.java
//
//

import com.webobjects.foundation.*;
import com.webobjects.eocontrol.*;
import com.webobjects.appserver.WODisplayGroup;

public class MyDisplayGroup extends WODisplayGroup {

public Object displayNextBatch() {
System.out.println("I am about to display the next batch of objects in MyDisplayGroup");
return(super.displayNextBatch());
}
}


then try again with: class=MyDisplayGroup

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.


Let me hear if it helps!

regards

Wolfram


I am unsure where to go next?


Thanks,

Kev
_______________________________________________
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: Art Isbell <email@hidden>
References: 
 >Re: Overriding WODisplayGroup methods (From: Wolfram Stebel <email@hidden>)

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