Re: Trying to resurrect old project and getting warnings and errors
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
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