



































//在此处要添加form的前缀
_clientId = namingContainer.getClientId(context)
+ NamingContainer.SEPARATOR_CHAR + id;

} else ...{
_clientId = id;
}

Renderer renderer = getRenderer(context);

if (renderer != null) ...{
_clientId = renderer.convertClientId(context, _clientId);
}


if (idWasNull) ...{
context.getExternalContext().log(
"WARNING: Component "
+ _clientId
+ " just got an automatic id, because there was no id assigned yet. "
+ "If this component was created dynamically (i.e. not by a JSP tag) you should assign it an "
+ "explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot "
+ "component right after creation!");
}
return _clientId;
}

























jsf的客户端的id生成,_clientId = namingContainer.getClientId(context) + NamingContainer.SEPARATOR_CHAR + id;
在此处要添加前缀,所以生成的客户端表示都是这样的form:id