ClientBundle with lots if Images

2012-07-03 Thread Carlos Silva
Hi,

since we can't use reflection on client side, what's an easy way to access
each ImageResource from a ClientBundle that has ~250 images? Doing it in a
if..then..else..if statement looks overkill, but I really can't remember of
anything else. Maybe I'm missing something. Any suggestions?

Thanks,
Carlos Silva

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



Re: ClientBundle with lots if Images

2012-07-03 Thread Carlos Silva
On Tue, Jul 3, 2012 at 3:59 PM, Thomas Broyer t.bro...@gmail.com wrote:


 On Tuesday, July 3, 2012 5:07:32 PM UTC+2, Carlos Silva wrote:

 Hi,

 since we can't use reflection on client side, what's an easy way to
 access each ImageResource from a ClientBundle that has ~250 images? Doing
 it in a if..then..else..if statement looks overkill, but I really can't
 remember of anything else. Maybe I'm missing something. Any suggestions?


 ClientBundleWithLookuphttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/resources/client/ClientBundleWithLookup.html
 ?


That's what happens when one doesn't know the API :) Thanks!

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



Help debug GWT Designer in eclipse

2012-07-02 Thread Carlos Silva
Hi,

I'm using Gentoo and I have eclipse version 4.2 along with swt 4.2 and
libwebkit-gtk installed. Everything looks good with respect to system
libraries and whatnot. Still, eclipse refuses to load up the designer
saying that it needs xulrunner version bla bla bla. On version 3.7 I had an
option to enable WebKit as renderer but now I don't.

I'm looking for help to diagnose the problem and try to understand if it's
a system configuration (or libraries installed) problem or some kind of
bug/feature of GWT Designer for Eclipse 4.2.

Thanks in advance,
Carlos Silva

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



Server side equivalent of RpcRequestBuilder

2012-06-12 Thread Carlos Silva
Hi,

I'm using an RpcRequestBuilder to add a session id header to the http
request being made to the server.
Now, what I wanted was to on the *server* side, get the request and before
it get's executed (call the method), check if the session is valid.
How can I accomplish this?

My biggest problem is understanding the full workflow (classes involved) of
a GWT-RPC request, so I really don't know which class to
create/extend/define.

Any help is good help :)
Thanks in advance.

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



Re: How to create war file in GWT 2.4 / Eclipse Indigo

2012-05-18 Thread Carlos Silva
On Thu, May 17, 2012 at 8:19 PM, Assiya EL missweb...@gmail.com wrote:

 you must to create a web project and add jar of GWT2.4 and not create a
 project gwt with plugin  it is possible to have a war of the
 project with this step

 good luck


I create a normal GWT Application (from the Eclipse plugin). Then export
the src folder into a .jar file in war/WEB-INF/lib/ and then use the
warbuilder.xml available from this[1] site.
Works like a charm. :)


[1]
http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-to-deploy-war-on-tomcat/2009/12/

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



Re: GWT Debug Firefox (for the n'th time)

2012-05-15 Thread Carlos Silva
On Tue, May 15, 2012 at 6:32 PM, Rori Stumpf r...@simplesmartads.comwrote:

 I made the mistake of upgrading to FireFox 12. I thought Chrome would work
 for GWT debug, but that pig still isn't flying.
 So... where can I download FF 10? I've spent 1/2 hour trying to find it on
 the web, everything I found points back to FF12.


How come chrome doesn't work? I'm using the latest beta (19.X) and it
works.

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



Relaunch a GWT-RPC request after a failure

2012-05-14 Thread Carlos Silva
Hi,

I'm using RpcRequestBuilder to intercept and do some general modifications 
to every RPC I make on my application.
Is there a way, to if I caught a throwable on my RpcRequestBuilder, and I 
know that I should try to do the RPC again, relaunch the same RPC? 
It's theoretically possible, I just don't know what to same to launch the 
RPC request again. 
(and yes, I will be careful not to enter on a loop :) )

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/W90WEthp5msJ.
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.