diff --git a/src/main/java/org/minimalj/frontend/impl/json/JsonPasswordField.java b/src/main/java/org/minimalj/frontend/impl/json/JsonPasswordField.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/minimalj/frontend/impl/json/JsonPasswordField.java
+++ b/src/main/java/org/minimalj/frontend/impl/json/JsonPasswordField.java
@@ -7,13 +7,13 @@ import org.minimalj.frontend.Frontend.InputComponentListener;
 import org.minimalj.frontend.Frontend.PasswordField;
 
 public class JsonPasswordField extends JsonInputComponent<char[]> implements PasswordField {
-	private static final String MAX_LENGTH = "maxLength";
 	
 	private InputComponentListener changeListener;
 	
 	public JsonPasswordField(int maxLength, InputComponentListener changeListener) {
-		super("PasswordField", changeListener);
-		put(MAX_LENGTH, maxLength);
+		super("TextField", changeListener);
+		put(JsonTextField.INPUT_TYPE, "password");
+		put(JsonTextField.MAX_LENGTH, maxLength);
 		this.changeListener = changeListener;
 	}
JsonPasswordField: no need for special field type