Fix for ALF-11394 - Using LinkGenerator results in duplicate JSF id's in UIPropertySheet

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31976 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-11-15 12:07:19 +00:00
parent b9ea293f31
commit 9f5436bf80

View File

@@ -57,7 +57,7 @@ public class LinkGenerator extends BaseComponentGenerator
component = context.getApplication().createComponent(ComponentConstants.JAVAX_FACES_INPUT); component = context.getApplication().createComponent(ComponentConstants.JAVAX_FACES_INPUT);
component.setRendererType(ComponentConstants.JAVAX_FACES_TEXT); component.setRendererType(ComponentConstants.JAVAX_FACES_TEXT);
} }
FacesHelper.setupComponentId(context, component, id); FacesHelper.setupComponentId(context, component, id);
return component; return component;
} }
@@ -85,7 +85,7 @@ public class LinkGenerator extends BaseComponentGenerator
if (component.getRendererType().equals("javax.faces.Link") == true) if (component.getRendererType().equals("javax.faces.Link") == true)
{ {
// Add child text component // Add child text component
UIOutput output = createOutputTextComponent(context, "label_" + component.getId()); UIOutput output = createOutputTextComponent(context, "linklabel_" + component.getId());
output.setValueBinding("value", component.getValueBinding("value")); output.setValueBinding("value", component.getValueBinding("value"));
component.getChildren().add(output); component.getChildren().add(output);
} }