2007/6/29, Johan Henselmans <[EMAIL PROTECTED]>:
I must be missing something: I have a header component, which
contains the menubar, and sets the default language, by calling
session.setlanguages() via a WOHyperlink. After that I want to return
the current page. But a "return this" from within the Header
WOComponent will only return the header. Any idea how to get the
current page returned from within the header component?
This is the structure:
WOComponent->Page
WOComponent->Header
rest....
WOComponent->Footer
this structure means:
Header is son of Page;
Footer is son of Page;
Page is parent of Header, Footer, rest...;
so from Header call this.parent() to get the Page component instance! Or you
can Instance a new Page calling: Page next = (Page) this.pageForName(
Page.class.getName());
then return next!
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
This email sent to [EMAIL PROTECTED]
--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]
--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]