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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to