Re: how not to cache background image?

2014-12-31 Thread Joseph Lust
Magnus,

Since you want the image cached, but not cached, and to always have the 
same URL, you're got very contradictory requirements.

Have you considered passing state to your app at startup with information 
like the proper image URL to use and then dynamically setting it that way? 
Then you can just use a DB column, quartz job, JMX bean, etc to update this 
image property as needed and all users will get the proper image on next 
page load. Personally, I use a root index.jsp page that's cached with a TTL 
that inlines these parameters into the page and then the GWT entrypoint 
fetches then when initializing on startup, thus skipping that extra XHR 
since it's essentially constant information until it changes.

-Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT - Get dom element's value from another page

2014-12-31 Thread Joseph Lust
RequestBuilder will return you the text of the response body. If, as you 
say, A.jsp generates it's content via GWT, then you'll not find the 
elements of interest. GWT is a client side JS technology. The content for 
A.jsp will not be rendered, you'll only be getting the raw HTML created by 
A.jsp. 

Why don't you use an XHR request to fetch the needed data from an endpoint 
instead? Further, it's best to no depend on fetching elements from a 
different page as this goes against most browser security policies.

-Joe 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT for Web Development (again)

2014-12-31 Thread Joseph Lust
Can you cite an example metric of the "SEO penalty" you're experiencing? 
For more than a 18mo now, if you use Google Webmaster Tools 
 and Fetch as Google, 
you'll see your fully rendered GWT page with the async content loaded and 
displayed. Given this is the Google spider, it follows that this is what's 
being used to index your site and that GoogleBot understands your GWT app 
just fine. Note: this is for sites I manage that don't even implement *escape 
fragment*.

-Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Insights on GWT Usage

2014-11-04 Thread Joseph Lust
I thought that Ray's reply on HN might interest folks. Some nice details 
about Google's use of GWT.
https://news.ycombinator.com/item?id=8552434

-Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Make GWT application to work even in low bandwidth

2014-11-04 Thread Joseph Lust
Same way you'd do it in JS; start a timer, request a resource with a 
callback to stop the timer. Benchmark against various connections and 
create your heuristics. Set a timeout as well, so if it's really slow, 
there is no need to wait for it to return. Obviously you'd want to make 
sure unique names/headers are set to prevent caching of your benchmarking 
resource. Be careful though, the user could easily switch connections once 
the app is loaded, so assumptions may change during runtime, which will 
frustrate your users.

GWT is great for low bandwidth connections given that it can minify the 
heck out of your application and reduce loading queries to the absolute 
bare minimum ( 1: load index page, possibly with inlined nocache file and 
2: load permutation with as many inlined resources as possible such as 
css/images). You'd probably be best off just optimizing your app for 
everyone rather than selectively degrading the UI.


- Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to update cell with timer

2014-10-24 Thread Joseph Lust
Have you tried using a timer within the Cell? You're going to need a timer 
somewhere to achieve this.

-Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: add mobile version to existing GWT app?

2014-10-24 Thread Joseph Lust
Check them out:

   - mGWT
   - GWTP with different device bindings (mobile/tablet/desktop)



-J

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Medievan

2014-10-20 Thread Joseph Lust
Endi,

My apologies. I mean that you can allow S3/Cloudfront to serve all static 
resources (html/js/img/tile/sound) so that your servers don't have to carry 
this load. Given that GWT makes all of the UI into static resources, this 
means your entire UI needs no dedicated machines. Since CloudFront allows 
forwarding, yourDomain.com/api/ can pass through to your backend servers, 
and if you return cache headers (i.e. 10min) you can let the CDN buffer 
your API as well. Given S3/CloudFront are nearly infinitely scalable, it 
might make life easier when things go viral for you (which we hope they 
do!).

Anyway, I was just noting how wonderful GWT is with CDN's, since you can 
make a app server that is just an API server, which is much cleaner than 
the typical Java, everything in one massive .war option.

BTW, 48GB is huge! Sounds like a fun challenge. It would be great to learn 
more details of your app as it is developed further. Please do keep us 
informed.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Medievan

2014-10-20 Thread Joseph Lust
Endi,

Looks neat and very professional! Your server in Istanbul is very slow 
though. However, I noticed you've got some resources on Amazon S3. 

You can serve the entire app from S3 and thus via CloudFront, which will 
give worldwide players a great experience. It takes a little work, but we 
hammered out the details on this thread.
https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/AWS/google-web-toolkit/4eNY2RiLH1k/NaGmzhWWlmIJ


Good Luck!

- Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Application with code splitting not working in dev mode

2014-10-09 Thread Joseph Lust
I meant any errors in the browser. Usually you'll get at least something 
the dev JS console. If not, you can compile in pretty mode and step through 
your .nocache bootstrap JS file and see how far it gets through there 
before failing, since you're not seeing it get to your entry point.

In these cases I'm using Super Dev Mode, so that might be different from 
your experience.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Application with code splitting not working in dev mode

2014-10-09 Thread Joseph Lust
Error messages? Traces? 

FWIW, code splitting in GWT-P has always worked 100% for me in DM and SDM.

-Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is Crawl as Google working in GWT? Ajax Crawl problem...

2014-10-09 Thread Joseph Lust
Checkout the 174 posts 

 
about GWT and crawlers.

Also make sure that you can fetch the explicit page and see it rendered 
correctly from the Google Webmasters Tools page for your site. I'd bet your 
rewrite rules are a problem since I've never needed them to get Google to 
index my GWT sites and they all show up correctly in Google Webmasters 
Tools. Looking at various SO posts on this, I've noticed a lot of 
misconfigured rewrite rules and even some that attempt to convert hashbang 
URL requests to query strings, *one the server*, but these hashbang values 
are never passed to the server.


Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT project not picking the css and images from some other GWT maven project added as dependency?

2014-10-08 Thread Joseph Lust
Don't depend on resources in the *public/* directory. Use resource bundles 
and all downstream consumers of your library won't have a problem with 
resources. They will just flow right through.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: ie10 permutation causing browser errors? (gwt 2.6.1) really baffled here.

2014-10-03 Thread Joseph Lust
Thomas,

Have you tried looking at the PRETTY print version of this code to see 
exactly what output JS is causing the problem in IE10?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode with -noserver and remote server

2014-09-30 Thread Joseph Lust
Try using the Maven plugin, should be able to feed it any remote server 
parameters you need:

mvn gwt:run-codeserver, and just pass the needed ports and hosts 
.



Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to calculate ages correctly in GWT?

2014-09-30 Thread Joseph Lust
Thanks Thomas. Google Groups ate it.

http://stackoverflow.com/questions/10311754/date-time-library-for-gwt


- Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to calculate ages correctly in GWT?

2014-09-30 Thread Joseph Lust
This is not a GWT problem, but basic math. You've already computed the age 
in milliseconds. Years are quite arbitrary in the West, so you'll need to 
account for all those leap years, leap seconds, and edge cases.

You should use Joda Time. GWT *does support Joda Time http://stackoverflow.com/questions/10311754/date-time-library-for-gwt>.*

- Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to disable debug IDs

2014-09-30 Thread Joseph Lust
Create another .gwt.xml file that extends your base (testing) .gwt.xml 
file. Override the property there. Now you're got a testing app you can 
build for testing and a prod app you can deploy.

-Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: ANN: flatbus 1.1 released

2014-09-29 Thread Joseph Lust
Neat implementation. I do fancy skipping all of the eventing boilerplate. 
It does feel weird, however, having to cancel an event's propagation not by 
an eventObj.cancelPropagation(), but via bus.cancelCurrentEvent(). I 
suspect this would not work in a multithreaded environment outside of JS.

Eager to give this a try soon.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-24 Thread Joseph Lust
There are various ways to place links in UiBinder based UI's. The most 
basic of these is to simply generate the UI and set the href property of 
your target element. Static URL's can be directly inserted in the XML using 
 as covered in the documentation 

.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can we build GWT app that does not have Captcha function but is still able to prevent spam?

2014-09-22 Thread Joseph Lust
Anything client side can be compromised by spammers, so implement some 
server side CAPTCHA or equivalent.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: good gwt mysql hosting

2014-09-22 Thread Joseph Lust
Just about any host. Nothing special needed for GWT. If you're using a Java 
backend, then you'll need a host that can support a war/ear deployment or 
get your own VPS. I usually use AWS, but you could do Digital Ocean or 
DreamHost too. Just Google for hosting.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.2.0 does not serialize/deserialize basic Java types if not referenced explicitly

2014-09-15 Thread Joseph Lust
Curious, is there a way to enable compiler logging to note just how many 
types you're RPC serializers are being compiled to handle? I think that 
might provide clarity into these blackbox situations and draw attention to 
the RPC type explosion problem from folks that would otherwise miss it.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT-SL 1.5 released

2014-09-11 Thread Joseph Lust
Thanks for your efforts. Clearly you've been working on this for some time.

I'm curious what this framework does beyond the existing Spring annotation 
driven integration with RPC. Using SpringGwtRemoteServiceServlet 
,
 
all the mapping of (annotated) service beans to paths can be done with 
Spring alone using @RemoteServiceRelativePath and extending RemoteService. 
In your loads of great documentation I see the ability to have XML files 
full of URL endpoint to bean mappings, which is more *Springy*. However, 
what else can you do here that generic Spring/GWT cannot? Thanks.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unit Test for GWT Activities and Places

2014-09-11 Thread Joseph Lust
As Thomas points out, you can test your tokenizers and mappers in JUnit. 
Testing any higher level orchestration between them is more of an 
integration test. I leave these to some basic Selenium smoke tests that 
ensure that navigation between states works correctly.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Main Advantages of using GWT against other technology like [jsp,spring,javascript...]

2014-09-09 Thread Joseph Lust
Amen Jens. If you're going to be a web developer, you'll need to know about 
the web. GWT doesn't hide you from JS/CSS/HTML/HTTP entirely, it just makes 
them work well with Java and Java patterns in a highly optimized way.

Sadly, many a manager I've championed about GWT don't want to hire expert 
web developers. They don't want a superior development product. They want a 
framework that can be used by the least skilled developers, hired en masse 
for the lowest possible pay to shove a minimum viable product out the door 
with maximum haste. If that's you're goal, GWT's not for your 
product/project. Personally I'd not work at such a shop, but there are 
plenty of them out there.

- Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Main Advantages of using GWT against other technology like [jsp,spring,javascript...]

2014-09-09 Thread Joseph Lust
Good points nestorjb, but I wanted to embellish a few:

2.- Because it behaves like a desktop app, when you test, you have to test 
> from the first page which leads to long testing cycles.
>

If you use a Places/Activities pattern, such as in GWTP (GWT Platform), 
then you'll have page state serialized to the URL. In this case, you can 
jump right to a page in your tests. If you're using Selenium, you can reuse 
steps, so even if you had to start from the login page for each test, you'd 
only write that code once.

 

> 3.- Speaking of testing, you can't use tools like JMeter to test the app 
> because it doesn't behave like a web app. You need to use it's own testing 
> classes. Haven't use selenium.
>


If you use a pattern like GWTP or similar, where very few files are served 
after load, then it's the RPC/XHR's that are all the server load. Using 
JMeter you can indeed test these. Assuming that you push your static 
content off to a CDN (CloudFlare, S3/CloudFront) then you really don't need 
to load test those parts, but you can if you like.

Using a Java based framework (GWTP) makes testing Selenium (w/ Java) easy 
because you can use the same URL builders (PlaceRequests) directly in 
Selenium and jump straight to the pages under test. Essentially no 
hardcoded literals at all! Frankly, my only problem when testing GWT from 
Selenium is that the tests go so fast the DOM cannot keep up, but a half 
dozen decorators to wait for elements to be rendered to the page and the 
tests fly along. That shouldn't be a big problem since you can test your 
presenter logic in pure JUnit and run those tests in a few ms. The Selenium 
is really for smoke testing and integration testing of login/workflows.

 

> 4.- If you need your app to work like a web app it will not feel like a 
> web app.
>

What does a *webapp* feel like? For me it feels like the pages load 
instantly and the browser history/URL's look like I've actually been 
bouncing around the pages. True, it does not do classic postbacks on every 
page interactions, but I call that a plus. As long as you serialize your 
places to the URL F5 and bookmarks will work like any other webapp as well. 



I would add a *con *though:

   1. With GWT you've got to know and think about what you're doing. GWT 
   will do every best practice under the sun for your and make your app run 
   about as fast as possible with no memory leaks without you needing to be an 
   HTML spec/browser maven. GWT will practically guarantee that you're app 
   will run properly if it compiles. Conversely, many people would rather use 
   a hard to maintain JSP/PHP framework rife with security holes, problems, 
   and highly verbose configurations because it appears easier to get out the 
   gate and do simple things with. So, if you want to use GWT, you'd best read 
   the manual, otherwise stick with a simple framework.


Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Make gwt website crawlable without hash symbol?

2014-09-05 Thread Joseph Lust
But couldn't you fall forward in that case? In the no cache bootloader you see 
that you've got pushState support, but a hash in the URL, so you do the reverse 
and forward to the non-hash version of the URL and then load the pushState 
permutation?

OR

You could do like GitHub does with their file explorer. On pushState browsers, 
when drilling into a folder, they just XHR the next level and show it 
immediately with pushState crumbs in the URL bar. However, if you're IE 8, then 
they just do a postback on each click. But then you'd be back in 1999 postback 
land, and no one wants to go there.

OR

You could just refuse to support them (IE8/9, Opera Mini), though not always an 
option in Enterprise land.

http://caniuse.com/#search=pushstate (funny, caniuse.com still uses # !)




Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Make gwt website crawlable without hash symbol?

2014-09-05 Thread Joseph Lust
> we would need to create some kind of redirection between # and not # urls if 
> users want to share urls.

That's the problem. The # and everything after it are not sent to the server. 
It's only on the browser. So you can't redirect based on the octothorpe.

The only way to do things then would be to give everyone the "domain.TLD/blah" 
URL and then forward those to a "domain.TLD#blah" if you've detected that they 
don't support pushState. However, that's best done in JS (or you'd need an 
exhaustive list of user agents and pushState support).

So, if you could make all "domain.TLD/" requests forward to your index page, 
while keeping the URL, then bootstrap some pushState detection logic, and then 
redirect to the othothorpe version (build permutation) if they don't support 
push state, you might be able to swing it. Should be possible, but obviously 
complex and why the othothorpe remains standard.


Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Make gwt website crawlable without hash symbol?

2014-09-02 Thread Joseph Lust
Most browsers can scrape sites, even with the hash bang. You just need to 
follow GWT best practices. No hashbang browsing could be possible, perhaps 
with the HTML5 PushState API, but your app will only work on the most 
recent browsers.

See 
https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/hashbang


Joe 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode and Tomcat

2014-08-30 Thread Joseph Lust
Jens beat me to the reply, so I'll just answer one of the questions:

how to update the app when either client side or server side code changes 
> are made.  Joe says to cycle tomcat...what does that mean? 


Just CNTRL-C to kill the tomcat and then run *mvn tomcat7:run-war* to 
recompile and redeploy it

If you've just made server s I'm constantly going to the real code to 
figure out what has to change and then manually finding those same classes 
in Chromide changes, like modifying a backend service, then Maven will 
detect those changes and only recompile the backend Java. GWT will not 
recompile. On my dev machine, this means I can have the whole server 
recompiled and redeployed in about 15s.

There are other more advanced code-hot swapping tricks you can do to a 
running tomcat, but I've only tinkered with those.

I'm constantly going to the real code to figure out what has to change and 
> then manually finding those same classes in Chrome


It would be great to have an ability to drill from a Chrome JS debugger 
line into the source file in an IDE. Since Chrome already has the FQDN and 
line number, it would not be that complicated to do with a hook into the 
IDE. Sounds like a missing Chrome Extension, the sort of thing the IntelliJ 
boys would build if people made enough noise.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode and Tomcat

2014-08-28 Thread Joseph Lust
Tim,

You might find the *Tomcat Maven Plugin* quite useful along with the 
*Maven **GWT Plugin*. I don't know why you need to launch from Eclipse, but 
you might find the command line just as useful. I've known people that live 
by Eclipse to launch TC because of the configs they've saved to Eclipse, 
but you can pass those into the plugin as well, and then have them 
conveniently saved to a POM and versioned.

I find, once you've setup SDM in your X.gwt.xml, that these two lines are 
all you need.

1) Terminal one: *mvn tomcat7:run-war*
2) Terminal two: *mvn gwt:run-codeserver*

That's it! When I make backend updates (i.e. new service), I just cycle 
tomcat, but leave the code server. It's really pretty painless and makes 
you IDE agnostic.

Joe

Hope that helps,
Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to Detect Back Button Event

2014-08-26 Thread Joseph Lust
Thanks Thomas.

I do embrace the web! The irony is simply that the browser has such a state 
stack that we're free to see in the History list (forward/back), but it 
stuck me as odd that the client code cannot reliably divine it. Obviously 
page are meant to be stateless beyond their serialized URL per the web's 
design.

You've confirmed my suspicions.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to Detect Back Button Event

2014-08-26 Thread Joseph Lust
I've been using a HistoryStack implementation attached to 
History.addValueChangeListener() in my app. This works well, but it's not 
truly a "stack" of Places.

If it were a true history stack, when a user hit back, then I'd pop off 
that Place and it would no longer be on the stack. However, 
History.addValueChangeListener() does not tell us whether the user went 
back, only the string of the Place that is now loaded. We could simply 
match this to the N-1 entry on the stack and remove the N (top) entry if 
they matched, but this makes assumptions.


As designed, we cannot differentiate between the following two user flows:

1. Place A -> (click link) Place B -> (link clicked) Place A
2. Place A-> (click link) Place B -> (back button) Place A

So the user could have made a cycle in our Place graph, or they could have 
just hit back. In the first case the stack would be [A,B,A] in the second 
case it should be [A].

I've also looked at the Window.onpopstate event, but the object returned 
only shows the new state, not the transition that got us there. Since it's 
triggered by Back AND Forward actions, you don't know which it was. It 
seems wrongly named as Forward is not popping off the history state stack, 
unless you consider the forward stack as being reduced, but then every 
action is a pop and a concomitant push.


So, how do other GWT'er determine when a user clicks the back button? 
Thanks.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: OnClick event fired more than one time for one click

2014-08-25 Thread Joseph Lust
Use the Chrome DOM inspector to see just how many click listeners are 
attached.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: render a SVG graphic as bitmap?

2014-08-20 Thread Joseph Lust
Also wrote a bunch of map animations in SVG back in 2011. Used SMIL to 
markup the animations and movements of viewports. Worked out quite well in 
FF at the time, but IE was terrible. Chrome worked well, but there were a 
number of SMIL methods that Chrome either didn't implement or did so 
incorrectly. I suspect it has much improved by now, especially given that 
browser vendors started to care about SVG once *retina displays* came out.

For great demos, check out http://svg-wow.org/. Note, when you use a world 
map with 1M+ points, it does render slower.


Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Plugin

2014-08-19 Thread Joseph Lust
There are many threads on this common topic. The most recent 

.

We should add an EOL message to the Developer Mode page 

 
on the official GWT Project page so folks know it's dead.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Transition from Web to Mobile Web

2014-08-19 Thread Joseph Lust
RPC utilizes class version specific compiled serialization policies. Any 
modification to a DTO will cause failure if said DTO us used with a 
non-compatible serializer. Thus the client and server code is coupled to a 
given compile. Use of mismatched pairs will cause serialization failure.

Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT seems deprecated according to Thoughtworks

2014-08-11 Thread Joseph Lust
Bunk and bunk. It reminds me of when some "Javascript Engineer" consultants 
sent out an email crapping all over GWT several years ago at a major global 
bank I worked for that used GWT as their standard UI toolkit. They cited a 
whole bushel of straw man and red herring arguments while only highlighted 
their complete lack of understanding of GWT. I fear this article was in a 
similar vein.

 

> From a practical standpoint this doesn't work well. 
> 1. Using code-gen to produce the artifacts is time consuming, artificially 
> extending build times and requiring manual changes to obtain optimal 
> package layout.
>

Funny. The pure JS community is creating their own compilers these days... 
odd coincidence. And also, many are using the defacto Closure Compiler, 
which GWT uses too, but you don't get the same depth of minification, 
obfuscation and browser specific packaging as you do when using it in 
conjunction with the GWT compiler. For me, on a moderately complex app, my 
code/compile/test iteration cycle time is 8 seconds. Sure beats JSP. And, 
if you're a seasoned professional, you can batch a whole number of code 
changes into that 8s vacation.

 

> 2. If the JavaScript doesn't behave exactly as you want you will have to 
> hack the generated code.
>

I've never hacked the obfuscated/compiled GWT output. That sounds pretty 
painful. Why would anyone do that?

There have been few times for me when this has been a problem in 3 years. 
Usually it's a matter of either (1) an incomplete/faulty API implementation 
by a browser or (2) initialization timing problems on element injection 
into the DOM. Here you'd usually just not use the broken browser API for 
(1) and use some deferred scheduler calls for, though you'd have the same 
problem in vanilla JS (2). If you really must "hack" then you can pop out 
some JSNI, but I'd say under 0.5% of my GWT app code is JSNI.
 

3. Using Java to generate JavaScript means that you can’t take direct 
> advantage of the powerful features of JavaScript or numerous libraries such 
> as JQuery. Finally, the JUnit support is quite limited, for example code 
> using reflection cannot be tested.


"Powerful features of JS"? I hope everyone's technical novice meters were 
set off by that sentence. When you can't articulate why a technology is 
superior in technical terms, then you don't know what you're talking about. 
If JS was a tractor engine, then you could claim it put out more watts than 
another engine, thus making it more "powerful." But, it's not an engine.

So what are we missing? Native prototypes, expandos, arrays, type cohesion 
and all numeric values as doubles? Are we missing out on the general 
maelstrom of namespace conflicts in a given Window? Are we missing out on a 
JS HTML5 spec that's been a draft for 6 years? Are we missing out on 
sacrificing our lives for IE interoperability? I'd argue not. We're being 
insulted from a language created to validate form inputs 20 years ago and 
implemented inconsistently on many browsers. But, if you want to use 
"numerous libraries such as JQuery" you actually can use them, either 
wrapped or natively in from JSNI.


So, FUD I'm afraid. I can't help but see down the road 4 years to when many 
*hot* JS libs are defunct and ACME's sales app can no longer run, despite 
the trivial functionality provided by XYZ JS that's used pervasively across 
their application and no longer works with IE 14. If it was GWT, they could 
just update their GWT compiler version number in Maven and get a cup of 
coffee while it builds. Run their regression against it and get ready to 
ship for IE 14 after any needed tweaks. Sadly technical management never 
gets compensated 4 years later for the $1M rewrite that didn't happen.


Sincerely,
Joseph

 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Transition from Web to Mobile Web

2014-08-11 Thread Joseph Lust
Make sure you've got a plan for forcing mobile users to update their app 
when you make new releases. Remember that RPC will break on the next 
release. If you don't have a graceful means to fail up for users, they will 
not have a good experience.

Since you're not MVP, now might be a good time to do so. Otherwise, you're 
going to have to keep doing everything twice for your entire UI stack. MGWT 
and GWTP make these pretty easy to implement.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Stable .rpc files

2014-06-17 Thread Joseph Lust
If that works for you. Personally, I expected idempotency in builds.

Sincerely,
Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: use ajaxcomplete in GWT

2014-06-17 Thread Joseph Lust
There are many ways to contact a server in GWT. See the communications page 
and async callback information:
http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Message Interfaces and SafeUri

2014-06-16 Thread Joseph Lust
Since the example supplied by Thomas does not quite work as written, I've 
included the working code segment below:

In the UiBinder xml file:



...
  

​

In the Java file for the UiBinder:

final MarketingResources mktRsc = GWT.create(MarketingResources.class);

​

@UiField(provided=true)
SafeUri facebookUrl = 
UriUtils.fromSafeConstant(mktRsc.facebookUrl());@UiField(provided=true)
SafeUri twitterUrl = 
UriUtils.fromSafeConstant(mktRsc.twitterUrl());@UiField(provided=true)
SafeUri googlePlusUrl = UriUtils.fromSafeConstant(mktRsc.googlePlustUrl());

​

Hope someone finds that helpful.

Sincerely,
Joseph

​

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Stable .rpc files

2014-06-16 Thread Joseph Lust
@Michael, welcome the the Chicken and the Egg problem.

In order to build the build number (I'm assuming you mean rev number from 
git/svn), you've first got to commit that code. Then, you've got be build 
it, but the code never had the commit number in it, since it could not be 
known pre-commit. 

To get around this in the past I have used either of the following:

   - Written a GWT compiler plugin to generate the impl of a 
   BuilderNumberProvider class. This plugin grabbed the rev # from Maven then 
   then wrote and compiled an extra class with that value in it.
   - Copied the build number into the WAR and then injected it into the app 
   page (i.e. jsp) and had GWT read it via JSNI at the EntryPoint.


Hope that helps.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Message Interfaces and SafeUri

2014-06-16 Thread Joseph Lust
Thanks for the reply Thomas.

You're right, working with Anchor widgets rather than raw anchor tags does 
not throw the warning as shown below.


...Follow us on 
Facebook!

​

@DefaultLocale("en_US")public interface ExternalUrls extends Messages {

@DefaultMessage("http://foocom";)
String exampleFacebookPage(String subTitle);
}

​

Alas, I've got items inside anchor tags that cannot be wrapped by Anchor 
widgets, so for now I'll just do the manual conversion with the additional 
boilerplate, which is too bad, because UiBinder is a beautiful thing. :)


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can i get some URLs of live projects built using GWT.

2014-06-16 Thread Joseph Lust

   
   - Orkut.com
   - bombermine.com
   - aws.amazon.com -> login and most dashboards are GWT (i.e. EC2)
   - cyclingthealps.com
   - gwtbootstrap.github.io
   - wikiroutes.info/en
   


Sincerely,
Joseph


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Message Interfaces and SafeUri

2014-06-15 Thread Joseph Lust
Curious if anyone knows how to create a resource bundle or message 
interface to return URI's.

For my site, I have a set of ClientBundles and i18n message interfaces used 
to generate different version of the product. I also have some external 
URL's that are part of this customization. I currently use a Messages 
interface to get these URL's set into the UiBinders. However, this are not 
SafeUri's and thus issue compiler warnings. While Anchor's have a SafeUri 
href override, Messages can only return a String or SafeHtml. So, my 
question is the *right* way to pass these through the bundles for use in 
UiBinder.

Thanks for any help folks can provide about best practices here.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: you can only use Chrome extensions that you get from the Chrome Web Store

2014-06-13 Thread Joseph Lust
If you're irked, you can let the Chrome Team know on their NPAPI thread 
.
 
It seems there have been a lot of people impacted, not just GWT users.

I also threw the above steps up online 
 
so hopefully others can work around this for now if they've got code that 
must be deved/shipped pronto.

If you're seriously perturbed, you can always contribute to a solution, 
which I believe is the SDBG Eclipse plugin .

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Hi Ajax experts, can Google spider read the content of Ajax app (that does not have any code to to make it Crawlable) by itself?

2014-05-20 Thread Joseph Lust


I misspoke, *Fetch As Google *will show you the HTML and request headers, 
what I was thinking of was *Labs > Instant Previews*

 

In the example below you can see the rendered subpage of the site that is 
totally AJAX driven:




 

And the renderings below. These thumbnails appear other places in GWDT as 
well:



So, this indicates to me that GWTP works out of the box, without need for a 
crawler servlet. I'd also note that when a client called me, irate that the 
yet to be launched site's pages were appearing on Google, it was another 
indicator that they were rendering JS based pages serverside (robots.txt 
fixed that).


Hope that helps.


Sincerely,

Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: extend UiBinder engine

2014-05-19 Thread Joseph Lust
Zied,

My apologies that my post was less than cogent. From you example, I thought 
you wanted some compile time enforcement of roles. Given your example 
UiBinder XML attribute:  *visible={roles.admin} *, that would imply 
foreknowledge of the roles at compile time given that *with* pulls in 
constant values/accessors into the Ui template. However, given your 
clarified need for a dynamic set of roles from your CMS, the roles wouldn't 
be known at compile time for inlining into that UI template. 

you should not forget GWT is a View technology, it is an HTML templating 
> engine. From this point of view, Jsp and GWT do the same: they create 
> HTML/js/css for the user's pleasure

GWT does indeed include a view framework, but very unlike JSP, there are 
many things GWT does not know at runtime that JSP does know. Given this, it 
is difficult to compile this knowledge ahead of time into the view, which 
is why I would suggest such logic be in the presenter.

To this end, I'm a fan of *dumb views*. All the GWT widgets have visibility 
methods and enable/disable methods where appropriate. Authorization is not 
one of their concerns. The view itself should not necessarily contain the 
logic for authorization and (IMHO) not the widget since is (typically) just 
a simple HTML element wrapper with the simple responsibility of putting 
tags in the DOM. For my applications this logic resides at the Presenter 
layer (using GWT Platform) and the presenter can take the proper action to 
secure the UI as needed, keeping the views simple.

the preferred solution is to work at the factory level: decide before 
> creating a widget if it will be useful or not: that's why I chose this 
> approach

For many GWT implementations such as single page applications with 
simulated browser history like GWTP (which may not apply to your case), the 
same widget is retained in the DOM and reused many times for the sake of 
speed and conserving memory. In that case, the fact that the widget was 
enabled/disabled at instantiation would prevent it's effective reuse for 
another user/use case. However, if your presenter had a *secureView( 
UserObj user)* or similar, your security delegate could properly secure the 
UI as needed on demand and not have to rerender the entire view.

mixing authorization inside the code is creating spaghetti code

You could have a central class, say* ViewAuthorizationProcessor* which 
presenters would delegate to and which could take the proper steps to 
secure a view, say *ViewAuthorizationProcessor* *#secureView( SecureView 
view, UserObj user)*. This would not be spaghetti code and would result in 
a minimum amount of classes and wouldn't need to change the core GWT 
generators or widgets. Using a simple authorization annotation, as Jen's 
mentioned, you would just mark those widgets in your your UiBinder Java 
file and everything else should work. Since your dynamic user roles would 
presumably be groups of existing authorizations (i.e. *canEditCMSPost*), 
this should work well as those could just be enum constants that are known 
at compile time.

Anyway, my code will work, I raised a bug only to complain that I had to 
> copy 20 classes instead of extending 1 class and overriding 1 method for 
> the job to get done.

I'm certain your code will work and will realize the desired business 
value. You're obviously a competent developer given your progress so far. 
There are many ways for you to skin this cat and I'm sure you'll find one.


Thanks again for you question and comments. I'm sure everyone's proposed 
solutions will be beneficial to others pursuing similar goals. I hope the 
above helps.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Hi Ajax experts, can Google spider read the content of Ajax app (that does not have any code to to make it Crawlable) by itself?

2014-05-19 Thread Joseph Lust
Tom,

To assuage your healthy skepticism, get a Googlw Webmaster Tools account, 
add your site, and then use the* Crawl > Fetch as Google option*. I am able 
to feed it my GWT home page and sub pages (based on history tokens in the 
URL) and the returned page is the page as expected, filled with the 
expected content. Check it out for yourself.

As to cloaking, I'm not sure what Google does. The obvious step would be to 
intermittently visit the page with a user agent / IP block that was not 
identifiable as GoogleBot. Then correlate those results with the results 
received when you really were the declared GoogleBot, and if there was a 
notable dependency flag and blacklist the site. However, this would mean 
agent misrepresentation and potentially going against the robots.txt, which 
would potentially be *evil* and not something Google would do openly. 
Probably it would make more sense for higher traffic sites that are flagged 
for a higher risk of spam/malware by other heuristics. 

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: .nocache.js security

2014-05-19 Thread Joseph Lust
Vendor scanners routinely complain about this href call, but such pattern 
matching scanners lack the context of the other XSS mitigation protects put 
in place by GWT. It pops up at lease yearly here. Use the tool properly and 
you'll be fine.

https://groups.google.com/forum/?fromgroups=#!searchin/google-web-toolkit/gwt$20security/google-web-toolkit/WKcB-pDtfgA/CX2-nuHcMr0J

https://groups.google.com/forum/?fromgroups=#!searchin/google-web-toolkit/gwt$20vulnerability/google-web-toolkit/7LrsBlQdDaw/E_PS2CdOGW8J

Sincerely,
Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: extend UiBinder engine

2014-05-19 Thread Joseph Lust
Zied,

GWT is not JSP. In JSP you're rendering tiles/facets/pages on demand, so it 
makes sense to add authorization restrictions directly into the tags. 
However GWT code is compiled down before runtime, so there is no 
foreknowledge of whether a user will meet the needed security roles at that 
time.

The proper way to do this is to have an initializer in your presenter that 
will take a user object and properly show/hide or enable/disable the 
components of interest at runtime display of your widget. If you want 
something similar to to Spring's @Secured annotation drive approach, see 
what Jen's has proffered. I've done this for various clients and it works 
well. Otherwise, you'll be reinventing the wheel for no good reason.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a good GWT/JS based ecommerce solution?

2014-05-19 Thread Joseph Lust
Michael,

I know you said PayPal, but I'd offer that GWT 
Stripehas been working pretty well for 
me. The nice thing about Stripe it is that 
it's completely transparent to the end user, so it looks like you're 
handling the payment processing, and you don't have to force your user to 
leave your site and login to PayPal. It's also great that only the 
creditcard and expiration are the true required fields, making mobile 
checkout a lot easier.

The only annoyance to this kind of checkout process with GWT is managing 
the state transitions. Please correct me if I'm wrong, but there is no 
Spring WebFlow equivalent in GWT where you can setup State A, B, C, D and 
all the rules for transitions between them to ensure if a customer is at 
checkout stage D and hits back, you properly handle the transition back to 
stage C (or prevent it). I had to write my own workflow stage router for 
this piece of the process.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-17 Thread Joseph Lust
FWIW, I've had Google crawling my GWTP based sites without a problem, and 
I've added no such servlet. I think they've figured out how to do the JS 
evaluation on their side. Using Googles Web Developer tools, they request 
and display my page and sub pages just fine and they're all GWT.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Newbie GWT 2.6.0 Question on inheritance - Maybe a bug?

2014-03-04 Thread Joseph Lust
Best practice is to only call *final* methods from constructors, or this 
kind of unexpected behavior can ensue.

Sincerely,
Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Development Mode will not be supported in Firefox 27+

2014-03-04 Thread Joseph Lust
I'm surprised more folks are not excited to jump ship to SuperDevMode. 

I'd argue Eclipse DevMode is more pain than it's worth. Certainly, it is 
very cool to have your backend and frontend breakpoints set and hit on the 
same screen. Yet I've spent a lot of time trying to all of the *Run 
Configurations* setup properly. Have a multi-module project? Have an OSGi 
project? Trying to debug a remote server? Working with JSO's? It's a bit of 
trial and error and not always possible. Startup is slow. Recompile is even 
slower and it's a memory hog, crashing with OutOfMemory more than I'd like. 
Plus, you need a ring of chicken blood around your computer to ward of 
breakages with new browser upgrades.

Enter SDM. I open one console type *mvn tomcat7:run-war*. I open a second 
and run *mvn gwt:run-codeserver*. No need for configuration settings 
windows and embedded Jetty's. No need to *even have an IDE at all*! 
Personally I find simpler, imperative tooling much easier to use and 
troubleshoot. Add to this Chrome Dev Tools will be a full fledged IDE soon 
at the rate they're adding features and FF Dev Tools have also come a very 
long way since FireBug.

Finally, don't we want the GWT team to spend their time building new 
features rather than keeping old tooling alive in the ICU? I think GWT's 
hit an inflection point where dumping IE everything and DevMode would free 
up a lot of resources. Many projects never make such painful decisions and 
become dinosaurs for it. I hope GWT does not.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to access WebAppContext's attributes while running GWT app as WAR file using Jetty?

2013-06-19 Thread Joseph Lust
This is not a GWT question. If you want to access context parameters from 
the servlet, use 
WebApplicationContextUtilsand
 the HttpServlet that RemoteServiceServlet extends.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: adding basic auth to GWTTestCase?

2013-06-19 Thread Joseph Lust
That sounds more like a full stack integration test, rather than a unit 
test. You should disable auth for such tests as that is not part of the 
test case. That's what we've done on ours. We only test the stack with 
authorization in higher environments.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Beginning...Problems with navigation

2013-06-18 Thread Joseph Lust
Carmen,

Can you elaborate on what you're trying to build and what it does? GWT is 
intended for Web *Apps*, not Web *Sites*. So, typically GWT would not be 
used for a blog, but it would be used for say an employee time tracking 
application. Take this forum reader as a good example of GWT.

The strength of GWT is that you are only on a single (physical) web page. 
All user interactions update the page content and the browser history, but 
the user does not need to make a trip to your server to reload the page, 
making everything faster and lower overhead.

Of course it is a different ball game from PHP or JSP's, but I'd posit it 
is more straight forward with less boilerplate than those implementations. 
Check out frameworks like GWTP which handle those events and pages you just 
mentioned rather seemlessly. They've got a number of ready to code demos 
too.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: AWS (CDN) GWT file deployment and 'Blocked a frame with origin' issue

2013-06-17 Thread Joseph Lust
Thomas,

Sorry I didn't catch you at the GWTogether in SF last month. I owe you a 
number of beers. :)

*That did the trick*. I'll bang out an article for GWTProject.org on AWS 
(and similar) CDN deployments.

BTW, I shamefully plead ignorance on the *xsiframe* linker. I'd only used 
the linkers in the GWT 
Docs
.

Yet, a grepping against the GWT source reveals:

   - appcachelinker (sample)
   - direct_install
   - xs
   - sso
   - std
   - xsiframe

We'll need to ensure the new official 
docsinclude
 these as I've seen little documentation on most of them, or perhaps 
I'm missing something and they're not all meant for prime time yet.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: AWS (CDN) GWT file deployment and 'Blocked a frame with origin' issue

2013-06-15 Thread Joseph Lust
Made progress, but the GWTP app is acting flaky after any 
deferredjs//.cache.js file is loaded. The error implied the 
functions being called are not in scope. The file is loaded and the request 
had the expected payload.

So, curious if anyone has run GWTP or similar split apps with the XS linker

*Steps taken to get things jiving*

1. I kicked on the XS linker in hopes code splitting would work with it. 
Needs more help, but this gets around frame security warnings.

2. RPC Asyncs kept pointing to the CDN, so I added the below to the RPC 
Asyncs

public static final PublicServiceAsync getInstance() {
if (instance == null) {
instance = (PublicServiceAsync) GWT.create(PublicServiceAsync.class);
ServiceDefTarget serviceDefTarget = ((ServiceDefTarget) instance);

String address = BrowserUtil.getHostpageUrl();
String oldUrl = serviceDefTarget.getServiceEntryPoint();

// if we're not local (dev) redirect to index.html URL
if (oldUrl.startsWith(GWT.getModuleBaseURL())) {
address = address + GWT.getModuleName() + "/" + 
oldUrl.substring(GWT.getModuleBaseURL().length());
serviceDefTarget.setServiceEntryPoint(address);
}
}
return instance;
}


3. The RPC Async interfaces kept throwing SOP issues, so I enabled CORS on 
the server side

4. Now RemoteServiceServlet is using the moduleName from the CDN url. 
However this does not match the server side layout, so it fails to fetch 
the *.gwt.rpc files. So I overrode RemoteServiceServlet with:

public class CustomRemoteServiceServlet extends RemoteServiceServlet {

public final static String MODULE_ALIAS = "app";

@Override
protected SerializationPolicy doGetSerializationPolicy(final 
HttpServletRequest request,
final String moduleBaseURL, final String strongName) {

// true client side relative location is the app name
String newModuleBaseURL = moduleBaseURL;
try {
URL url = new URL(moduleBaseURL);

StringBuilder builder = new StringBuilder();
builder.append(url.getProtocol());
builder.append("://");
builder.append(url.getHost());
builder.append("/");
builder.append(MODULE_ALIAS);
builder.append("/");
newModuleBaseURL = builder.toString();

} catch (MalformedURLException ex) {
// we have no affect
}

return super.doGetSerializationPolicy(request, newModuleBaseURL, 
strongName);
}
}


I hope that helps others attempting this, but I still need to solve that 
code splitting bit, so let me know if anyone's skinned that cat before. 
Thanks!



Sincerely,
Joseph



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




AWS (CDN) GWT file deployment and 'Blocked a frame with origin' issue

2013-06-15 Thread Joseph Lust
Hey All, 

I know there have been 
many
 
CDN
 
relatedquestions
 here before, but I found no answers for this problem.

So here are the constraints:

   - Serve all RPC calls and index.html from EC2 site (i.e. www.site.com)
   - Serve everything else from CloudFront CDN (i.e. static.site.com)
   - Use GWTP with code splitting (so no XS Linker)
   - Use SSL for thinks like login

So, if you do this, you'll get the "Blocked a frame with origin "
http://static.site.com"; from accessing a frame with origin "
http://www.site.com ". Protocols, domains, and ports 
must match"

To my knowledge CORS does not help with this. CORS is for XHR requests, not 
frames.

Sadly I cannot just put index.html on the CDN and use passthrough for RPC's 
with CORS because CDN entries should be uniquely names, otherwise you must 
invalidate them and this will cause inconsistencies during deployment untli 
all 34 edge nodes eventually sync up (15min to 2 hours). Additionally, 
named SSL was just supported on 
Wednesday
 at 
a cost of $600/mo, otherwise the site can only be served from a very ugly 
CF URL. That's is too pricey for most anyone.

So, is there anyway to serve all the static files from a CDN with the 
index.html on another domain without using the XS linker (to retain code 
splitting)?

Thanks for your wisdom. I've been scraping scripts together to get this 
whole deployment automated and will put it all into a GWT on AWS post when 
we're finally deployed.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: CodeMirror and GWT.

2013-06-14 Thread Joseph Lust
Håvard Moås, checkout the Chrome Markdown 
extensionto
 format code for these forums. :)

Sincerely,
Joseph



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Best practices for inlining build (revision) number into GWT App?

2013-06-14 Thread Joseph Lust
Thanks for sharing. That's what I was using before. A real *chicken and the 
egg *problem while I sounds so simple in principle.

I've also pondered a direct string replacement against the compiles JS 
files (i.e. $$BUILD_NUMBER) with filters in the war building plugin 
as ostensibly strings are still the same string in the compiled JS, but 
that would not be nearly as dependable and could certainly blow up with 
future compiler changes.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Uibinder inheriting and extending css classes (not just sharing them), best method?

2013-06-14 Thread Joseph Lust
Seth,

Currently I can do this by setting  src='/MyCss.css"> in A and B and it works nicely, uibinder 
> takes care of injecting the styles and everything. However I'm not sure if 
> this is the best way. There's also the issue that if I move A and B then 
> the relative path breaks (since absolute paths still aren't 100% functional 
> issue#7230).
>  
> Does anyone have a clue or is this the preferred method?
>

You might want to look at this previous 
answer.
 
If you do the overriding in the Java class backing your UI binder, then the 
refactoring worries won't be a problem. You can still handle the 
refactoring in UiBinder, but you'll have to set Eclipse (or IDE of choice) 
to do FQN replacements in all .xml files.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Out of Memory during GWT compile

2013-06-12 Thread Joseph Lust
Note that distribution of the compilation is likely not going to cut down 
in memory much. The parallelization occurs at the permutation code 
generation phase, however the construction of the AST must take place first 
at the precompile phase. That phase is not distributed. I've not tested 
this, but it likely isn't the magic bullet you're after.

Memory is cheap, get all that you can. :)


Sincerely,
Joseph

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




Re: Best practices for inlining build (revision) number into GWT App?

2013-06-11 Thread Joseph Lust
Thanks gents,

Your suggestions were helpful. After going the code generator route two 
years ago, but I think this time I'll stick with resource filtering the 
version into the index.html and bootstrapping it into the app via the entry 
point. 

Cheers,
Joseph

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




Re: Application architecture question

2013-06-11 Thread Joseph Lust
Timea,

If you've got the case of waiting on a multiplicity of RPC's to complete 
before continuing, something like Jen's suggestion is best. I've 
implemented it before with a multibit latches.

However you get into the issue of syncing. For example, let's say you have 
N RPC calls for a given event. If someone triggers this event twice quickly 
(say event A and B) that fires off 2*N RPC calls. You've no guarantee that 
all of A's RPC's will return before all of B's RPC's. What if B completed 
first? Should A update the UI too or is it no longer 
relevant? Essentially all of the thread locking goodness you normally avoid 
with JS creeps in. That is why when I've run into this pattern, I usually 
try to find a way to do the grouping server side rather than UI side if 
possible.

If you must, make sure you:

   - Block all UI interaction until the event's RPC's return
   - Unblock the UI on error for any RPC
   - Have a way to cancel all inflight RPC's if you need to cancel the 
   update from the UI
   - Make sure you reset you latches on error/success

Sincerely,
Joseph

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




Re: Application architecture question

2013-06-11 Thread Joseph Lust
Timea,

Not sure what the implementation trouble is:


   1. User makes some interaction (i.e. button click) so you fire and event 
   (i.e. ShowSomethingEvent(id))
   2. A listener sees the event and fires and RPC with the data from the 
   event
   3. On returning the async handler for the call you just made updates the 
   UI with the desired values.

You could add an extra event (i.e. SomethingDataReadyEvent) and fire it 
when the RPC comes back, but it is the same as steps 1 & 2.

Sincerely,
Joseph

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




Best practices for inlining build (revision) number into GWT App?

2013-06-11 Thread Joseph Lust
For various reasons you need to know the revision of the GWT app code. For 
example to verify that the server API is not newer than the JS code (i.e. 
if you deploy GWT JS to a CDN).

Some common approaches which I find to be rather hackish:

   - Use Maven replacer to replace a sequence in a *source* file at the 
   validation stage and have that inlined into your GWT file at compile 
   (hackish)
   - Use Maven replacer or Maven war plugin filters to add the build number 
   to the index.html page, or a backend service (JS code still not 
   independently versioned, more API calls)
   - Hardcode it (don't hardcode things)

After two years, the best method I've see is to create a *code generator* to 
allow deferred binding of the build number. This however has always stuck 
me as massively overkill to add a number to a build artifact.


So, I was curious how others here have dealt with this common issue. 
Hopefully there is a simpler way.


Sincerely,
Joseph

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




Re: Export Pie Chart to Excel

2013-06-06 Thread Joseph Lust
POI has the limited ability to do this if you can create a standard 
template pie chart for it to start from.

http://poi.apache.org/spreadsheet/limitations.html

Sincerely,
Joseph

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




Re: GWT dev team members blogs and way-of-work (WOW) advice ?

2013-06-05 Thread Joseph Lust
Ed,

Just curious if there is a framework that you consider an exemplar in this 
respect? I've never seen that Hibernate blog in three years of doing 
Hibernate, and its CSS nearly made me cry. So curious what framework has a 
popular nexus of that sort that everyone rallies around.

I'm a huge proponent of building more popular support of GWT, but I think 
the primary bulwark is that it is a complex framework not amicable to 
trivial script kiddie demos. Probably the best thing we can do is build a 
kickass GWT showcase site and just let people say "how'd you do that" and 
let them get piqued so they can dig deeper and learn how it's done.

FWIW, every employer I've ever worked at blogs FB/G+/TW, so those community 
sites are not that usable by many enterprise devs.


Sincerely,
Joseph

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




Re: Testing GWT without GwtTestCase

2013-05-21 Thread Joseph Lust
Early on in the presentation Erik also mentions a recently released GWT 
Mockito setup that might benefit your non-GwtTestCase goals.

https://www.youtube.com/watch?v=kilmaSRq49g


Sincerely,
Joseph

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




Re: Offline debugging my gwt app

2013-05-20 Thread Joseph Lust
It is not clear what you're attempting here. By "Offline" I believe you 
mean when not using the "DevMode" debugging plugin. You can only debug with 
the debugger when running in debugging mode. You can however use source 
maps and set breakpoints in the browser (i.e. Chrome Dev Tools) if you like 
without using DevMode.

Beyond that, to run your GWT app while not in the DevMode plugin, you'll 
need to compile and deploy it to a server (i.e. Jetty, Tomcat, JBoss) and 
start it. If you try to run it *not* in DevMode, but with the codesvr 
parameter in the URL, it will fail as it thinks you're trying to use 
DevMode.


Hope that helps.

Sincerely,
Joseph

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




GWT Application Amazon S3 Resource Hosting Question

2013-04-09 Thread Joseph Lust
Curious if anyone has had experience hosting GWT app resources on S3?

There are two ways you can approach it:

   - Host all of the compiled GWT output on S3 and relay dynamic requests 
   through S3 to your server (i.e. XHR/POST)
   - Host your static resources on S3, but load the initial .html page and 
   no-cache from your server

I was planning on the second mechanism as it would be easier to dev/test 
and would not require S3 dependence (i.e. you can put the static content 
wherever).

However, I was curious how people have configured resource bundles in GWT 
to point to a separate server than the one the application was loaded from. 
So, *does anyone have experience configuring the GWT linker to point to a 
separate host for static content?*
*
*

Or, restated

   - all async's must point to the origin server
   - all resource loading requests must point to a different static file 
   server


Thanks for your thoughts.



Sincerely,
Joseph

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




Re: EAR application with war (GWT) and JPA

2013-02-22 Thread Joseph Lust
Kris,

Read the GWT Hibernate 
docs,
 
they detail why you're having this problem and the solutions.


Sincerely,
Joseph

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




Re: IncompatibleRemoteServiceException : The response can not be Deserialized

2013-02-22 Thread Joseph Lust
When I disabled the RPC obfuscation option, everything started working 
again. However, I still don't understand why RPC Obfuscation is failing 
here. Clearly the deserializers created by GWT are using obfuscated maps, 
but for some reason the serverside sending serializers are *not* using the 
obfuscated maps.

I tested this by inheriting the obfuscation package on a sample project and 
it worked like a charm. I can only assume something I'm using, say GWTP, 
GWT-Boostrap, AutoBean or something else is preventing it from running 
correctly.




I don't have the time at the moment to start pulling the app apart stick by 
stick, but I'll update this when I discover what it causing it in case this 
happens to someone else.

Sincerely,
Joseph

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




Re: IncompatibleRemoteServiceException : The response can not be Deserialized

2013-02-21 Thread Joseph Lust
Well, seems things are quite odd. First, Tried all the suggestions:

   - Now on newer GWTP v0.8.4
   - Confirmed only gwt-servlet-2.5.0.jar present
   - Confirmed that mvn (single prop is used) loads all GWT dependencies as 
   2.5.0
   - Tested on Java6, Java7

Note: on Ubuntu 12.10, OpenJDK 6/7

But here is the interesting part. The exception is being thrown on line 153 
of SerializerBase

  private TypeHandler getTypeHandler(String typeSignature)
  throws SerializationException {
String typeHandlerClass = methodMapJava.get(typeSignature); //<<< returns 
NULL

if (typeHandlerClass == null) {
 /*
  * Probably trying to serialize a type that isn't supposed to be
  * serializable.
  */
  throw new SerializationException(typeSignature);
}


The request payload: 
7|1|4|http://127.0.0.1:/main/|136A4F582E1FABB50338F54C89DA7F0C|_|getDouble|1|2|3|4|0|
The response: //OK[0.44995762496622327,1,["java.lang.Double/858496421"],0,7]

The value of typeSignature: java.lang.Double/858496421

But methodMapJava has the following entries

   - 3=com.google.gwt.user.client.rpc.XsrfToken_FieldSerializer,
   - 2=com.google.gwt.user.client.rpc.RpcTokenException_FieldSerializer,
   - 
   
1=com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer,
   - 4=com.google.gwt.user.client.rpc.core.java.lang.Double_FieldSerializer,
   - 8=com.google.gwt.user.client.rpc.core.java.lang.String_FieldSerializer
   
This looks totally incorrect. The keys are numeric (strings) in the map, 
but the passed signature is just that, a signature. So it seems the map is 
being populated incorrectly, or the signature sent is bonk.

So I'm left wondering why everything compiles without an issue (string mode 
on) while it seems like the serializers are not correct.


Sincerely,
Joseph

P.S. The fact that primitives work is explained because all primitives have 
hardcoded deserializers in RequestCallbackAdapter. Thus they don't do any 
such map lookup.

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




Re: IncompatibleRemoteServiceException : The response can not be Deserialized

2013-02-21 Thread Joseph Lust
Thanks as always Jens. I'll run through your suggestions tonight.

Joe

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




Re: How to change css style during runtime?

2013-02-21 Thread Joseph Lust
You could try defining the CSS in a 

IncompatibleRemoteServiceException : The response can not be Deserialized

2013-02-21 Thread Joseph Lust
Folks,

I try to answer as many questions on the GWT forums as I can, but alas this 
one has stumped me the last few evenings. I'm converting RunPartner.com, my 
hobbist distance running site, from ExtJs to GWT having built GWT apps for 
the last 2 years since GWT rocks.

I searched the old postings and found that the following two had the same 
issue, but both traced it to the wrong version of gwt-servlet. I'm using 
GWT 2.5.0 compiled via the gwt-maven-plugin and with all 2.5.0 
dependencies. Also using GWTP. A check in the output war shows only the 
gwt-servlet-2.5.0.jar there. So I'm stumped.

   - 
   - Serialization Exception with 
List
   - Cannot deserialized ArrayList object in GWT 
2.3


*The issue*
I know there are a bunch of 
reasons
 things 
could fail to serialize, and I've checked all of those and I kept getting 
this issue. At first I though it was because of my custom serializers, or 
Hibernate usage, or constructors. But, when you hit one of those, the error 
message tells you so. This one tells nothing extra:




So, I got rid of all of that. I just made a method that passes a Double. 
Nothing magic there. And the issue persists despite Maven clean/rebuild or 
Eclipse clean or building the whole thing and just running it as JS/Tomcat.

So, I'm curious if there is any stone I've left unturned. Note that I know 
the wireup is correct however as when I pass a boolean through as the 
return type it jives, but not any non-primitive. On sending the Double 
below, I can see it serialized coming over the wire in the XHR fine, but 
the client always throws the error whether in DevMode or as a compiled war.

Hopefully I've missed something simple. Thanks for any pointers you can 
provide. :)

Service usage:

DoubleService.Util.getInstance().getDouble(new AsyncCallback() {

@Override
public void onFailure(Throwable caught) {
Window.alert("Error fetching double: "+caught.getMessage());

}

@Override
public void onSuccess(Double result) {
Window.alert("Double is: "+result);
}
});


Service interface

@RemoteServiceRelativePath("services/doubleService")public interface 
DoubleService extends RemoteService {

Double getDouble();
}

Backend impl:

@Service("doubleService")public class DoubleServiceImpl implements 
DoubleService {

@Override
public Double getDouble() {
return 1.46D;
}

}


Async Interface (generated by GWT Mvn Plugin):

public interface DoubleServiceAsync
{
/**

 * GWT-RPC service  asynchronous (client-side) interface
 * @see DoubleService
 */
void getDouble( AsyncCallback callback );

/**
 * Utility class to get the RPC Async interface from client-side code
 */
public static final class Util 
{ 
private static DoubleServiceAsync instance;

public static final DoubleServiceAsync getInstance()
{
if ( instance == null )
{
instance = (DoubleServiceAsync) GWT.create( DoubleService.class 
);
}
return instance;
}

private Util()
{
// Utility class should not be instanciated <- spelling error 
Thomas!
}
}
}


Sincerely,
Joseph

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




Re: Confusion with MVP.

2013-02-21 Thread Joseph Lust
I've seen many developers turned off MVP by this very issue. While not 
prone to absolutes, I'd assert that no framework/pattern should be used as 
a rule. Use it when it has benefits and makes sense.

In the case of MVP to the level of buttons, that might have a benefit at 
some obscure point in the future, but will result in a lot of code and 
boilerplate. I was considering the same issue when building a full page 
calendar widget with GWTP last week and could have made everything down to 
the day cells MVP, but it just did not provide extra benefit for all the 
code.

So when thinking of MVP, then about the *other* MVP: *Minimum Viable Produc*t. 
Do you need a few dozen extra interfaces to make those tiles? Do your 
requirements call for swapping out the views for say different platform 
views (i.e. mobile) right now? If not, use the Widget pattern until it no 
longer meets you needs.


Sincerely,
Joseph

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




Re: GWT 2.5.1-rc1 available

2013-02-15 Thread Joseph Lust

>
> Added a checkbox to automatically scroll the log.

I've been waiting so long for this!

Sincerely,
Joe

On Wednesday, February 13, 2013 1:54:49 PM UTC-5, Matthew Dempsky wrote:
>
> Hi everyone,
>
> We're excited to announce the GWT 2.5.1-rc1 release candidate!  There will 
> be an announcement soon on the GWT 
> Blog, 
> and you can download it 
> here.
>  
>  This release candidate has been uploaded to Maven Central with the version 
> string of "2.5.1-rc1".
>
> GWT 2.5.1 contains over 50 new bug fixes, many of which were contributed 
> by the community.  Thanks to everyone who reported issues and/or submitted 
> patches.
>
> Please test out this release candidate and let us know of any issues, 
> especially any regressions from either 2.4.0 or 2.5.0.  Thanks!
>
> -Matthew, on behalf of the GWT team
>

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




Re: Parametrized Css class

2013-01-28 Thread Joseph Lust
Thanks Goktug! CSS3 and GWT have been the biggest issue for me in the last 
year. I can't wait! And, as TBroyer pointed out in a post last 
year,once
 this is ready, it should be possible to use as a custom 
ResourceGenerator, so hopefully some of us could use it before GWT 2.5+1


Sincerely,
Joseph

-- 
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.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Multiple GWT sessions possible?

2012-12-14 Thread Joseph Lust
All good points from Jens.

But, perhaps I'm missing something, but on most servers (Apache with 
mod_php, Tomcat) set a session token in the cookie on the first request you 
make to the server. Once the user logs in, you associate this session with 
that user by persisting their data data in $_SESSION or a session scoped 
bean. To that end, if you had your app open in one window, or 10 windows, 
they should all be on the same session because they are all passing the 
same session id cookie.

Assuming that you're doing that, then a mechanism like Spring Security that 
would allow you to secure a context like "**/secure/*" to a given role 
(i.e. User) would be all you needed to do to protect your services/RPC's

The one catch is application timeout. To get around this I return an HTTP 
error code (i.e. forbidden) and then have that caught in the failure 
handler for the RPC's. I extended the typical callback handler so all RPC's 
can handle session termination in a consistent, graceful way, prompting 
them to login again. With Spring Security you can even setup the request to 
us remember me cookies (if user selected that on login). In that case the 
server will cache the request, log the user back in, and forward the 
request, making the session timeout/relogin invisible to the user.

Hope that helps.

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/-/-ecQuV6hrFQJ.
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: Server class 'XXX' could not be found in the web app, but was found on the system classpath

2012-12-10 Thread Joseph Lust
Ran into this same issue tonight when setting my Spring/Hibernate GWT app 
up on Kubuntu and Indigo. I removed the Eclipse.org "Maven Integration for 
Eclipse" I installed from the Eclipse Marketplace and installed the m2e 
plugin from http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/. 
That fixed the issue like Joerg suggested. Thanks Jorge!


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/-/XFzc2jMIQRgJ.
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: Creating widgets for use with / without GWT

2012-12-10 Thread Joseph Lust
Have you checked out gwt-exporter yet? 
It should achieve what you're talking about with a minimal amount of 
overhead.

Also, when exposing your widgets, I'd suggest using the ClientBundle so 
that all images/css/resources are included. This way when non-gwt consumers 
user your widgets, all they need to do is include in their project is the 
.js tag, rather than also the CSS/Images/resources.

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/-/l0wx_3UelVMJ.
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: prefix on obfuscated function names

2012-11-30 Thread Joseph Lust
What linker are you using? With the xsiframe linker the GWT code is loaded 
inside of its own frame and as such should not be susceptible to such 
namespace pollution from other libs.

See the recent post that addressed this same issue as it is common:
https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/B_2eMM3LfcU



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/-/CV4zQHbgAhEJ.
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: upload file on host from diiferent pages and get back response to the same page

2012-11-30 Thread Joseph Lust
You're looking to achieve two things here:

   - Do a file upload
   - Return an arbitrary object from an RPC

In that case, dig around on the forums as this has been asked and answered 
before:
https://groups.google.com/forum/?fromgroups=#!searchin/google-web-toolkit/upload$20rpc/google-web-toolkit/dgIg6eVjIWU/h_3Q9z7RppEJ

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/-/rfutqkv0vwYJ.
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-dnd - Vertical (VerticalPanelDropController) and Tab (TabSelectingDropController) use

2012-11-30 Thread Joseph Lust
David,

You might want to make the default on those pages for the *user-select* css 
property to *none* so that people don't highlight random bits of the page 
while tying to drag and drop around. Nice work.


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/-/y5oqD1Oe8IIJ.
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: Anyone used GWT with Require.js?

2012-11-30 Thread Joseph Lust
An update here. The external team writing in RequireJS was not so amicable 
about sending RequireJS packing into the night.

So, we did 2 things:

   - Had them use the feature in RequireJS to compile to a single file with 
   their Optimizer .
   - Had them expose  the 
   needed method in the global name space (window obj) so we can call them 
   from GWT.


I hope this helps anyone else facing the same issue.

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/-/USyLgczT5pMJ.
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: Strange RPC regression in GWT 2.5

2012-11-30 Thread Joseph Lust
A shot in the dark here, but have you seen the iOS6 Post Caching 
issue?
 
If your app was caching an earlier blank response, that could be the issue.


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/-/UvOMCe2W-QUJ.
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: RootPanel --> OutClickEvent -- > how to detect click event out of the HTML Page it self ?

2012-11-30 Thread Joseph Lust
To detect when the user has left the window, you can also look as the new 
page visibility API in HTML5.
See the explication/example here: http://davidwalsh.name/page-visibility


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/-/MwP8rM2M8fgJ.
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: Anyone used GWT with Require.js?

2012-11-21 Thread Joseph Lust
Oh the irony. I had to "componentize" a widget created by another team 
which uses RequireJs today and the first Google hit is my own answer. Given 
that I wanted to just make a GWT module that could be inherited to use an 
external widget, said module would not have an entry point and onModuleLoad 
method. Accordingly, I found the simplest way to achieve this was just to 
remove the RequireJs calls and put all the needed scripts in the 
module.gwt.xml as 

Re: Creating a gwt.xml module for a 3rd Party Library

2012-11-20 Thread Joseph Lust
Jeff,

You wrote me that you're interested in wrapping 
http://commons.apache.org/math/ . This will likely be troublesome since 
only classes in the JRE Emulation 
libraryof 
GWT can be used. The reason is simply that Javascript is not Java and 
there are a ton of things you just can't do in JS. These sorts of things 
can be emulated if one wishes, and the GWT team has done so with the 
aforementioned classes. You can Super Source some libraries to make them 
available to the GWT compiler, but if a library uses functions and types 
that are unavailable in JS (i.e. PhantomReference) then it cannot be done 
in GWT.

You might be best off pulling out the math functions of interest and trying 
to get them compiling.

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/-/lotFcz8U5iIJ.
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: More efficient way of creating CssColor instances?

2012-11-19 Thread Joseph Lust
By *better way* I was referring to a case where these values are not known 
completely at compile time but defined dynamically at run time. In such a 
case, not all permutations would be preconcatentated at compile time. If 
the implementer found themselves wanting to speed this up they could stash 
the commonly used color strings (i.e. if animating a repeating color ramp) 
rather than making them over and over. That being said, the gains would be 
minimal.


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/-/qd4dDuLGN-QJ.
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: Creating a gwt.xml module for a 3rd Party Library

2012-11-19 Thread Joseph Lust
What kind of 3rd party library? Are you wrapping a 3rd party JS library, or 
Java library? Please elaborate.

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/-/KTiMIFdI8hgJ.
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: i18n generate keys instead of failing at compilation

2012-11-19 Thread Joseph Lust
It does not appear that this is an option in the 
SDK.
 
However, I don't know why you would want to ignore failures however as it 
would leave you open to deploying a broken, unusable application where any 
UI label could be missing.

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/-/ZulYozeAixUJ.
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: More efficient way of creating CssColor instances?

2012-11-19 Thread Joseph Lust
You could cache those color objects of course or just declare them as 
static where they are used (assuming they don't often change). That being 
said, are you experiencing latencies right now with your current approach?

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/-/1r4sMJaZQVQJ.
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.



  1   2   3   4   5   6   >