UIComponent parent = component.getParent();
return (parent != null) ? parent.getClientId(facesContext) : "";
}
private DnDScript buildClientScript(FacesContext facesContext, UIComponent component) {
DnDScript script = null;
String scriptName = getScriptName();
if (!"".equals(scriptName)) {
JSFunction function = new JSFunction(scriptName);
function.addParameter(component.getClientId(facesContext));
function.addParameter(getOptions(facesContext, component));