This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Daniel Reznick
Ranch Hand
Posts: 50
Eclipse IDE Google App Engine jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic