[jira] [Created] (PLUTO-711) AbstractPortletConfigImpl.getSupportedLocales() does not parse languageIds

"Neil Griffin (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
Neil Griffin created PLUTO-711:
----------------------------------

             Summary: AbstractPortletConfigImpl.getSupportedLocales() does not parse languageIds
                 Key: PLUTO-711
                 URL: https://issues.apache.org/jira/browse/PLUTO-711
             Project: Pluto
          Issue Type: Bug
          Components: portlet container
    Affects Versions: 3.0.0
            Reporter: Neil Griffin
            Assignee: Neil Griffin
             Fix For: 3.0.1


Given the following portlet configuration:
{code:java|title=MyPortlet.java}
@PortletConfiguration(
   portletName = "myPortlet",
   supportedLocales = {"en_US", "de"}
)
{code}

Pluto does not parse {{en_US}} so that it equates to {{Locale.ENGLISH}}. A parsing mechanism needs to be introduce to look for the underscore and split the value into the languageCode ("en") and countryCode ("US") before creating a {{java.util.Locale}} object.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.