Skip to Content
author's profile photo Former Member
Former Member

locale in Search Component

Hello All,

anyone knows how to get languages of the user that is accessing custom serach component (based od articel:> ??

ive tried to use IPortalComponentRequest request = (IPortalComponentRequest) dynPage.getPageContext().getRequest();in the method setDynPage() (as described in: 3A// )

but the problem is that setDynpage() is executed after renderComponent() method, so i cannot use this to get local of the user and depending on that set language-depending texts.

Do you know how can i solve it?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 30, 2005 at 01:40 PM

    Hi Karol,

    a possible method to retrieve the user is:


    This provides you access to the users locale.

    Regards Matthias

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Edmund,

      yes, unfortunately this function is (as far as I know) available with NW04 SPS12.

      Depending on your detailed needs, it might be helpfull to store the locale in the perstistence map during the first circuit.

      It will then be permanently available, but not in the first call. That stays an issue.

      I'm thinking about a better solution.

      Regards Matthias Röbig-Landau

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.