This page ist outdated !
We switched our code base to a REST based architecture.
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
@UrlBinding("/experimental/new/game") public class NewGameActionBean extends BaseActionBean implements ActionBean { private final static String JSP_NEWGAME = "/jsp/experimental/new_game.jsp"; private Game game = null; @DefaultHandler public Resolution defaultHandler() { return new ForwardResolution(JSP_NEWGAME); } public Resolution update() { if (this.game!=null) { this.setDebugString(game.toWebString()); } return new ForwardResolution(JSP_NEWGAME); } public Game getGame() { return game; } @ValidateNestedProperties({ @Validate(field="mainTitle", required=true, on="update") }) public void setGame(Game game) { this.game = game; } } |
...
Displays the error message for the field "mainTitle" of the property "game" (if an error exists).
Feel free to have a look at our real Source Code at Github: