Author: mputz
Date: 2008-06-06 09:23:18 -0400 (Fri, 06 Jun 2008)
New Revision: 10934
Modified:
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/UIRole.java
branches/JBoss_Portal_Branch_2_6/core-identity/src/resources/portal-identity-war/WEB-INF/jsf/admin/roles.xhtml
Log:
fix for JBPORTAL-2013
fixes the defect that the role admin portlet doesn't work properly for roles with
umlauts / special characters
Modified:
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/UIRole.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/UIRole.java 2008-06-06
13:18:59 UTC (rev 10933)
+++
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/UIRole.java 2008-06-06
13:23:18 UTC (rev 10934)
@@ -22,6 +22,7 @@
******************************************************************************/
package org.jboss.portal.core.identity.ui;
+import org.jboss.portal.common.text.FastURLEncoder;
import org.jboss.portal.identity.Role;
/**
@@ -88,4 +89,9 @@
{
return name.replace("\\", "\\\\");
}
+
+ public String getUTF8RoleName()
+ {
+ return FastURLEncoder.getUTF8Instance().encode(getEscapedName());
+ }
}
Modified:
branches/JBoss_Portal_Branch_2_6/core-identity/src/resources/portal-identity-war/WEB-INF/jsf/admin/roles.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core-identity/src/resources/portal-identity-war/WEB-INF/jsf/admin/roles.xhtml 2008-06-06
13:18:59 UTC (rev 10933)
+++
branches/JBoss_Portal_Branch_2_6/core-identity/src/resources/portal-identity-war/WEB-INF/jsf/admin/roles.xhtml 2008-06-06
13:23:18 UTC (rev 10934)
@@ -39,15 +39,15 @@
</f:facet>
<h:commandLink action="#{editrolemgr.editRole}">
<h:outputText value="#{bundle.IDENTITY_MANAGEMENT_EDIT_ROLE}"
styleClass="actionRename"/>
- <f:param name="currentRole" value="#{role.escapedName}"/>
+ <f:param name="currentRole" value="#{role.UTF8RoleName}"/>
</h:commandLink>
| <h:commandLink action="#{rolemanagementbean.viewRoleMembers}"
styleClass="actionPreferences">
<h:outputText value="#{bundle.IDENTITY_MANAGEMENT_ROLE_MEMBERS}"/>
- <f:param name="currentRole" value="#{role.escapedName}"/>
+ <f:param name="currentRole" value="#{role.UTF8RoleName}"/>
</h:commandLink>
| <h:commandLink action="#{rolemanagementbean.deleteRole}"
styleClass="actionDelete">
<h:outputText value="#{bundle.IDENTITY_MANAGEMENT_ACTION_DELETE}"/>
- <f:param name="currentRole" value="#{role.escapedName}"/>
+ <f:param name="currentRole" value="#{role.UTF8RoleName}"/>
</h:commandLink>
</h:column>
</h:dataTable>
Show replies by date