serendip.struts.plugins.thymeleaf.diarect.FieldDialect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of struts2-thymeleaf3-plugin Show documentation
Show all versions of struts2-thymeleaf3-plugin Show documentation
Struts2-Thymeleaf3-plugin for Struts2.5.x. This plugin is unofficial plugin.
/**
*
*/
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;
}
}