[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 Nov 26 09:09:35 EST 2009


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

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

If the default locale is set in the faces-config.xml - then <f:view locale="en"> will be ignored.

When there are several <f:view>s on the page - JSF on server displays only the last one, VPE displays all of them. To my mind, we should display the correct locale for each <f:view>, because it'll be convenient, on the other hand it's not common practice to have several <f:view> at the same time. If it's not much time consuming I'l try to make separate locale for each <f:view> otherwise it'll be one locale for the whole page. 

Also we should manage messages from bundles that might be specified outside the <f:view> tag.

> 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.CR1
>
>
> 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