[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-173) Problem when change language in portal
Minh Hoang TO (JIRA)
jira-events at lists.jboss.org
Fri Nov 6 04:26:05 EST 2009
[ https://jira.jboss.org/jira/browse/GTNPORTAL-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493500#action_12493500 ]
Minh Hoang TO commented on GTNPORTAL-173:
-----------------------------------------
The issue occurs only if the message popup keeps openning while user switches portal language. There is no problem if user closes the popup , then open it again.
Root cause is the application message defined in various implements of Validator. Such a message consisted internationalized info as well as parameters retrieved programmatically
Object[] args = {label, uiInput.getBindingField()};
throw new MessageException(new ApplicationMessage("EmptyFieldValidator.msg.empty-input", args,
ApplicationMessage.WARNING));
From above code snippet, we could see that if user switches from language L1 ---> L2 , while keeping the message popup opened, the value of 'args' is always in the language L1.
To solve the issue, we need to get ( at runtime ) the 'I18n' KEYs corresponding to data wrapped in 'args' . That seems to me impossible to get a general solution.
On the other hand, i find that context of the issue is not logical ( switching language while an error message is showed )
> Problem when change language in portal
> --------------------------------------
>
> Key: GTNPORTAL-173
> URL: https://jira.jboss.org/jira/browse/GTNPORTAL-173
> Project: GateIn Portal
> Issue Type: Bug
> Reporter: Hang Nguyen
> Assignee: Minh Hoang TO
> Fix For: 3.0.0-CR01
>
> Attachments: 3.jpg
>
>
> Steps:
> - Login by root
> - Go to New Staff --> click save button --> show message --> OK
> - Change language to VNEse --> Ok --> continue change other language --> display two language in message --> Error. See attach file
--
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 gatein-issues
mailing list