Re: key events in firefox

2010-01-20 Thread muhannad nasser
this is the code for the event;

@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
 if(DOM.eventGetType(event) == Event.ONKEYPRESS){
if(event.getKeyCode() == KeyCodes.KEY_ESCAPE){
 hide();
}else if(event.getKeyCode() == KeyCodes.KEY_ENTER){
if(okButton.isVisible())
 handleOK();
else if(searchButton.isVisible())
handleSearch();
 }
 }
 }

On Wed, Jan 20, 2010 at 9:57 AM, Anoop John  wrote:

> can you please provide your code
>
> On Jan 20, 12:13 pm, muhannad nasser  wrote:
> > hi all;
> >
> > i am using keyPressed event to catch the ESC button. to close an open
> > popup.. it works fine in the hosted mode and IE7 but it does not
> > work on FireFox..
> >
> > any ideas please
> >
> > --
> > ~~~With Regards~~~
> > Muhannad Dar-Nasser
> > ~~Computer Systems Engineering~~
>
> --
> 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.
>
>
>
>


-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~
-- 

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.




Abort a request before being sent in RequestBuilder

2010-01-20 Thread makoki
Anyone knows a way to abort a request from the RequestBuilder, we're
trying to build a request cache on top of the RpcRequestBuilder,  by
overriding the provided do* methods of rpcrequestbuilder we're able to
cache request data and its response but we cannot abort the ongoing
request nor avoid being sent. The only way we found was by throwing an
IllegalStateException that will break the flow of the builder, the
problem is that then all methods must be wrapped with a try catch
controlling this.
Is there  way to abort the current request from requestbuilder?
Any idea?
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-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.




Sprite on css + !important

2010-01-20 Thread Michel
Hi.

In the documentation, I can see this:

@sprite .mySpriteClass {gwt-image: "imageAccessor"; other: property;}
=> generates =>

  .mySpriteClass {
background-image: url(gen.png);
clip: ...;
width: 27px;
height: 42px;
other: property;
  }

What if I want to generate this:
 .mySpriteClass {
background-image: url(gen.png) !important;


How I can add the !important to the background-image.
Is there a way to do this?

Tks and regards,
Michel.
-- 
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: Why is ajax in debug mode so slow?

2010-01-20 Thread makoki
Maybe it's because of real-time java to javascript compilation?

On 20 ene, 02:53, "flyingb...@gmail.com"  wrote:
> In gwt debug mode, loading the data from the ajax serialization is so
> slow.
>
> If i compile it and run it the away loads in about a second but if
> loaded though the debugger plugin it takes a couple minutes for it to
> load the ajax datas.
-- 
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: "gwt-servlet.jar" being deleted at each Eclipse startup after upgrading to gwt 2.0

2010-01-20 Thread aliman
We have this problem. Our workaround has been to delete gwt-
servlet.jar from the svn repository, then add it to svn:ignore on the
WEB-INF/lib folder. Eclipse then re-adds the jar when it launches, but
that's ok because it's ignored w.r.t. svn.

We have a separate production build system using maven, which pulls
the gwt-servlet.jar out of the appropriate maven repository at build
time.

Cheers

Alistair

On Jan 19, 10:43 am, Jeff Schnitzer  wrote:
> As you discovered... as soon as you think you've solved the problem,
> it happens again :-(
>
> I also experience this problem with some of the GAE jars.  It's
> really, really annoying but I don't have time to rebuild my eclipse
> install from scratch...
>
> Jeff
>
> On Mon, Jan 18, 2010 at 4:20 PM, Erik Uzureau  wrote:
> > A colleague of mine seems to have found a solution to this:
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=4463#c7
>
> > On Jan 18, 5:54 pm, Erik Uzureau  wrote:
> >> The real question here is what do we all (on this thread) have in
> >> common that the rest of the world doesn't.
>
> >> Surely we are more than 6 people in the world using GWT 2.0 are we
> >> the only people withgwt-servlet.jar
> >> in /WEB-INF/lib in our SVN repositories or is it something else?
>
> >> Also, if it is patently wrong to have thegwt-servlet.jarfile in the /
> >> WEB-INF/lib file... then why are we clearly
> >> told to put it there here:
>
> >>http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...
>
> >> ??
>
> >> Frustrated,
> >> Erik
>
> >> On Jan 9, 5:01 am, Jeff Schnitzer  wrote:
>
> >> > Ignore this solution.  The problem is simply intermittent and didn't
> >> > happen a few times.  It nevertheless persists.
>
> >> > Jeff
>
> >> > On Fri, Jan 1, 2010 at 1:58 PM, Jeff Schnitzer  
> >> > wrote:
> >> > > Amazingly, you're right.  The solution is to ignore the message,
> >> > > *don't* revert your files back, and restart Eclipse again.  The plugin
> >> > > deletes the files the first time, then recreates them the second...
> >> > > and since the new files are identical to the old, svn is happy.
>
> >> > > Jeff
>
> >> > > On Fri, Jan 1, 2010 at 12:18 AM, John OConner  
> >> > > wrote:
> >> > >> I found the culprit. The eclipse plugin preferences file explicity
> >> > >> namesgwt-servlet.jaras a file that it must copy to the web-inf/lib
> >> > >> directory. So I assume that SVN (and for me it is Perforce) see that
> >> > >> action as an attempted delete as well. I resolved this myself by
> >> > >> removing that file from web-inf/lib and just letting the plugin have
> >> > >> its way. I tried deleting the offending line from the preferences
> >> > >> file, but the plugin insisted on replacing that line on startup. Odd,
> >> > >> if an application *insists* on a very specific setting regardless of
> >> > >> user intentions or my own preferences, why put the setting in an
> >> > >> external preferences file to begin with?
>
> >> > >> Regards,
> >> > >> John O'Conner
>
> >> > >> On Dec 31 2009, 7:05 pm, Jeff Schnitzer  wrote:
> >> > >>> I have this exact same problem... it's quite annoying.
>
> >> > >>> It also sometimes happens with GAE jars.  Every time I restart 
> >> > >>> Eclipse
> >> > >>> I have to go through my projects and revert any deleted jars.
>
> >> > >>> Jeff
>
> >> > >>> On Wed, Dec 30, 2009 at 5:53 PM, itwip.81  wrote:
> >> > >>> > Dear Sir/Madam,
>
> >> > >>> > I have encountered a problem after upgrading from GWT 1.7 to 2.0. I
> >> > >>> > did uninstall all of the previous GWT SDKs, AppEngine and plugin
> >> > >>> > before I install the new 2.0 plugin. I am using 
> >> > >>> > Subversion/subclipse
> >> > >>> > for version control in our eclipse project. However, the "gwt->>> 
> >> > >>> > > servlet.jar" has been marked as being deleted (according to 
> >> > >>> > subversion
> >> > >>> > - red cross) every time I start up eclipse since I upgrade to gwt 
> >> > >>> > 2.0.
> >> > >>> > So, now i will need to revert the deletion every time I reopen the
> >> > >>> > project before commiting anything. Have anyone experience this 
> >> > >>> > before?
> >> > >>> > Does anyone know the soultion to solve this annoying problem.
>
> >> > >>> > PS: It seems like GWT 2.0 plugin is trying to replace the 
> >> > >>> > 2.0gwt->>> > servlet.jarwith any existinggwt-servlet.jarin our 
> >> > >>> > project folder
> >> > >>> > after the upgrade. But it is wrong to repeat this process 
> >> > >>> > everytime i
> >> > >>> > reopen the project.
>
> >> > >>> > Best regards,
>
> >> > >>> > Martin
>
> >> > >>> > --
>
> >> > >>> > 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 
> >> > >>> > athttp://

Google Webtoolkit RPC Problem: AsyncCallback parameterization not compatible with return type

2010-01-20 Thread Simon
Hi,

I am working on an opensource application, openxdata. It uses GWT
1.5 . Am using ubuntu 9.04, eclipse 3.4, spring and hibernate
frameworks.

I get the error below

Description ResourcePathLocationType
AsyncCallback parameterization is not compatible with the return type
of ReportService.deleteMappedReport ReportServiceAsync.java
OpenXDataServerAdmin/src/org/openxdata/server/admin/client/service
line 29 Google Web Toolkit RPC Problem

Looking forward for your help.

Simon.
-- 
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: Image Rotates Itself

2010-01-20 Thread Martin Trummer
what happens if you copy the URL of that image and
open it in a new browser window/tab?

maybe you should also clear all cache/s,
restart the webserver/s to avoid any old data to confuse you.

On 19 Jan., 16:25, Deerman  wrote:
> Thank you for your reply.
>
> The thing is I am actually not rotating anything. I am simply adding
> the image to the Image object and it is rotating itself.
> I checked the war folder, (that is where the image resides) and it is
> not rotated. But when it is displayed, it is rotated.
>
> Could it be a pixel issue or length width issue perhaps? I am totally
> stumped.
>
> On Jan 19, 10:09 am, Ashar Lohmar  wrote:
>
> > Hi
> > just a hint ... for example picasa if you say to rotate a image by
> > clicking the round arrow it shows it rotated, but the image isn't
> > really rotated picasa only makes an configuration file (hidden) that
> > will be read every time u go there and it "says" in it that the image
> > should be presented rotated, I saw the same thing on other picture
> > managers to.
> > maybe that's your problem or something similar to that.
>
> > to check that this is the case, open the image with paint for example.
>
> > I don't see another reason why this could happen, or maybe I'm wrong.
>
> > Good luck
>
> > On Jan 18, 5:10 pm, Deerman  wrote:
>
> > > I am reading in an image from the user on the server side and copying
> > > it to the war folder. This process works fine.
>
> > > Then, through an RPC call, I get the location of the image and display
> > > the image to my Image object (which is placed in a VerticalPanel).
>
> > > The image is visibly, but the problem is for some images they are
> > > either rotated 90 degrees or -90 degrees. Am I missing something?
>
> > > 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-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: How to insert a

2010-01-20 Thread Ladislav Gazo
Hello,

due to such kind of problems we used a routing mechanism implemented
in ProxyServlet (http://code.google.com/p/acris/wiki/
SeparateClientAndServer). You would direct it to URI in original URL
but the proxy will redirect it to appropriate URL and return the
response back to your client tranpsarently.

Regards,
Laco

On 19. Jan, 21:40 h., jfagh  wrote:
> Hi Alex,
> Thank you for your response, Yes, that was the problem, I was
> embedding the  into a