1 48 49 package org.jpublish.component; 50 51 import java.io.IOException ; 52 53 import org.jpublish.RequestContext; 54 import org.jpublish.view.ViewRenderException; 55 56 61 62 public class ContentComponent extends AbstractComponent { 63 64 private static final String NAME = "Content"; 65 private static final String DESCRIPTION = "Display content."; 66 67 70 71 public ContentComponent() { 72 this.name = NAME; 73 this.description = DESCRIPTION; 74 } 75 76 85 86 public String render(String path, RequestContext context) 87 throws IOException , ViewRenderException { 88 return renderView(path, context); 89 } 90 91 } 92 | Popular Tags |