Catching RPC exceptions at client side

2010-10-07 Thread Itzik Yatom
Hi,

Our project uses GWT  and App engine. We have a problem with catching
exceptions.
When we define an exception as part of method signature in our RPC
asynch interface and implement it at the server, the client side
catches it and everything works fine.

But in other 'unusual' case we have problems with catching the
exception:
We do some general checks in all our RPC server methods, for example
checking authorization of current user, and if user is not authorized
we throw a specific exception.
For that purpose we have extended the class RemoteServiceServlet and
overridden the method onAfterRequestDeserialized, in this method if
user is not authorized we throw our UnAuthorizedException exception.

The problem is that the client side gets just a general
StatusCodeException with code 500 (internal server error). I have
found this relevant code at RpcCallbackAdapter.onResponseReceived:
.
.
if (statusCode != Response.SC_OK) {
caught = new StatusCodeException(statusCode, encodedResponse);
.
.
The question is how we can get the actual exception in this case? is
there a way for the client to get the returned Response object ? Any
other direction ?

Thanks
Itzik Yatom

-- 
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-tool...@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.



External access to CSS resources

2010-05-17 Thread Itzik Yatom
Hi,

I already use Intensively UIBinder with my GWT projects.
Considering if to use also CSS resource or the regular external CSS
files in my GWT projects.
Since I work with a graphical designer that may need to change the
styling while she gets from me initial results and improve them, she
should have an access to the CSS, change some rules, save the result
and send me fixes.

Can I do it while using CSS resources?

Thanks
Itzik

-- 
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-tool...@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: Cannot debug GWT 2.0 app embedded within external iframe

2010-01-20 Thread Itzik Yatom
I have the same issue, I've tried to change the hosted.html file but
there is no change.

Itzik

On Jan 9, 6:04 pm, Stevko  wrote:
> I've managed to get my application to work in an external iframe by
> editing the hosted.html file and changing line 226
> from
> var topWin = window.top;
>
> to
> var topWin = window.self;
>
> This is the context...
> gwtOnLoad = function(errFn, modName, modBase){
>   $moduleName = modName;
>   $moduleBase = modBase;
>
>   // Note that the order is important
>   var pluginFinders = [
>     findPluginXPCOM,
>     findPluginObject,
>     findPluginEmbed,
>   ];
>   var topWin = window;
>   var url = topWin.location.href;
>   if (!topWin.__gwt_SessionID) {
>
> On Jan 8, 10:25 pm, Stevko  wrote:
>
>
>
> > Has anyone had any success with using the GWT 2.0 browser plugins when
> > the app is hosted within a facebook iframe canvas? The application
> > works well without the plugins loaded.
>
> > I believe the issue is related to the XSS / same domain policy that is
> > missing in the old 1.7 hosted IE browser.
>
> > Using the Web App Starter Project, the execution stops after painting
> > "Please enter your name:"
>
> > Chrome just alerts "Plugin failed to connect to hosted mode server at
> > myhost.webhop.org:9997" and dies with this message in the javascript
> > console:
> > Unsafe JavaScript attempt to access frame with 
> > URLhttp://apps.facebook.com/myappname/?_fb_q=1fromframe with 
> > URLhttp://myhost.webhop.org:8080/newproject/hosted.html?newproject.
> > Domains, protocols and ports must match.
> > Uncaught TypeError: Cannot call method 'createElement' of undefined
>
> > Firebug flags a javascript error at
>
> > Permission denied for  to get property
> > Location.href from .
> > anonymous(Object name=errFn, "newproject", "http://myhost.webhop.org:
> > 8080/newproject/")hosted.h...ewproject (line 227)
> > z()newproje...ocache.js (line 2)
> > anonymous()newproje...ocache.js (line 8)
> > [Break on this error] var url = topWin.location.href;\n
>
> > Has anyone figured out a way to get this to work?
> > --Andy- Hide quoted text -
>
> - Show quoted text -
-- 
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-tool...@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.




UiBinder styling superseded programmatic styling

2009-12-17 Thread Itzik Yatom
When adding the attribute styleName to an UiBinder XML element, GWT
translates it to setStyleName method call.
The problem is when using a custom Composite class that already has
called to setStyleName method, UiBinder supersedes the Composite
style.
I wish that UIBinder would call to addStyleName instead but I
understand that it's based on the entity bean approach.
Is there a way to overcome that?

Thanks
Itzik

--

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-tool...@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: Obsufcated class names when using UIBinder

2009-12-14 Thread Itzik Yatom
Thanks Thomas

I have it. Although the UIBinder adds a very long prefix, I can see
the original class name.

Itzik

On Dec 13, 5:49 pm, Thomas Broyer  wrote:
> On 13 déc, 12:22, Itzik Yatom  wrote:
>
> > I have just started to use the the UIbinder in the GWT 2.0 official
> > release, which is a great tool.
>
> > When I am inspecting DOM elements in firefox using firebug I notice
> > that GWT generates classes names that are different from the original
> > ones.  I understand the intention to generates unique class names, but
> > the problem now is that when investigating the page structure it's
> > hard to identify the original elements without their class names.
>
> > Is there a way to keep the original class names ?
>
> Yes, just put the following in your gwt.xml:
>     value="pretty" />
>
> seehttp://code.google.com/p/google-web-toolkit/wiki/CssResource#Levers_a...

--

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-tool...@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.




Obsufcated class names when using UIBinder

2009-12-13 Thread Itzik Yatom
I have just started to use the the UIbinder in the GWT 2.0 official
release, which is a great tool.

When I am inspecting DOM elements in firefox using firebug I notice
that GWT generates classes names that are different from the original
ones.  I understand the intention to generates unique class names, but
the problem now is that when investigating the page structure it's
hard to identify the original elements without their class names.

Is there a way to keep the original class names ?

Thanks
Itzik

--

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-tool...@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: Help - my web site based on GWT fails to load in IE8

2009-09-27 Thread Itzik Yatom

It is working! I use Canvas class and it doesn't work in IE8, I have
disabled, temporarily, the canvas object and it works. Now I need to
find another implementation for what I did with the Canvas.

There is an old open issue about this - 
http://code.google.com/p/gwt-canvas/issues/detail?id=12

Thanks again
Itzik

On 25 ספטמבר, 18:55, DaveS  wrote:
> To get some traction on debugging the JS code, you need to build with
> UNOBFUSCATED mode, in the project configuration (e.g. the POM if
> building with maven).
>
> Also, you could post the error here, someone might be able to help you
> then, with more detail to go on.
>
>   Dave.
>
> On Sep 25, 3:06 pm, Itzik Yatom  wrote:
>
> > I have just finished to develop a web site that is mostly written in
> > GWT. During a non-trivial load that contains many panels and widgets
> > build, asynchronous server requests for grabbing information from DB
> > and XML file contents, it fails in IE8 on adding the main Composite
> > object to the root panel with unclear JavaScript message.
> > In Firefox and IE7 it works fine. How can I get information about the
> > failure cause ? and this is, actually, a general question - How can I
> > get information where is the failure in my Java classes when at
> > runtime all Java classes are compiled to JS ?
>
> > It looks like a nightmare when everything works at development
> > environment where you can debug the Java code but it fails on runtime
> > with an error that tells you nothing about the real problem.
>
> > Thanks in advance
> > Itzik Yatom
>
>
--~--~-~--~~~---~--~~
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: Help - my web site based on GWT fails to load in IE8

2009-09-26 Thread Itzik Yatom

Thanks Dave

Still fails. In my case adding the meta tag has no influence, although
my web site doesn't fail with REAL IE7

Itzik

On 25 ספטמבר, 21:57, "t.dave"  wrote:
> i had IE8 issues when it first came out.  i'm still on GWT 1.5.3 -
> thought later versions should play nicer with IE8, but what fixed my
> issue was adding the following to the html host page:
>
> 
>
> not sure if that's a good long term solution, but made my app go from
> non-functional to functional.
>
> hope that helps
>
> On Sep 25, 9:06 am, Itzik Yatom  wrote:
>
> > I have just finished to develop a web site that is mostly written in
> > GWT. During a non-trivial load that contains many panels and widgets
> > build, asynchronous server requests for grabbing information from DB
> > and XML file contents, it fails in IE8 on adding the main Composite
> > object to the root panel with unclear JavaScript message.
> > In Firefox and IE7 it works fine. How can I get information about the
> > failure cause ? and this is, actually, a general question - How can I
> > get information where is the failure in my Java classes when at
> > runtime all Java classes are compiled to JS ?
>
> > It looks like a nightmare when everything works at development
> > environment where you can debug the Java code but it fails on runtime
> > with an error that tells you nothing about the real problem.
>
> > Thanks in advance
> > Itzik Yatom
>
>
--~--~-~--~~~---~--~~
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 - my web site based on GWT fails to load in IE8

2009-09-25 Thread Itzik Yatom

I have just finished to develop a web site that is mostly written in
GWT. During a non-trivial load that contains many panels and widgets
build, asynchronous server requests for grabbing information from DB
and XML file contents, it fails in IE8 on adding the main Composite
object to the root panel with unclear JavaScript message.
In Firefox and IE7 it works fine. How can I get information about the
failure cause ? and this is, actually, a general question - How can I
get information where is the failure in my Java classes when at
runtime all Java classes are compiled to JS ?

It looks like a nightmare when everything works at development
environment where you can debug the Java code but it fails on runtime
with an error that tells you nothing about the real problem.

Thanks in advance
Itzik Yatom
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Vertical SliderBar

2009-08-12 Thread Itzik Yatom

Hello,

I want to use the SliderBar (from the Incubator project), I prefer a
vertical slider but I can't find a way to change it.

Is there a way (using CSS or another) or a variation of this class
that allows vertical appearance and not only horizontal?

Thanks in advance,
Itzik Yatom

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---