|
50 | 50 | * </pre>
|
51 | 51 | */
|
52 | 52 | @StrutsTag(
|
53 |
| - name="textfield", |
54 |
| - tldTagClass="org.apache.struts2.views.jsp.ui.TextFieldTag", |
55 |
| - description="Render an HTML input field of type text", |
56 |
| - allowDynamicAttributes=true) |
| 53 | + name = "textfield", |
| 54 | + tldTagClass = "org.apache.struts2.views.jsp.ui.TextFieldTag", |
| 55 | + description = "Render an HTML input field of type text", |
| 56 | + allowDynamicAttributes = true) |
57 | 57 | public class TextField extends UIBean {
|
58 | 58 | /**
|
59 | 59 | * The name of the default template for the TextFieldTag
|
60 | 60 | */
|
61 | 61 | final public static String TEMPLATE = "text";
|
62 | 62 |
|
63 |
| - |
64 | 63 | protected String maxlength;
|
65 | 64 | protected String readonly;
|
66 | 65 | protected String size;
|
@@ -95,27 +94,22 @@ protected void evaluateExtraParams() {
|
95 | 94 |
|
96 | 95 | }
|
97 | 96 |
|
98 |
| - @StrutsTagAttribute(description="HTML maxlength attribute", type="Integer") |
| 97 | + @StrutsTagAttribute(description = "HTML maxlength attribute", type = "Integer") |
99 | 98 | public void setMaxlength(String maxlength) {
|
100 | 99 | this.maxlength = maxlength;
|
101 | 100 | }
|
102 | 101 |
|
103 |
| - @StrutsTagAttribute(description="Deprecated. Use maxlength instead.", type="Integer") |
104 |
| - public void setMaxLength(String maxlength) { |
105 |
| - this.maxlength = maxlength; |
106 |
| - } |
107 |
| - |
108 |
| - @StrutsTagAttribute(description="Whether the input is readonly", type="Boolean", defaultValue="false") |
| 102 | + @StrutsTagAttribute(description = "Whether the input is readonly", type = "Boolean", defaultValue = "false") |
109 | 103 | public void setReadonly(String readonly) {
|
110 | 104 | this.readonly = readonly;
|
111 | 105 | }
|
112 | 106 |
|
113 |
| - @StrutsTagAttribute(description="HTML size attribute", type="Integer") |
| 107 | + @StrutsTagAttribute(description = "HTML size attribute", type = "Integer") |
114 | 108 | public void setSize(String size) {
|
115 | 109 | this.size = size;
|
116 | 110 | }
|
117 | 111 |
|
118 |
| - @StrutsTagAttribute(description="Specifies the html5 type element to display. e.g. text, email, url", defaultValue="text") |
| 112 | + @StrutsTagAttribute(description = "Specifies the html5 type element to display. e.g. text, email, url", defaultValue = "text") |
119 | 113 | public void setType(String type) {
|
120 | 114 | this.type = type;
|
121 | 115 | }
|
|
0 commit comments