}
@Override
protected void doEncodeBegin(javax.faces.context.ResponseWriter writer, FacesContext ctx, UIComponent component) throws IOException
{
UIDownload download = (UIDownload) component;
if (!download.isRendered())
return;
if (download.getSrc() != null)
{
ViewUrlBuilder builder = new ViewUrlBuilder(download.getSrc(), null);
for (Object child : download.getChildren())
{
if (child instanceof UIParameter)
{
builder.addParameter((UIParameter) child);
}