1 Reply Latest reply on Mar 15, 2011 12:54 AM by jblbecarelli

    How setup locale at session sturtup

    jblbecarelli

      Hello ,
      i would set locate when session startup analyzing the request url (ess. xxx.xxx.es set spanish locate) but in seam component at startup


      httpServletRequest retrived from FacesContext is null.


      How can i see the request URL at session startup ??


      thank for all

        • 1. Re: How setup locale at session sturtup
          jblbecarelli
          if may be useful i have found this solution:

          a method in component with
          @Observer(value = "org.jboss.seam.beforePhase")
          where i can see HttpServletRequest from ServletContexts that not is null.
          At this point , i can operate with my logic for setup the correct language....