You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticfinalStringTWEET_VALIDATION = "Twitter limits Tweet length to 140 characters making the definition of a “character” and how they are counted central to any Twitter application";
Copy file name to clipboardexpand all lines: docs/index.md
+118-2
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ To render a field as a TextField the developer must add the [@TextField](../src/
24
24
| fieldAddonLeft | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the left side of the Text Field |
25
25
| fieldAddonRight | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the right side of the Text Field |
26
26
27
-
The code below is an example using the TextField annotation. Feel free to try this code snipet:
27
+
The code below is an example using the TextField annotation. Feel free to try this code snippet:
28
28
29
29
```Java
30
30
importjava.io.Serializable;
@@ -64,8 +64,9 @@ public class DemoForm implements Serializable {
64
64
65
65
```
66
66
67
+
1- Demo TextField
68
+
67
69

68
-
<center>*1- Demo TextField*</center>
69
70
70
71
71
72
@@ -84,6 +85,54 @@ The given component can be used to fill numeric values, it can be applied to fie
84
85
| fieldAddonLeft | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the left side of the Number Field |
85
86
| fieldAddonRight | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the right side of the Number Field |
86
87
88
+
The code below is an example using the Number annotation. Feel free to try this code snippet:
89
+
90
+
91
+
```Java
92
+
importjava.io.Serializable;
93
+
94
+
importio.asfjava.ui.core.form.Number;
95
+
96
+
publicclassDemoFormimplementsSerializable {
97
+
98
+
@Number(title="Average", description="This a double")
For some use cases, the developer need to use a encrypted UI input field to fill the user value. So he can use [@Password](../src/main/java/io/asfjava/ui/core/form/Password.java).
@@ -102,6 +151,32 @@ For some use cases, the developer need to use a encrypted UI input field to fill
102
151
| fieldAddonLeft | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the left side of the Password Field |
103
152
| fieldAddonRight | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the right side of the Password Field |
104
153
154
+
The code below is an example using the Password annotation. Feel free to try this code snippet:
155
+
156
+
```Java
157
+
158
+
importjava.io.Serializable;
159
+
160
+
importio.asfjava.ui.core.form.Password;
161
+
162
+
publicclassDemoFormimplementsSerializable {
163
+
164
+
@Password(title="Password", description="Fill your password")
165
+
privateString password;
166
+
167
+
publicStringgetPassword() {
168
+
return password;
169
+
}
170
+
171
+
}
172
+
173
+
```
174
+
175
+
3- Demo PasswordField
176
+
177
+

178
+
179
+
105
180
### TextArea
106
181
107
182
The TextArea component is a multiline text field with a border and optional scroll bars. To use a this component the developer must use [@TextArea](../src/main/java/io/asfjava/ui/core/form/TextArea.java)
@@ -118,3 +193,44 @@ The TextArea component is a multiline text field with a border and optional scro
118
193
| noTitle | Boolean | Set to true to hide title |
119
194
| fieldAddonLeft | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the left side of the Text Area |
120
195
| fieldAddonRight | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the right side of the Text Area |
196
+
197
+
The code below is an example using the TextArea annotation. Feel free to try this code snippet:
198
+
199
+
```Java
200
+
201
+
importjava.io.Serializable;
202
+
203
+
importio.asfjava.ui.core.form.TextArea;
204
+
205
+
publicclassDemoFormimplementsSerializable {
206
+
207
+
@TextArea(title="Comment", description="Add your Comment here", placeHolder="fill your comment please")
208
+
privateString comment;
209
+
210
+
@TextArea(title="Tweet", placeHolder="This message will be tweeted", maxLenght=140, validationMessage=Messages.TWEET_VALIDATION)
0 commit comments