mirror of
https://github.com/apache/struts.git
synced 2026-08-06 07:06:58 +00:00
Extends blank app to demonstrate the new possibilities
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
|
||||
package example;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <code>Set welcome message.</code>
|
||||
*/
|
||||
@@ -58,4 +61,8 @@ public class HelloWorld extends ExampleSupport {
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public List<YesNo> getValues() {
|
||||
return Arrays.asList(YesNo.values());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package example;
|
||||
|
||||
public enum YesNo {
|
||||
YES, NO
|
||||
}
|
||||
@@ -3,3 +3,5 @@ requiredstring = ${getText(fieldName)} is required.
|
||||
password = Password
|
||||
username = User Name
|
||||
Missing.message = This feature is under construction. Please try again in the next interation.
|
||||
test-yes=Yo
|
||||
test-no=Nein
|
||||
|
||||
@@ -24,5 +24,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<s:checkboxlist name="test" list="values" listLabelKey="'test-' + name().toLowerCase()" />
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user