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 protected]> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]