code: public String getType() {
  		String mode = A.asString(getAttributes().get("mode"), "badge");
  		return mode.equals("edit") ? "text" : "hidden";
  	}
docs: Method added to prevent AngularFaces from setting the type