git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6258 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-07-16 10:10:22 +00:00
parent a483738354
commit 76b5e2c489
2 changed files with 2 additions and 1 deletions

View File

@@ -171,6 +171,7 @@ public final class FacesHelper
id = id.replace(':', '_'); id = id.replace(':', '_');
id = id.replace(' ', '_'); id = id.replace(' ', '_');
id = id.replace('.', '_'); id = id.replace('.', '_');
id = id.replace('+', '_');
// TODO: check all other illegal characters - only allowed dash and underscore // TODO: check all other illegal characters - only allowed dash and underscore
// TODO: use regular expression to do check and replacment of characters // TODO: use regular expression to do check and replacment of characters

View File

@@ -722,7 +722,7 @@ public class UIUserSandboxes extends SelfRenderingComponent
out.write(name); out.write(name);
UIAVMLockIcon lockIcon = (UIAVMLockIcon)fc.getApplication().createComponent( UIAVMLockIcon lockIcon = (UIAVMLockIcon)fc.getApplication().createComponent(
UIAVMLockIcon.ALFRESCO_FACES_AVMLOCKICON); UIAVMLockIcon.ALFRESCO_FACES_AVMLOCKICON);
lockIcon.setId("lock_" + FacesHelper.makeLegalId(name)); lockIcon.setId("avmlock_" + Integer.toString(rowIndex));
lockIcon.setValue(sourcePath); lockIcon.setValue(sourcePath);
Utils.encodeRecursive(fc, lockIcon); Utils.encodeRecursive(fc, lockIcon);
out.write("</a>"); out.write("</a>");