The value of the attribute on "name" on GoLink will end up mapping
up to "href" on some other link. So it really is a URI.
E.g., you need to use % encoding, not & encoding.
And "id" must equal "name".
-- Adam
On 11/28/06, Qiang Fan <[EMAIL PROTECTED]> wrote:
In GoLinkRenderer class, there is the following method:
@Override
protected void renderId(
FacesContext context,
UIComponent component) throws IOException
{
if (shouldRenderId(context, component))
{
String clientId = getClientId(context, component);
// For links, these are actually URI attributes
context.getResponseWriter().writeURIAttribute("id", clientId, "id");
context.getResponseWriter().writeURIAttribute("name", clientId, "id");
}
}
Why are id and name rendered as URI? Are the id and name used as URI in
javascript logic? I saw some similar code in several other classes too.
Thanks.
John Fan