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

serendip.struts.plugins.thymeleaf.diarect.FieldDialect Maven / Gradle / Ivy

There is a newer version: 1.2.0-RELEASE
Show newest version
/**
 *
 */
package serendip.struts.plugins.thymeleaf.diarect;

import java.util.LinkedHashSet;
import java.util.Set;

import org.thymeleaf.dialect.AbstractProcessorDialect;
import org.thymeleaf.processor.IProcessor;
import org.thymeleaf.templatemode.TemplateMode;

/**
 * diarect:sth.
 * 
 * @author A-pZ
 * @version 3.0.0.BETA03
 *
 */
public class FieldDialect extends AbstractProcessorDialect  {
	
    public static final String NAME = "Struts2Standard";
    public static final String PREFIX = "sth";
    public static final int PROCESSOR_PRECEDENCE = 1000;

	public FieldDialect(final TemplateMode templateMode, final String dialectPrefix) {
		super(NAME, PREFIX, PROCESSOR_PRECEDENCE);
	}
	
	@Override
    public Set getProcessors(final String dialectPrefix) {
		Set processors = new LinkedHashSet();
		processors.add(new FieldErrorAttributeProcessor(dialectPrefix));
		
		return processors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy