Re: Session.java:211: cannot resolve symbol symbol : method pageWithName (java.lang.String)
Re: Session.java:211: cannot resolve symbol symbol : method pageWithName (java.lang.String)
- Subject: Re: Session.java:211: cannot resolve symbol symbol : method pageWithName (java.lang.String)
- From: Mark Morris <email@hidden>
- Date: Tue, 8 Mar 2005 15:50:44 -0600
Hi Andrew,
WOSession does not have a pageWithName method, but that's no problem. Just change them to:
Schedule nextPage = (Schedule)WOApplication.application().pageWithName( "Schedule", context() );
Regards,
Mark
On Mar 8, 2005, at 3:13 PM, Andrew Kinnie wrote:
I am having a strange problem that is basically senseless to me. I am using WO 5.2 on Mac OS X 10.3 and XCode 1.5.
I have a component "Schedule" which is returned from a WOActiveImage click. The Session's currentClub variable is set based on which image is clicked (there are two, each of which has a different method associated with it. The below method is one of these. Both methods have the same error generated.)
The component is a subclass of WOComponent:
public class Schedule extends WOComponent {
The method is as follows (Inside Session):
public Schedule setLOPClub()
{
setCurrentClub("LOP");
Schedule nextPage = (Schedule)pageWithName("Schedule");
return nextPage;
}
This is mostly as was generated automatically by WOBuilder. However, when it compiles, I get the above error, saying that it can't find the method.
There must be something else going on that I don't understand. It has been a long time since I've done much WO development. Any help would be appreciated.
Andrew _______________________________________________
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
_______________________________________________
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