All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ja.smarkdown.jsf.DataMarkdownComponent Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
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("
"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy