Re: Working with Dates/Timezones

2012-08-03 Thread Joseph Lust
Jens,

Here is the TZ script from my hobby running site. It is a tad hackish (from 
4 years ago), set to update a hidden select menu in forms. I have not yet 
had any complaints about it's output, but I don't promise anything either. 
Hopefully you might find it helpful and can make a JSNI derivative if it 
meets your needs.


Sincerely,
Joseph

// original script by Josh Fraser (http://www.onlineaspect.com)
function calculate_time_zone() {
var rightNow = new Date();
var jan1 = new Date(rightNow.getFullYear(), 0, 1, 0, 0, 0, 0);  // jan 1st
var june1 = new Date(rightNow.getFullYear(), 6, 1, 0, 0, 0, 0); // june 1st
var temp = jan1.toGMTString();
var jan2 = new Date(temp.substring(0, temp.lastIndexOf(" ")-1));
temp = june1.toGMTString();
var june2 = new Date(temp.substring(0, temp.lastIndexOf(" ")-1));
var std_time_offset = (jan1 - jan2) / (1000 * 60 * 60);
var daylight_time_offset = (june1 - june2) / (1000 * 60 * 60);
var dst;
if (std_time_offset == daylight_time_offset) {
dst = "0"; // daylight savings time is NOT observed
} else {
// positive is southern, negative is northern hemisphere
var hemisphere = std_time_offset - daylight_time_offset;
if (hemisphere >= 0)
std_time_offset = daylight_time_offset;
dst = "1"; // daylight savings time is observed
}
var i;
// check just to avoid error messages (hidden select posted with forms)
if (document.getElementById('timezone_name')) {
for (i = 0; i < 
document.getElementById('timezone_name').options.length; i++) {
if (document.getElementById('timezone_name').options[i].value == 
convert(std_time_offset)+","+dst) {
document.getElementById('timezone_name').selectedIndex = i;
break;
}
}
}
}

function convert(value) {
var hours = parseInt(value);
   value -= parseInt(value);
value *= 60;
var mins = parseInt(value);
   value -= parseInt(value);
value *= 60;
var display_hours = hours;
// handle GMT case (00:00)
if (hours == 0) {
display_hours = "00";
} else if (hours > 0) {
// add a plus sign and perhaps an extra 0
display_hours = (hours < 10) ? "+0"+hours : "+"+hours;
} else {
// add an extra 0 if needed 
display_hours = (hours > -10) ? "-0"+Math.abs(hours) : hours;
}

mins = (mins < 10) ? "0"+mins : mins;
return display_hours+":"+mins;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kE7WaIj30O8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Working with Dates/Timezones

2012-08-03 Thread Joseph R Lust
Jens,

Here is the TZ script from my hobby running site. It is a tad hackish (from
4 years ago), set to update a hidden select menu in forms. I have not yet
had any complaints about it's output, but I don't promise anything either.
Hopefully you might find it helpful and can make a JSNI derivative if it
meets your needs.


Sincerely,
Joseph

// original script by Josh Fraser (http://www.onlineaspect.com)
function calculate_time_zone() {
var rightNow = new Date();
var jan1 = new Date(rightNow.getFullYear(), 0, 1, 0, 0, 0, 0);  // jan 1st
var june1 = new Date(rightNow.getFullYear(), 6, 1, 0, 0, 0, 0); // june 1st
var temp = jan1.toGMTString();
var jan2 = new Date(temp.substring(0, temp.lastIndexOf(" ")-1));
temp = june1.toGMTString();
var june2 = new Date(temp.substring(0, temp.lastIndexOf(" ")-1));
var std_time_offset = (jan1 - jan2) / (1000 * 60 * 60);
var daylight_time_offset = (june1 - june2) / (1000 * 60 * 60);
var dst;
if (std_time_offset == daylight_time_offset) {
dst = "0"; // daylight savings time is NOT observed
} else {
// positive is southern, negative is northern hemisphere
var hemisphere = std_time_offset - daylight_time_offset;
if (hemisphere >= 0)
std_time_offset = daylight_time_offset;
dst = "1"; // daylight savings time is observed
}
var i;
// check just to avoid error messages (hidden select posted with forms)
if (document.getElementById('timezone_name')) {
for (i = 0; i <
document.getElementById('timezone_name').options.length; i++) {
if (document.getElementById('timezone_name').options[i].value
== convert(std_time_offset)+","+dst) {
document.getElementById('timezone_name').selectedIndex = i;
break;
}
}
}
}

function convert(value) {
var hours = parseInt(value);
   value -= parseInt(value);
value *= 60;
var mins = parseInt(value);
   value -= parseInt(value);
value *= 60;
var display_hours = hours;
// handle GMT case (00:00)
if (hours == 0) {
display_hours = "00";
} else if (hours > 0) {
// add a plus sign and perhaps an extra 0
display_hours = (hours < 10) ? "+0"+hours : "+"+hours;
} else {
// add an extra 0 if needed
display_hours = (hours > -10) ? "-0"+Math.abs(hours) : hours;
}

mins = (mins < 10) ? "0"+mins : mins;
return display_hours+":"+mins;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to use several html instead of just one hosted html

2012-08-03 Thread Rob
Hi,

You can use an EntryPoint "dispatcher" if your application has multiple 
host pages.

->

public class EntryPointDispatcher implements EntryPoint {

  public void onModuleLoad() {

Log.debug("EntryPointDispatcher - onModuleLoad()");

try {

  // get the Host Page name
  Dictionary dictionary = Dictionary.getDictionary("Pages");
  String page = dictionary.get("page");

  Log.debug("Page name token: " + page);

  if (page.equals(NameTokens.mainPage)) {
MultiPageEntryPoint entrypoint = (MultiPageEntryPoint) 
GWT.create(MainPageEntryPoint.class);
entrypoint.onModuleLoad();
  }
  else if (page.equals(NameTokens.accountPage)) {
MultiPageEntryPoint entrypoint = (MultiPageEntryPoint) 
GWT.create(AccountPageEntryPoint.class);
entrypoint.onModuleLoad();
  }
  else if (page.equals(NameTokens.contactPage)) {
MultiPageEntryPoint entrypoint = (MultiPageEntryPoint) 
GWT.create(ContactPageEntryPoint.class);
entrypoint.onModuleLoad();
  }
} catch (Exception e) {
  Log.error("e: " + e);
  e.printStackTrace();

  Window.alert(e.getLocalizedMessage());
}
  }
}

->

Cheers
Rob

Kiahu.com


On Friday, August 3, 2012 11:43:38 AM UTC+10, tong123123 wrote:
>
> although this requirement seems strange, but maybe I need to change so.
> Currently, my gwt application has just one hosted html with 
> 
>
> this is perfectly normal.
> But now, I may need  to change it so that there is several html instead of 
> this only one hosted html.
> For example, 
> one html (or jsp) called simpeSearch.html
> another html called advancedSearch.html
>
> is it possible to much such silly change and how to do it?
>
> In fact, I also do not know the exact reason for this change, but it seems 
> related to embedded this search page to portlet (I do not know the detail 
> yet).
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dIS0ErtcPFcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT OpenLayers new website and showcase

2012-08-03 Thread Rob
Awesome, nice demos.

On Friday, August 3, 2012 4:41:26 AM UTC+10, Frank wrote:
>
> Just a quick note that we put some work in the website, and especially in 
> a new showcase for GWT-Openlayers (a GWT wrapper for the great OpenLayers 
> library) :
>
> New website : http://www.gwt-openlayers.org/
> New showcase : http://demo.gwt-openlayers.org/
>
> Feel free to make use of this library in your projects :-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BLpmyh7rxl8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is there any chart library for GWT?

2012-08-03 Thread Rob
Hi,

+1 for gwt-highcharts

Ext GWT (GXT) demo:

-> http://gwt-cx.com/extgwt-serendipity/Serendipity.html#Dashboards

Smart GWT demo:

-> http://gwt-cx.com/serendipity/Serendipity.html#Dashboards

Cheers
Rob

Kiahu.com

On Friday, August 3, 2012 5:25:06 PM UTC+10, Harald Pehl wrote:
>
> In my current project (https://code.google.com/p/tire-d8/) I'm using GWT 
> Highcharts (http://www.moxiegroup.com/moxieapps/gwt-highcharts/) 
>
> It's easy to use and very flexible in its configuration: 
> https://code.google.com/p/tire-d8/source/browse/trunk/src/main/java/name/pehl/tire/client/activity/view/QuickChartWidget.java
>  
>
> - Harald
>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UQhts3dG8nYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



help with celltable problem in devmode

2012-08-03 Thread David

I'm having a weird problem in most of my celltables that only happens in 
devmode.  Compiled javascript works just fine.  I'm using gwt2.3.3 and 
everything has been working for close to a year now.  The only thing that's 
changed recently is some css styling.  
Anyway, my cell tables initialize method  is failing with "String is not 
complete HTML (ends in non-inner-HTML context):"

Does this sound familiar.  Again, its only happening in devmode.

thanks


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/MlecxF4N098J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Suggesting a new mode: instant in-place changes of GWT Javascript code?

2012-08-03 Thread Jens
In general, if you can modularize your app into fairly small "development 
modules" you can get pretty good results with SuperDevMode when only 
developing on a single small module and not on entire application.
>
>
-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lG3EtRa7B7IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Suggesting a new mode: instant in-place changes of GWT Javascript code?

2012-08-03 Thread Jens

>
> I read https://developers.google.com/web-toolkit/articles/superdevmode -- 
> I am not sure if this is 100% what I had in mind but it is progress. At 
> least we are directly using Javascript. Anybody knows how long this 
> recompilation-step takes? I was hoping for an instant refresh by modifying 
> JS in-place...but maybe for some reason it is not technically possible.


Googles design goal was less then 10 seconds for nearly all projects 
(unless they are really really really big). But currently it seems like 
there are issues with some GWT code generators that can cause compilation 
to take longer than that. For some numbers take a look at the 
discussion: 
https://groups.google.com/d/topic/google-web-toolkit-contributors/RApHAZBy348/discussion

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0xVwUc9cXMsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Working with Dates/Timezones

2012-08-03 Thread Jens

>
> I hope that works for you. That is pretty much what we did when Germany 
> started to cause issues. I put the code for it up in an earlier post:
>
> https://groups.google.com/forum/?fromgroups#!topic/Google-Web-Toolkit/XDl_P_xOJPo
>

Yeah thats exactly the same class. Although I first used instance.getDay() 
instead of instance.getDate() and was a bit confused about the result :-)

Currently the only confusion that could happen is if a customer is on 
vacation in a different timezone and starts an action that causes the 
server to create a date and then send it back to the client to display it. 
The date will be a german date. But thats fine, as its pretty much like 
"working remotely in Germany from outside Germany" for now.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0kEilJWO3IAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Geocoder

2012-08-03 Thread Joseph Lust
The GeocoderAPI is just a web service. Use RequestBuilder to build a 
request along API guidelines and call it. If you want you could also dress 
it up to make it fancier, i.e. made you own getZip(Lat, Lon) and have that 
make the request. Of course, keep API rate limits and daily query limits in 
mind. For this reason, I prefer to do it server side so the repeat requests 
can be cashed, to stay within free limits.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/l_DnLKahBRgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Application cache searches cssmap

2012-08-03 Thread Joseph Lust
Just guessing, but since the SymbolMaps are used to deobfuscate the error 
messages from the obfuscated JS, perhaps these cssmaps are used for 
deobfuscating the obfuscated CSS class names? I wish the browser plugin let 
you see the CSS classes for their original names as that would get our UI 
folks to quit crying bloody murder over use of CssResource since they find 
the production output hard to read.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5BuRffSjJ6AJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Working with Dates/Timezones

2012-08-03 Thread Jens

>
> However, in my personal applications (RunPartner.com) logged run time of 
> day does matter. For this the user TZ is harvested from the browser, as 
> well as if it is DST or not, all just using a hidden JS block. 
>

How do you get that information? From my understanding you cant do that 
reliably.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-5nkGVaCT5gJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Working with Dates/Timezones

2012-08-03 Thread Joseph Lust
I hope that works for you. That is pretty much what we did when Germany 
started to cause issues. I put the code for it up in an earlier post:
https://groups.google.com/forum/?fromgroups#!topic/Google-Web-Toolkit/XDl_P_xOJPo


viel Glück,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ffNgvgehGz0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Suggesting a new mode: instant in-place changes of GWT Javascript code?

2012-08-03 Thread Dieter K
I read https://developers.google.com/web-toolkit/articles/superdevmode -- I 
am not sure if this is 100% what I had in mind but it is progress. At least 
we are directly using Javascript. Anybody knows how long this 
recompilation-step takes? I was hoping for an instant refresh by modifying 
JS in-place...but maybe for some reason it is not technically possible.



On Thursday, August 2, 2012 2:58:53 PM UTC+2, Paul Robinson wrote:
>
> Search for "super dev mode". It's available now in GWT 2.5RC1 
>
> Paul 
>
> On 01/08/12 15:23, Dieter K wrote: 
> > Dear all, 
> > 
> > This is hopefully starting a discussion that results in a GWT feature 
> request. Maybe/probably this was suggested before and is currently in the 
> works or it was rejected -- then I would like to learn about the reasons. 
> > 
> > Ok, here it goes: 
> > 
> > We have the 'development mode', which allows us to make changes to the 
> Java code and review while the application while running. Still it is 
> horribly slow, especially for things like graphics where one often prefers 
> to directly use production mode -- even though the compilation step is 
> equally time-consuming. I want to suggest a new 'mode' that fuses the 
> instant code changes of 'development mode' with the speed of 'production 
> mode'. 
> > 
> > The Eclipse Java compiler is able to perform an 'instant and continuous 
> in-place modification' of the Java byte-code while the users edits the Java 
> sources. It does not re-compile everything, just the changed part in a 
> single .class file. I think this concept should be easily transferable to 
> the GWT Javascript compiler. The GWT Javascript compiler doesn't have to be 
> able to modify any kind of JS code in-place -- just the code it generated 
> itself. Maybe one could even 'decorate' the generated JS or split it up in 
> several files to make this atomic in-place modification easier to 
> implement. The in-place modifiable JS does look anything like the JS 
> generated for the GWT 'production mode'. Still, it is valid JS. 
> > 
> > Most of a GWT projects code is contained in several unmodifiable jar 
> files. There is only a small amount of Java-source code that can be 
> actively edited. It should be quite easy and performant to build a model 
> that allows in-place modifications of the generated JS in real-time while 
> the user edits the Java sources. A browser refresh could be done at any 
> point since the JS is always up-to-date. 
> > 
> > 
> > Cheers, 
> > Dieter 
> > 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GQ4DPBqprdwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Working with Dates/Timezones

2012-08-03 Thread Jens
Thank you guys. As we currently operate in Germany only we have implemented 
a custom date serializer that does not de/serialize a date by using its 
milliseconds (date.getTime()) but instead uses the real date information 
(date.getYear(), date.getMonth(), ...). So its somewhat similar to 
Richard's approach.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/LxDkDR8jKdIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: which EventBus

2012-08-03 Thread Jens
Changing it would be a breaking change for existing apps, thats why 
Activity still uses the old EventBus in its start method. 

Maybe this will change in the future but if you think about that the 
deprecated addXyzListener() methods in GWT are deprecated since GWT 1.6 it 
will probably take a while...

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/nX8_yRwDASoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: which EventBus

2012-08-03 Thread FrugoFrog
yes that's what I mean. I inherited the code that uses RF and MVP.
Classes implement Activity interface defined in
com.google.gwt.activity.shared and this needs the Event bus from the
same package.  I'm not sure if this will change in future releases of
GWT.
Looks a bit inconsequent to me But hey it's gwt  one shouldn't be surprised


On 3 August 2012 18:03, Clint Checketts  wrote:
> That would be a good/quick fix for GWT 2.5 to deprecate the old 'start'
> method and fix the signature.
>
> On my project we have a base Activity and that is exactly what I did, so we
> always have the right EventBus imported..
>
> -Clint
>
>
> On Thu, Aug 2, 2012 at 8:55 AM, Jens  wrote:
>>>
>>> I  was mid way of re-factoring the code when I realised that the
>>> Activity interface needs EventBus from
>>> com.google.gwt.event.shared.EventBus :(
>>
>>
>> Simply don't import the old EventBus package in your activity. If you need
>> to store the EventBus provided in the start() method in your activity then
>> assign it to a variable that represents the new EventBus.
>>
>> -- J.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-web-toolkit/-/hsJo-SBq_RkJ.
>>
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Application cache searches cssmap

2012-08-03 Thread Gregor Frey
I managed to remove the cssmap entries from the manifest by including them 
in the list of resources to skip in the SimpleAppCacheLinker class. The 
question remains: what are the cssmaps and why are they EmittedArtifacts, 
when not emitted? Is this a bug in the 2.5 compiler / linker?
Ciao
Gregor

On Friday, August 3, 2012 6:07:12 PM UTC+2, Gregor Frey wrote:
>
> Hi,
> I try to follow the video about GWT and Mobile of Chris Ramsdale (
> http://www.youtube.com/watch?v=N1aCo5LvMf8) and let the linker generate 
> the appcache-manifest. But when the browser loads the manifest it fails 
> because the manifest refers to cssmap files within a cssResource directory, 
> which are not within the generated artifacts. I have no clou what these 
> maps are and how I can get them. Anybody can help me with this?
> Ciao
> Gregor
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fOh3Oo0iEFQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Google Geocoder

2012-08-03 Thread nesrine doghri
Hi , How can I use Google Geocoder with GWT (I give the longitude and the
latitue and it gives me back the position on the map ) !
I can't find any tutorial !! Help please

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: which EventBus

2012-08-03 Thread Clint Checketts
That would be a good/quick fix for GWT 2.5 to deprecate the old 'start'
method and fix the signature.

On my project we have a base Activity and that is exactly what I did, so we
always have the right EventBus imported..

-Clint

On Thu, Aug 2, 2012 at 8:55 AM, Jens  wrote:

> I  was mid way of re-factoring the code when I realised that the
>> Activity interface needs EventBus from
>> com.google.gwt.event.shared.**EventBus :(
>>
>
> Simply don't import the old EventBus package in your activity. If you need
> to store the EventBus provided in the start() method in your activity then
> assign it to a variable that represents the new EventBus.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/hsJo-SBq_RkJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Application cache searches cssmap

2012-08-03 Thread Gregor Frey
Hi,
I try to follow the video about GWT and Mobile of Chris Ramsdale 
(http://www.youtube.com/watch?v=N1aCo5LvMf8) and let the linker generate 
the appcache-manifest. But when the browser loads the manifest it fails 
because the manifest refers to cssmap files within a cssResource directory, 
which are not within the generated artifacts. I have no clou what these 
maps are and how I can get them. Anybody can help me with this?
Ciao
Gregor

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Vp4SkOEsNUUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to deploy GWT app on GAE which is connected to MySQL

2012-08-03 Thread Joseph Lust
Cloud SQL might work for you. I've not used it, but did request a trial and 
they provided it to me the next day. It should allow classic SQL like 
queries.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/r6I_xnAI7PEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.4 istantiate Activity

2012-08-03 Thread bond
Hi Pablo,
how?

In my principal view I've something this:

...


Trattamenti




   ...

where ListaTrattamentoViewImpl is a subview that have to stay in a tab. But 
where I create the place for my principal view how I can create the 
activity for the ListaTrattamentoViewImpl? The ActivityManager will not 
invoke the start method on the activity of ListaTrattamentoViewImpl but 
only in the my principal view.

Thanks


Il giorno lunedì 30 luglio 2012 20:01:46 UTC+2, Juan Pablo Gardella ha 
scritto:
>
> Use event bus to communicate the view with the activity. 
>
> 2012/7/30 bond 
>
>> Hi, anyone has some ideas about this problem?
>> It is strange that no one has this need!
>>
>> Thanks
>>
>> Il giorno sabato 14 luglio 2012 10:44:14 UTC+2, bond ha scritto:
>>>
>>> Any ideas?
>>>
>>> Thanks!
>>>
>>> Il giorno giovedì 12 luglio 2012 14:53:09 UTC+2, bond ha scritto:

 Hi guys,
 I've a design question about mvp pattern in GWT. I'm using 
 Activity,Place and View.
 I've some view that shows a list of products (every view show a 
 particular list of objects). I'd like to group these views in a single 
 view 
 that has a TabPanel and in every tab I want to show the view that I 
 created 
 (see attachment).

 I'd like to include every view in the one that include all but I can't 
 because in this way the Activity is not associated to the view. 

 Which is the best way to model this scenario?

 Thanks


  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/google-web-toolkit/-/Hj0mktV_kLgJ.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7DsyB3OwHjIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to vertically and horizontally centre the form panel inside a scroll panel

2012-08-03 Thread Andrei
Forgot to mention that you have to attach a resize handler to your page, 
and call this method each time a page is resized.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ApDnBST45m4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to vertically and horizontally centre the form panel inside a scroll panel

2012-08-03 Thread Andrei
I tried many different options, but at the end, I had to do to render the 
page, and then call:

Scheduler.get().scheduleDeferred(new ScheduledCommand() { 
@Override 
public void execute() {
myForm.getElement().setAttribute("style", "margin: " + 
((myScrollPanel.getOffsetHeight() - myForm.getOffetHeight()) / 2) + "px 
auto;");
}
});

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/n558Vremy18J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CellTree with CellTable nodes

2012-08-03 Thread Fille
I have a similar situation with expandable CellTable rows, inspired from 
this showcase:  
http://showcase3.jlabanca-testing.appspot.com/#!CwCustomDataGrid 

Lets say I have a CellTable displaying instances of class Book on each row. 
When I click one row (using SelectionModel), it gets expanded, where the 
Authors of the Book is displayed 
in a custom UiBinder widget.

I would like be able to click on a row for an Author to show some more 
information. 
But the selectionModel's changehandler gets fired. If I remove the 
selectionModel and just use a
ClickableTextCell to expand the row, the events in the Authors custom 
widgets isnt fired (@UiHandler("infoButton"))

Any suggestions how I can acheive this?

Regards


Den onsdagen den 11:e maj 2011 kl. 04:48:35 UTC+2 skrev Tatchan:
>
> Hi, 
>
> I have a similar problem. 
> I my case, a complex widget (which is basically MyCompoSite.InnerHTML) 
> is rendered as the inner HTML of each cell. 
> The cell itself can catch click/mouseout event but not my inner HTML. 
> The weird thing is that: Mouseover event can be caught both in the 
> cell and in my HTML. 
> Could any one give suggessions please? 
>
> -Tatchan 
>
> On May 3, 10:21 pm, johan  wrote: 
> > Well, this works fine as long as the event is managed by the tree item 
> > itself. 
> > But in my case, the tree item contains a CellTable and that CellTable 
> > contains some clickable cells. 
> > In such a case, I can't make it work. 
> > 
> > On May 2, 5:13 pm, lamre  wrote: 
> > 
> > 
> > 
> > >  Cell cell = new AbstractCell("click") 
> > >  { 
> > >  @Override 
> > >  public void render(Context 
> context, Cartella value, 
> > > SafeHtmlBuilder sb) 
> > >  { 
> > > sb.appendEscaped(value.getDescCartella()); 
> > >  } 
> > >  //gestiamo gli eventi 
> > >  @Override 
> > >  public void 
> onBrowserEvent(Context context, Element parent, 
> > >   
>   Cartella value,NativeEvent event, ValueUpdater 
> > > valueUpdater) 
> > >  { 
> > >  if (value == null) { 
>   return;   } 
> > > 
>  super.onBrowserEvent(context, parent, value, event, 
> > > valueUpdater); 
> > >  if 
> ("click".equals(event.getType())) 
> > >  { 
> > 
> > > ControllerPqm.getInstance().loadCartella(value.getIdCartella()); 
> > > //   
> Window.alert("Click sulla cartella "+ 
> > > value.getDescCartella()); 
> > >  } 
> > >  } 
> > >   };- Hide quoted text - 
> > 
> > - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ngWFQG9o-9sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How can we save state of a GWT page?

2012-08-03 Thread Paul Stockley
If we need to remember more information than can reasonably stored on the 
URL we use local storage. The data we need to remember is represented as 
javascript overlay types and we serialize these to/from json.

On Wednesday, July 25, 2012 8:14:20 AM UTC-4, Rubina wrote:
>
> Hi All,
>
>  
>
> We have one requirement to implement in GWT application. Below example 
> will clear the requirement – 
>
>  
>
> There are 3 screens in application. Suppose, user is on 2nd screen after 
> moving from 1st screen to 2nd screen. When user clicks on Next button on 
> first screen, then some RPC call is executed and fetch data from some 
> external database. This data is used to display on 2nd screen. Now user 
> bookmarks the browser URL (2nd screen) and closes the browser window. 
>
>  
>
> Next time, now user directly wants to navigate to the 2nd screen without 
> repeating the work done on 1st screen. We want to store the state of 
> 2ndscreen somehow on browser. If this screen launches, all Next and Previous 
> button should also work properly.
>
>  
>
> Is this requirement achievable, if yes then which GWT APIs provides this 
> feature? Please advice.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/l941gDIxsWIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Compiler warnings when migrating from 2.3 to 2.4 or 2.5-rc1

2012-08-03 Thread John
GWT compile using 2.3.0 appears clean.  When I migrate to 2.4.0 or 
2.5.0-rc1 I see the following warnings:

 [java]Validating units:
 [java]   Ignored 70 units with compilation errors in first pass.
 [java] Compile with -strict or with -logLevel set to TRACE or DEBUG to 
see all errors.
 [java]Computing all possible rebind results for 
'com.google.gwt.useragent.client.UserAgentAsserter'
 [java]   Rebinding 
com.google.gwt.useragent.client.UserAgentAsserter
 [java]  Checking rule 
 [java] [WARN] Detected warnings related to 
'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are 
validation-api-.jar and validation-api--sources.jar on 
the classpath?
 [java] Specify -logLevel DEBUG to see all errors.
 [java] [WARN] Unknown type 
'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred 
binding rule

I made some modifications to my ivy and build files to make sure 
that validation-api-1.0.0.GA-sources.jar and validation-api-1.0.0.GA.jar 
were on the classpath, but this didn't make any difference.

Any ideas how to clean up these warnings?

Thanks!



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6W8k2r-oE4wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to deploy GWT app on GAE which is connected to MySQL

2012-08-03 Thread Francesco Izzi
I think the only way is to make a webservice stack !

Regards,

2012/8/3 Frank :
> I don't think this is possible.
> You have Google Bigtable for storage.
>
> Frank
>
> Op vrijdag 3 augustus 2012 07:42:25 UTC+2 schreef vikash@Atos het volgende:
>>
>> Hi,
>>
>> Can anybody please tell me how to use google cloud sql? Is it free for
>> trail purpose?
>> If it is not free can we use google cloud storage?
>>
>> The issue is my GWT application is using MySQL as backend. Now issue
>> is how to deploy my GWT app on GAE which is connected to MySQL.
>>
>> Please help.
>>
>> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/G53Rak8CMqgJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
Francesco Izzi
CNR - IMAA
geoSDI
Direzione Tecnologie e Sviluppo

C.da S. Loja
85050  Tito Scalo - POTENZA (PZ)
Italia

phone:  +39 0971427305
fax:  +39 0971 427271
mob:+39 3203126609
mail: francesco.i...@geosdi.org
skype:  neofx8080

web: http://www.geosdi.org

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to deploy GWT app on GAE which is connected to MySQL

2012-08-03 Thread Frank
I don't think this is possible.
You have Google Bigtable for storage.

Frank

Op vrijdag 3 augustus 2012 07:42:25 UTC+2 schreef vikash@Atos het volgende:
>
> Hi, 
>
> Can anybody please tell me how to use google cloud sql? Is it free for 
> trail purpose? 
> If it is not free can we use google cloud storage? 
>
> The issue is my GWT application is using MySQL as backend. Now issue 
> is how to deploy my GWT app on GAE which is connected to MySQL. 
>
> Please help. 
>
> Thanks in advance. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/G53Rak8CMqgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is there any chart library for GWT?

2012-08-03 Thread Harald Pehl
In my current project (https://code.google.com/p/tire-d8/) I'm using GWT 
Highcharts (http://www.moxiegroup.com/moxieapps/gwt-highcharts/) 

It's easy to use and very flexible in its configuration: 
https://code.google.com/p/tire-d8/source/browse/trunk/src/main/java/name/pehl/tire/client/activity/view/QuickChartWidget.java
 

- Harald

>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/m59BtTz-MeUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.