com.ja.smarkdown.jsf.DataMarkdownComponent Maven / Gradle / Ivy
package com.ja.smarkdown.jsf;
import java.io.IOException;
import java.io.PrintWriter;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
@FacesComponent(value = "data-markdown")
public class DataMarkdownComponent extends UIComponentBase {
@Override
public String getFamily() {
return "dataMarkdownComponent";
}
@Override
public void encodeBegin(final FacesContext context) throws IOException {
final String value = (String) getAttributes().get("value");
final PrintWriter out = new PrintWriter(context.getResponseWriter());
out.println("");
out.println("");
out.println(" ");
}
}