Re: Session languages partially ignored with direct actions
Re: Session languages partially ignored with direct actions
- Subject: Re: Session languages partially ignored with direct actions
- From: Alexander Spohr <email@hidden>
- Date: Mon, 12 Jan 2004 12:19:47 +0100
hi groups,
Does anybody knows if I'm doing something wrong ?
Well, I've found a very simple workaround. I've added a call to
existingSession in each direct action, and voil`.
public WOActionResults defaultAction ()
{
this.existingSession (); // workaround
return pageWithName ("Main");
}
it does not really solve the problem if you want to avoid creating new
sessions. my app tries to delay session-creation until the user logs
in. but request.browserLanguages() does not really help because it does
not deliver the .lproj names.
It's a WebObjects' bug, I think. :)
not a bug. more an inconsistency. the problem is that WOSession works
the nextstep way by using English.lproj, German.lproj etc.
a clean/public conversion method would be useful to convert between
'en' and English, 'de' and German etc. there is a list
(Languages.plist) in JavaWebObjects.framework but no public api to use
it.
did anyone solve the problem to avoid session creation but using
templates/stringtables with different languages?
atze
_______________________________________________
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.