You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2009/01/15 19:51:29 UTC
[Tapestry Wiki] Update of "Tapstry5First project with Tapestry5,
Spring and Hibernate" by Brian Forester
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by Brian Forester:
http://wiki.apache.org/tapestry/Tapstry5First_project_with_Tapestry5,_Spring_and_Hibernate
The comment on the change is:
Thought I'd add some information regarding later versions of Tapestry.
------------------------------------------------------------------------------
We have now a blank application implementing a simplistic login with Tapestry Spring and Hibernate.
+
+ = Notes about Later Versions of Tapestry (5.0.18) =
+ The ApplicationState annotation no longer works with primitive types. This means that the current use of ApplicationState with the String Java type will fail with a runtime exception. A simple work around would be to use in the Login class the following code:
+ {{{
+ @ApplicationState
+ private Map<String, String> stateInfo;
+
+ public Login() {
+ stateInfo = new HashMap<String, String>();
+ }
+
+ public String getLogin() {
+ return stateInfo.get("login");
+ }
+
+ @Validate("required")
+ public void setLogin(String login) {
+ stateInfo.put("login", login);
+ }
+ }}}
+ For more information regarding this issue: [http://thread.gmane.org/gmane.comp.java.tapestry.user/59529/focus=59535];
+
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org