Context URL - Returning to a results page URL
Context URL - Returning to a results page URL
- Subject: Context URL - Returning to a results page URL
- From: "Jonathan Fleming" <email@hidden>
- Date: Mon, 17 Mar 2003 19:14:55 +0000
I do a search and get my results, this would be my results page URL:
http://acu-pc:2951/cgi-bin/WebObjects.exe/ForumPrototype.woa/wa/SearchAction/results
I then choose "I like Aqua by Alice" from my results List so that I can see
the details of my Choice:
result 1)
Installing frameworks is a snap by Ravi on 27/01/02 22:29:11
WebObjects 5.1 makes it easy to install frameworks on MacOS X.
------------------------------------------------------------------------
result 2)
I like Aqua by Alice on 27/01/02 23:02:46
Isn't the interfce cool?
------------------------------------------------------------------------
result 3)
The technicolor spinning wheel is gaudy by Alice on 27/01/02 23:17:03
It's about time it were replaced with a proper aqua spinning disk.
-----------------------------------------------------------End of Search
The URL for the details page of "I like Aqua by Alice" is:
http://acu-pc:2951/cgi-bin/WebObjects.exe/ForumPrototype.woa/wa/posts?topicID=2
What I want to do and can not seem to do is return to the results page... to
the generated URL that the results page created, in this instance:
http://acu-pc:2951/cgi-bin/WebObjects.exe/ForumPrototype.woa/wa/SearchAction/results
Basically how do I achieve this, bareing in mind I'm using directActions.
using the Method below does not work in the stateless part of the app, for
example:
in Results.java
public WOComponent selectedDetail() {
SelectedDetail nextPage = (SelectedDetail)pageWithName("SelectedDetail");
nextPage.setPreviousPage(this);
return nextPage;
}
and in the SelectedDetail.java
protected previousPage;
// set method
public WOComponent previousPage() {
return previousPage;
}
public void setPreviousPage(WOComponent newPreviousPage) {
previousPage = newPreviousPage;
}
// this returns the prev page.
public WOComponent showResultsPage {
return previousPage;
So, using the above method I can return to the results of a state
application but really need to know how to achieve the same when using a
statless application.
Advanced thanks
Jonathan
_________________________________________________________________
Overloaded with spam? With MSN 8, you can filter it out
http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.