1 5 package org.exoplatform.portlets.content.explorer.renderer.html; 6 7 import java.io.IOException ; 8 import javax.faces.component.UIComponent; 9 import javax.faces.context.FacesContext; 10 import javax.faces.context.ResponseWriter; 11 import org.exoplatform.faces.core.renderer.html.HtmlBasicRenderer; 12 import org.exoplatform.portlets.content.explorer.component.UIContentViewer; 13 14 18 public class DefaultContentRenderer extends HtmlBasicRenderer { 19 final public void encodeBegin( FacesContext context, UIComponent component ) throws IOException { 20 UIContentViewer uiDisplayer = (UIContentViewer) component; 21 ResponseWriter w = context.getResponseWriter() ; 22 w.write("<div>") ; 23 w. write("We do not support this format currently.") ; 24 w. write("<a HREF='" + uiDisplayer.getContent() + "'>click</a> to download") ; 25 w.write("</div>") ; 27 } 28 } | Popular Tags |