0 Replies Latest reply on Jun 17, 2010 5:49 AM by Janaki J

    LocaleSelector problem in TestNG

    Janaki J Newbie

      Hi,

      I have specified supported locales in faces-config.xml as follows,

      <application>
            <locale-config>
               <default-locale>en_US</default-locale>
               <supported-locale>it_IT</supported-locale>
               <supported-locale>de_DE</supported-locale>
               <supported-locale>en_US</supported-locale>
               <supported-locale>en_GB</supported-locale>        
               <supported-locale>fr_FR</supported-locale>
               <supported-locale>fr_CA</supported-locale>
            </locale-config>
            <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
         </application>

      But when I am trying to access localeSelector.getSupportedLocales() through TestNG, then it returns only 'en'. But it works fine when I run application through application server.

      I gues somehow testNG is not able to load faces-config.xm

      I am not able to figure out where is the actual problem.

      Please help me out if anybodies knows.

      Thanks in advance !!

      Janaki J