This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes How to pass client getTimezoneOffset before the managed bean is being constracted? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to pass client getTimezoneOffset before the managed bean is being constracted?" Watch "How to pass client getTimezoneOffset before the managed bean is being constracted?" New topic
Author

How to pass client getTimezoneOffset before the managed bean is being constracted?

Daniel Reznick
Ranch Hand

Joined: Oct 23, 2008
Posts: 50

Hi

I got a list of items that i present in <h:selectOneMenu on my page (the first page the user sees

the label that are show in the ><h:selectOneMenu are date + time , and the time itself is stored in the db in UTC without any + or - (e.g UTC +2)

In order to show the correct time in the labels of the ><h:selectOneMenu i'm adding the needed offset of the user timezone

the problem is that the ><h:selectOneMenu is being populated from the managed bean before i'm passing the offset from the xhtml page itself using jQuery $.post(

like this


any ideas how can i pass the TimezoneOffset to the application before the managed bean is loaded?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass client getTimezoneOffset before the managed bean is being constracted?
 
Similar Threads
Get date/time in a timezone corresponding to local time
How to prepopulate combo boxes on page startup
Using jQuery $.post() - Does it affect request.getRequestDispatcher?
Query regarding timezone
Questions (1) accessing managed bean directly and (2) using jQuery ajax functionality in my JSF page