incubator-adffaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiang Fan" <johnqiang...@gmail.com>
Subject GoLinkRenderer calls writeURIAttribute to render name and id, why?
Date Tue, 28 Nov 2006 21:45:42 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message