Re: Does GWT work in Snow Leopard?
http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard this got me back up and running --~--~-~--~~~---~--~~ 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: mvp / gwt-presenter / uibinder
I've run some quick tests on one approach to incorporating UiBinder, the MVP design pattern, and child view's. Most of the approaches I've seen in the group have focused on how to add the child View to the parent View after construction. But, another approach is to return the child View from the parent View, and bind the View to the child Presenter within the parent Presenter. Here is an example. I have two presenters defined: a MainPresenter and an AccountListViewer. First, the code for AccountListViewer: public class AccountListViewer { interface Display { ... } Display display; public void bindDisplay( Display display ) { this.display = display; ... } ... } The MainPresenter's View/Display interface returns an object implementing AccountListViewer.Display (similar to the HasValue type characteristic interfaces in Ray's talk). The MainPresenter then uses this in its constructor to bind the display to the AccountListViewer object, as shown in the code below: public class MainPresenter { interface Display { AccountListViewer.Display getAccountListView(); ... } Display display; public MainPresenter( AccountListViewer viewer, Display display ) { this.display = display; viewer.bindDisplay(display.getAccountListView()); } ... } Now, here is the MainView.Display implementation: MainView.ui.xml - MainView.java -- public class MainView extends Composite implements MainPresenter.Display { interface Binder extends UiBinder {} private static final Binder binder = GWT.create(Binder.class); @UiField AccountListViewer.Display accountList; public MainView() { initWidget(binder.createAndBindUi(this)); } public Display getAccountListView() { return accountList; } ... } Now we have a nice declarative layout of our Widgets according to the parent without having to force the Display interfaces to really understand what a Widget is. Note, you should refrain from injecting child Presenters with a Display instance in this case to avoid unnecessary object creation. Some benefits to this approach is that it could allow one set of developers/designers to work on the View/Display portion of the application while others work on Presenter logic. Also, changing the way the UI looks is simply a change to the associated Views and injections. The one downside I see with this approach is the coupling between the parent and child View's, however since there is already a coupling of the parent and child Presenters, this doesn't seem like a major issue. Hope this helps some thoughts. I'm still interested to see Ray Ryan's example once he gets some time to put it together. Hopefully it will address some of these issues. -Jason On Aug 28, 7:11 am, Etienne Neveu wrote: > (Addendum: Thomas's answer beat me to it, but since I noticed it after > writing this post, I will post my answer anyway ;) ) > > I did not have a dev environment setup when I posted this, so did not > test this. I obviously should have, because I did not see the > recursion in what I was trying to do. > > As you guessed it, the problem is that we want to inject the same > Display interface (MyPresenter.Display) in two different places: > - in the view, where we want Gin to use the @Provides factory method > (which creates a new view, injects it into a new presenter, and > returns the view) > - in the presenter, where we do NOT want to call the @Provides method, > but instead bind MyPresenter.Display to MyPresenterView in the > "standard" way. > > Guice's private modules would have solved this problem elegantly but > they are not yet available in > Gin:http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/injec... > > Here is what I did instead: > > I took as a basis the example project from this good gwt-presenter > tutorial:http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-... > > I created a new Guice binding annotation: > > @BindingAnnotation > @Target( { FIELD, PARAMETER, METHOD }) > @Retention(RUNTIME) > public @interface ViewForPresenter { > > } > > > > I created a new presenter: > > public class TestPresenter extends > WidgetPresenter { > public interface Display extends WidgetDisplay { > HasClickHandlers getTestButton(); > } > > // Notice the @ViewForPresenter annotation here > @Inject > public TestPresenter(@ViewForPresenter Display display, EventBus > eventBus) { > super(display, eventBus); > Log.info("TestPresenter created"); > bind(); > } > > @Override > protected void onBind() { > registerHandler(display.getTestButton().addClickHandler(new > ClickHandler() { > @Override > public void onClick(ClickEvent event) { > Window.alert("Button clicked!"); > } > })); > } > > @Override > protected void onUnbind() { > }
Java server frameworks for GWT
Hi, I began testing GWT a couple of months back and was able to build a small application using Django on the server. I really like GWT and after watching the talk by Ray Ryan at Google I/O, I am motivated to try GWT-RPC. Also, as my app gets bigger, the serialization / de-serialization process is getting to be a real chore. This is something it seems I can avoid with GWT-RPC. Problem is, I don't have any experience with using Java on servers. I want to learn but I'm having trouble deciding on a good starting point. I've been thinking about using Apache Tomcat as my test server. Are any of the other web servers better suited for GWT-RPC? Is there any Java framework that can help me with standard tasks such as authorization etc...? I've been reading about the Spring framework and the Struts framework. What are you thoughts on those? Any advice is greatly appreciated. Thanks a lot. Take care. --~--~-~--~~~---~--~~ 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: Howto implement a RequestBuilder using gin
On 08/28/2009 05:53 PM, Jeff Chimene wrote: > Hi, > > I'm not enough of a Java pundit to understand how to implement a > RequestBuilder using Gin. > > The issue is that one cannot instantiate a RequestBuilder class w/o a > HTTP method and a URL. > > How does one pass these parameters in such a situation? I thought about using BindingAnnotations. I'm hoping there is Another Way. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Howto implement a RequestBuilder using gin
Hi, I'm not enough of a Java pundit to understand how to implement a RequestBuilder using Gin. The issue is that one cannot instantiate a RequestBuilder class w/o a HTTP method and a URL. How does one pass these parameters in such a situation? --~--~-~--~~~---~--~~ 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: Is there a recommended way to do header and footer templates
Thanks for the advice. I'll give it a try. On Aug 26, 3:05 am, davis wrote: > I just do something like this...in HTML, have div sections for header/ > footer. > > public class Header extends Composite { > // etc. > > } > > Whatever code bootstraps your app, just do: RootPanel.get("header").add > (new Header()); > > I do something a bit more involved using MVP pattern, and events to > manage the dynamic view, but this is the general idea. > > Regards, > Davis > > On Aug 25, 5:40 pm,KevinStembridge > wrote: > > > Hi all, > > Just wondering if there is a recommended way to provide header and > > footer templates with GWT. Its been a while since I did any web > > development but back in the day I'd be using something like Tiles with > > Struts or Sitemesh for JSP applications. > > > It looks as though I could still use Sitemesh with a GWT app but I > > would like to know if there is a standard practice. > > > Many thanks, > >Kevin --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
I tried Soylatte 32 bit Java 6 for Mac http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg10100.html It failed because GWT won't start hosted mode if you run Java 6 on OS X --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to access a member ver created in the parent class
Help I have written a class to get a spreed sheet file from the sevrer and extract the data. This worcks, but the data is displayed in alert boxes to see if it worcks. I called the class CGetDataBase; I wanted to creat labels and add them to a VerticalPanel I created in the entrypoint function. And stored it as a mener veribol in CGetDataBase as my_ver. I then call builder.send request and create a RequestCallBack class. In the function handleReponse, I cannot get access to my_ver, how can I get this to work? Ok in C++ I could use a globol, I know messey programming. How can I do this in java public class cGetDatabase { private String url; VerticalPanel my_ver; public cGetDatabase(String address, VerticalPanel ver) { this.url=address; this.my_ver=ver; } public boolean Send() { RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(this.url)); builder.setTimeoutMillis(5000); this.my_ver=null; try { Request request = builder.sendRequest(null, new RequestCallback() { // this is in the RequestCallback class public void onError(Request request, Throwable exception) { // Couldn't connect to server (could be timeout, SOP violation, etc.) } public void HandleResponse(String data) { String lines[]; lines=data.split("\r"); Label test = new Label("test"); // how can I access ver // which is declered in this.my_ver.add(test); String line[]; for(int i=0; ihttp://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Single entry point, multiple root panel Ids, display just one of them not showing
There are Panels which can hold multiple widget within them which u could use. Else... if you wanted to reuse UI components.. look at Composite class.. it an abstract class which could be used to create complex widgets, pretty simple as well --~--~-~--~~~---~--~~ 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 access a member ver created in the parent class
On 28 août, 20:24, tedpottel wrote: > > I have written a class to get a spreed sheet file from the sevrer and > extract the data. This worcks, but the data is displayed in alert > boxes to see if it worcks. I called the class CGetDataBase; > > I wanted to creat labels and add them to a VerticalPanel I created in > the entrypoint function. And stored it as a mener veribol in > CGetDataBase as my_ver. > > I then call builder.send request and create a RequestCallBack class. > In the function handleReponse, I cannot get access to my_ver, how can > I get this to work? Ok in C++ I could use a globol, I know messey > programming. How can I do this in java > > public class cGetDatabase { > private String url; > > VerticalPanel my_ver; > > public cGetDatabase(String address, VerticalPanel ver) > { > this.url=address; > this.my_ver=ver; > } > > public boolean Send() > { > RequestBuilder builder = new > RequestBuilder(RequestBuilder.GET, > URL.encode(this.url)); > builder.setTimeoutMillis(5000); > this.my_ver=null; > > try { > Request request = builder.sendRequest(null, new > RequestCallback() > { > > // this is in the RequestCallback class > public void onError(Request request, Throwable > exception) > { > // Couldn't connect to server (could be timeout, SOP > violation, etc.) > } > > public void HandleResponse(String data) > { > String lines[]; > lines=data.split("\r"); > Label test = new Label("test"); > > // how can I access ver > // which is declered in > this.my_ver.add(test); > > String line[]; > for(int i=0; i { > line=lines[i].split("\t"); > String name=line[0]; > String email=line[1]; > Window.alert(name); > Window.alert(email); > } > > } > > public void onResponseReceived(Request request, Response > response) > { > if (200 == response.getStatusCode()) { > HandleResponse(response.getText()); > > } else { > // Handle the error. Can get the status text from > response.getStatusText() > Window.alert("Server could not respond"); > } > } > }); > > } catch (RequestException e) { > // Couldn't connect to server > Window.alert("Could not connect to server"); > > } > > return true; > } > > } Either put your HandleResponse within the cGetDatabase class (wow! strange naming convention!) instead of the anonymous RequestCallback; or use either "my_ver" (no "this" prefix, as "this" references the RequestCalback) or "cGetDatabase.this.my_ver". --~--~-~--~~~---~--~~ 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: WYSIWYG version of Google Plugin for Eclipse coming soon?
On 28 août, 20:43, Keith Bennett wrote: > Hi, we're trying to decide whether to spend the money on GWT Designer > from Instantiations. Does anyone in the community know (or can anyone > from Google tell us) whether Google will be releasing a WYSIWYG > designer for GWT in any upcoming releases of Google Plugin for > Eclipse? http://groups.google.com/group/google-web-toolkit-contributors/msg/6242cef70c6d0f6d though this might not reflect the Plugin team's view, maybe only the GWT's team view (about not providing a tool in GWT, independent of the GPE, to do this). > Also, is there anyone out there with experience using the > GWT Designer from Instantiations? Is it worth the money? Don't use it, can't answer... --~--~-~--~~~---~--~~ 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: Problems with Async Calls
need more info. Try going to the published rpc endpoints with browser and see if they're published. Check logs of the web container. Try to add logging to the client code; log events to Firebug console, for example. And check the configuration again - your webapp is configured, working fine, clean in logs, server is accessible, etc. Also, make sure that you have not hardcoded entry-point locations in the client code. On Aug 28, 1:50 pm, christoph wrote: > Hello, > > I have a question concerning async calls on a server. > > We have developed a small web application with some async calls to a > server and database. > > However the problem is that when the application is deployed on a > server the calls do not work. On the local machine everything works > fine and it is even possible to connect to the database, which is > running at the hosting provider from the local machines > > The server runs apache and as the database we have chosen postgres. > > Is there someone who has a bit of experience with this issue? > > best regards --~--~-~--~~~---~--~~ 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: What's up with Native libs needed?
On 28 août, 22:11, "hanas...@gmail.com" wrote: > 1. What is the background on needing native C libs on the OS? See the > below... HostedMode's UI is build with SWT (same toolkit used for Eclipse) which requires the native libs. It also embeds a web browser, which is obviously "native" too (IE on Windows, Safari on Mac and an old Mozilla 1.7 on Linux) > 2. how can the below be resolved? See Jeff's answer. > 3. Am I reading the error right? GWT requires eclipse libs too? SWT was originally made for Eclipse, by Eclipse; it's now used in many more projects but is still an Eclipse project, hence the org.eclipse.swt.* (btw, GWT also uses Eclipse's JDT to parse your Java code in order to translate them into JS) --~--~-~--~~~---~--~~ 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: FormPanel submit() displays popup
The example is not GWT. You might be better off in a group that deals with whatever it is. Ian http://examples.roughian.com 2009/8/28 JonJ27 > > I have also noticed this.. > > Anybody got any further with it? > > I am using this for the logon part of my app... but cant seem to work > out how to chekc that the log on worked. > > Any ideas? > > Cheers > > Jonathan > > On Jul 25, 10:39 am, Scott wrote: > > I noticed this issue only appears in a Google hosted mode web > > browser. If I deploy the application to an separate Jetty server and > > view it via Firefox, then the application does not load in a popup on > > form submit. > > > > Does anyone know what fix I need so that submitting a form does not > > spawn a pop-up in Google hosted mode? > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
dynamically deleting records from incubator scrolltable
Hi All, In one of my grids i have a requrirement that based on some action on the grid the record in teh grid needs to be deleted and widget refereshed.I could not find any delete method on scrolltable or grid (core gwt). Do i always need to redraw the grid? or is there a better option? 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 -~--~~~~--~~--~--~---
ADA Compliance for application developed using GWT
Hi All, I am developing an application using GWT ( core+ incubator) but one of my main requirememts is that application should be ADA COMPLIANT. Is that possible if i go with a widget like UI (similar to IGOOGLE??). Please let me know if anyone has done research on ADA compliance as my application has to be ADA compliant. 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 -~--~~~~--~~--~--~---
Re: Hosted mode hanging 4 out of 10times
If you look at my responses, you will see that I concentrate on the problem of the GWT app hanging, not on Java on the server side or anything else server side. I agree that non-GWT related posts (and I include all those damn EXT extensions and all that other s***) should not be encouraged, and I agree that there is a type of neo-programmer which does not embrace the Empirical Development Methodology to the extent they perhaps should. (EDM ... aka 'Trial And Error') Nevertheless, stamping on someone when they are asking a legitimate GWT question is not the way to deal with that problem. I've been on this list since August 2006, Isaac a few months later and we have seen many different 'enthusiastic' programmers realise how the list works. You have been in the group less than 2 months and three of your four posts have been about how the group should be run or telling people to stop clogging up the list, and the other one was in response to someone reading Excel data on the server FFS. Inexperienced GWT programmers don't necessarily understand what is GWT and what is real Java - it's all Java after all. Politely pointing out where the line is drawn is, in my opinion, a more reasonable approach than simply telling inexperienced programmers to go away and learn to solve their own problems. If you took your own advice, you wouldn't need to be on this list. There are different levels of experience and this list caters for them all. It doesn't exclude everyone who knows less than you do. Ian On Aug 28, 7:33 pm, Frank Argueta wrote: > If you look at the posts byRahul, who only started posting since > July, you'll find that a lot of them are off topic. For example : > > - how do I connect to convert is JDBC ResultSet into ArrayList > - how do I execute DOS commands > - how do I convert XML to PDF > - how do I format XML on the server > - why xml manipulations fails on server > - hosted mode hangs because I did something screwy on my server and > here's my sample code : > < it>> > > I realize you are a helpful bunch of smart guys, but imagine if every > Java beginner starts posting such questions on the GWT forum. The > traffic on the GWT forum is high enough that additional noise like > this really doesn't help. > > Having been in the business a while, I recognize a certain type of > developer that post questions without making the slightest of effort > in trying to read up / search for a solution on their own. Taking the > liberty to fire an email to the GWT group at the first signs of > encountering a problem is definitely not helpful to any party > involved. Moreover responding to such questions will only encourage > him to post more server related questions without putting in a > concerted effort to resolve it himself. > > Frank "Argue"-ta. > > On Aug 28, 2:03 pm, Ian Bambury wrote: > > > > > 2009/8/28 Isaac Truett > > > > Ian, > > > > Yes, the name did not escape my notice. But I do find reference to it > > > as a surname, probably of Spanish origin. Why not give him the benefit > > > of the doubt? > > > Because he's only posted 4 times and his previous comment toRahulwas > > > "Perhaps you should learn Java and also learn how to solve your > > problems instead, especially if its urgent to you - which does not > > make your issue urgent to anyone else. Please stop posting questions > > not related to GWT on this forum." > > > The one after that was > > > "I would request that this group require message subjects and sender > > names to be in English. The foreign characters in sender name / > > subjects are quite distracting." > > He doesn't seem to be entering into the spirit IMO, and if he can't take it, > > he shouldn't dish it out. > > > Ian > > >http://examples.roughian.com --~--~-~--~~~---~--~~ 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: Single entry point, multiple root panel Ids, display just one of them not showing
RootPanel slot1 = RootPanel.get("slot1");if(slot1 != null) //add something Ian http://examples.roughian.com 2009/8/28 ccx163 > > Many thanks for the explanation, and for your link. I've sent you my > details, so I'll go through your tutorials. > > So how would I implement it so that I can have a single module, and > have that set up the widgets so that they can be used independently? > > At the moment I have implemented it as 2 separate modules, but as we > get more and more modules this is going to get quite large, and a lot > of duplicated code for the server (rpc) calls. > > Maybe your tutorials tell me this, If so then great. I'll get > there. > > Many thanks. > > > > On Aug 28, 1:18 pm, Ian Bambury wrote: > > Because your app is giving up when it can't find slot 1. > > It also gives up when it can't find slot 2, but by then it has shown the > > button. > > > > Look in the other window that pops up when you start your app and you'll > see > > > > java.lang.NullPointerException: null > > > > Ian > > > > http://examples.roughian.com > > > > 2009/8/28 ccx163 > > > > > > > > > Hi, > > > > > I'm just getting to grips with GWT and have created some cool > > > widgets. However, I have a problem. The following illustrates this > > > > > If I have a GWT app that in the 'onModuleLoad()' of the entry point > > > class has the following > > > > > RootPanel.get("slot1").add(new Button ("button")); > > > RootPanel.get("slot2").add(new Label ("label")); > > > > > Then I have an html page with > > > > > > > > > > > > > Then the button and label show. > > > > > If I just have > > > > > > > > > > Then the button shows. > > > > > However, If I just have > > > > > > > > > > Then I would expect just the label to show, but it doesn't! > > > > > Any ideas why not? > > > > > My actual application is more complex, but still just adds different > > > widgets to the root panel. As I want to embed these widgets in an > > > existing servlet application I want to call the different widgets on 2 > > > different html pages. So one page would show widget1, and another > > > widget2. This has the same problem as above that widget2 does not > > > show. > > > > > Many 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 -~--~~~~--~~--~--~---
Re: Hosted mode hanging 4 out of 10times
If you look at the posts by Rahul, who only started posting since July, you'll find that a lot of them are off topic. For example : - how do I connect to convert is JDBC ResultSet into ArrayList - how do I execute DOS commands - how do I convert XML to PDF - how do I format XML on the server - why xml manipulations fails on server - hosted mode hangs because I did something screwy on my server and here's my sample code : <> I realize you are a helpful bunch of smart guys, but imagine if every Java beginner starts posting such questions on the GWT forum. The traffic on the GWT forum is high enough that additional noise like this really doesn't help. Having been in the business a while, I recognize a certain type of developer that post questions without making the slightest of effort in trying to read up / search for a solution on their own. Taking the liberty to fire an email to the GWT group at the first signs of encountering a problem is definitely not helpful to any party involved. Moreover responding to such questions will only encourage him to post more server related questions without putting in a concerted effort to resolve it himself. Frank "Argue"-ta. On Aug 28, 2:03 pm, Ian Bambury wrote: > 2009/8/28 Isaac Truett > > > > > Ian, > > > Yes, the name did not escape my notice. But I do find reference to it > > as a surname, probably of Spanish origin. Why not give him the benefit > > of the doubt? > > Because he's only posted 4 times and his previous comment to Rahul was > > "Perhaps you should learn Java and also learn how to solve your > problems instead, especially if its urgent to you - which does not > make your issue urgent to anyone else. Please stop posting questions > not related to GWT on this forum." > > The one after that was > > "I would request that this group require message subjects and sender > names to be in English. The foreign characters in sender name / > subjects are quite distracting." > He doesn't seem to be entering into the spirit IMO, and if he can't take it, > he shouldn't dish it out. > > Ian > > http://examples.roughian.com --~--~-~--~~~---~--~~ 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: What's up with Native libs needed?
On 08/28/2009 01:11 PM, hanas...@gmail.com wrote: > > 1. What is the background on needing native C libs on the OS? See the > below... > 2. how can the below be resolved? > 3. Am I reading the error right? GWT requires eclipse libs too? > > 1) testSomething...java.lang.UnsatisfiedLinkError: .m2/repository/ > com/google/gwt/gwt-dev/1.7.0/libswt-pi-gtk-3235.so: /home/export/ > hanasaki/.m2/repository/com/google/gwt/gwt-dev/1.7.0/libswt-pi- > gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture > word width mismatch) > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) > at java.lang.Runtime.load0(Runtime.java:770) > at java.lang.System.load(System.java:1003) > at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132) > at org.eclipse.swt.internal.gtk.OS.(OS.java:22) > at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) > at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) > at org.eclipse.swt.widgets.Display.(Display.java:126) > at com.google.gwt.dev.SwtHostedModeBase. > (SwtHostedModeBase.java:82) > at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java: > 219) > at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132) > Do you have 64-bit JRE? Search this group for other threads involving this issue. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Does GWT work in Snow Leopard?
So what's the official word on GWT and Snow Leopard? The impression that I get from Issue #2507, and earlier threads here, is that it's a no-go; copying Java 5 from Leopard isn't a solution. http://code.google.com/p/google-web-toolkit/issues/detail?id=2507 http://groups.google.com/group/google-web-toolkit/browse_thread/thread/c1bb7dfa39631a69/9a60f0fea9028ca2?lnk=gst&q=snow+leopard#9a60f0fea9028ca2 --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
All macs, aside from XServes, will boot in 32-bit mode under Snow Leopard. And, all macs will ship with Java v1.4-1.6 All you need to do is set Eclipse to use Java 1.5 and the problem is gone. On Aug 28, 12:52 pm, Jim Douglas wrote: > So what's the official word on GWT and Snow Leopard? The impression > that I get from Issue #2507, and earlier threads here, is that it's a > no-go; copying Java 5 from Leopard isn't a solution. > > http://code.google.com/p/google-web-toolkit/issues/detail?id=2507 > > http://groups.google.com/group/google-web-toolkit/browse_thread/threa... --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
Just to clarify: Have you tested GWT (including hosted mode) in Snow Leopard, and found it to work? Snow Leopard *does not* ship with any version of Java 5: http://developer.apple.com/mac/library/releasenotes/Java/JavaSnowLeopardRN/Introduction/Introduction.html Java for Mac OS X 10.6 "Mac OS X 10.6 contains an Apple-provided Java SE 6 version of 1.6.0_15 for both 32 and 64-bit Intel architectures." On Aug 28, 10:07 am, Steven Jay Cohen wrote: > All macs, aside from XServes, will boot in 32-bit mode under Snow > Leopard. And, all macs will ship with Java v1.4-1.6 > > All you need to do is set Eclipse to use Java 1.5 and the problem is > gone. > > On Aug 28, 12:52 pm, Jim Douglas wrote: > > > > > So what's the official word on GWT and Snow Leopard? The impression > > that I get from Issue #2507, and earlier threads here, is that it's a > > no-go; copying Java 5 from Leopard isn't a solution. > > >http://code.google.com/p/google-web-toolkit/issues/detail?id=2507 > > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
What's up with Native libs needed?
1. What is the background on needing native C libs on the OS? See the below... 2. how can the below be resolved? 3. Am I reading the error right? GWT requires eclipse libs too? 1) testSomething...java.lang.UnsatisfiedLinkError: .m2/repository/ com/google/gwt/gwt-dev/1.7.0/libswt-pi-gtk-3235.so: /home/export/ hanasaki/.m2/repository/com/google/gwt/gwt-dev/1.7.0/libswt-pi- gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1003) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132) at org.eclipse.swt.internal.gtk.OS.(OS.java:22) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.(Display.java:126) at com.google.gwt.dev.SwtHostedModeBase. (SwtHostedModeBase.java:82) at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java: 219) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132) --~--~-~--~~~---~--~~ 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: History Token
Guess a frame could be used to hide the token (so the whole site is in the frame). A bit crude, and I also would query the point. On Aug 28, 5:49 pm, Thomas Broyer wrote: > On 28 août, 13:54, Simon Shaw wrote: > > > I have developed a simple web application with 4 pages that uses > > Hyperlinks and ValueChangeHandler to move from page to page and store > > history. > > Although I want to keep the history functionality in this application > > I do not want to show the token in the address bar of the browser. > > That's simply not possible (well, in IE6 and IE7, it would be, but not > on other browsers; at least with the current History implementation, > which is what 99.9% of developers using GWT actually want) > > > Also, and I am pretty sure this is connected, I would like to prevent > > users from entering the site from any location other than the default > > landing page. > > Oh, this is easy: in your onModuleLoad, instead of firing the current > history token, just do nothing with History (apart from registering > your ValueChangeHandler) or explicitly "move" to the landing page > (History.newItem("landing-page")) > > Er, could you explain why you don't want the "bookmarkable" part of > the history feature? i'm having a hard time understanding your issue > with it... --~--~-~--~~~---~--~~ 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 determine when StackPanel index changes?
Phineas Gage, I haven't tried it, but you could probably override either the showStack or onBrowserEvent method. Probably showStack, something like this: @Override public void showStack(int index) { super.showStack(index); if (index == getSelectedIndex()) { onShowStack(); } } And, of course, create an onShowStack method that would only be called when the stack is changed. HTH, Chad On Aug 28, 1:26 am, Phineas Gage wrote: > When using a StackPanel, is there any way to listen for when the > selected index of the StackPanel changes? > > I see that it can be retrieved with getSelectedIndex() and set with > showStack(index), but there is no apparent way to be called when > someone clicks to set the current index. I'd like to do this so that I > can set a history token and restore the StackPanel to its original > state when the back button is pressed or an external link is used... --~--~-~--~~~---~--~~ 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 - Applet communication /Urgent/
Search this forum for javascript applet communication. The code is easy but the concepts are not trivial as you must understand how GWT javascript JNI works as well as applets. GWTAI is also easy but again you must understand the use of attributes and put the java code in your gwt project. You can only pass primitives back and forth so if you are planning on doing something complicated with large amounts of data or an image then you will find this difficult. Your best bet is to get a simple example of GWTAI working and then try and get your applet working. On Aug 28, 11:00 am, kris wrote: > Hi, I have implemented an Applet (for graph visualization) and want to > embed it to my GWT application. > I also want to achieve communication between GWT and the Applet. > > I have seen and have tried to use the gwtai library (http:// > code.google.com/p/gwtai/) but it does not even compile under Java 1.6 > (Stack Overflow error), which is a must in my project. > > So, is there any other way to achieve direct GWT-Applet communication > or must I switch to Flash (for which the communication seems to be > implemented)? > > By the way, I am very surprised regarding the lack of Applet support > on GWT, I thought it would be trivial... :(( --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
Ok, Frank first of all Stop accusing me of stuff I do my research before posting things on GWT. Every developer is not on the same expertise level like you and we beginners also need help. > JDBC ResultSet to ArrayList was started by me because i had no expertise with > RPC calls > DOS commands i did my research my on java how to do that on server side and > when it was failing, it i posted on GWT, and why shouldn't I? I belive this > is somethin GWT spefiic > XML to Pdf, if there is special library for drag and drop in GWT, why cant be > there special library for xml to pdf conversion in GWT. I did not find on net > so i asked what other people are doing for that with their applications in GWT > Format XML, GWT has their own XML parser and i cant find so i posted > XML manipulations fails on server, I am using standard java commands and its > failing on server, and its the server class provided by GWT so I want to ask > people why is it failing I do my research well before on net to post a message and people are very helpful to post their answer here. Also as again said, everyone is not a experitse programmer like you and I am sure many beginners like me who find these posts helpful On Aug 28, 2:33 pm, Frank Argueta wrote: > If you look at the posts by Rahul, who only started posting since > July, you'll find that a lot of them are off topic. For example : > > - how do I connect to convert is JDBC ResultSet into ArrayList > - how do I execute DOS commands > - how do I convert XML to PDF > - how do I format XML on the server > - why xml manipulations fails on server > - hosted mode hangs because I did something screwy on my server and > here's my sample code : > < it>> > > I realize you are a helpful bunch of smart guys, but imagine if every > Java beginner starts posting such questions on the GWT forum. The > traffic on the GWT forum is high enough that additional noise like > this really doesn't help. > > Having been in the business a while, I recognize a certain type of > developer that post questions without making the slightest of effort > in trying to read up / search for a solution on their own. Taking the > liberty to fire an email to the GWT group at the first signs of > encountering a problem is definitely not helpful to any party > involved. Moreover responding to such questions will only encourage > him to post more server related questions without putting in a > concerted effort to resolve it himself. > > Frank "Argue"-ta. > > On Aug 28, 2:03 pm, Ian Bambury wrote: > > > 2009/8/28 Isaac Truett > > > > Ian, > > > > Yes, the name did not escape my notice. But I do find reference to it > > > as a surname, probably of Spanish origin. Why not give him the benefit > > > of the doubt? > > > Because he's only posted 4 times and his previous comment to Rahul was > > > "Perhaps you should learn Java and also learn how to solve your > > problems instead, especially if its urgent to you - which does not > > make your issue urgent to anyone else. Please stop posting questions > > not related to GWT on this forum." > > > The one after that was > > > "I would request that this group require message subjects and sender > > names to be in English. The foreign characters in sender name / > > subjects are quite distracting." > > He doesn't seem to be entering into the spirit IMO, and if he can't take it, > > he shouldn't dish it out. > > > Ian > > >http://examples.roughian.com --~--~-~--~~~---~--~~ 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: Problem deploying with Firefox/Chrome
On 08/28/2009 07:03 AM, Rahul wrote: > > Hi > This is a sample code how i am using to create my UI from parsing XML > files > > protected void fucn(final VerticalPanel verticalPanel, String > substring,final PickupDragController drag) { > // TODO Auto-generated method stub > RequestBuilder builder1 = new RequestBuilder > (RequestBuilder.GET,substring+".mdl"); > try > { > Request request1 = builder1.sendRequest(null, new > RequestCallback() > { > > public void onError(Request request1, Throwable > exception) { > } > > @Override > public void onResponseReceived(Request request1, > Response response1) > { > Document xmlDoc1 = > XMLParser.parse(response1.getText()); You wrote earlier that "... I am believing that it gets an null response" is xmlDoc1 indeed empty? My guess is that there is a subtle syntax error in the MDL file; which problem IE ignores. FF on the other hand doesn't let it slide. > XMLParser.removeWhitespace(xmlDoc1); Does xmlDoc1 lose its contents after this call? --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
ok Frank, how do you want me to address the issue Certainly there's is some communication gap between us. I understood the last time you said and i was at fault and i accept that. My hosted mode works 6 out of 10 times should i just give my client code? and no server code at all? On Aug 28, 11:02 am, Rahul wrote: > I dont get it, Ian told me to paste the code here > and the problem was specific to the gwt programming > > On Aug 28, 10:38 am, Frank Argueta wrote: > > > I hope your boss is reading your posts on this forum and your attempts > > to scavenge solutions to problems specific to *your* server side > > code / environment. That teeny bit of server side code you posted > > speaks volumes. I know what I'd do if I saw that kind of code in my > > codebase. > > > On Aug 28, 9:57 am, Rahul wrote: > > > > Hi, > > > This is my code: > > > > Client side, i am calling an RPC service to connect to sqlserver2005. > > > Its an simple login(very basic) > > > > greetingService.greetServer3(username,password, new > > > AsyncCallback() > > > { > > > > @Override > > > public void > > > onFailure(Throwable caught) { > > > // TODO > > > Auto-generated method stub > > > > } > > > > @Override > > > public void > > > onSuccess(Integer result) { > > > // TODO > > > Auto-generated method stub > > > if > > > (result == 1) > > > > > > Window.alert("log on successful"); > > > else > > > > > > Window.alert("Please check the username and password"); > > > } > > > > My implementation on server side is > > > > public Integer greetServer3(String str, String str1) { > > > // TODO Auto-generated method stub > > > > try > > > { > > > Class.forName > > > ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); > > > conn = > > > DriverManager.getConnection("jdbc:sqlserver:// > > > STI1121081:1433;database=Sql-obtv", "username", "password"); > > > stm = > > > ((java.sql.Connection)conn).createStatement(); > > > > System.out.println("Values of > > > string name"+str+"value of > > > pass"+str1); > > > rs = stm.executeQuery("select * > > > from Password"); > > > > while (rs.next()) > > > { > > > user =rs.getString("Username"); > > > pass = rs.getString("Pass"); > > > } > > > conn.close(); > > > } catch (Exception e) { > > > connString = e.getMessage(); > > > > } > > > > user =user.replaceAll("\\s+$", ""); > > > pass = pass.replaceAll("\\s+$", ""); > > > > if (str.equals(user)&& > > > str1.equals(pass)) > > > return 1; > > > > else > > > return 0; > > > > } > > > > Also I am not using the Google Application engine as i am integrating > > > with sqlserver2005. I have seen similar problems whenever i try > > > integrating with sqlserver2005. I am using jdbc4 driver. > > > > On Aug 27, 8:49 pm, Ian Bambury wrote: > > > > > I don't think you'll find it there Rahul, That was only really a > > > > suggestion > > > > for next time :-) > > > > It sounds like a strange problem, but if you can provide some code, > > > > that at > > > > least means that other people can have a play - sometimes it happens > > > > that > > > > the code people provide works OK for other people - it all helps to pin > > > > it > > > > down though. > > > > > Ian > > > > >http://examples.roughian.com > > > > > 2009/8/27 Rahul > > > > > > Hi Ian, > > > > > I did try to cut out the cal
Re: Single entry point, multiple root panel Ids, display just one of them not showing
Many thanks for the explanation, and for your link. I've sent you my details, so I'll go through your tutorials. So how would I implement it so that I can have a single module, and have that set up the widgets so that they can be used independently? At the moment I have implemented it as 2 separate modules, but as we get more and more modules this is going to get quite large, and a lot of duplicated code for the server (rpc) calls. Maybe your tutorials tell me this, If so then great. I'll get there. Many thanks. On Aug 28, 1:18 pm, Ian Bambury wrote: > Because your app is giving up when it can't find slot 1. > It also gives up when it can't find slot 2, but by then it has shown the > button. > > Look in the other window that pops up when you start your app and you'll see > > java.lang.NullPointerException: null > > Ian > > http://examples.roughian.com > > 2009/8/28 ccx163 > > > > > Hi, > > > I'm just getting to grips with GWT and have created some cool > > widgets. However, I have a problem. The following illustrates this > > > If I have a GWT app that in the 'onModuleLoad()' of the entry point > > class has the following > > > RootPanel.get("slot1").add(new Button ("button")); > > RootPanel.get("slot2").add(new Label ("label")); > > > Then I have an html page with > > > > > > > > Then the button and label show. > > > If I just have > > > > > > Then the button shows. > > > However, If I just have > > > > > > Then I would expect just the label to show, but it doesn't! > > > Any ideas why not? > > > My actual application is more complex, but still just adds different > > widgets to the root panel. As I want to embed these widgets in an > > existing servlet application I want to call the different widgets on 2 > > different html pages. So one page would show widget1, and another > > widget2. This has the same problem as above that widget2 does not > > show. > > > Many 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 -~--~~~~--~~--~--~---
Re: Create own widget
You'd rather use Composite then subclassing panels. It would look like public class MyClass extends Composit { private VerticalPanel panel = new VerticalPanel(); public MyClass() { initWidget(panel); // really important, this makes panel underlying wdgt of composite } In this case you get 'clear' class, without all the superclass methods. You don't want users of your widget to manipulate it contents - it's widget and it should be opaque. So, exposing add/remove methods is bad. On Aug 28, 8:56 am, Michael wrote: > You mean something like this? > > public class TwoButtonPanel extends DockPanel { > > public TwoButtonPanel() { > Button button1 = new Button("Button 1"); > Button button2 = new Button("Button 2"); > button1.addClickHandler(new ClickHandler(){ > public void onClick(ClickEvent event) { > button1clicked(); > } > }); > button2.addClickHandler(new ClickHandler(){ > public void onClick(ClickEvent event) { > button2clicked(); > } > }); > add(button1); > add(button2); > } > > private void button1clicked() { > } > > private void button2clicked() { > } > } > > On 28 Aug., 10:42, LinuxChata wrote: > > > How to create own widget with two button?? > > > 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 -~--~~~~--~~--~--~---
Re: FormPanel submit() displays popup
I have also noticed this.. Anybody got any further with it? I am using this for the logon part of my app... but cant seem to work out how to chekc that the log on worked. Any ideas? Cheers Jonathan On Jul 25, 10:39 am, Scott wrote: > I noticed this issue only appears in a Google hosted mode web > browser. If I deploy the application to an separate Jetty server and > view it via Firefox, then the application does not load in a popup on > form submit. > > Does anyone know what fix I need so that submitting a form does not > spawn a pop-up in Google hosted mode? --~--~-~--~~~---~--~~ 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 cannot display Chinese Words or JAPANESE words correctly
If your using eclipse, make sure to set the encodeing to utf-8. Just go propertys on the project and set text text-file encoding to utf-8 from the dropdown. On Aug 28, 3:53 pm, jhulford wrote: > Also make sure your host page's encoding is UTF-8. > > On Aug 28, 2:21 am, David wrote: > > > > > Hi, > > > That is not a GWT issue but rather a HTML issue. > > Make sure that: > > a) you use a font that supports i18n > > b) make sure that you use a charset that supports i18n. > > Put something like this in your HTML-HEAD section. > > > > > David --~--~-~--~~~---~--~~ 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: Server Side: Writting a File on Disk
refer to the http://code.google.com/intl/ru/webtoolkit/tutorials/1.6/create.html The folders in the project have specific meaning. You will not get anything touched by gwt compiler unless it is in client subpackage. On Aug 23, 4:27 pm, Dalla wrote: > You have to put this code in the *.server sub-package of your > project. > The GWT complier has got nothing to do with the server side code. > > On 23 Aug, 04:39, Robert Lang wrote: > > > Hello, > > > I need to write a file on server's disk, but FileOutputStream, FileWriter, > > etc, but isn't supported with GWT Compiller... How I do this? > > > A File need to write in specific folder/partition, independent of app > > deployed on web server, for storage specific file formats. > > > Best Regards, > > > Robert Mauro Lang --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
WYSIWYG version of Google Plugin for Eclipse coming soon?
Hi, we're trying to decide whether to spend the money on GWT Designer from Instantiations. Does anyone in the community know (or can anyone from Google tell us) whether Google will be releasing a WYSIWYG designer for GWT in any upcoming releases of Google Plugin for Eclipse? Also, is there anyone out there with experience using the GWT Designer from Instantiations? Is it worth the money? Thanks, Keith --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
Keep cutting bits out until it stops hanging - the problem is in the last bit you cut out Ian http://examples.roughian.com 2009/8/28 Rahul > > Hi Ian, > Yeah doing that now, its still hanging a lot > I don't know whats the problem. I guess the last option would be to > reinstall gwt > > On Aug 28, 11:14 am, Ian Bambury wrote: > > I don't think that the problem is there, but try commenting out just that > > call and running the rest of the app. If the problem goes away, then I'm > > wrong :-) > > Ian > > > > http://examples.roughian.com > > > > 2009/8/28 Rahul > > > > > > > > > Hi, > > > This is my code: > > > > > Client side, i am calling an RPC service to connect to sqlserver2005. > > > Its an simple login(very basic) > > > > > greetingService.greetServer3(username,password, new > > > AsyncCallback() > > >{ > > > > >@Override > > >public void > > > onFailure(Throwable caught) { > > >// TODO > > > Auto-generated method stub > > > > >} > > > > >@Override > > >public void > > > onSuccess(Integer result) { > > >// TODO > > > Auto-generated method stub > > >if > (result > > > == 1) > > > > > Window.alert("log on successful"); > > >else > > > > > Window.alert("Please check the username and password"); > > >} > > > > > My implementation on server side is > > > > > public Integer greetServer3(String str, String str1) { > > >// TODO Auto-generated method stub > > > > > try > > >{ > > > Class.forName > > > ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); > > > conn = > > > DriverManager.getConnection("jdbc:sqlserver:// > > > STI1121081:1433;database=Sql-obtv", "username", "password"); > > > stm = > > > ((java.sql.Connection)conn).createStatement(); > > > > > System.out.println("Values of > string > > > name"+str+"value of > > > pass"+str1); > > > rs = stm.executeQuery("select * > from > > > Password"); > > > > > while (rs.next()) > > > { > > > user > =rs.getString("Username"); > > > pass = rs.getString("Pass"); > > > } > > > conn.close(); > > >} catch (Exception e) { > > > connString = e.getMessage(); > > > > >} > > > > > user =user.replaceAll("\\s+$", ""); > > > pass = pass.replaceAll("\\s+$", ""); > > > > >if (str.equals(user)&& > > > str1.equals(pass)) > > >return 1; > > > > >else > > >return 0; > > > > >} > > > > > Also I am not using the Google Application engine as i am integrating > > > with sqlserver2005. I have seen similar problems whenever i try > > > integrating with sqlserver2005. I am using jdbc4 driver. > > > > > On Aug 27, 8:49 pm, Ian Bambury wrote: > > > > I don't think you'll find it there Rahul, That was only really a > > > suggestion > > > > for next time :-) > > > > It sounds like a strange problem, but if you can provide some code, > that > > > at > > > > least means that other people can have a play - sometimes it happens > that > > > > the code people provide works OK for other people - it all helps to > pin > > > it > > > > down though. > > > > > > Ian > > > > > >http://examples.roughian.com > > > > > > 2009/8/27 Rahul > > > > > > > Hi Ian, > > > > > I did try to cut out the call tired to find it out, but i was not > > > > > successful in getting the answer whats causing the problem > > > > > > > Sorry for my ignorance but i did not knew anything about the issue > > > > > tracker. I would look at issue tracker first and if i am not able > to > > > > > get solution to that problem ill paste my code here. > > > > > > > On Aug 27, 5:29 pm, Ian Bambury wrote: > >
History Token
I have developed a simple web application with 4 pages that uses Hyperlinks and ValueChangeHandler to move from page to page and store history. Although I want to keep the history functionality in this application I do not want to show the token in the address bar of the browser. Also, and I am pretty sure this is connected, I would like to prevent users from entering the site from any location other than the default landing page. Thanks, 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-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 -~--~~~~--~~--~--~---
Problems with Async Calls
Hello, I have a question concerning async calls on a server. We have developed a small web application with some async calls to a server and database. However the problem is that when the application is deployed on a server the calls do not work. On the local machine everything works fine and it is even possible to connect to the database, which is running at the hosting provider from the local machines The server runs apache and as the database we have chosen postgres. Is there someone who has a bit of experience with this issue? best regards --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
2009/8/28 Isaac Truett > > Ian, > > Yes, the name did not escape my notice. But I do find reference to it > as a surname, probably of Spanish origin. Why not give him the benefit > of the doubt? Because he's only posted 4 times and his previous comment to Rahul was "Perhaps you should learn Java and also learn how to solve your problems instead, especially if its urgent to you - which does not make your issue urgent to anyone else. Please stop posting questions not related to GWT on this forum." The one after that was "I would request that this group require message subjects and sender names to be in English. The foreign characters in sender name / subjects are quite distracting." He doesn't seem to be entering into the spirit IMO, and if he can't take it, he shouldn't dish it out. Ian http://examples.roughian.com --~--~-~--~~~---~--~~ 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: Plugin-based application built with GWT ?
A few more things: We're actually really considering using the compiler at runtime (sic) now. Is there any chance that * GWT developers would accept and apply a patch that would alleviate the dependency that the compiler currently has on the filesystem by using a VirtualFS api (JSR 203, commons-vfs, or something simpler, tailored to the needs at hand) * the build could be update so as to produce a jar file that would facilitate these scenarios (i.e no need for Tomcat, Jetty, SWT and the javax packages when deploying in a web container) Cheers, -g On Aug 27, 1:44 pm, gjoseph wrote: > On Aug 26, 9:48 pm, gjoseph wrote: > > > > > > > Hi all, > > > I was wondering if anyone had pointers, ideas, examples, or anything > > that could help clarify if writing a GWT-based application that would > > also be based on plugins, where said plugins would consist of client- > > side code (i.e gwt modules) AND server-side components... is at all > > possible. These plugins can be added/updated/removed from the app, > > much like osgi allows one to do with bundles. > > > At the moment I can't quite picture yet how to build and deploy this > > sort of application (without having each plugin re-embedding the whole > > of the application client code itself), especially if we're talking > > dynamic (at runtime) (un/)loading of said plugins. The one way we're > > sort-of considering at the moment would be to actually use the > > compiler in our app (!), when plugins are added/updated/removed. That > > doesn't seem like the most optimal and elegant approach ;) > > > I am looking into wrapper types, custom linkers, ... but it's still a > > bit blurry how it all would fit together... so if anybody has any > > pointer or thoughts about this subject, that would be much > > appreciated ! > > Let me add some context, which I realize now might be missing: our app > is (ideally) bundled as a single .war file; we currently have the > afore-mentioned plugin-based system, but we're trying to replace our > antiquated ui code with GWT. > Plugins, as far as client code go, could introduce new widgets, add > menu items to existing menus, that sort of thing... which renders half > of the optimization that GWT can do useless (i.e dead code can't be > removed, because it might be needed by plugins). > > Any hope ? > > -g --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
Ian, Yes, the name did not escape my notice. But I do find reference to it as a surname, probably of Spanish origin. Why not give him the benefit of the doubt? - Isaac On Fri, Aug 28, 2009 at 1:45 PM, Ian Bambury wrote: > Hi Isaac, > "Frank Argueta"? > My original name was Justin A. Trollingmood but I had it changed by deed > poll. > Ian > > http://examples.roughian.com > > > 2009/8/28 Isaac Truett >> >> Frank, >> >> Please try to use a more civil tone when posting to this group. >> Perhaps you could take a few minutes to read the group charter: >> >> >> http://groups.google.com/group/google-web-toolkit/web/gwt-discussion-group-charter >> >> That might give you a better idea of the sort of community we're trying to >> be. >> >> Thank you. >> >> - Isaac >> >> >> On Fri, Aug 28, 2009 at 10:38 AM, Frank Argueta >> wrote: >> > >> > I hope your boss is reading your posts on this forum and your attempts >> > to scavenge solutions to problems specific to *your* server side >> > code / environment. That teeny bit of server side code you posted >> > speaks volumes. I know what I'd do if I saw that kind of code in my >> > codebase. >> > >> > On Aug 28, 9:57 am, Rahul wrote: >> >> Hi, >> >> This is my code: >> >> >> >> Client side, i am calling an RPC service to connect to sqlserver2005. >> >> Its an simple login(very basic) >> >> >> >> greetingService.greetServer3(username,password, new >> >> AsyncCallback() >> >> { >> >> >> >> @Override >> >> public void >> >> onFailure(Throwable caught) { >> >> // TODO >> >> Auto-generated method stub >> >> >> >> } >> >> >> >> @Override >> >> public void >> >> onSuccess(Integer result) { >> >> // TODO >> >> Auto-generated method stub >> >> if >> >> (result == 1) >> >> >> >> Window.alert("log on successful"); >> >> else >> >> >> >> Window.alert("Please check the username and password"); >> >> } >> >> >> >> My implementation on server side is >> >> >> >> public Integer greetServer3(String str, String str1) { >> >> // TODO Auto-generated method stub >> >> >> >> try >> >> { >> >> Class.forName >> >> ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); >> >> conn = >> >> DriverManager.getConnection("jdbc:sqlserver:// >> >> STI1121081:1433;database=Sql-obtv", "username", "password"); >> >> stm = >> >> ((java.sql.Connection)conn).createStatement(); >> >> >> >> System.out.println("Values of >> >> string name"+str+"value of >> >> pass"+str1); >> >> rs = stm.executeQuery("select * >> >> from Password"); >> >> >> >> while (rs.next()) >> >> { >> >> user >> >> =rs.getString("Username"); >> >> pass = rs.getString("Pass"); >> >> } >> >> conn.close(); >> >> } catch (Exception e) { >> >> connString = e.getMessage(); >> >> >> >> } >> >> >> >> user =user.replaceAll("\\s+$", ""); >> >> pass = pass.replaceAll("\\s+$", ""); >> >> >> >> if (str.equals(user)&& >> >> str1.equals(pass)) >> >> return 1; >> >> >> >> else >> >> return 0; >> >> >> >> } >> >> >> >> Also I am not using the Google Application engine as i am integrating >> >> with sqlserver2005. I have seen similar problems whenever i try >> >> integrating with sqlserver2005. I am using jdbc4 driver. >> >> >> >> On Aug 27, 8:49 pm, Ian Bambury wrote: >> >> >> >> >> >> >> >> > I don't think you'll find it there Rahul, That was only really a >> >> > suggestion >> >> > for next time :-) >> >> > It sounds like a strange problem, but if you can provide some code, >> >> > that at >> >> > least means that other people
Re: Hosted mode hanging 4 out of 10times
Hi Isaac, "Frank Argueta"? My original name was Justin A. Trollingmood but I had it changed by deed poll. Ian http://examples.roughian.com 2009/8/28 Isaac Truett > > Frank, > > Please try to use a more civil tone when posting to this group. > Perhaps you could take a few minutes to read the group charter: > > > http://groups.google.com/group/google-web-toolkit/web/gwt-discussion-group-charter > > That might give you a better idea of the sort of community we're trying to > be. > > Thank you. > > - Isaac > > > On Fri, Aug 28, 2009 at 10:38 AM, Frank Argueta > wrote: > > > > I hope your boss is reading your posts on this forum and your attempts > > to scavenge solutions to problems specific to *your* server side > > code / environment. That teeny bit of server side code you posted > > speaks volumes. I know what I'd do if I saw that kind of code in my > > codebase. > > > > On Aug 28, 9:57 am, Rahul wrote: > >> Hi, > >> This is my code: > >> > >> Client side, i am calling an RPC service to connect to sqlserver2005. > >> Its an simple login(very basic) > >> > >> greetingService.greetServer3(username,password, new > >> AsyncCallback() > >> { > >> > >> @Override > >> public void > onFailure(Throwable caught) { > >> // TODO > Auto-generated method stub > >> > >> } > >> > >> @Override > >> public void > onSuccess(Integer result) { > >> // TODO > Auto-generated method stub > >> if > (result == 1) > >> > Window.alert("log on successful"); > >> else > >> > Window.alert("Please check the username and password"); > >> } > >> > >> My implementation on server side is > >> > >> public Integer greetServer3(String str, String str1) { > >> // TODO Auto-generated method stub > >> > >> try > >> { > >> Class.forName > >> ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); > >> conn = > DriverManager.getConnection("jdbc:sqlserver:// > >> STI1121081:1433;database=Sql-obtv", "username", "password"); > >> stm = > ((java.sql.Connection)conn).createStatement(); > >> > >> System.out.println("Values of > string name"+str+"value of > >> pass"+str1); > >> rs = stm.executeQuery("select * > from Password"); > >> > >> while (rs.next()) > >> { > >> user > =rs.getString("Username"); > >> pass = rs.getString("Pass"); > >>} > >> conn.close(); > >> } catch (Exception e) { > >> connString = e.getMessage(); > >> > >> } > >> > >>user =user.replaceAll("\\s+$", ""); > >>pass = pass.replaceAll("\\s+$", ""); > >> > >> if (str.equals(user)&& > str1.equals(pass)) > >> return 1; > >> > >> else > >> return 0; > >> > >> } > >> > >> Also I am not using the Google Application engine as i am integrating > >> with sqlserver2005. I have seen similar problems whenever i try > >> integrating with sqlserver2005. I am using jdbc4 driver. > >> > >> On Aug 27, 8:49 pm, Ian Bambury wrote: > >> > >> > >> > >> > I don't think you'll find it there Rahul, That was only really a > suggestion > >> > for next time :-) > >> > It sounds like a strange problem, but if you can provide some code, > that at > >> > least means that other people can have a play - sometimes it happens > that > >> > the code people provide works OK for other people - it all helps to > pin it > >> > down though. > >> > >> > Ian > >> > >> >http://examples.roughian.com > >> > >> > 2009/8/27 Rahul > >> > >> > > Hi Ian, > >> > > I did try to cut out the call tired to find it out, but i was not > >> > > successful in getting the answer whats causing the problem > >>
Re: Hosted mode hanging 4 out of 10times
Frank, Please try to use a more civil tone when posting to this group. Perhaps you could take a few minutes to read the group charter: http://groups.google.com/group/google-web-toolkit/web/gwt-discussion-group-charter That might give you a better idea of the sort of community we're trying to be. Thank you. - Isaac On Fri, Aug 28, 2009 at 10:38 AM, Frank Argueta wrote: > > I hope your boss is reading your posts on this forum and your attempts > to scavenge solutions to problems specific to *your* server side > code / environment. That teeny bit of server side code you posted > speaks volumes. I know what I'd do if I saw that kind of code in my > codebase. > > On Aug 28, 9:57 am, Rahul wrote: >> Hi, >> This is my code: >> >> Client side, i am calling an RPC service to connect to sqlserver2005. >> Its an simple login(very basic) >> >> greetingService.greetServer3(username,password, new >> AsyncCallback() >> { >> >> @Override >> public void >> onFailure(Throwable caught) { >> // TODO >> Auto-generated method stub >> >> } >> >> @Override >> public void >> onSuccess(Integer result) { >> // TODO >> Auto-generated method stub >> if (result >> == 1) >> >> Window.alert("log on successful"); >> else >> >> Window.alert("Please check the username and password"); >> } >> >> My implementation on server side is >> >> public Integer greetServer3(String str, String str1) { >> // TODO Auto-generated method stub >> >> try >> { >> Class.forName >> ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); >> conn = >> DriverManager.getConnection("jdbc:sqlserver:// >> STI1121081:1433;database=Sql-obtv", "username", "password"); >> stm = >> ((java.sql.Connection)conn).createStatement(); >> >> System.out.println("Values of string >> name"+str+"value of >> pass"+str1); >> rs = stm.executeQuery("select * from >> Password"); >> >> while (rs.next()) >> { >> user =rs.getString("Username"); >> pass = rs.getString("Pass"); >> } >> conn.close(); >> } catch (Exception e) { >> connString = e.getMessage(); >> >> } >> >> user =user.replaceAll("\\s+$", ""); >> pass = pass.replaceAll("\\s+$", ""); >> >> if (str.equals(user)&& str1.equals(pass)) >> return 1; >> >> else >> return 0; >> >> } >> >> Also I am not using the Google Application engine as i am integrating >> with sqlserver2005. I have seen similar problems whenever i try >> integrating with sqlserver2005. I am using jdbc4 driver. >> >> On Aug 27, 8:49 pm, Ian Bambury wrote: >> >> >> >> > I don't think you'll find it there Rahul, That was only really a suggestion >> > for next time :-) >> > It sounds like a strange problem, but if you can provide some code, that at >> > least means that other people can have a play - sometimes it happens that >> > the code people provide works OK for other people - it all helps to pin it >> > down though. >> >> > Ian >> >> >http://examples.roughian.com >> >> > 2009/8/27 Rahul >> >> > > Hi Ian, >> > > I did try to cut out the call tired to find it out, but i was not >> > > successful in getting the answer whats causing the problem >> >> > > Sorry for my ignorance but i did not knew anything about the issue >> > > tracker. I would look at issue tracker first and if i am not able to >> > > get solution to that problem ill paste my code here. >> >> > > On Aug 27, 5:29 pm,
Re: DOM listener
Try putting alert before any of the if statement to see if event is wired anyway. On Aug 23, 6:21 am, muhannad nasser wrote: > this code adds listener to the page... i got it works fine on FF... but it > does not work fine on IE the alert does not even show up. here is > the code > DOM.addEventPreview(new EventPreview(){ > > public boolean onEventPreview(Event event) { > > if(DOM.eventGetType(event) == Event.ONKEYDOWN){ > if( event.getKeyCode() == EventObject.ENTER){ > if > (event.getTarget().getId()==DOM.getChild(DOM.getChild(DOM.getChild(DOM.getChild(DOM.getChild(DOM.getElementById("pagingToolBar"), > 0), 0), 0), 4), 0).getId()){ > Window.alert(event.getTarget().getId()); > > return false; > } > } > > } > return true; > }}); > > thanks > -- > ~~~With Regards~~~ > Muhannad Dar-Nasser > ~~Computer Systems Engineering~~ > ~~0598-534520~~ --~--~-~--~~~---~--~~ 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: Create own widget
Who could resist piling on with yet another option? public class ButtonX2 extends Composite { public ButtonX2 { FlowPanel panel = new FlowPanel(); panel.add(new Button("1")); panel.add(new Button("2")); initWidget(panel); } } Pros: - Extending Composite gives you more control over the new widget's API - Using a FlowPanel for layout gives you a far simpler DOM structure (one , to be precise) and you can arrange and style the elements within using CSS On Fri, Aug 28, 2009 at 11:15 AM, ThomasWrobel wrote: > > Why not just use a horizontalpanel with two buttons next to eachother? > > HorizontalPanel buttongroup = new HorizontalPanel(); > buttongroup.add(buttonOne); > buttongroup.add(buttonTwo); > > If you want to make this into its own class, youd do; > > public class myButtonGroup extends HorizontalPanel { > > Button buttonOne = new Button("test 1"); > Button buttonTwo = new Button("test 2"); > > public myButtonGroup() { > > this.add(buttonOne) > this.add(buttonTwo) > > } > > } > > > Preferably in its own file. > Then you can use myButtonGroup whenever you want these two buttons. > eg. > myButtonGroup testgroup = new myButtonGroup() > > > > On Aug 28, 10:42 am, LinuxChata wrote: >> How to create own widget with two button?? >> >> 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 -~--~~~~--~~--~--~---
Re: Hosted mode hanging 4 out of 10times
I hope your boss is reading your posts on this forum and your attempts to scavenge solutions to problems specific to *your* server side code / environment. That teeny bit of server side code you posted speaks volumes. I know what I'd do if I saw that kind of code in my codebase. On Aug 28, 9:57 am, Rahul wrote: > Hi, > This is my code: > > Client side, i am calling an RPC service to connect to sqlserver2005. > Its an simple login(very basic) > > greetingService.greetServer3(username,password, new > AsyncCallback() > { > > @Override > public void > onFailure(Throwable caught) { > // TODO > Auto-generated method stub > > } > > @Override > public void > onSuccess(Integer result) { > // TODO > Auto-generated method stub > if (result == > 1) > > Window.alert("log on successful"); > else > > Window.alert("Please check the username and password"); > } > > My implementation on server side is > > public Integer greetServer3(String str, String str1) { > // TODO Auto-generated method stub > > try > { > Class.forName > ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); > conn = > DriverManager.getConnection("jdbc:sqlserver:// > STI1121081:1433;database=Sql-obtv", "username", "password"); > stm = > ((java.sql.Connection)conn).createStatement(); > > System.out.println("Values of string > name"+str+"value of > pass"+str1); > rs = stm.executeQuery("select * from > Password"); > > while (rs.next()) > { > user =rs.getString("Username"); > pass = rs.getString("Pass"); > } > conn.close(); > } catch (Exception e) { > connString = e.getMessage(); > > } > > user =user.replaceAll("\\s+$", ""); > pass = pass.replaceAll("\\s+$", ""); > > if (str.equals(user)&& str1.equals(pass)) > return 1; > > else > return 0; > > } > > Also I am not using the Google Application engine as i am integrating > with sqlserver2005. I have seen similar problems whenever i try > integrating with sqlserver2005. I am using jdbc4 driver. > > On Aug 27, 8:49 pm, Ian Bambury wrote: > > > > > I don't think you'll find it there Rahul, That was only really a suggestion > > for next time :-) > > It sounds like a strange problem, but if you can provide some code, that at > > least means that other people can have a play - sometimes it happens that > > the code people provide works OK for other people - it all helps to pin it > > down though. > > > Ian > > >http://examples.roughian.com > > > 2009/8/27 Rahul > > > > Hi Ian, > > > I did try to cut out the call tired to find it out, but i was not > > > successful in getting the answer whats causing the problem > > > > Sorry for my ignorance but i did not knew anything about the issue > > > tracker. I would look at issue tracker first and if i am not able to > > > get solution to that problem ill paste my code here. > > > > On Aug 27, 5:29 pm, Ian Bambury wrote: > > > > Hi Rahul, > > > > Why don't you cut out the call and find out? > > > > > :-) > > > > > It's very hard to answer questions like this when there is no code to > > > look > > > > at. > > > > > There are no blindingly desperate problems with GWT that I know of that > > > do > > > > this. Since the server side is not anything to do with GWT, then that is > > > > very probably not a GWT problem (although connecting to the server might > > > > be). > > > > > In this kind
Re: Port to OpenBSD
I'm sorry. What are you trying to port? GWT is just a java library. Pick an IDE that runs on your system, identify the GWT libaries for your project, and you are done. There is nothing to port. On Aug 27, 11:29 am, obvvbooo obvvbooo wrote: > Hi, > > Is there any chance that somebody in this group would like to port it to > OpenBSD, or make it run on OpenBSD? Although I'd like to do this, but I'm > too unfamiliar with this kinds of tasks: shell, native apis, compiles... > > If nobody would like to do this. Any suggestion on steps how to do this > besides reading port document and googling results? > > All help is appreciated. > > 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 -~--~~~~--~~--~--~---
Re: hosted mode stucks, debugger does not work...
i have few words for you thanks thanks thanks thanks :-) till now it works well and i hope it will stay like that. On Aug 26, 11:50 pm, Cornelius wrote: > You can now install the latest version (JDK 1.6.0_16) and it is now > fixed. One of the bugs fixed in 1.6.0_16 is thatbreakpointswere not > working. > > On Jul 24, 3:28 am, Paul Robinson wrote: > > > Check which version of the JDK you have. There's a bug in 1.6.0_14 that > > prevents debuggerbreakpointsfromworking. If you are using that > > version, then you should downgrade to 1.6.0_13 > > > Jaimon wrote: > > > hi all, > > > i am new to the GWT world, i have started to do the tutorial > > > (StockWatcher) and everything wasworkingwell and pretty easy till i > > > got to the point of where: > > > > 1) my hosted mode sometimes starts but show an empty page, it is stuck > > > on connecting to 127.0.0.1 > > > 2) thedebuggerdoesnotwork any more, meaning i am putting a break > > > point in the code but the hosted mode ignores it. > > > > any help, and good tutorial on how to work with php whould be really > > > appreciated > > > me :) --~--~-~--~~~---~--~~ 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: History Token
On 28 août, 13:54, Simon Shaw wrote: > I have developed a simple web application with 4 pages that uses > Hyperlinks and ValueChangeHandler to move from page to page and store > history. > Although I want to keep the history functionality in this application > I do not want to show the token in the address bar of the browser. That's simply not possible (well, in IE6 and IE7, it would be, but not on other browsers; at least with the current History implementation, which is what 99.9% of developers using GWT actually want) > Also, and I am pretty sure this is connected, I would like to prevent > users from entering the site from any location other than the default > landing page. Oh, this is easy: in your onModuleLoad, instead of firing the current history token, just do nothing with History (apart from registering your ValueChangeHandler) or explicitly "move" to the landing page (History.newItem("landing-page")) Er, could you explain why you don't want the "bookmarkable" part of the history feature? i'm having a hard time understanding your issue with it... --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
Hi Ian, Yeah doing that now, its still hanging a lot I don't know whats the problem. I guess the last option would be to reinstall gwt On Aug 28, 11:14 am, Ian Bambury wrote: > I don't think that the problem is there, but try commenting out just that > call and running the rest of the app. If the problem goes away, then I'm > wrong :-) > Ian > > http://examples.roughian.com > > 2009/8/28 Rahul > > > > > Hi, > > This is my code: > > > Client side, i am calling an RPC service to connect to sqlserver2005. > > Its an simple login(very basic) > > > greetingService.greetServer3(username,password, new > > AsyncCallback() > > { > > > �...@override > > public void > > onFailure(Throwable caught) { > > // TODO > > Auto-generated method stub > > > } > > > �...@override > > public void > > onSuccess(Integer result) { > > // TODO > > Auto-generated method stub > > if (result > > == 1) > > > Window.alert("log on successful"); > > else > > > Window.alert("Please check the username and password"); > > } > > > My implementation on server side is > > > public Integer greetServer3(String str, String str1) { > > // TODO Auto-generated method stub > > > try > > { > > Class.forName > > ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); > > conn = > > DriverManager.getConnection("jdbc:sqlserver:// > > STI1121081:1433;database=Sql-obtv", "username", "password"); > > stm = > > ((java.sql.Connection)conn).createStatement(); > > > System.out.println("Values of string > > name"+str+"value of > > pass"+str1); > > rs = stm.executeQuery("select * from > > Password"); > > > while (rs.next()) > > { > > user =rs.getString("Username"); > > pass = rs.getString("Pass"); > > } > > conn.close(); > > } catch (Exception e) { > > connString = e.getMessage(); > > > } > > > user =user.replaceAll("\\s+$", ""); > > pass = pass.replaceAll("\\s+$", ""); > > > if (str.equals(user)&& > > str1.equals(pass)) > > return 1; > > > else > > return 0; > > > } > > > Also I am not using the Google Application engine as i am integrating > > with sqlserver2005. I have seen similar problems whenever i try > > integrating with sqlserver2005. I am using jdbc4 driver. > > > On Aug 27, 8:49 pm, Ian Bambury wrote: > > > I don't think you'll find it there Rahul, That was only really a > > suggestion > > > for next time :-) > > > It sounds like a strange problem, but if you can provide some code, that > > at > > > least means that other people can have a play - sometimes it happens that > > > the code people provide works OK for other people - it all helps to pin > > it > > > down though. > > > > Ian > > > >http://examples.roughian.com > > > > 2009/8/27 Rahul > > > > > Hi Ian, > > > > I did try to cut out the call tired to find it out, but i was not > > > > successful in getting the answer whats causing the problem > > > > > Sorry for my ignorance but i did not knew anything about the issue > > > > tracker. I would look at issue tracker first and if i am not able to > > > > get solution to that problem ill paste my code here. > > > > > On Aug 27, 5:29 pm, Ian Bambury wrote: > > > > > Hi Rahul, > > > > > Why don't you cut out the call and find out? > > > > > > :-) > > > > > > It's very hard to answer questions like this when there is no code to > > > > look > > > > > at. > > > > > > There are no blindingly desperate problems with GWT that I know of > > that > > > > do > > > > > this. Since the server side is not anything to do with GWT, then that > > is > > > > > very pro
Re: Create own widget
Why not just use a horizontalpanel with two buttons next to eachother? HorizontalPanel buttongroup = new HorizontalPanel(); buttongroup.add(buttonOne); buttongroup.add(buttonTwo); If you want to make this into its own class, youd do; public class myButtonGroup extends HorizontalPanel { Button buttonOne = new Button("test 1"); Button buttonTwo = new Button("test 2"); public myButtonGroup() { this.add(buttonOne) this.add(buttonTwo) } } Preferably in its own file. Then you can use myButtonGroup whenever you want these two buttons. eg. myButtonGroup testgroup = new myButtonGroup() On Aug 28, 10:42 am, LinuxChata wrote: > How to create own widget with two button?? > > 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 -~--~~~~--~~--~--~---
Custom images for different tree leaves
I was wondering if there is a way to assign different images as icons to different leaves in a GWT Tree. All I could find was the interface TreeImages, which has methods to specify images only for Open , closed nodes and leaf. It does not provide a way to dynamically decide and assign different images to the leaf nodes. 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 -~--~~~~--~~--~--~---
GWT - Applet communication /Urgent/
Hi, I have implemented an Applet (for graph visualization) and want to embed it to my GWT application. I also want to achieve communication between GWT and the Applet. I have seen and have tried to use the gwtai library (http:// code.google.com/p/gwtai/) but it does not even compile under Java 1.6 (Stack Overflow error), which is a must in my project. So, is there any other way to achieve direct GWT-Applet communication or must I switch to Flash (for which the communication seems to be implemented)? By the way, I am very surprised regarding the lack of Applet support on GWT, I thought it would be trivial... :(( --~--~-~--~~~---~--~~ 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: Create own widget
You mean something like this? public class TwoButtonPanel extends DockPanel { public TwoButtonPanel() { Button button1 = new Button("Button 1"); Button button2 = new Button("Button 2"); button1.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { button1clicked(); } }); button2.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { button2clicked(); } }); add(button1); add(button2); } private void button1clicked() { } private void button2clicked() { } } On 28 Aug., 10:42, LinuxChata wrote: > How to create own widget with two button?? > > 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 -~--~~~~--~~--~--~---
Re: map, add marker and remove marker
> the mapPanel i'm referring to is here > > http://www.gwt-ext.com/docs/2.0.4/com/gwtext/client/widgets/map/MapPa... > I have also used the MapPanel in GWT-EXT, apparently it does not support plotting Polylines on OpenLayersMap. Have you had any luck with this using GWT-OpenLayers MapWidget to plot Polylines and MapOverlays? ... they don't exactly have a javadocs documentation like GWT-EXT. I currently have an open thread at GWT-EXT forum http://groups.google.com/group/gwt-ext/browse_thread/thread/7cb01539b0b680f0?hl=en 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 -~--~~~~--~~--~--~---
Which TreeItem on onMouseOver?
Hi, how can i detect the TreeItem where the mouse is over in an onMouseOver-Handler? I have the following: public class NaviTree extends Tree implements MouseOverHandler { public NaviTree() { addMouseOverHandler(this); } public void onMouseOver(MouseOverEvent event) { // here i will show a popup with information about the current treeitem, NOT the selected one. } } Michael --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
I don't think that the problem is there, but try commenting out just that call and running the rest of the app. If the problem goes away, then I'm wrong :-) Ian http://examples.roughian.com 2009/8/28 Rahul > > Hi, > This is my code: > > Client side, i am calling an RPC service to connect to sqlserver2005. > Its an simple login(very basic) > > greetingService.greetServer3(username,password, new > AsyncCallback() >{ > >@Override >public void > onFailure(Throwable caught) { >// TODO > Auto-generated method stub > >} > >@Override >public void > onSuccess(Integer result) { >// TODO > Auto-generated method stub >if (result > == 1) > > Window.alert("log on successful"); >else > > Window.alert("Please check the username and password"); >} > > My implementation on server side is > > public Integer greetServer3(String str, String str1) { >// TODO Auto-generated method stub > > try >{ > Class.forName > ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); > conn = > DriverManager.getConnection("jdbc:sqlserver:// > STI1121081:1433;database=Sql-obtv", "username", "password"); > stm = > ((java.sql.Connection)conn).createStatement(); > > System.out.println("Values of string > name"+str+"value of > pass"+str1); > rs = stm.executeQuery("select * from > Password"); > > while (rs.next()) > { > user =rs.getString("Username"); > pass = rs.getString("Pass"); > } > conn.close(); >} catch (Exception e) { > connString = e.getMessage(); > >} > > user =user.replaceAll("\\s+$", ""); > pass = pass.replaceAll("\\s+$", ""); > >if (str.equals(user)&& > str1.equals(pass)) >return 1; > >else >return 0; > >} > > Also I am not using the Google Application engine as i am integrating > with sqlserver2005. I have seen similar problems whenever i try > integrating with sqlserver2005. I am using jdbc4 driver. > > On Aug 27, 8:49 pm, Ian Bambury wrote: > > I don't think you'll find it there Rahul, That was only really a > suggestion > > for next time :-) > > It sounds like a strange problem, but if you can provide some code, that > at > > least means that other people can have a play - sometimes it happens that > > the code people provide works OK for other people - it all helps to pin > it > > down though. > > > > Ian > > > > http://examples.roughian.com > > > > 2009/8/27 Rahul > > > > > > > > > Hi Ian, > > > I did try to cut out the call tired to find it out, but i was not > > > successful in getting the answer whats causing the problem > > > > > Sorry for my ignorance but i did not knew anything about the issue > > > tracker. I would look at issue tracker first and if i am not able to > > > get solution to that problem ill paste my code here. > > > > > On Aug 27, 5:29 pm, Ian Bambury wrote: > > > > Hi Rahul, > > > > Why don't you cut out the call and find out? > > > > > > :-) > > > > > > It's very hard to answer questions like this when there is no code to > > > look > > > > at. > > > > > > There are no blindingly desperate problems with GWT that I know of > that > > > do > > > > this. Since the server side is not anything to do with GWT, then that > is > > > > very probably not a GWT problem (although connecting to the server > might > > > > be). > > > > > > In this kind of situation, I'd say that the first stop is the issue > > > tracker. > > > > Pretty much everything major has been picked up and even when there > is a > > > new > > > > release, the chances are that someone else will find it before you do > > > > (unle
Re: GWT cannot display Chinese Words or JAPANESE words correctly
Also make sure your host page's encoding is UTF-8. On Aug 28, 2:21 am, David wrote: > Hi, > > That is not a GWT issue but rather a HTML issue. > Make sure that: > a) you use a font that supports i18n > b) make sure that you use a charset that supports i18n. > Put something like this in your HTML-HEAD section. > > > David --~--~-~--~~~---~--~~ 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: JSON native function return value
"id":"25" vs "id":25? what is actually supplied in your JSON? the first is a string, the second a number if you are getting the first, then your server side serializer is mucking things up for you. -jason On Aug 28, 2009, at 9:30 AM, jaimon wrote: > > hi all, > > i am using GWT and JSON. > my question is regarding the native functions; > > i am receiving the JSON string OK my problem starts with the return > value of the native functions, > from some reason it can only be a String, > something like: > public final native String getId() /*-{ return this.id; }-*/; > > in if writing the native function like > public final native int getId() /*-{ return this.id; }-*/; > > i am getting > com.google.gwt.dev.shell.HostedModeException: Something other than an > int was returned from JSNI method > '@com.fishabook.ui.client.server.JsUserDetails::getRank()': JS value > of type string, expected int > > event thought that on the data base the field is defined as INT. > > please advise > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
JSON native function return value
hi all, i am using GWT and JSON. my question is regarding the native functions; i am receiving the JSON string OK my problem starts with the return value of the native functions, from some reason it can only be a String, something like: public final native String getId() /*-{ return this.id; }-*/; in if writing the native function like public final native int getId() /*-{ return this.id; }-*/; i am getting com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.fishabook.ui.client.server.JsUserDetails::getRank()': JS value of type string, expected int event thought that on the data base the field is defined as INT. please advise --~--~-~--~~~---~--~~ 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: what is going on with the gwt debugger??
sounds like the bug in JDK 1.6.0_14. If that's the version of the JDK you're using, upgrade to 1.6.0_16 or downgrade to 1.6.0_13 jaimon wrote: > hi all, > i am using eclipse, with google web toolkit 1.7. > is it me or there is a problem with the GWT plug in, and it does not > stop at break points on the code? > > is there any workaround? > how can someone write a code with out a debugger? > > please advise soon i really need that > > thanks > me > > > > --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
I dont get it, Ian told me to paste the code here and the problem was specific to the gwt programming On Aug 28, 10:38 am, Frank Argueta wrote: > I hope your boss is reading your posts on this forum and your attempts > to scavenge solutions to problems specific to *your* server side > code / environment. That teeny bit of server side code you posted > speaks volumes. I know what I'd do if I saw that kind of code in my > codebase. > > On Aug 28, 9:57 am, Rahul wrote: > > > Hi, > > This is my code: > > > Client side, i am calling an RPC service to connect to sqlserver2005. > > Its an simple login(very basic) > > > greetingService.greetServer3(username,password, new > > AsyncCallback() > > { > > > @Override > > public void > > onFailure(Throwable caught) { > > // TODO > > Auto-generated method stub > > > } > > > @Override > > public void > > onSuccess(Integer result) { > > // TODO > > Auto-generated method stub > > if (result > > == 1) > > > > Window.alert("log on successful"); > > else > > > > Window.alert("Please check the username and password"); > > } > > > My implementation on server side is > > > public Integer greetServer3(String str, String str1) { > > // TODO Auto-generated method stub > > > try > > { > > Class.forName > > ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); > > conn = > > DriverManager.getConnection("jdbc:sqlserver:// > > STI1121081:1433;database=Sql-obtv", "username", "password"); > > stm = > > ((java.sql.Connection)conn).createStatement(); > > > System.out.println("Values of string > > name"+str+"value of > > pass"+str1); > > rs = stm.executeQuery("select * from > > Password"); > > > while (rs.next()) > > { > > user =rs.getString("Username"); > > pass = rs.getString("Pass"); > > } > > conn.close(); > > } catch (Exception e) { > > connString = e.getMessage(); > > > } > > > user =user.replaceAll("\\s+$", ""); > > pass = pass.replaceAll("\\s+$", ""); > > > if (str.equals(user)&& > > str1.equals(pass)) > > return 1; > > > else > > return 0; > > > } > > > Also I am not using the Google Application engine as i am integrating > > with sqlserver2005. I have seen similar problems whenever i try > > integrating with sqlserver2005. I am using jdbc4 driver. > > > On Aug 27, 8:49 pm, Ian Bambury wrote: > > > > I don't think you'll find it there Rahul, That was only really a > > > suggestion > > > for next time :-) > > > It sounds like a strange problem, but if you can provide some code, that > > > at > > > least means that other people can have a play - sometimes it happens that > > > the code people provide works OK for other people - it all helps to pin it > > > down though. > > > > Ian > > > >http://examples.roughian.com > > > > 2009/8/27 Rahul > > > > > Hi Ian, > > > > I did try to cut out the call tired to find it out, but i was not > > > > successful in getting the answer whats causing the problem > > > > > Sorry for my ignorance but i did not knew anything about the issue > > > > tracker. I would look at issue tracker first and if i am not able to > > > > get solution to that problem ill paste my code here. > > > > > On Aug 27, 5:29 pm, Ian Bambury wrote: > > > > > Hi Rahul, > > > > > Why don't you cut out the call and find out? > > > > > > :-) > > > > > > It's very hard to answer questions li
Re: Image in server side
Or even simpler way - create a servlet-imageprovider. This means following: 1. Create a servlet which works with java2d, for example. Creates your image in java2d, makes all necessary operations, etc. If there are any parameters of image generation, transfer them to the servlet as query-parameters (http://myservlet?a=110&b=123&c=aaasdfWEasdfa) 2. Set output content-type of the servlet to the appropriate image format (resp.setContentType("image/png") 3. Flush the image body (encoded to corresponding format) to the servlet's output stream All you need then to get image on the client-side is to issue something like this: image.setUrl("http://myservlet?a=112&g=assa";); Refer here for the details of the Image class: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Image.html And here for the servlet image-generator tutorial: http://blog.codebeach.com/2008/02/creating-images-in-java-servlet.html On Aug 28, 3:53 am, mars1412 wrote: > yes, but you won't be happy with the binary data in the client side :) > > the way to go is: > * create the image on the server side - store it in a cache (or > somewhere else) > * tranfer the image path/name to the client > * let the client crete an image with this name/path > * and then the client-browser will issue a get request to the server > which will return the binary data for the image > > On Aug 27, 6:25 pm, osquitranki wrote: > > > Hi, > > > Is possible make a image in the server side and send it in a JSON call > > by client? > > > 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 -~--~~~~--~~--~--~---
Re: Problem deploying with Firefox/Chrome
Hi This is a sample code how i am using to create my UI from parsing XML files protected void fucn(final VerticalPanel verticalPanel, String substring,final PickupDragController drag) { // TODO Auto-generated method stub RequestBuilder builder1 = new RequestBuilder (RequestBuilder.GET,substring+".mdl"); try { Request request1 = builder1.sendRequest(null, new RequestCallback() { public void onError(Request request1, Throwable exception) { } @Override public void onResponseReceived(Request request1, Response response1) { Document xmlDoc1 = XMLParser.parse(response1.getText()); XMLParser.removeWhitespace(xmlDoc1); Element root1 = xmlDoc1.getDocumentElement(); NodeList URLs1 = root1.getChildNodes(); for (int i =0; i wrote: > Hi Jason, > what do think is the problem? > > On Aug 26, 3:33 pm, Jason wrote: > > > Having same problem here but I don't think its related to the > > RequestBuilder. > > > On Aug 26, 11:20 am, Rahul wrote: > > > > Hi, > > > There are few posts with problems with firefox but i was not able to > > > find a solution reading those so i am having a new post. > > > My code runs fine on IE but it fails on Firefox/Chrome. > > > I am using RequestBuilder to parse some xml files and showing them as > > > labels on my UI. > > > > The UI is build perfectly wit IE but not with Firefox/Chrome > > > I am believing that it gets an null response received with > > > RequestBuilder with firefox/chrome. > > > any idea whats causing this problem and how to solve it --~--~-~--~~~---~--~~ 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: Performance issues in GWT application
Your request needs to go through too long chain, that's why it is slow. I'm not sure what's the purpose of the proxy server. Does it do any valuable work, or anything it does is just forwarding requests back and force between internet clients and your JBoss? Also, why do you need Apache on the local machine? You could just change JBoss configuration to listen to default port eighty, thus eliminating one more item from chain. What I'd recommend is to get some domain name. 3rd level names can be optained pretty easily. And then setup DNS to point this name to your jboss static ip address. In this case clients will have direct requests, except the first time when dns request would precede loaded one. On Aug 28, 2:30 am, Subhash Kaker wrote: > Hi All > > I am also facing performance issue like this. > > Any suggestion/help will be appreciated. > > Thanks in adv. > Subhash > > On Aug 28, 11:10 am, Ganesh wrote: > > > Hi All > > > I am facing performance issues in my GWT application. My scenario is > > as explained below: > > > My GWT application is deployed on a JBoss server which is running on a > > machine with static IP say 56.56.56.56 with port 8080. Now when I > > access my application using this IP & port, speed of my application is > > very good and all is running very well. Now I want to setup a named > > proxy server sayhttp://myserver.comforaccessing my application. For > > this, I made an account on zoneedit.com and created a mapping of my > > named server to my static IP with port 80. On port 80 on my static > > server, I setup an Apache server. In Apache server's config file, I > > forward my all requests to JBoss server running on same machine. Now > > using this setup, I am able to access my application using > > linkhttp://myserver.com. > > > But now the performance issues started. Request which is sent to > > server from my application, starts taking too much time. A blank (no > > data is being sent b/w server & client and no processing is being done > > on server) request which takes 450 ms if access application through > > static IP, takes 1400 ms when application is accessed > > usinghttp://myserver.com. > > > Below is the code which I use to send request to my server: > > > _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create > > (_MyService.class); > > ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync; > > String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService"; > > endpoint.setServiceEntryPoint(moduleRelativeURL); > > myServiceAsync.callMethod(); > > > The problem which seems to be is because all my requests are going to > > zoneedit.com and than to my server and that's why they are taking a > > lot of time. A solution which I thought was replacing > > GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for > > sending direct request, but that didn't work because of cross domain > > AJAX call restriction. > > > I request if someone can help me how can I achieve performance without > > telling exact IP (it is also difficult to remember an IP) to my > > clients on which my application is running. Any suggestion/help will > > be highly appreciated. > > > Thanks in advance > > > Ganesh Bansal --~--~-~--~~~---~--~~ 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: Hosted mode hanging 4 out of 10times
Hi, This is my code: Client side, i am calling an RPC service to connect to sqlserver2005. Its an simple login(very basic) greetingService.greetServer3(username,password, new AsyncCallback() { @Override public void onFailure(Throwable caught) { // TODO Auto-generated method stub } @Override public void onSuccess(Integer result) { // TODO Auto-generated method stub if (result == 1) Window.alert("log on successful"); else Window.alert("Please check the username and password"); } My implementation on server side is public Integer greetServer3(String str, String str1) { // TODO Auto-generated method stub try { Class.forName ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); conn = DriverManager.getConnection("jdbc:sqlserver:// STI1121081:1433;database=Sql-obtv", "username", "password"); stm = ((java.sql.Connection)conn).createStatement(); System.out.println("Values of string name"+str+"value of pass"+str1); rs = stm.executeQuery("select * from Password"); while (rs.next()) { user =rs.getString("Username"); pass = rs.getString("Pass"); } conn.close(); } catch (Exception e) { connString = e.getMessage(); } user =user.replaceAll("\\s+$", ""); pass = pass.replaceAll("\\s+$", ""); if (str.equals(user)&& str1.equals(pass)) return 1; else return 0; } Also I am not using the Google Application engine as i am integrating with sqlserver2005. I have seen similar problems whenever i try integrating with sqlserver2005. I am using jdbc4 driver. On Aug 27, 8:49 pm, Ian Bambury wrote: > I don't think you'll find it there Rahul, That was only really a suggestion > for next time :-) > It sounds like a strange problem, but if you can provide some code, that at > least means that other people can have a play - sometimes it happens that > the code people provide works OK for other people - it all helps to pin it > down though. > > Ian > > http://examples.roughian.com > > 2009/8/27 Rahul > > > > > Hi Ian, > > I did try to cut out the call tired to find it out, but i was not > > successful in getting the answer whats causing the problem > > > Sorry for my ignorance but i did not knew anything about the issue > > tracker. I would look at issue tracker first and if i am not able to > > get solution to that problem ill paste my code here. > > > On Aug 27, 5:29 pm, Ian Bambury wrote: > > > Hi Rahul, > > > Why don't you cut out the call and find out? > > > > :-) > > > > It's very hard to answer questions like this when there is no code to > > look > > > at. > > > > There are no blindingly desperate problems with GWT that I know of that > > do > > > this. Since the server side is not anything to do with GWT, then that is > > > very probably not a GWT problem (although connecting to the server might > > > be). > > > > In this kind of situation, I'd say that the first stop is the issue > > tracker. > > > Pretty much everything major has been picked up and even when there is a > > new > > > release, the chances are that someone else will find it before you do > > > (unless you are the most up-to-date, active and comprehensive user of GWT > > > out of the 20,000 of us here - I'm not, so I check the issue tracker). > > > > Coming up with a simple example to demonstrate your problem is the next > > > step. If you take a copy of your problem p
what is going on with the gwt debugger??
hi all, i am using eclipse, with google web toolkit 1.7. is it me or there is a problem with the GWT plug in, and it does not stop at break points on the code? is there any workaround? how can someone write a code with out a debugger? please advise soon i really need that thanks me --~--~-~--~~~---~--~~ 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: User Interface Standards?
I'm not entirely sure I understand what you're asking for. Is it possible your "higher ups" don't know what they want? On Aug 27, 9:26 am, "David C. Hicks" wrote: > I'm looking for documentation about what UI standards GWT may follow, if > any. My "higher ups" are interested in where we stand in this regard. > Can someone point me to a good source for information? I've had no > luck, so far. > > Thanks, > Dave --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to use multiple servers in a single client
Hi I am working on a GWT application. In this, what my client needs is I send calls to different servers on basis of request types. Suppose there are 4 request types SELECT/INSERT/UPDATE/DELETE on basis of operation to be performed on server. If request type is SELECT, we need to send request to SERVER_1 and if request type is INSERT, UPDATE OR DELETE, we need to send request to SERVER_2. Now my question is how to send call to 2 different servers through same client window. Please help Ganesh Bansal --~--~-~--~~~---~--~~ 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: Single entry point, multiple root panel Ids, display just one of them not showing
Because your app is giving up when it can't find slot 1. It also gives up when it can't find slot 2, but by then it has shown the button. Look in the other window that pops up when you start your app and you'll see java.lang.NullPointerException: null Ian http://examples.roughian.com 2009/8/28 ccx163 > > Hi, > > I'm just getting to grips with GWT and have created some cool > widgets. However, I have a problem. The following illustrates this > > If I have a GWT app that in the 'onModuleLoad()' of the entry point > class has the following > > RootPanel.get("slot1").add(new Button ("button")); > RootPanel.get("slot2").add(new Label ("label")); > > Then I have an html page with > > > > > Then the button and label show. > > If I just have > > > > Then the button shows. > > However, If I just have > > > > Then I would expect just the label to show, but it doesn't! > > Any ideas why not? > > My actual application is more complex, but still just adds different > widgets to the root panel. As I want to embed these widgets in an > existing servlet application I want to call the different widgets on 2 > different html pages. So one page would show widget1, and another > widget2. This has the same problem as above that widget2 does not > show. > > Many 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 -~--~~~~--~~--~--~---
HTML templating
Hi, we are evaluating GWT (actually GXT on top of it) and everything was perfect until we had to reproduce the final look and feel. What we want to achieve is for example something like this: Shopping cart 0 Items in your shopping cart Show cart with the same styles associated but it seems quite difficult since the HTML is dinamically generated. Overwriting the on Render method seems to me to complex and BTW a risk since the code working fine with one GWT version today couldn't working after an upgrade. I would love to have something like in Wicket where the HTML template s specified and than the final page is rendered based on that leading HTML. I saw different templating extensions for GWt but I'm not sure if there is one fitting our needs. Is there something out there? Which is the best approach to follow (extending the base template, etc. etc.)? Thanks in advance, Vincenzo. --~--~-~--~~~---~--~~ 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: Performance issues in GWT application
Hi All I am also facing performance issue like this. Any suggestion/help will be appreciated. Thanks in adv. Subhash On Aug 28, 11:10 am, Ganesh wrote: > Hi All > > I am facing performance issues in my GWT application. My scenario is > as explained below: > > My GWT application is deployed on a JBoss server which is running on a > machine with static IP say 56.56.56.56 with port 8080. Now when I > access my application using this IP & port, speed of my application is > very good and all is running very well. Now I want to setup a named > proxy server sayhttp://myserver.comfor accessing my application. For > this, I made an account on zoneedit.com and created a mapping of my > named server to my static IP with port 80. On port 80 on my static > server, I setup an Apache server. In Apache server's config file, I > forward my all requests to JBoss server running on same machine. Now > using this setup, I am able to access my application using > linkhttp://myserver.com. > > But now the performance issues started. Request which is sent to > server from my application, starts taking too much time. A blank (no > data is being sent b/w server & client and no processing is being done > on server) request which takes 450 ms if access application through > static IP, takes 1400 ms when application is accessed > usinghttp://myserver.com. > > Below is the code which I use to send request to my server: > > _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create > (_MyService.class); > ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync; > String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService"; > endpoint.setServiceEntryPoint(moduleRelativeURL); > myServiceAsync.callMethod(); > > The problem which seems to be is because all my requests are going to > zoneedit.com and than to my server and that's why they are taking a > lot of time. A solution which I thought was replacing > GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for > sending direct request, but that didn't work because of cross domain > AJAX call restriction. > > I request if someone can help me how can I achieve performance without > telling exact IP (it is also difficult to remember an IP) to my > clients on which my application is running. Any suggestion/help will > be highly appreciated. > > Thanks in advance > > Ganesh Bansal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Create own widget
How to create own widget with two button?? 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 -~--~~~~--~~--~--~---
Re: mvp / gwt-presenter / uibinder
(Addendum: Thomas's answer beat me to it, but since I noticed it after writing this post, I will post my answer anyway ;) ) I did not have a dev environment setup when I posted this, so did not test this. I obviously should have, because I did not see the recursion in what I was trying to do. As you guessed it, the problem is that we want to inject the same Display interface (MyPresenter.Display) in two different places: - in the view, where we want Gin to use the @Provides factory method (which creates a new view, injects it into a new presenter, and returns the view) - in the presenter, where we do NOT want to call the @Provides method, but instead bind MyPresenter.Display to MyPresenterView in the "standard" way. Guice's private modules would have solved this problem elegantly but they are not yet available in Gin: http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/PrivateModule.html Here is what I did instead: I took as a basis the example project from this good gwt-presenter tutorial: http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html I created a new Guice binding annotation: @BindingAnnotation @Target( { FIELD, PARAMETER, METHOD }) @Retention(RUNTIME) public @interface ViewForPresenter { } I created a new presenter: public class TestPresenter extends WidgetPresenter { public interface Display extends WidgetDisplay { HasClickHandlers getTestButton(); } // Notice the @ViewForPresenter annotation here @Inject public TestPresenter(@ViewForPresenter Display display, EventBus eventBus) { super(display, eventBus); Log.info("TestPresenter created"); bind(); } @Override protected void onBind() { registerHandler(display.getTestButton().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert("Button clicked!"); } })); } @Override protected void onUnbind() { } public void refreshDisplay() { } public void revealDisplay() { } public static final Place PLACE = null; @Override public Place getPlace() { return PLACE; } @Override protected void onPlaceRequest(final PlaceRequest request) { } } And its view: public class TestView extends VerticalPanel implements TestPresenter.Display { private final Button testButton; @Inject public TestView() { Log.info("TestView created"); testButton = new Button("Test"); add(testButton); } @Override public HasClickHandlers getTestButton() { return testButton; } public Widget asWidget() { return this; } @Override public void startProcessing() { } @Override public void stopProcessing() { } } Updated the module: public class GreetingClientModule extends AbstractPresenterModule { @Override protected void configure() { [...] bind(TestPresenter.class); // First binding for TestPresenter.Display, which will be used when we use the @ViewForPresenter annotation bind(TestPresenter.Display.class).annotatedWith (ViewForPresenter.class).to(TestView.class); } // Second binding for TestPresenter.Display, which will be used when no annotation is present @Provides TestPresenter.Display provideTestView(TestPresenter testPresenter) { testPresenter.bind(); return testPresenter.getDisplay(); } } And modified the GreetingView to inject TestView and show it: public class GreetingView extends Composite implements GreetingPresenter.Display { [...] @Inject public GreetingView(TestPresenter.Display testView) { Log.info("GreetingView created"); final FlowPanel panel = new FlowPanel(); panel.add(testView.asWidget()); [...] And voila: 2009-08-28 13:48:10,068 [INFO ] TestView created 2009-08-28 13:48:10,120 [INFO ] TestPresenter created 2009-08-28 13:48:10,131 [INFO ] GreetingView created 2009-08-28 13:48:10,219 [INFO ] GreetingPresenter created Now, if you inject TestView anywhere in your application, it will instantiate a new Presenter/View. Regards, Etienne --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Single entry point, multiple root panel Ids, display just one of them not showing
Hi, I'm just getting to grips with GWT and have created some cool widgets. However, I have a problem. The following illustrates this If I have a GWT app that in the 'onModuleLoad()' of the entry point class has the following RootPanel.get("slot1").add(new Button ("button")); RootPanel.get("slot2").add(new Label ("label")); Then I have an html page with Then the button and label show. If I just have Then the button shows. However, If I just have Then I would expect just the label to show, but it doesn't! Any ideas why not? My actual application is more complex, but still just adds different widgets to the root panel. As I want to embed these widgets in an existing servlet application I want to call the different widgets on 2 different html pages. So one page would show widget1, and another widget2. This has the same problem as above that widget2 does not show. Many 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 -~--~~~~--~~--~--~---
RPC Tomcat File class
Hi, I want to search for files on my server and modify them. In hosted mode all runs fine, also compile/browser runs fine. Then I compile my program. The compilation was succeeded. When I deploy my gwt (1.7.0) app to a tomcat 6.0.20 server the rpc call fails, because my list of files is null. So I get a NullPointerException. I think the tomcat has no permission to the filesystem. Therefore I add this to my cataline.policy file: "grant codeBase "file:${catalina.home}/webapps/-" { permission java.security.AllPermission; };" But it doesn't work. any suggestion? OS: Windows XP Best regards Nice2000 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Create a java doc like page in get
Hi I have some html files in web server . I want to load very much simialr to java docs in frame . means left panel contains my 'table of contents' links and right side panel needs to load corresponding html files according to click on 'toc'. Please help. thanks in advance zujee --~--~-~--~~~---~--~~ 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: Performance issues in GWT application
Hi All, I am also facing performance issues like this. Any suggestion/help will be appreciated. Thanks in adv. Subhash Kaker On Aug 28, 11:10 am, Ganesh wrote: > Hi All > > I am facing performance issues in my GWT application. My scenario is > as explained below: > > My GWT application is deployed on a JBoss server which is running on a > machine with static IP say 56.56.56.56 with port 8080. Now when I > access my application using this IP & port, speed of my application is > very good and all is running very well. Now I want to setup a named > proxy server sayhttp://myserver.comfor accessing my application. For > this, I made an account on zoneedit.com and created a mapping of my > named server to my static IP with port 80. On port 80 on my static > server, I setup an Apache server. In Apache server's config file, I > forward my all requests to JBoss server running on same machine. Now > using this setup, I am able to access my application using > linkhttp://myserver.com. > > But now the performance issues started. Request which is sent to > server from my application, starts taking too much time. A blank (no > data is being sent b/w server & client and no processing is being done > on server) request which takes 450 ms if access application through > static IP, takes 1400 ms when application is accessed > usinghttp://myserver.com. > > Below is the code which I use to send request to my server: > > _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create > (_MyService.class); > ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync; > String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService"; > endpoint.setServiceEntryPoint(moduleRelativeURL); > myServiceAsync.callMethod(); > > The problem which seems to be is because all my requests are going to > zoneedit.com and than to my server and that's why they are taking a > lot of time. A solution which I thought was replacing > GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for > sending direct request, but that didn't work because of cross domain > AJAX call restriction. > > I request if someone can help me how can I achieve performance without > telling exact IP (it is also difficult to remember an IP) to my > clients on which my application is running. Any suggestion/help will > be highly appreciated. > > Thanks in advance > > Ganesh Bansal --~--~-~--~~~---~--~~ 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: Load external html files inside a popup
Thanks to all. I changed to Frame and its working fine. Now Can you help me to create a frame with left side panel contains all Table of contents as links and if an user click on left side links, in right side , corresponding page to be loaded. Very much similar to java Api pages thanks in advance Sujeesh On Aug 27, 7:14 pm, ThomasWrobel wrote: > surely thats just a method of styleing the html pages to look like > that? > If you use an iFrame, gwt will treat the contained page exactly like a > normal website within it. > > On Aug 27, 3:06 pm, zujee wrote: > > > > > Hi myapplicationQuestions, > > thanks for the quick reply.. > > I wonder is there a way to show myhelp fileslike "compiled html > > creator" chm > > > thanks > > Zujee > > > On Aug 27, 5:11 pm, myapplicationquestions > > wrote: > > > > Hi Zujee, > > > > Are thehelp filesdeployed on the webserver? meaning can u access > > > them usinghttp://help1.html?Ifyesu can give taht url in the > > > iframe. > > > > Thanks > > > > On Aug 27, 6:57 am, zujee wrote: > > > > > Hi experts, > > > > I have somehelp filesfor my application. when user clicks on help > > > > page, I want to show it inside the Frame. Inside my help folder i > > > > have 1 toc (table of content) and when user clicks , i need to > > > > navigate to that page. > > > > Can some body help me how i can do it. > > > > > thansk > > > > zuje- Hide quoted text - > > > > - Show quoted text -- 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-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: Possible to cancel an event dispatch loop?
On 28 août, 05:31, Chris wrote: > I have a button with three click handlers registered. They are > chained so that the calling order is A, B, C. IMO you shouldn't depend on your handlers call order, you'd rather have a single handler that eventually defers to "subhandlers" (that'd probably wouldn't be ClickHandler's actually) to enforce the call order and what to do on each step. > Is it possible in handler B to "cancel" the event so that further > handlers are not called? No. > The B handler validates that all the required fields are present. If > not, displays an error message and then I want processing to stop. > The C handler does the actual RPC save - which I don't want to happen. As I said above, I'd rather had a single ClickHandler doing something like: public void onClick(ClickEvent event) { if (validate(event.getSource())) { doSendRpc(); } } > I don't see an obvious way to cancel out of the dispatch loop. Throw an exception maybe ? ;-) (hey, it's a joke! don't do it, refactor your code instead!) --~--~-~--~~~---~--~~ 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: Spinner Widget in 3d
Theres no inbuilt 3d rendering engine in javascript or gwt, so you'd either have to find one and try to make it work with gwt, or you'd have to code your own ver the canvas element. (which lets you draw anything 2d, and thus with smart code you can make anything 3d). Both probably very hard tasks. Its certainly possible, however, as some of the chrome demos show; http://www.chromeexperiments.com/ On Aug 27, 4:54 pm, Jupiter wrote: > I love the following link > > http://labs.pathf.com/spinner/ > > I was wondering that is it possible to have 3d objects in the > spinner.Can I make it possible with GWT?I know javascript supports > 3d.So I guess it should be possible.Can anyone tell me whether its > possible or not?If so please guide me how I can make a 3d spinner > widget? > > Any help is appreciated --~--~-~--~~~---~--~~ 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: mvp / gwt-presenter / uibinder
On 28 août, 09:46, Ricardo Rocha wrote: > Hi Etienne. > > On Aug 28, 1:00 am, Etienne Neveu wrote: > > > Hi Ricardo and Thomas, > > > I don't know much about UIBinder (excepted that it seems promising and > > that I'll have to look into it!), but I might have an idea regarding > > the use of GIN / DI to improve upon Thomas' suggestion of: > > "revers[ing] the dependency and hav[ing] StatsView instantiate its > > StatsPresenter and keep a reference to it in a private field". > > > I got this idea the other day while reading this semi-related google- > > guice thread > > :http://groups.google.com/group/google-guice/browse_thread/thread/2509... > > . > > > What about: > > > - adding a provider method in your GinModule: > > > @Provides > > StatView provideStatView(StatPresenter statPresenter) { > > return statPresenter.getView(); > > > } > > > - then injecting the view where you need it: > > public MainView extends View { > > > private final StatView statView; > > > @Inject > > public MainView(StatView statView) { > > this.statView = statView; > > } > > > } > > > When Gin creates the MainView, it looks a StatView to inject, sees > > that it is provided by the @Provides method, creates and injects > > dependencies into a new presenter (including a new view associated to > > this presenter), and then returns the view. > > You can then inject multiple StatViews in your UI, and they will each > > create their associated presenter. > > > If you want a singleton StatView, make the StatPresenter a singleton. > > In this case, the @Provides method will create the presenter the first > > time it is called, but will re-use this presenter (and associated > > view) the following times. > > You wouldn't even need to declare the StatView as a Singleton, because > > its scope would be the same as the StatPresenter's scope, due to the > > use of the @Provides method. > > > In this case, your view would not have to instantiate your presenter / > > keep a reference to it. Gin does the magic for you. Which is IMO good > > for the separation of concerns. > > > What do you think? > > I gave this a try, it looks nice. But couldn't make it work, here's > what i did. > > In my injector module: > > @Provides > StatsView getStatsView(StatsPresenter presenter) { > return (StatsView)presenter.getDisplay(); > } > > In my StatsPresenter constructor: > > @Inject > public StatsPresenter(final Display display, EventBus eventBus, > final DispatchAsync dispatch) { > > It looks ok, but the Display in the StatsPresenter is a StatsView > instance, so i additionally have in my injector module: > > bind(StatsPresenter.Display.class).to(StatsView.class); > > I get a StackOverflowError, which i'm thinking is due to a loop in the > DI. Instantiating a StatsPresenter will trigger the need for a > StatsPresenter.Display which is a StatsView, which then instantiates a > StatsPresenter, ... just a guess but it looks like this. Yes, typical circular dependencies... You can simply use a named binding for where you want your StatsView to be injected (not tested!): // will inject a StatsView instance into StatsPresenter bind(StatsPresenter.Display.class).to(StatsView.class); ... @Provides @Named("er...no idea") public StatsView providesStatsViewFromStatsPresenter(StatsPresenter presenter) { return presenter.getView(); } and in your MainPresenter: @Inject MainView(@Named("er...no idea") StatsView statsView) { ... But all of this also depends on how you're typically injecting your presenter+view into other presenter+view (where the presenter has some public methods that the "parent" presenter will call); then even if StatsPresenter has no such method, I would inject it the same, just for the sake of being consistent throughout the app. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
SEO in gwt 2.0 ?
may i know is this issue is under consideration and how to solve problem regarding cannot index javascript page ? --~--~-~--~~~---~--~~ 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: Heavy performance problems in ie6 and ie7 with both gwt1.6 and gwt1.7
After more research we've found out that it depends on StringBuffer. We're using a StringBuffer to store client logs in. If needed, this buffer can be dumped out to a file. When we commented out the line in our log method that uses the StringBuffer.append() method, it works much faster on ie7 as well. This is a bit strange since the StringBuffer should have been improved between gwt 1.5 and 1.6 but it seems that it is quite the opposite. Or have we missed something? --~--~-~--~~~---~--~~ 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: mvp / gwt-presenter / uibinder
Hi Thomas. On Aug 27, 6:22 pm, Thomas Broyer wrote: > On 27 août, 17:15, "rocha.po...@gmail.com" > wrote: > > > > > Hi all. > > > I've been trying to use the UIBinder, i like it a lot. At the same > > time i've replaced my own MVP implementation with gwt-presenter (which > > is cleaner than what i had), but there's one bit i can't figure out by > > myself regarding dependency injection with GIN. > > > I have a MainPresenter which is retrieved by the injector interface > > after i instantiate the injector. This one instantiates the > > corresponding MainView using DI, and the actual layout is defined in a > > UiBinder xml file. This works fine, until i try to add another of my > > View objects into the MainView UiBinder file. Something like: > > > ... > > xmlns:stats="urn:import:my.package.for.statistics"> > > ... > > > > ... > > > > > One question and one issue. > > > 1) How do you instantiate your Presenter objects? I have a > > StatsPresenter for the StatsView, but if i simply use the UiBinder > > like in here, it will never be instantiated. I've 'fixed' this by > > adding a reference to this StatsPresenter from the MainPresenter - > > which is injected - but only so that one is created, it's not like i > > need that reference there. > > If your presenter has no public method of any kind (i.e. a > StatsPresenter instance has to exist, but nothing will actually do > anything with it; e.g. it just listens to events from the view and > fire events on the event bus and/or listens to events from the > eventBus and updates the view accordingly), then maybe you can reverse > the dependency and have StatsView instantiate its StatsPresenter and > keep a reference to it in a private field (StatsPresenter would still > be an independent class that could be tested without StatsView and > with mock StatsPresenter.Display instead); this would make StatsView a > "simple" Composite widget (that happens to use MVP but this becomes an > implementation detail). > > Did I correctly understand your problem? Yes. Doing it the way you suggest works fine, i've just gave it a try - thanks!. I answer inline below, but with this new structure there's one thing related to gwt-presenter. The constructor of a Presenter (a WidgetPresenter) looks like: (final Display display, EventBus eventBus, final DispatchAsync dispatch) where the Display is the interface for the View. If i'm instantiating the Presenter inside the View, then i need to define the EventBus and DispatchAsync as dependencies for the View, which are simply passed on to the Presenter along with the View instance itself. It works... but these are not really dependencies on the View. > > 2) Given my solution above, i need to make sure that the StatsView is > > a singleton, otherwise the Presenter instantiates a new StatsView > > which is different from the one created by the UiBinder. > > Er, I don't understand... This was just due to the way i was using it. The UiBinder would create a StatsView instance, and the StatsPresenter, which i would inject in another class, would get a StatsView injected itself - a different one. So making both singleton would help, but it was just a big mess. > > Again i try > > to use dependency injection by defining in the MainView a StatsView > > field as in: > > > @UiField(provided=true) > > StatsView statsView; > > If StatsView has dependencies that should be injected view GIN in its > constructor then yes, that the way to go > > > I then add in my injector: > > bind(StatsView.class).in(Singleton.class); > > See above, I don't understand why it has to be a singleton (actually, > I believe it shouldn't) > > > but either this or using a Provider method instead gives me the > > following: > > 00:01:18.766 [ERROR] Failed to create an instance of 'MainView' via > > deferred binding java.lang.NullPointerException: null at > > com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:77) > > at com.google.gwt.user.client.ui.VerticalPanel.add(VerticalPanel.java: > > 53) at > > ... > > > Any hints on this? I can't figure out what i'm doing wrong. > > Have you assigned a StatsView instance to your statsView field? When > using @UiField(provided=true), you're telling UiBinder to not > instantiate a StatsView but instead use the one you're providing; i.e. > UiBinder will read the field value and use that to build the UI > instead of building the UI and write the field's value with the widget > it instantiated. Ok... this was it. For some reason i built the idea that provided=true meant injected=true, and that the UiBinder would use DI to get an instance of the object. Thanks. > Have a look at the examples on the UiBinder wiki page, section > named... "Using a widget that requires constructor args" > (sic!)http://code.google.com/p/google-web-toolkit-incubator/wiki/UiBinder#U... > > (the @UiFactory method –first example, without method arguments– would > allow you to use a Provider for instance and have t
Re: Performance issues in GWT application
I guess you should ditch zoneedit and go for a more professional service ? On Fri, Aug 28, 2009 at 8:10 AM, Ganesh wrote: > > Hi All > > I am facing performance issues in my GWT application. My scenario is > as explained below: > > My GWT application is deployed on a JBoss server which is running on a > machine with static IP say 56.56.56.56 with port 8080. Now when I > access my application using this IP & port, speed of my application is > very good and all is running very well. Now I want to setup a named > proxy server say http://myserver.com for accessing my application. For > this, I made an account on zoneedit.com and created a mapping of my > named server to my static IP with port 80. On port 80 on my static > server, I setup an Apache server. In Apache server's config file, I > forward my all requests to JBoss server running on same machine. Now > using this setup, I am able to access my application using link > http://myserver.com. > > But now the performance issues started. Request which is sent to > server from my application, starts taking too much time. A blank (no > data is being sent b/w server & client and no processing is being done > on server) request which takes 450 ms if access application through > static IP, takes 1400 ms when application is accessed using > http://myserver.com. > > Below is the code which I use to send request to my server: > > _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create > (_MyService.class); > ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync; > String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService"; > endpoint.setServiceEntryPoint(moduleRelativeURL); > myServiceAsync.callMethod(); > > The problem which seems to be is because all my requests are going to > zoneedit.com and than to my server and that's why they are taking a > lot of time. A solution which I thought was replacing > GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for > sending direct request, but that didn't work because of cross domain > AJAX call restriction. > > I request if someone can help me how can I achieve performance without > telling exact IP (it is also difficult to remember an IP) to my > clients on which my application is running. Any suggestion/help will > be highly appreciated. > > Thanks in advance > > Ganesh Bansal > > > --~--~-~--~~~---~--~~ 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: 求助,无法在eclipse3.5中导入samples里的项目
Hey, Blame me for starting this thread, but I shut up a long time ago. I was just trying to understand what the person wanted to ask. But now I added to the useless chatter. David 2009/8/28 Ian Bambury : > Hi Ian, > It *is* an English language forum. But I agree with you that there hasn't > been a problem so far (I'm guessing that is your thought too). > There are other GWT forums for different languages albeit with very few > members. > Given that this is an English language forum, I don't think it is too much > to ask that people try English first. If I went to a Japanese forum and > bombed it with English posts it wouldn't seem unreasonable to be asked to > try Japanese first. > Not that one thread is a bombing, however. > People who subscribe here must have some grasp of English (how much use > would all these messages be if you didn't?) so a basic summary of why the > rest of the post is in some other language doesn't seem unreasonable to me. > Nicknames on the other and should (IMNSHO) be allowed in any alphabet - you > shouldn't have to change it every time you post to a different language > group. > I've been here since 2006 and there have only been a few messages in other > languages and this has been the first time there has been a comment. I think > if we all shut up, it will all fade away. > That said, I'm now going to click 'Send' ;-) > Ian > > http://examples.roughian.com > > > 2009/8/27 Ian Petersen >> >> 2009/8/27 Sumit Chandel : >> > However, I have updated the >> > GWT Discussion Group Charter to reflect a language policy of posting in >> > English first, and then resorting to native language if that fails. This >> > should at least make it so that the message subjects for initial posts >> > are >> > in English. Hopefully this will lead to keeping the group maximally >> > useful, >> > both for English and non-English speakers. >> > >> > http://groups.google.com/group/google-web-toolkit/web/gwt-discussion-group-charter >> >> I think that's an unfortunate change that, in my eyes, contradicts the >> goal of keeping the forum friendly. >> >> I'm not really an active member of this community anymore, so I'm not >> going to belabour this point, I just felt I should raise the issue >> rather than letting it slide. >> >> Ian >> >> > > > > > --~--~-~--~~~---~--~~ 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: Performance issues in GWT application
Hi David Thanks for your reply. But I am a newbie in these type of mappings & creating named servers. Could you please explain which type of professional services you are writing about. Also it would be better if you can provide some links/articles in this regard. Ganesh. On Aug 28, 12:23 pm, David wrote: > I guess you should ditch zoneedit and go for a more professional service ? > > On Fri, Aug 28, 2009 at 8:10 AM, Ganesh wrote: > > > Hi All > > > I am facing performance issues in my GWT application. My scenario is > > as explained below: > > > My GWT application is deployed on a JBoss server which is running on a > > machine with static IP say 56.56.56.56 with port 8080. Now when I > > access my application using this IP & port, speed of my application is > > very good and all is running very well. Now I want to setup a named > > proxy server sayhttp://myserver.comfor accessing my application. For > > this, I made an account on zoneedit.com and created a mapping of my > > named server to my static IP with port 80. On port 80 on my static > > server, I setup an Apache server. In Apache server's config file, I > > forward my all requests to JBoss server running on same machine. Now > > using this setup, I am able to access my application using link > >http://myserver.com. > > > But now the performance issues started. Request which is sent to > > server from my application, starts taking too much time. A blank (no > > data is being sent b/w server & client and no processing is being done > > on server) request which takes 450 ms if access application through > > static IP, takes 1400 ms when application is accessed > > usinghttp://myserver.com. > > > Below is the code which I use to send request to my server: > > > _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create > > (_MyService.class); > > ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync; > > String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService"; > > endpoint.setServiceEntryPoint(moduleRelativeURL); > > myServiceAsync.callMethod(); > > > The problem which seems to be is because all my requests are going to > > zoneedit.com and than to my server and that's why they are taking a > > lot of time. A solution which I thought was replacing > > GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for > > sending direct request, but that didn't work because of cross domain > > AJAX call restriction. > > > I request if someone can help me how can I achieve performance without > > telling exact IP (it is also difficult to remember an IP) to my > > clients on which my application is running. Any suggestion/help will > > be highly appreciated. > > > Thanks in advance > > > Ganesh Bansal --~--~-~--~~~---~--~~ 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 1.6 eclipse plugin
Hi Philipmac You can install the Eclipse plugin following the instructions here: http://code.google.com/eclipse/docs/getting_started.html#installing and it could be helpful to import the existing project following the steps here: http://code.google.com/eclipse/docs/existingprojects.html Hope this is helpful! On Thu, Aug 27, 2009 at 2:15 AM, philipmac wrote: > > Hey, > > I am trying to get the gwt1.6 Sample Gilead application (http:// > sourceforge.net/projects/gilead/files/) up and running. > > It seems that I need to have the GWT1.6 plugin to use this, where can > I find this? > > > The reason I think that this is the error is because when I open the > project in eclipse, manually imported the GWT stuff via Build Path -> > Add Library, ->Add GWT stuff and App engine stuff. > > Yet when I try to GWT compile it, it tells me that it is not a GWT > app. Also in the GWT Compile popup it seems to not know where the > entry point is, even though the entry point is defined in the > Sample.gwt.xml file, as per all GWT projects. > > I am hoping that if I can use the GWT for which the Gilead proj was > created, these problems will go away. > > > > -- Hez --~--~-~--~~~---~--~~ 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: Issues Debugging GWT apps
Tried the following 2 links to change the JDK version: http://mindlessfodder.wordpress.com/2009/07/24/setting-the-jdk-for-the-eclipse-ide/ http://onkarjoshi.wordpress.com/2008/09/25/configuring-eclipse-to-use-a-jdk-at-a-location-with-spaces-in-it/ Both of them suggest to change eclipse.ini file and pass the -vm option No luck yet!! This is driving me crazy now!! --~--~-~--~~~---~--~~ 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: bmi.js interfering with GWT (mobile connection
I should add, that this not only completely stops our GWT-based appplication from loading whenever someone is connected via a mobile connection with a provider who is injecting this bmi.js-script (see below). When on such a mobile connection that uses this script, not even the GWT Showcase at http://gwt.google.com/samples/Showcase loads! (Sites based on older GWT 1.5 versions seem to load without a problem) One can load the application in the same browser and just switch connection to mobile and back to normal DSL connection and the problem appears and disappears. One workaround is to reload each page with Shift-F5, which apparently disables this compression. Or you can block the script and it works, however none of this is a general solution for the average user. For some reason when the bmi.js script is used, Firebug shows that all requests that should go to //myfile.abc just go to / myfile.abc - where (obviously) the file is not found - thus nothing is loaded at all. (GWT 1.7.0) Does anybody have any idea why this could be happening or how to fix this? Maybe this script somehow messes up the order of injected javascript? Best regards Sebastian On Aug 27, 1:56 pm, Sebastian wrote: > Hi, > > we are experiencing a problem with the loading of GWT on mobile > broadband connections. > > Some providers add a script called bmi.js to any site. This script is > supposed to increase speed by compressing images, etc. > > http://forum.vodafone.co.uk/index.php?showtopic=8611http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread... > > One version of this script can be found > here:http://www.joomla-office.net/cms/datenkomprimierung-bei-umts.html?sta... --~--~-~--~~~---~--~~ 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: Issues Debugging GWT apps
Read 1.6.14 as 1.6.0_14 in the previous post :D On Aug 28, 10:58 am, "divya.aj...@gmail.com" wrote: > @Thomas, > Thanks. I did find some information related to debugging not working > in eclipse with JDK version 1.6.14. > > I have some lame questions: > - I did not manually install JDK. I installed eclipse 3.5 and the > google plugin. > So, what is the default version of JDK that eclipse uses. > - How do i change this? > Going to Windows->Preferences0>Java->Compiler, i can only change the > compiler compliance level to 1.5, 1.6 etc... > I am assuming this is not the right thing!! > > On Aug 28, 12:53 am, Thomas Broyer wrote: > > > On 27 août, 18:40, "divya.aj...@gmail.com" > > wrote: > > > > S/W versions: > > > - Google Plugin -> 1.1.0 > > > - GWT SDK -> 1.7.0 > > > - Eclipse -> 3.5 > > > > When i register a break point, it gets registered properly. > > > I can go to the Debug Perspective and my breakpoint shows up in the > > > Breakpoints list. > > > (I can also see the small blue dot.) > > > > However, the Debugger never halts on the breakpoint. > > > Execution just runs past it. > > > Could it be related to > > this?http://code.google.com/p/google-web-toolkit/issues/detail?id=3724 --~--~-~--~~~---~--~~ 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: mvp / gwt-presenter / uibinder
Hi Etienne. On Aug 28, 1:00 am, Etienne Neveu wrote: > Hi Ricardo and Thomas, > > I don't know much about UIBinder (excepted that it seems promising and > that I'll have to look into it!), but I might have an idea regarding > the use of GIN / DI to improve upon Thomas' suggestion of: > "revers[ing] the dependency and hav[ing] StatsView instantiate its > StatsPresenter and keep a reference to it in a private field". > > I got this idea the other day while reading this semi-related google- > guice thread > :http://groups.google.com/group/google-guice/browse_thread/thread/2509... > . > > What about: > > - adding a provider method in your GinModule: > > @Provides > StatView provideStatView(StatPresenter statPresenter) { > return statPresenter.getView(); > > } > > - then injecting the view where you need it: > public MainView extends View { > > private final StatView statView; > > @Inject > public MainView(StatView statView) { > this.statView = statView; > } > > } > > When Gin creates the MainView, it looks a StatView to inject, sees > that it is provided by the @Provides method, creates and injects > dependencies into a new presenter (including a new view associated to > this presenter), and then returns the view. > You can then inject multiple StatViews in your UI, and they will each > create their associated presenter. > > If you want a singleton StatView, make the StatPresenter a singleton. > In this case, the @Provides method will create the presenter the first > time it is called, but will re-use this presenter (and associated > view) the following times. > You wouldn't even need to declare the StatView as a Singleton, because > its scope would be the same as the StatPresenter's scope, due to the > use of the @Provides method. > > In this case, your view would not have to instantiate your presenter / > keep a reference to it. Gin does the magic for you. Which is IMO good > for the separation of concerns. > > What do you think? I gave this a try, it looks nice. But couldn't make it work, here's what i did. In my injector module: @Provides StatsView getStatsView(StatsPresenter presenter) { return (StatsView)presenter.getDisplay(); } In my StatsPresenter constructor: @Inject public StatsPresenter(final Display display, EventBus eventBus, final DispatchAsync dispatch) { It looks ok, but the Display in the StatsPresenter is a StatsView instance, so i additionally have in my injector module: bind(StatsPresenter.Display.class).to(StatsView.class); I get a StackOverflowError, which i'm thinking is due to a loop in the DI. Instantiating a StatsPresenter will trigger the need for a StatsPresenter.Display which is a StatsView, which then instantiates a StatsPresenter, ... just a guess but it looks like this. Did you give this a try yourself? Thanks, Ricardo > Regards, > Etienne --~--~-~--~~~---~--~~ 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: Image in server side
yes, but you won't be happy with the binary data in the client side :) the way to go is: * create the image on the server side - store it in a cache (or somewhere else) * tranfer the image path/name to the client * let the client crete an image with this name/path * and then the client-browser will issue a get request to the server which will return the binary data for the image On Aug 27, 6:25 pm, osquitranki wrote: > Hi, > > Is possible make a image in the server side and send it in a JSON call > by client? > > 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 -~--~~~~--~~--~--~---
Re: Issues Debugging GWT apps
OKAY, finally got it working by changing the JRE configuration. Followed these steps. Launched debug configuration. run -> debug configurations (Opens up the project settings) choose JRE tab click Alternate JRE Add a new JRE by passing the installed JDK directory path (make sure the new JDK is selected in the drop down list). Now debug. --~--~-~--~~~---~--~~ 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 cannot display Chinese Words or JAPANESE words correctly
Hi, That is not a GWT issue but rather a HTML issue. Make sure that: a) you use a font that supports i18n b) make sure that you use a charset that supports i18n. Put something like this in your HTML-HEAD section. David On Fri, Aug 28, 2009 at 3:30 AM, Shadowsong wrote: > > GWT cannot display Chinese Words or JAPANESE words correctly.I edit > the CSS files but it still can not display Chinese words or Japanese > words correctly. > It's only can displayer English. > sorry for my English.Can somebody help me. > > > > --~--~-~--~~~---~--~~ 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: SliderBar looks hidden in un selected tabs in TabPanel
Hi, thanks, I have found the solution to this issue my self - use the add the TabListener to TabPanel and in onTabSelected implementation call slider.drawAll(). --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---