regarding xforms

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

regarding xforms

Laxmi narayana-2
Hi,
I am new for xforms.we are using ops server.my problem is i have to get locale
of the liferay server.how to provide code for that.
public class ListLanguage extends SimpleProcessor{
                 public void generateData(PipelineContext context, ContentHandler contentHandler) throws SAXException,IOException
                {
here how to get locale like en_US.
}
}
please help me.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: regarding xforms

Alessandro Vernet
Administrator
On 8/1/07, [hidden email] <[hidden email]> wrote:
> I am new for xforms.we are using ops server.my problem is i have to get locale
> of the liferay server.how to provide code for that.
> public class ListLanguage extends SimpleProcessor{
>                  public void generateData(PipelineContext context, ContentHandler contentHandler) throws SAXException,IOException
>                 {
> here how to get locale like en_US.
> }
> }

What about: Locale.getDefault().

This would give you the locale for the instance of the JVM running
Liferay. But this may not be what you are looking for. You may want to
get the locale of the current user logged into Liferay. If this is the
case, you may have a better chance asking this question in a Liferay
mailing list.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws