|
18 | 18 | */ |
19 | 19 | package org.apache.struts2.components; |
20 | 20 |
|
| 21 | +import jakarta.servlet.http.HttpServletRequest; |
| 22 | +import jakarta.servlet.http.HttpServletResponse; |
21 | 23 | import org.apache.struts2.util.ValueStack; |
22 | 24 | import org.apache.struts2.views.annotations.StrutsTag; |
23 | 25 | import org.apache.struts2.views.annotations.StrutsTagAttribute; |
24 | 26 |
|
25 | | -import jakarta.servlet.http.HttpServletRequest; |
26 | | -import jakarta.servlet.http.HttpServletResponse; |
27 | | - |
28 | 27 | /** |
29 | 28 | * <!-- START SNIPPET: javadoc --> |
30 | 29 | * <p>Render an HTML input field of type text</p> |
|
50 | 49 | * </pre> |
51 | 50 | */ |
52 | 51 | @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) |
| 52 | + name = "textfield", |
| 53 | + tldTagClass = "org.apache.struts2.views.jsp.ui.TextFieldTag", |
| 54 | + description = "Render an HTML input field of type text", |
| 55 | + allowDynamicAttributes = true) |
57 | 56 | public class TextField extends UIBean { |
58 | 57 | /** |
59 | 58 | * The name of the default template for the TextFieldTag |
60 | 59 | */ |
61 | 60 | final public static String TEMPLATE = "text"; |
62 | 61 |
|
63 | | - |
64 | 62 | protected String maxlength; |
65 | 63 | protected String readonly; |
66 | 64 | protected String size; |
@@ -95,27 +93,22 @@ protected void evaluateExtraParams() { |
95 | 93 |
|
96 | 94 | } |
97 | 95 |
|
98 | | - @StrutsTagAttribute(description="HTML maxlength attribute", type="Integer") |
| 96 | + @StrutsTagAttribute(description = "HTML maxlength attribute", type = "Integer") |
99 | 97 | public void setMaxlength(String maxlength) { |
100 | 98 | this.maxlength = maxlength; |
101 | 99 | } |
102 | 100 |
|
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") |
| 101 | + @StrutsTagAttribute(description = "Whether the input is readonly", type = "Boolean", defaultValue = "false") |
109 | 102 | public void setReadonly(String readonly) { |
110 | 103 | this.readonly = readonly; |
111 | 104 | } |
112 | 105 |
|
113 | | - @StrutsTagAttribute(description="HTML size attribute", type="Integer") |
| 106 | + @StrutsTagAttribute(description = "HTML size attribute", type = "Integer") |
114 | 107 | public void setSize(String size) { |
115 | 108 | this.size = size; |
116 | 109 | } |
117 | 110 |
|
118 | | - @StrutsTagAttribute(description="Specifies the html5 type element to display. e.g. text, email, url", defaultValue="text") |
| 111 | + @StrutsTagAttribute(description = "Specifies the html5 type element to display. e.g. text, email, url", defaultValue = "text") |
119 | 112 | public void setType(String type) { |
120 | 113 | this.type = type; |
121 | 114 | } |
|
0 commit comments