• 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: Trying to resurrect old project and getting warnings and errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to resurrect old project and getting warnings and errors


  • Subject: Re: Trying to resurrect old project and getting warnings and errors
  • From: David Avendasora <email@hidden>
  • Date: Wed, 02 Jan 2013 13:07:15 +0800

Hi Kevin,

I believe that at runtime the class loader is guessing (wrongly) about what class "session" is. 

If your Session.java is in the default package (no package) then I'd try simply moving it into a package (and make sure the import for Session is pointing to the correct one).

If it is not in the default package, try adding this method to whatever component class you have that inherits from WOComponent:

@Override
public Session session() {
    return (com.myApp.mySession) super.session();
}


Dave



On Dec 30, 2012, at 1:10 AM, Kevin <email@hidden> wrote:


Here is an example that is flagged.

CheckBox2: WOCheckBox {
checked = session.currentDoc.agreeToTerms;
}

The error is that there is no key 'currentDoc' for the key path 'session'.

Of course if I look in Session.java there is a declaration for currentDoc.




—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™
—————————————————————————————
David Avendasora
Senior Software Abuser
Kaiten, Inc.




 _______________________________________________
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

  • Next by Date: Wonder Deployment Guide ready for review
  • Next by thread: Wonder Deployment Guide ready for review
  • Index(es):
    • Date
    • Thread