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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/amedeomailing%40insigno.it
This email sent to [EMAIL PROTECTED]
_______________________________________________
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/chill%40global-village.net
This email sent to [EMAIL PROTECTED]
--
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]