[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5218) Attribure locale isn't supported in f:view

Denis Maliarevich (JIRA) jira-events at lists.jboss.org
Thu Feb 4 07:03:19 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-5218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12510333#action_12510333 ] 

Denis Maliarevich commented on JBIDE-5218:
------------------------------------------

   The main problem with JUnits for locales is that on different environments there are different values for  defalut locales. They are set in Java System Properties as "user.language" and "user.country". Based on them eclipse's "osgi.nl" property is set to the appropriate locale string.
   Eclipse's NL is a bootloader constant which is setup the default language during startup. We have to restart the application to get the changes applied -- the messages are bound in only once during the startup (at some point) and we are not able to change them by setting a property in the same instance of eclipse. That's why we cannot change the default locale manually from JUnit's setUp() and tearDown() methods.

> Attribure locale isn't supported in f:view
> ------------------------------------------
>
>                 Key: JBIDE-5218
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5218
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Visual Page Editor Templates
>    Affects Versions: 3.1.0.M4
>            Reporter: Maxim Areshkau
>            Assignee: Denis Maliarevich
>            Priority: Minor
>             Fix For: 3.1.0.CR2
>
>
> attribute locale isn't supported for f:view isn't supported in vpe.
> Test case
> 1) open page in VPE jsfDefaultLocale.jsp from https://svn.jboss.org/repos/jbosstools/trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/i18nTest
> 2) remove default locale from faces-config.xml
> 3) refresh page in vpe and view it. It will english.
> 4) add to f:view locale="de", page still on english.
> ASSERT page should be on German, but it on english
> 5) set locale="#{bean.locale}"
> 6) add to EL expresions value bean.locale=de
> ASSERT messages should be on German, but they on English

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list