1 Reply Latest reply on Apr 19, 2007 4:29 PM by pmuir

    time zone in Seam

    zzztimbo

      Is there an example I can look at where time zone information is saved with the user account in a Seam application. For instance, when a user registers, they select their time zone from a pulldown. It is saved. All time stamp information in the application then reflects this fact for this user.

        • 1. Re: time zone in Seam
          pmuir

          No. Something like this should work:

          @In User user;
          @In TimeZone timeZone;
          
          @Observer("org.jboss.seam.timeZoneSelected")
          public updateTimeZone() {
           user.setTimeZone(timeZone);
          }


          You'll need to make sure the changes to User get persisted.