How to refresh a component or page in GWT

2008-10-07 Thread Sam
Hello all, I have created a table with checkboxes in GWT and on click of a button I am trying to delete the selected row there by using RPC . I managed to delete the row from the database but the actual table contents are not getting updated . Can anyone please tell me the way by which I can refre

Event Cancel for Middle Button on Firefox 2

2008-10-07 Thread Chris
I am trying to override the middle button click on FF2. I can capture the middle button mouseup event; but it seems that the default FF action of opening the link in a new window/tab is not stopped. I am using the following: private class SubMenuLink extends Hyperlink{ public SubMenu

Re: Change ListBox-Item style: don't work correctly

2008-10-07 Thread Schimki86
It occurs only in IE7... Firefox and IE6 behave properly. Can anyone help me? I dont know how to fix this. Is there a workaround? 2008/10/2 Schimki86 <[EMAIL PROTECTED]> > I found the reason: the ListBoxis not updated. If I use setVisible() to > hide it and show it again the list is updated corre

Re: How can a GWT application dynamically invoke another GWT application?

2008-10-07 Thread David
Hi, Sumit, This is what I was trying to do after releazing reflection does not work. I was trying to load SampleXML into one of my panel but it complains " Unable to find type 'com.google.gwt.sample.simplexml.client.SimpleXML'" I am running it in hosted. Could you please give me a sample? Than

Re: Approximate release time for GWT 2.0

2008-10-07 Thread julia
+1. I have been searching for an updated road map for a while. PS.: Warning to the ones displeased with uncalled for emotional bursts and declarations of love: skip the next line. I adore GWT, the work of the team and the community - you guys rock the house, thanks for being there. On Oct 8, 6:0

Re: ListBox: Drop-Down Images using CSS?

2008-10-07 Thread Kevin
Hey Isaac! It looks like it was a firewall error. You were spot on! Anyway, I'm at home trying to make this JAR so I can ship it to work. I tried to "import" using Tortoise SVN to "http://google-web-toolkit- incubator.googlecode.com/svn/trunk/" but it was asking for a username and password. I tr

Re: My project can't use browser back/forward!

2008-10-07 Thread hooly.jia
Thank you! I know how should I do! On 10月7日, 下午10时32分, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > Hi! > Are you using History.newItem() and HistoryListener(s) to switch between > panels? Can you show us that code? > > > > On Tue, Oct 7, 2008 at 4:32 AM, hooly.jia <[EMAIL PROTECTED]> wrote: > > >

Re: I am not a JAVA developer

2008-10-07 Thread Guy Rouillier
SID wrote: > Dear experts, > > I have come across this GWT recently and I need to know more about it > and its usage. I need to develop some intranet applications like > Contact Manager, Activity Manager, Some workflow for ESS (like leave > request, business travel request, etc), and some other m

ClassCastException when passing Java object from one frame to another via JSNI

2008-10-07 Thread Wyatt
My web page has a frameset and I'm getting a ClassCastException when passing a Java object from a GWT widget in one from to a GWT widget in another frame via JSNI. Here is what I do: 1. I create two widgets (called "Sender" and "Receiver"), each in a separate frame in the frameset. 2. The Receive

Re: Hosted Mode won't load my app, just sits there at http://localhost:8888

2008-10-07 Thread Matt Bishop
I forgot to mention, the only logging I can find is in system.log: Oct 7 15:11:33 vanjma12 /System/Library/Frameworks/JavaVM.framework/ Versions/1.5.0/Home/bin/java[423]: CPSSetForegroundOperationState(): This call is deprecated and should not be called anymore. Oct 7 15:11:35 vanjma12 java[423

Hosted Mode won't load my app, just sits there at http://localhost:8888

2008-10-07 Thread Matt Bishop
I have run into a strange problem with an existing project I have been working on. It runs on GWT 1.5.2, OS X, 10.5.5, Java5. The project I am working on has been in development for the last 4 months on this configuration. I debug it daily, make changes, etc. Yesterday I was starting up the appli

Re: Own class-generation and repeated call of GWT.create

2008-10-07 Thread Ian Petersen
It's by design that the second and subsequent calls to tryCreate return null. The null return value indicates that the generator has already created an implementation for the given type. You should just bail out early in that case. I usually write my generators like this: public String generat

Re: Firebug tells me that "__gwt_initHandlers is not defined"

2008-10-07 Thread doubtintom
Well, the explanation, in case it is any use to someone else, is this. I had been paring down my previous "multiple entry point" app to having just one entry point. As I wanted only a log in dialog at the outset, I had nothing, or almost nothing, in the RootPanel. I had not planned on instantiati

Re: Memory leak with DOM method ?

2008-10-07 Thread jay
In a few cases, I've found that the Widget I'm working with isn't getting events as I expected. Fixing this entails something like this: class MyWidget extends Widget { . . . protected void onAttach() { super.onAttach(); DOM.setEventListener( getElement(), this ); } Ca

Re: Problem import class external path /client/ HELP!

2008-10-07 Thread Shi
Changing the file: the error is: Compiling module gwt.GwtApplication Computing all possible rebind results for 'gwt.client.GwtApplication' Rebinding gwt.client.GwtApplication Checking rule [ERROR] Unable to find type 'gwt.client.GwtApplication' [ERROR] Hi

Own class-generation and repeated call of GWT.create

2008-10-07 Thread Lothar Kimmeringer
Hello, at the moment I'm playing around a bit with GWT.create and the generate-with-directive in the GWT.xml-file to be able to generate classes used for deferred bindings. I have the following directive in my XML-file: The generate-method in AboutDataGenerator is here: public String gene

Re: Problem import class external path /client/ HELP!

2008-10-07 Thread Lothar Kimmeringer
Shi schrieb: > How should specify the source package in the file .gwt.xml? > I changed the file .gwt.xml: [...] > That's correct, but you need to add all source-paths if you specify source-paths. So now, "client" is missing. Regards, Lothar --~--~-~--~~~---~

Re: Problem import class external path /client/ HELP!

2008-10-07 Thread Shi
Thank you for reply me! How should specify the source package in the file .gwt.xml? I changed the file .gwt.xml: and the error is: Compiling module gwt.GwtApplication Computing all possible rebind results for 'gwt.client.GwtAppli

Exception while dispatching incoming RPC call

2008-10-07 Thread Thad
My GWT application is using a native function to call another GWT app embedded in my main app: native JavaScriptObject openWindow(String param) /*-{ $wnd.open('./ProjectB.html?param='+param, '_blank'); return true; }-*/; The ProjectB window opens and it's app runs perfectly. How

Re: How can a GWT application dynamically invoke another GWT application?

2008-10-07 Thread Sumit Chandel
Hi David, Alternatively, until something like the GWT.runAsync() feature comes out, you could design your GWT components as two separate entities, where one can be painted into the main display or main root panel at a time so you can control which component you want to load up and display. I'm not

Re: GWT through HTML/DHTML

2008-10-07 Thread Sumit Chandel
Hi Sachin, I'm unclear as to whether you want to include GWT in some webpage on the same domain as where you are hosting your GWT application files, or if you want to instead include your GWT application on a totally separate page being served on another domain. In the case of the former, all you

Re: Problem import class external path /client/ HELP!

2008-10-07 Thread Lothar Kimmeringer
Shi schrieb: > Hi! Mine is a project with the classes (in the package DAO) that > communicate with the database. The problem is that GWT apparently does > not recognize the classes out of /src/client. How do you come to that conclusion? > The compilation of my GWT application from this result: >

Problem import class external path /client/ HELP!

2008-10-07 Thread Shi
Hi! Mine is a project with the classes (in the package DAO) that communicate with the database. The problem is that GWT apparently does not recognize the classes out of /src/client. The struct of my project is: /src/ /src/dao/ /src/to/ /src/client/ /src/server/ /src/public/ The compilation of my

Problem import class external path /client/ HELP!

2008-10-07 Thread Shi
Hi! Mine is a project with the classes (in the package DAO) that communicate with the database. The problem is that GWT apparently does not recognize the classes out of /src/client. The struct of my project is: /src/ /src/dao/ /src/to/ /src/client/ /src/server/ /src/public/ The compilation of my

Re: getting to servlet (non rpc) in hosted mode vs. Tomcat

2008-10-07 Thread Michel
Hi again, I tried this now: RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL .encode(GWT.getHostPageBaseURL() +"IDServlet")); as you suggested, and it works fine, both in hosted mode as well as in Tomcat. Thank you very much for your

Approximate release time for GWT 2.0

2008-10-07 Thread jbdhl
Can anyone give an estimate for when GWT 2.0 will be released? Will it be within a year? Or two years? I ask because we have decided to move our fairly large application to GWT as soon as the i18n-part becomes sufficiently mature and we need to know how to prioritize our resources. That is, we wi

Re: ListBox: Drop-Down Images using CSS?

2008-10-07 Thread Isaac Truett
What sort of error are you getting? Can you access any SVN repositories outside of your local network? It could be a firewall on your network that is preventing access. On Tue, Oct 7, 2008 at 1:43 PM, Kevin <[EMAIL PROTECTED]> wrote: > > Hi Isaac, > > I went to this URL, > > http://code.google.co

Re: getting to servlet (non rpc) in hosted mode vs. Tomcat

2008-10-07 Thread Isaac Truett
It's actually a very similar problem, conceptually. The getResourceAsStream() method is the proper way to access your configuration file. You just need to be more explicit about the location of the file: // Look for a file in the package "this" belongs to. this.getClass().getResourceAsStream("mypro

Re: ScrollTable scroll position

2008-10-07 Thread Peter D.
Ah sorry about that, that's an incubator component. Seems really easy to do with a verticalpanel and a scrollpanel... On Oct 7, 1:37 pm, ivovnenko69 <[EMAIL PROTECTED]> wrote: > Guys, I'm talking about ScrollTable, not ScrollPanel! > > > > On Tue, Oct 7, 2008 at 8:35 PM, Peter D. <[EMAIL PROTECTE

Re: ListBox: Drop-Down Images using CSS?

2008-10-07 Thread Kevin
Hi Isaac, I went to this URL, http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=MakingIncubatorBetter, however I could not SVN to either http://google-web-toolkit.googlecode.com/svn/tools/ or http://google-web-toolkit-incubator.googlecode.com/svn/t

Re: getting to servlet (non rpc) in hosted mode vs. Tomcat

2008-10-07 Thread Michel
Thank you both for the responses. I haven't tried it out yet, because I am right now stuck with another problem. I wonder if it is caused by a similar misunderstanding on my part. My application needs several files on the server (myproject.properties, log4j.properties, hibernate.cfg.xml and so on

Re: ScrollTable scroll position

2008-10-07 Thread ivovnenko69
Guys, I'm talking about ScrollTable, not ScrollPanel! On Tue, Oct 7, 2008 at 8:35 PM, Peter D. <[EMAIL PROTECTED]> wrote: > > Well, don't know what to tell you. It's there, I use it myself. Here > is a link to the javadoc that says it exists. > > > http://google-web-toolkit.googlecode.com/svn/java

Re: ScrollTable scroll position

2008-10-07 Thread Peter D.
Well, don't know what to tell you. It's there, I use it myself. Here is a link to the javadoc that says it exists. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ScrollPanel.html#scrollToBottom() On Oct 7, 1:20 pm, ivovnenko69 <[EMAIL PROTECTED]> wrote: >

Re: Deferred binding result type gone after refresh in hosted mode

2008-10-07 Thread [EMAIL PROTECTED]
This might not be an issue, but this looks a little fishy to me: [ERROR] Could not load deferred binding result type > 'nl.commpany.app.web.gwt.client.model.UserAccountWrapper' company is spelled with two m's.everywhere else it has one. Could be a typo in a config file somewhere. On

Re: ScrollTable scroll position

2008-10-07 Thread ivovnenko69
I'm using gwt1.5, and don't see such methods in ScrollTable. On Tue, Oct 7, 2008 at 8:19 PM, Peter D. <[EMAIL PROTECTED]> wrote: > > They were added in GWT 1.5. So if you are using a 1.4 version or lower > they do not exist. > > On Oct 7, 1:11 pm, ivovnenko <[EMAIL PROTECTED]> wrote: > > Well, hav

Re: ScrollTable scroll position

2008-10-07 Thread Peter D.
They were added in GWT 1.5. So if you are using a 1.4 version or lower they do not exist. On Oct 7, 1:11 pm, ivovnenko <[EMAIL PROTECTED]> wrote: > Well, haven't noticed such methods in ScrollTable... > > On Oct 7, 5:32 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote: > > > On 7 oct, 14:04, ivovnenko

Re: ScrollTable scroll position

2008-10-07 Thread ivovnenko
Well, haven't noticed such methods in ScrollTable... On Oct 7, 5:32 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 7 oct, 14:04, ivovnenko <[EMAIL PROTECTED]> wrote: > > > Hello everyone. > > Is there any way to set scroll position in incubator's ScrollTable? > > The use case: > > I'm adding t

i18n, hosted mode with noserver : strange crash

2008-10-07 Thread philippe
Hi all, I'm using i18n for the first time in a GWT app. When I add the following line in my gwt.xml file : The app crash in hosted mode (stack trace below). I'm using a noserver configuration (PHP backend). The problem seems to be that GWT can't find the default locale. I tried to specify it i

Re: Severe performance problem after upgrading to GWT 1.5.2 (final)

2008-10-07 Thread Manuel
Actually yes. This seems to be slow down in FF3 on my mac. I have asked people to test using ff3 on Windows and they say its slower but not as sever as on the mac. Thanks, Manuel On Oct 6, 5:51 am, "Sumit Chandel" <[EMAIL PROTECTED]> wrote: > Hi Manuel, > Thanks for the follow-up. As far as I

Re: getting to servlet (non rpc) in hosted mode vs. Tomcat

2008-10-07 Thread Thomas Broyer
On 7 oct, 14:26, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > Those are two different URLs. /IDServlet meanshttp://host/IDServletwhile > IDServlet meanshttp://host/WhereEverTheCurrentPageIs/IDServlet. In hosted > mode, your servlet is mapped tohttp://localhost:/IDServlet. In web > mode, your

Re: ScrollTable scroll position

2008-10-07 Thread Thomas Broyer
On 7 oct, 14:04, ivovnenko <[EMAIL PROTECTED]> wrote: > Hello everyone. > Is there any way to set scroll position in incubator's ScrollTable? > The use case: > I'm adding the element to the bottom(top) of the ScrollTable, and I > want it to be selected and visible - need to scroll to its positio

Re: My project can't use browser back/forward!

2008-10-07 Thread Isaac Truett
Hi! Are you using History.newItem() and HistoryListener(s) to switch between panels? Can you show us that code? On Tue, Oct 7, 2008 at 4:32 AM, hooly.jia <[EMAIL PROTECTED]> wrote: > > hello! > I created a project and add a lot of panels. Completion of the basic > operation of the panel to swit

Re: Memory leak with DOM method ?

2008-10-07 Thread Thomas Broyer
On 7 oct, 15:38, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks. > > Is there recommandation to use DOM ? how must i use > DOM.seteventlistener ? You have to call DOM.setEventListener(elt, null) whenever "elt" is detached from the document (that's what Widget.onDetach does) or at least

Re: GWT Active Menu Item Highlighted - Please help

2008-10-07 Thread karmela
Still having the same problem. I need to make the selected link from the menu to be in a different color. When the user goes to a specific page, that page on the menu is in a different color. How can I add a class/id to the menu items? In MenuItem class there is private static final String DEPEND

JSF + GWT + Liferay questions

2008-10-07 Thread Yves
Hi guys, Any input or direction is much appreciated on the subject above. I've been dabbling in JSF and trying to utilise GWT for making customised gui components that meet our specific needs. Our end goal is to be able to provide GUI components to be plugged into Liferay. Thus far we've had suc

Re: I am not a JAVA developer

2008-10-07 Thread Jaco Van Staden
Hi @SID, I recently switched over to GWT for my client side development from ASP.Net as well. In my case we're in the process of writing a full blown Enterprise Package which will be using GWT client side and .Net Server side. So, from my perspective it's actually been easier learning GWT than i

MenuBarImages problem on mac os x

2008-10-07 Thread Massimiliano Masi
Hello, I'm using Gwt on mac os x on ppc. I created a simple MenuBar with separator (no MenuBarImages), but I got this error in the shell: ERROR] Uncaught exception escaped java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.user.client.ui.MenuBar$MenuBarImages' (did you forge

My project can't use browser back/forward!

2008-10-07 Thread hooly.jia
hello! I created a project and add a lot of panels. Completion of the basic operation of the panel to switch between, but my project can not use the browser's back/forward button. What is the problem? History is not just for the link. How should I do? Thanks. --~--~-~--~~~

Firebug tells me that "__gwt_initHandlers is not defined"

2008-10-07 Thread doubtintom
I've been editing a GWT 1.4.x project to run with GWT 1.5.2. The application works fine in hosted mode. But deployed in Tomcat, it recently started showing only a blank screen in Firefox. Firebug tells me that "__gwt_initHandlers is not defined" Here is a snapshot of the full Firebug error: http

Re: Memory leak with DOM method ?

2008-10-07 Thread [EMAIL PROTECTED]
Thanks. Is there recommandation to use DOM ? how must i use DOM.seteventlistener ? Is it possible to have memory leak when using DOM.getElementAttribute or DOM.getParent for example ? Thanks On 6 oct, 22:02, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote: > Yes. Don't use DOM.* unless you reall

Re: getting to servlet (non rpc) in hosted mode vs. Tomcat

2008-10-07 Thread Isaac Truett
Those are two different URLs. /IDServlet means http://host/IDServlet while IDServlet means http://host/WhereEverTheCurrentPageIs/IDServlet. In hosted mode, your servlet is mapped to http://localhost:/IDServlet. In web mode, your servlet is probably mapped to something like http://localhost/myAp

Re: JSONP Server Side - Dan Morrill Article

2008-10-07 Thread eggsy84
Hi Adam Thank you for this insight - I'll use Dans code for my client side to fix this and add the callback as a parameter! Thank you for all your help! I'll let you know how I get on Regards, On Oct 7, 1:03 pm, Adam T <[EMAIL PROTECTED]> wrote: > mmm, your code below doesn't really follow the

ScrollTable scroll position

2008-10-07 Thread ivovnenko
Hello everyone. Is there any way to set scroll position in incubator's ScrollTable? The use case: I'm adding the element to the bottom(top) of the ScrollTable, and I want it to be selected and visible - need to scroll to its position. Thnx --~--~-~--~~~---~--~~ You

Re: JSONP Server Side - Dan Morrill Article

2008-10-07 Thread Adam T
mmm, your code below doesn't really follow the pattern in the link of your first post - however, I think I know why your handle method is calling. The code below seems to use a timer to loop around checking if something has been returned, if not it fires your handler with null - which explains wh

Re: JSONP Server Side - Dan Morrill Article

2008-10-07 Thread eggsy84
I expect thats what I'm missing then! My calling method is as follows: public native static void getJson(int requestId, String url, CallModel handler) /*-{ var callback = "callback" + requestId; var script = document.createElement("script"); script.setAttribute("src", url+callba

Re: JSONP Server Side - Dan Morrill Article

2008-10-07 Thread Adam T
I think what you are missing is the function name in your output from the servlet. From what I see, you just return: [{color: \"red\",value: \"#f00\"}] when I would expect a response something like: mycallback([{color: \"red\",value: \"#f00\"}]) where the "mycallback" is the name of the funct

Re: How to show a swf file in a panel

2008-10-07 Thread Raphaël POCHET
Have you tried something like this ? HTML html = new HTML(""); panel.add(html); On 6 oct, 10:39, Saeed Zarinfam <[EMAIL PROTECTED]> wrote: > Hi > > I have a banner and i want to show it in the panel . how i can do it ? > please help me ? > > thanks --~--~-~--~~~---~--

getting to servlet (non rpc) in hosted mode vs. Tomcat

2008-10-07 Thread Michel
Hi, I need to call a servlet from my GWT application. It all works fine, except that I appear to need different code for hosted mode versus deployment in Tomcat. In hosted mode, this works: RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL

Re: colorating a tab

2008-10-07 Thread Zied Hamdi
Hi Thomas and Alex, Thanks for your fast reply, I was Ill these last days so sorry for my delay. > this is because you don't have the required styles names in your CSS file (main.css). Otherwise, GWT would load the styles from your file. Alex: Belive me they are there and firefox shows them as o

Re: HTML inside a text box

2008-10-07 Thread [EMAIL PROTECTED]
:( i dont want all that extra stuff there, just a simple link. but since its not possible in javascript either i think im wasting my time. Thanks anyway, Steve On Oct 7, 1:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK, found what I was looking for.  Naturally, found it on Screaming

Deferred binding result type gone after refresh in hosted mode

2008-10-07 Thread Ivo
Hello, Currently, my development efforts on a GWT app are seriously hindered by the fact that I can no longer 'refresh' the code in Hosted Mode. When I try to do so, the browser throws the exception quoted below and the only option is to close it and restart, which takes too long per cycle to be

chat GWT webapp on Android: why do I sometimes lose messages ??

2008-10-07 Thread Steven
Hallo everybody, I have just programmed a chat application to be applied to Android (SDK m5-rc15) and to as many browsers as possible. At present I am exploiting only the GWT (1.5.1) API, with the 'smack' library which allows connection to a xmpp server. (For now I'm using just Firefox as XMPP s

chat GWT webapp on Android: why do I sometimes lose messages ??

2008-10-07 Thread Stefano
Hallo everybody, I have just programmed a chat application for Android (SDK m5-rc15). At present I am exploiting only the GWT (1.5.1) API, with the 'smack' library which allows connection to a xmpp server. (For now I'm using just Firefox as XMPP server and a Spark client). I have a big problem

Re: JSONP Server Side - Dan Morrill Article

2008-10-07 Thread eggsy84
Hi Adam, Thank you for the reply it definately helps! when you say it needs to be well-formed javascript I have implemented a method that performs the following: /* (non-Javadoc) * @see javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletRes

Re: Using the hibernate4gwt?

2008-10-07 Thread noon
Hi, As far as I know, the Dozer solution suffers of the following issues : - The service class must know how the entity has been loaded to use the proper clone configuration (not a very good encapsulation), - Each configuration is associated to one XML file, which can be expensive for rea

Re: draw circle without GWT (radius known)

2008-10-07 Thread atpco81
Thanks a lot, Eric! I just solved it! There was a mistake here: circleRadius= (radius/1000); //km The right version is: circleRadius= (radius); //km (For it I didn't see the disk!) Anyway thanks for the prompt answer :) Giorgio On 6 Ott, 19:07, "Eric Ayers" <[EMAIL PROTECTED]> wrote: >