Re: returning another component or page
Re: returning another component or page
- Subject: Re: returning another component or page
- From: Chuck Hill <email@hidden>
- Date: Mon, 3 Nov 2008 11:43:21 -0800
On Nov 3, 2008, at 11:39 AM, Amedeo Mantica wrote:
may be this piece code I made correct?
I override appendToResponse methon in Session
It works, but I don't know if it is correct..
Can you confirm?
Thanks
Amedeo
public void appendToResponse(WOResponse response, WOContext
context) {
if ( this.browser().isIE() ) {
INPGNotSupportedBrowser nextPage = new
INPGNotSupportedBrowser(context);
I'd say that using new with a WOComponent is a Very Bad Idea. Use
pageWithName(). Other than that, this code looks OK.
Chuck
response.setContent( nextPage.generateResponse().content() );
}
super.appendToResponse(response, context);
}
On 03/nov/08, at 18:31, Amedeo Mantica wrote:
I have this need,
I can do it in Java script, but I prefer a server side solutions,
I have a boolean flag in my session, if this flag become false (or
true) i need to switch all my requests outsite my woapplcation (a
redirect)
pratically I have to put a redirect in my session. I suppose to do
it via the awake or appendToResponse methods... I'm looking at docs
but at the moment I'm unable to do it, any hint?
Thank You
Amedeo
_______________________________________________
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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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