package de.jformchecker.elements;

import java.util.Map;

import de.jformchecker.FormCheckerElement;
import de.jformchecker.TagAttributes;

public class PasswordInput extends TextInput implements FormCheckerElement {

	public static PasswordInput build(String name) {
		PasswordInput i = new PasswordInput();
		i.name = name;
		return i;
	}

	@Override
	public String getInputTag(Map<String, String> attributes) {
		TagAttributes tagAttributes = new TagAttributes(attributes);
		tagAttributes.add(this.inputAttributes);
		return String.format(
				"<input " + buildAllAttributes(tagAttributes) + buildMaxLen()
						+ " type=\"password\" name=\"%s\" value=\"%s\">",
				name, (value == null ? "" : getValueHtmlEncoded()));
	}
	
	@Override
	public String getType() {
		return "password";
	}


}

@@ -131,16 +131,62 @@
 ributes;
+%0Aimport de.jformchecker.message.MessageSource;
 %0A%0Apublic
@@ -449,16 +449,70 @@
 tributes
+, MessageSource messageSource, boolean html5Validation
 ) %7B%0A%09%09Ta
@@ -819,17 +819,16 @@
 )));%0A%09%7D%0A
-%09
 %0A%09@Overr

fix override problem