Go Back   SmartClient Forums > Smart GWT Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 5th Jun 2012, 21:57
satish babu satish babu is offline
Registered Developer
 
Join Date: Dec 2011
Posts: 6
Default TimeZone getting problem using smart gwt

Hai ,
I want to provide TimeZone settings in my application(client application), So, I need to get the Time Zones from the browser using smart Gwt. Please tell me the methods for getting time zones. Actually I have written java coding in smart gwt application as follows,

String timezones[]=java.util.TimeZone.getAvailableIDs();

for(int i=0;i<(timezones.length)-1;i++)
{

System.out.println(timezones[i]);

}
but it is not worked out and it is throwing an Exception as follows...
1.
[ERROR] [timezoneproject] Line 32: No source code is available for type java.util.TimeZone; did you forget to inherit a required module
2.
[ERROR] [timezoneproject] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly


Please give me a solution for this issue.
Thanks

Last edited by satish babu; 7th Jun 2012 at 01:23..
Reply With Quote
  #2  
Old 6th Jun 2012, 11:01
sthirunav sthirunav is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 22
Default

java.util.Timezone is not supported by GWT.

Look at the TimeZoneConstants and TimeZone api docs.

Thiru.
Reply With Quote
  #3  
Old 6th Jun 2012, 20:53
satish babu satish babu is offline
Registered Developer
 
Join Date: Dec 2011
Posts: 6
Default

Thanks Thiru, But how can I get browser time Zones . I searched all apis but I didn't get solution for that Pls help me for regarding this issue.
Actually I want provide time zone settings on my client side application and I am using Smart Gwt.

Thanks

Last edited by satish babu; 7th Jun 2012 at 01:24..
Reply With Quote
  #4  
Old 7th Jun 2012, 05:52
sthirunav sthirunav is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 22
Default

What do you mean by browser Timezone??

Could you explain it with an example what you are trying to achieve ?
Reply With Quote
  #5  
Old 8th Jun 2012, 22:00
satish babu satish babu is offline
Registered Developer
 
Join Date: Dec 2011
Posts: 6
Default

Hai Thiru Good Morning,
I want to change my application date and time as per browser time zone that means when I select particular region language of browser my application time also should be changed to that particular time zone. This is my requirement, using gwt and smart Gwt. Pls can you give solution for this.

Thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem using smart gwt 3.0 with minor changes to a project from showcase arvindikchari Smart GWT Technical Q&A 2 24th May 2012 10:28
problem smart GWT dragon17 Smart GWT Technical Q&A 0 25th Apr 2012 10:17
Microsoft Windows Internet Explorer 9 supported? evansmith1 Smart GWT Technical Q&A 9 6th Feb 2012 09:48
The Smart GWT FAQ Isomorphic Smart GWT Technical Q&A 0 27th Oct 2009 17:41

© 2010,2011 Isomorphic Software. All Rights Reserved