there is every day something new to learn :)
Thanks
Amedeo
On 03/nov/08, at 21:00, Chuck Hill wrote:
WOApplication
.application().pageWithName(INPGNotSupportedBrowser.class.getName(),
context );
On Nov 3, 2008, at 11:54 AM, Amedeo Mantica wrote:
ok, but I'm in the session...
how can i call pageWithName without instantiating a new WOComponent?
Amedeo
On 03/nov/08, at 20:52, Chuck Hill wrote:
On Nov 3, 2008, at 11:48 AM, Amedeo Mantica wrote:
thanks Chuck,
can I ask why is bad to call new?
It will totally confuse WO and can cause exceptions in many
cases. NEVER do this.
Amedeo
On 03/nov/08, at 20:43, Chuck Hill wrote:
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 (Webobjects-
[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
--
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
--
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]