Re: TablayoutPanel - how to align tabs on right (top)
I would also like to know the answer to this question. My ui drafts are mocked that way. I figured that by the time I got around to doing layout that I'd stumble into the answer. I have t dug I to it myself yet but I am geting close to needing to know. I'm sure that I could just change the standard.css file but I hope that there is an official way to do this. On Jul 12, 2:48 pm, Akshay Kumar wrote: > Hi, > I assume, by rtl, you meant right-to-left. Then, no, my UI designer gave me > this design to have the tab-headers on the right. > I do not want to go back to UI-designer that its not possible, unless I have > tried my options. > thanks, > Tkshay > > On 13 July 2010 00:19, Stefan Bachert wrote:> Hi, > > > Did you want to support a rtl language? > > When yes, try to switch to it. > > Some widget support it. > > > Stefan Bachert > >http://gwtworld.de > > > On 11 Jul., 13:46, Akshay Kumar wrote: > > > I am using TabLayoutPanel (in UiBinder xml), and the tab handles > > > ( headers) are by default on top-left. Cant seem to figure out any api > > > option to align the tab-headers on the top-right. I tried TabPanel > > > also but without any luck. > > > > something like this: > > > > [ Tab1 ]_[ Tab2 ]_[ Tab3 ]_ > > > | > > > | > > > | > > > | > > > | > > > | > > > | > > > | > > > | > > > | > > > |_| > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Transferring an image over an PRC call
Is your goal to show the image in an img tag in the web browser? I have user uploadable images on my gwt website and to present the images to users i use an http servlet. I have an img tag rendered in the client that references the image from the servlet. Since my images are saved in the DB, the image servlet processes the users request, finds the image that they are requesting and renders the file to the output stream. Pretty much all you need to do is configure the content type on the response. On Apr 15, 9:48 am, Ahmet wrote: > Hi everyone, > > My application has an upload file feature and allow users to upload > image files to the server using an httpServlet. That part works fine, > the file gets uploaded and placed in the WEB-INF folder (I don't want > public access), required url and other info is filled into the > database using Hibernate. > > The problem is when I want to retrieve the image on the client side. > My user pojo knows the url of its image, but I can't instantiate an > Image object and send it over an RPC call since it is not > serializable. I decided to transform the image file, a jpg, into a > byte[] on the server side and then transfer the byte[] over the RPC > call, however, I it doesn't work. > > I get no errors on the server side, the RPC call returns, but my > client reports a failure: > > SEVERE: Exception while dispatching incoming RPC call > java.lang.RuntimeException: java.lang.ClassCastException: [B cannot be > cast to [Ljava.lang.Object; > > My service code: > public byte[] getImageByUrl(String url) { > > ByteArrayOutputStream baos = new ByteArrayOutputStream(); > try{ > File file = new File(url); > ObjectOutputStream oos = new ObjectOutputStream(baos); > oos.writeObject(file); > }catch(Exception ioe){ > ioe.getMessage(); > } > return baos.toByteArray(); > > } > > My client code: > service.getImageByUrl(url, new AsyncCallback() { > @Override > public void onFailure(Throwable arg0) > { > log("getImageByUrl failed"); > log(arg0.getMessage()); > } > @Override > public void onSuccess(byte[] arg0) { > //reconstruct file > } > > } > > I send a byte[] and recieve a byte[], I checked the contents of the > array from the server side, it is not null and gets returned, however > the client side can not accept it... Why can this be ? > > I have done some research and it seems like using an httpServlet is > better than using an RPC call when making a binary data transfer, > therefore I am inclined to using the httpServlet for downloading the > image, however what I ultimately achive is not having to save the file > on my client side to access its content. Is it possible to transfer > the Image object over the httpServlet to dynamically use it as it is > recieved on the client side ? > > I am not sure about using data://url s as they are not supported by > all browsers, but seems as the simplest solution. > > Thank you for your opinions.. > > Regards, > Ahmet > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Do you always have an enormous front-prensenter?
Hm, when you say inject do you mean via Gin dependancy injection framework? Or are you talking about passing all of those child presenters in as constructor args? I'd highly recomend Gin for this task. It's pretty easy to learn and makes your code nice and tidy. On Mar 15, 2:54 pm, zggame wrote: > Hi, I am new to gwt as well as mvp. We are building a site with gwt- > front talking with a legacy server via simple json. I looked through > the gwt-mvp sample with gwt-presenter. It seems its mainPresenter > acts like a front-controller (dispatch-servlet in Spring mvc)? We are > trying to layout the page with a header (menu), a footer (staus bar) > and center. The center changes and we have about 15-25 different > types for center content (may growing into ~100 later). My > understanding is that each of these corresponds to a presenter, which > might be called by MainPresenter. Then do you need to inject all of > them into the MainPresenter? That seems a really large MainPresenter > to build, with a huge constructor to inject. Am I thinking in the > right line? Is there any other way to break it down? Thank you very > much. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debugging GWT 2.0 is pain
I find hat being able to debug in firefox with firebug and have gwt breakpoints to be vastly surperior to old school hosted mode. I guess I haven't had the frustration that you have because I just leave the browser minimized between debug sessions and refresh when necessary. On Mar 11, 10:40 am, JazzyJava wrote: > Helllo, > I am testing an upgrade of our appliation fro GWT 1.7 to 2.0. All is > fine, except I find that debugging now is a much bigger pain than it > was in 1.7. I have a feeling I am missing something, since it's hard > for me to believe that it is so much more inconvinient now. > > In GWT 1.7 Hosted Mode browser, I could happily click on my links (GWT > or non non-GWT modules), and when I clicked on the GWT module that had > a breakpoint, the Eclipse debugger would kick in. > > Our URL's are for the most part dynamic, i.e. they pass a bunch of > dynamic URL query parameters to the GWT module. In GWT 2.0 debugging, > I now have to copy-paste the dynamic URL into a browser window that > has the address bar enabled, and manually add gwt.codesvr=xxx URL > query parameter at the end. > > This is major pain and I am not sure how I can justify an upgrade to > 2.0 until I understand how to let my development team conveniently > debug. > > If anyone can shed some light on this pain, it will be very much > appreciated. > > Oleg -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Automatic reaload CSS
I am also very interested in this. I would like to have an rpc based login have the ability to update a users css uppon successful login without refreshing the page. On Mar 2, 7:24 am, Šobis wrote: > Hello, > > I have a GWT project wtih different CSS files. > > When I first visit my project client gets myproject.css and he loads > pictures (for example for img ID "picture1" images/image1.png), > styles. Then client makes another RPC which tells him to switch to > myproject1.css (for img ID "picture1" images_new/image1.png). > > Client switches CSS files, but he must reload pictures. How can I do > that? > > I read something about verisons of CSS but I didn't find any > solutions. > > best Matej -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best Practices for Testing?
When I started my project I had GWT based testing but befor I got very far I went to an MVP based archetecture and. At that point I all but quit using the gwt based tests and just test everything as pure java. On Feb 22, 3:05 am, Thomas Broyer wrote: > On Feb 21, 2:31 pm, FKereki wrote: > > > I'm trying to work out the consensus as to the best way of structuring > > a project for testing. > > > For client side code, you have two kinds of tests: > > > * pure unit tests, based on JUnit (and, thanks to MVP, applying to > > most of your code) > > * integration tests, based on GWTTestCase > > > What's the optimum project structure? Would you need new gwt.xml > > files? How would you configure it? > > Have you looked > athttp://groups.google.com/group/google-web-toolkit/t/7a62294ddc615c3f > ? > ...and the "Contacts" MVP sample from Google? > ...and of course GWT itself? > > I'm using a gwt-test for GWTTestCase and a test for "pure Java" JUnit > tests; this makes it easier (compared to the Contacts sample) to run > only pure-Java tests, as you can use a wildcard and just have to > exclude gwt-test from the classpath. > All test cases are on the same package as the classes under test, so > there's no need for an additional gwt.xml (except when you *need* one: > test-only , or and/or ) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Question regarding presenter in MVP pattern
Feldman, Nir's solution is pretty much what i've decided to go with. One thing i do differently though. I didnt care for the idea of having one view having a dependancy on another so what i do is have the "item" view offer up it's individual parts as widgets and have an add row method on the containing view class which takes the number of widgets necessary to represent the item. I went back and forth on that decision and i think that it was right for me, but both ways seem to be quite good at solving your problem. I used this technique to have editable rows in a table it works pretty well. Some cells hvae images in them and you can click the image to swich from viewing the image to having the ability to upload a replacement image. Each row is represented by an MVP composition and the table is represented by another one. On Jan 31, 3:47 pm, gugguson wrote: > Hello. > > I'm creating an gwt app which will enable the user to enter recipes. > I have a presenter with all the basic information like description, > directions etc. which is defined like this: > > public interface Display { > HasClickHandlers getSaveButton(); > HasClickHandlers getCancelButton(); > HasValue getRecipeTitle(); > HasValue getDescription(); > HasValue getDirections(); > HasValue getServings(); > HasValue getTime(); > HasValue getCourse(); > Widget asWidget(); > } > > What I'm going to add to this is the recipe lines which are basically > pair of the ingradient and the amount. What is the preferred way of > adding lines to this interface when there can be x many lines? > > One method would be to do similar to the gwt samples and add two > lines, one with the ingradients (list of strings) and other with the > amount (list of double). The other method would be to create a class > which would contain the recipe lines with all information. If I go > that route should I have the class in the presenter package? > > Regards, > Johann -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Simple DOM programming example using GWT?
I agree with djabi, that seem like a bad way to use GWT. On Jan 26, 9:24 am, Djabi wrote: > Why don't you try > > void onModuleLoad() { > RootPanel.get().add(new HTML("HelloWorld")); > > } > > If you really want to deal directly with the dom look at > com.google.gwt.user.client.DOM but this is probably not the way you > want to use GWT > > On Jan 25, 11:07 am, markww wrote: > > > > > Ah actually it looks like this is needed: > > > doc.getBody().appendChild(p); > > > Thanks > > > On Jan 25, 10:04 am, markww wrote: > > > > Hi, > > > > I'm trying to use the new DOM classes, I'm not getting even a simple > > > sample to work. I'd like to just try something like this: > > > > public class TestProject implements EntryPoint { > > > public void onModuleLoad() { > > > Document doc = Document.get(); > > > ParagraphElement p = doc.createPElement(); > > > p.setInnerText("hello!"); > > > } > > > > } > > > > Is this the right way to go? Do I still need to call doc.appendChild > > > (p)? If I try that, I get an exception: > > > > com.google.gwt.core.client.JavaScriptException: > > > (HIERARCHY_REQUEST_ERR): HIERARCHY_REQUEST_ERR: DOM Exception 3 > > > > is there a guide to DOM programming using GWT by any chance? > > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Custom event system
Btw the compile error is because type can't be static and depend on a compile time generic arguement. When the statics are innitilaized H is not defined yet. On Jan 25, 10:34 am, Ice13ill wrote: > Hello, i'm trying to develop a custom application event system using > my own events and a base event (inherited by the other event types) > > Here is the code of the base event class: > > public class EBaseEvent extends GwtEvent{ > > public static GwtEvent.Type TYPE = new GwtEvent.Type(); > > @Override > public GwtEvent.Type getAssociatedType() { > return TYPE; > } > > } > > The first pb is a compilation problem: i get the message: > > "Cannot make a static reference to a non-static type H" > I don't understand, why is H a static type ? and how can i resolve the > pb ? (i'm not very good working with parametrized types) > > The second pb is that i'm not sure if this is a good/correct approach. > Any ideas ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: "pre" tags wrapping json response during image upload
Kudos sir, it seems that worked like a charm. I had the type set to text/plain in my servlet. What javadoc has this recommendation? I'm just curious. Is it in the doc for GWT somewhere or in the apache commons doc? I actually got my base implementation for the file uploader from the Google Web Toolkit Solutions book, and he called the issue a bug. ( I think that his book was written against GWT 1.3 ) I just assumed that it'd never been fixed. But i guess it was probably never a GWT bug. http://www.amazon.com/Google-Web-Toolkit-Solutions-Useful/dp/0132344815 Trevis On Jan 17, 10:05 am, Thomas Broyer wrote: > On Jan 16, 5:45 pm, Trevis wrote: > > > Ok so, i noticed when i return json from a servlet that i'm using to > > handle image uploads that the reply was wrapped in a tag, i put > > in code to scrape it off and all seemed fine, till i tested in ie8. > > In that browser the pre tag was upper case! so i fixed that. Today i > > decide to test in chrome and in that browser it's wrapped in this > style="word-wrap: break-word; white-space: pre-wrap;"> what gives??! > > Am i doing something wrong that is causing it to do this? I'm worried > > now that i'll have to check in every browser just to see what this > > thing does. > > Just return text/html, as recommended in the JavaDoc (and don't forget > to use < for < and & for &) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Referencing deprecated class warning stack
Hey, Thanks. I just noticed your update. That work around does resolve the issue for me. I had to also remove the old 1.7 dtd from the top of the xml file because i was getting errors because i guess that 'extend- configuration-property' is a new element. I couldnt find a 2.0 DTD and i see that the 2.0 generated projects dont contain a dtd. Does anyone know if there is one? Either way, black listing those classes does get rid of the warnings. On Jan 8, 2:10 pm, Chris Ramsdale wrote: > I've updated the issue with a workaround, let me know if it doesn't work for > anyone. Also, if you don't mind, please star the issue so that it gets > prioritized correctly. > > - Chris > > On Fri, Jan 8, 2010 at 12:38 PM, Trevis wrote: > > I've been watching this thread too. 2.0 also introduced this for me as > > well. > > > On Jan 8, 2:48 am, "khaled.tl...@gmail.com" > > wrote: > > > Hi, > > > > I've got the same type of exception with same environment. Is there > > > something that we missed? > > > > Regards. > > > KT > > > > On Jan 2, 7:54 pm, leslie wrote:> Eclipse 3.5 > > Galileo Java EE Cocoa > > > > Java 1.5.0_13 > > > > Mac OS X 10.5.7 > > > > GWT 2.0 > > > > > Hello, > > > > > I'm seeing a series of warning messages in my console when I attempt > > > > to compile my project. Posted below: > > > > > Scanning for additional dependencies: file:/Users/leslie/Documents/ > > > > projects/myprojectfolder/galileoWorkspace/myproject/src/com/foo/ > > > > projectgwt/controller/AddAddressListener.java > > > > Adding '2' new generated units > > > > Validating newly compiled units > > > > [WARN] Warnings in 'generated:// > > > > 27507DF474CDC042922DAFFEA239ABF3/com/foo/projectgwt/client/ > > > > AddressService_TypeSerializer.java' > > > > [WARN] Line 81: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.ChangeListenerCollection' > > > > [WARN] Line 86: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.ClickListenerCollection' > > > > [WARN] Line 91: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.FocusListenerCollection' > > > > [WARN] Line 96: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.FormHandlerCollection' > > > > [WARN] Line 101: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.KeyboardListenerCollection' > > > > [WARN] Line 106: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.LoadListenerCollection' > > > > [WARN] Line 111: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.MouseListenerCollection' > > > > [WARN] Line 116: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.MouseWheelListenerCollection' > > > > [WARN] Line 121: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.PopupListenerCollection' > > > > [WARN] Line 126: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.ScrollListenerCollection' > > > > [WARN] Line 131: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.TabListenerCollection' > > > > [WARN] Line 136: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.TableListenerCollection' > > > > [WARN] Line 141: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.TreeListenerCollection' > > > > See snapshot: /tmp/ > > > > AddressService_TypeSerializer49102.java > > > > > I'm not referencing any of these classes in my code. I've posted > > > > elsewhere in another related thread which involved the assignment of > > > > collections. And in that case the discussion referred to the RPC > > > > calls returning objects of Collection types. But in this class, that > > > > isn't happening. This class, AddAddressListener, does not use or > > > > involve any types of collection classes. And furthermore, I didn't > > > >
Re: Swing App on browser
2nd vote for webstart. Webstart is the answer. GWT would make for an easier conversion path for a swing developer to web development but i think that you have to have a pretty solid grasp on the fundamentals (limitations and techniques) of web development to produce effectively in GWT. There'd be no way to do a straight conversion of a non trivial application. On Jan 16, 11:47 am, "Paul Grenyer" wrote: > Why not just use webstart? > > -Original Message- > From: Alexander > Date: Sat, 16 Jan 2010 23:37:32 > To: > Subject: Re: Swing App on browser > > No way!!! > > 2010/1/16 Jiss K > > > Hi, > > > I have a complete Swing application and am looking for an easy way to > > bring it on to web so that anyone can open and run the application > > through a browser. > > > Does GWT has the functionality to convert the existing Swing app to > > web app or do i have to start from scratch? > > > - Jiss > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Regards, > Alexander -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
"pre" tags wrapping json response during image upload
Ok so, i noticed when i return json from a servlet that i'm using to handle image uploads that the reply was wrapped in a tag, i put in code to scrape it off and all seemed fine, till i tested in ie8. In that browser the pre tag was upper case! so i fixed that. Today i decide to test in chrome and in that browser it's wrapped in this what gives??! Am i doing something wrong that is causing it to do this? I'm worried now that i'll have to check in every browser just to see what this thing does. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP design help for Display interface
My solution to this problem was to create one presenter/view pair for the table as a whole and then a seperate presenter/view pair for the rows. This way the Cell click handlers are all in the same context. The table presenter gets new row instances from gin and initializes it by passing in a backing bean, that row presenter then exposes the cells as widgets which can be added to the table view. On Jan 8, 6:16 pm, Jeff Irving wrote: > Hello everyone. > > I'm hoping to elicit some suggestions regarding how to apply an MVP > design to my particular application. My situation is that I have some > tabular model data that includes row-specific user actions (ex. > 'discard', 'reprocess', 'submit', etc.) that are ultimately presented > as widgets (ex Label) to which action-specific ClickHandlers should be > attached. Getting the model into the view has been discussed in other > postings and I'm leaning towards passing in the model objects directly > rather than having the Presenter decompose them into more generic > elements. But I'm totally at a loss as to how the Presenter.Display > interface should be structured to retrieve the row-specific user > actions in a way that allows me to attach the correct ClickHandler > logic. > > I've looked at the "Contacts" example and it was very helpful to > demonstrate how to determine which row/Contact was clicked. But the > same ClickHandler logic is applicable to each row. In my case, each > displayed "user action" requires unique processing. > > I'd be happy to include some code examples if it helps clarify the > question. But really, my situation is indicative of a generic design > question: How can the Presenter.Display interface be structured to > pass in values for display but to which specific ClickHandler logic be > applied? > > In case it's worth mentioning, my current working solution has the > Display interface simply provide a get method to retrieve the > underlying Grid used in the View. The Presenter therefore controls the > particular View and ClickHandler logic. It's working but it breaks the > MVP design pattern. > > Any thoughts or suggestions are most welcome. > > Jeff -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is it possible to have a resizable FlexTable
I saw your message and my gut reaction is that you should probably be doing this in css. As far as the browser is concerned it's just a table so having it react to the browser resizing should be easily done In css. On Jan 7, 2:37 pm, chris wrote: > I was wondering if any one has had success with making a FlexTable > that re-sizes when the browser does. > > I've added a ResizeListener that re-sizes the root element whenever > the browser re-sizes, and this seems to work with most GWT > components. > > My ResizeListener: > " > Window.addResizeHandler(new ResizeHandler() { > > public void onResize(ResizeEvent event) { > int height = event.getHeight(); > int width = event.getWidth(); > RootPanel.get("myApp").setHeight(height + "px"); > RootPanel.get("myApp").setWidth(width + "px"); > } > > }); > " > > However, I can't seem to get the flex table to re-size: > I've tried to get the FlexTable to resize via getFlexCellFormatter > ().setWordWrap and applying a css style with "word-wrap: break- > word;" . If I create the sample Composite provided below, the button > re-sizes as expected, but the flex table does not. > > public class Test extends Composite { > final SimplePanel panel = new SimplePanel(); > final VerticalPanel vertPanel = new VerticalPanel(); > final Button test = new Button("test"); > final FlexTable flexTable = new FlexTable(); > > public Test() { > vertPanel.setWidth("100%"); > test.setWidth("100%"); > vertPanel.add(test); > > flexTable.setSize("100%", "100%"); > flexTable.setCellPadding(0); > flexTable.setCellSpacing(0); > flexTable.setText(0, 0, "blaaah"); > flexTable.setText(0, 0,"vrommm"); > flexTable.getFlexCellFormatter().setWordWrap(0, 0, true); > flexTable.getFlexCellFormatter().setWordWrap(0, 1, true); > panel.add(flexTable); > panel.setSize("100%", "100%"); > initWidget(panel); > } > > } > > Any help would be greatly 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Referencing deprecated class warning stack
I've been watching this thread too. 2.0 also introduced this for me as well. On Jan 8, 2:48 am, "khaled.tl...@gmail.com" wrote: > Hi, > > I've got the same type of exception with same environment. Is there > something that we missed? > > Regards. > KT > > On Jan 2, 7:54 pm, leslie wrote:> Eclipse 3.5 Galileo > Java EE Cocoa > > Java 1.5.0_13 > > Mac OS X 10.5.7 > > GWT 2.0 > > > Hello, > > > I'm seeing a series of warning messages in my console when I attempt > > to compile my project. Posted below: > > > Scanning for additional dependencies: file:/Users/leslie/Documents/ > > projects/myprojectfolder/galileoWorkspace/myproject/src/com/foo/ > > projectgwt/controller/AddAddressListener.java > > Adding '2' new generated units > > Validating newly compiled units > > [WARN] Warnings in 'generated:// > > 27507DF474CDC042922DAFFEA239ABF3/com/foo/projectgwt/client/ > > AddressService_TypeSerializer.java' > > [WARN] Line 81: Referencing deprecated class > > 'com.google.gwt.user.client.ui.ChangeListenerCollection' > > [WARN] Line 86: Referencing deprecated class > > 'com.google.gwt.user.client.ui.ClickListenerCollection' > > [WARN] Line 91: Referencing deprecated class > > 'com.google.gwt.user.client.ui.FocusListenerCollection' > > [WARN] Line 96: Referencing deprecated class > > 'com.google.gwt.user.client.ui.FormHandlerCollection' > > [WARN] Line 101: Referencing deprecated class > > 'com.google.gwt.user.client.ui.KeyboardListenerCollection' > > [WARN] Line 106: Referencing deprecated class > > 'com.google.gwt.user.client.ui.LoadListenerCollection' > > [WARN] Line 111: Referencing deprecated class > > 'com.google.gwt.user.client.ui.MouseListenerCollection' > > [WARN] Line 116: Referencing deprecated class > > 'com.google.gwt.user.client.ui.MouseWheelListenerCollection' > > [WARN] Line 121: Referencing deprecated class > > 'com.google.gwt.user.client.ui.PopupListenerCollection' > > [WARN] Line 126: Referencing deprecated class > > 'com.google.gwt.user.client.ui.ScrollListenerCollection' > > [WARN] Line 131: Referencing deprecated class > > 'com.google.gwt.user.client.ui.TabListenerCollection' > > [WARN] Line 136: Referencing deprecated class > > 'com.google.gwt.user.client.ui.TableListenerCollection' > > [WARN] Line 141: Referencing deprecated class > > 'com.google.gwt.user.client.ui.TreeListenerCollection' > > See snapshot: /tmp/ > > AddressService_TypeSerializer49102.java > > > I'm not referencing any of these classes in my code. I've posted > > elsewhere in another related thread which involved the assignment of > > collections. And in that case the discussion referred to the RPC > > calls returning objects of Collection types. But in this class, that > > isn't happening. This class, AddAddressListener, does not use or > > involve any types of collection classes. And furthermore, I didn't > > notice any of these messages in my code until I made assignment > > changes in my GUI code, in classes which may use this listener. (but > > then I tried to reverse these changes and yet still the issue remains > > - so now I have no idea..) But why is the warning message targeting > > this class? > > > This is just part of the stack that appears in the console. There are > > other classes referenced there too and the warnings are very similar, > > maybe identical. I'm focusing on one for brevity. > > > I guess my question is - What does this warning stack mean and how > > should I resolve 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DatePicker / set a minimum date
I'm using the datepicker for the first time and I'm looking for this as well. It would also be nice to have a way to choose your year. It's all but useless for entering birthdates. Trevis On Jan 4, 7:52 am, Dariusz wrote: > Hi! > > Is there a function how to prevent people selecting a date, which is > in the past? Something like, setMinDate( Date date)? > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Customizing RichTextArea with insertHtml in GWT 2.0
Hey thanks, I've seen that post which was what turned me on to RichTextToolbar when i started to research this a couple of days ago. It looks great and will definitely be the inspiration for how i create mine. The problem is i want to do custom functionality that the raw Formatter object doesn't supply. (custom youtube and embeding and a few more things) which i can do just perfectly with insertHTML. The problem is, i want to grab the text that the user has highlighted so that i can use it when i insert the custom html but the API doesnt seem to expose it. The custom RichTextToolbar implementation just calls methods on RichTextArea and never actual seem to touch the selected text directly. It just calls things like RichTextArea.Formatter.createLink... which hands wrapping the selected text internally. I just wrote a hack work around for the time being so that i can progress to other work but i'm still convinced that a getSelectedText method exists somewhere. If it doesnt, it certainly should. Here's the workaround that i just came up with: private String crazyGetSelectedText(RichTextArea rta) { final String MARKER = "http://trevsmarker.com";; rta.getFormatter().createLink(MARKER); String withMarker = rta.getHTML(); int markerIndex = withMarker.indexOf(MARKER); int beginIndex = withMarker.indexOf('>', markerIndex)+1; int endIndex = withMarker.indexOf('<', beginIndex); String selected = withMarker.substring(beginIndex, endIndex); rta.getFormatter().removeLink(); return selected; } That seems to get the job done but how horribly inefficient is that solution? Trevis On Jan 1, 12:11 pm, Anoop John wrote: > Tevis Please see the post below. > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > On Jan 1, 11:07 pm, Trevis wrote: > > > I feel like i must be missing something obvious but i'm not seeing any > > convenience method to get the selected text. Seems too obvious to be > > an oversight. Any help would be much appreciated. > > > Trevis > > > On Dec 31 2009, 9:26 am, Trevis wrote: > > > > I'd like to create a custom rich text aera. I think I I've got a fair > > > handle on how it works from playing with the showcase RichTextToolbar > > > source code. The Formatter.insertHtml method seems like it will get > > > almost exactly what i need. But, there is one critical peice of the > > > puzzle I have yet to solve. I need to grab the text that the user has > > > selected to make the HTML inserts work he way I need them to. > > > > Am I missing it? How can I get the selected text? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Customizing RichTextArea with insertHtml in GWT 2.0
I feel like i must be missing something obvious but i'm not seeing any convenience method to get the selected text. Seems too obvious to be an oversight. Any help would be much appreciated. Trevis On Dec 31 2009, 9:26 am, Trevis wrote: > I'd like to create a custom rich text aera. I think I I've got a fair > handle on how it works from playing with the showcase RichTextToolbar > source code. The Formatter.insertHtml method seems like it will get > almost exactly what i need. But, there is one critical peice of the > puzzle I have yet to solve. I need to grab the text that the user has > selected to make the HTML inserts work he way I need them to. > > Am I missing it? How can I get the selected text? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Customizing RichTextArea with insertHtml in GWT 2.0
I'd like to create a custom rich text aera. I think I I've got a fair handle on how it works from playing with the showcase RichTextToolbar source code. The Formatter.insertHtml method seems like it will get almost exactly what i need. But, there is one critical peice of the puzzle I have yet to solve. I need to grab the text that the user has selected to make the HTML inserts work he way I need them to. Am I missing it? How can I get the selected text? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: File Upload Problem
I didn't look at your logic very closely but I did spot one problem... maxFileSize = 10*(1024*2); //10 megs max That isn't 10mb. It should be 10*(1024*1024) On Dec 28, 4:13 pm, darkling wrote: > I've read several posts about this but everyon seems to be using > different code and different methods. I've tried several but none seem > to work. I must be missing some fundamental component. > > I try to upload a file but even though the request arrives on server > side theres no file. The request is only 48 bytes and I can't figure > out why. If anyone can tell me what I'm doing wrong I'd greatly > appreciate it. > > Client side: > FormPanel form = new FormPanel(); > form.setEncoding(FormPanel.ENCODING_MULTIPART); > form.setMethod(FormPanel.METHOD_POST); > form.setAction("/adt/fileUpload"); > > form.addSubmitCompleteHandler(new FormPanel.SubmitCompleteHandler > () { > public void onSubmitComplete(SubmitCompleteEvent event) { > // When the form submission is successfully completed, this > event is > // fired. Assuming the service returned a response of type > text/html, > // we can get the result text here (see the FormPanel > documentation for > // further explanation). > errors.setHTML(event.getResults()); > }}); > > file = new FileUpload(); > file.setStylePrimaryName("FileUpload"); > form.add(file); > this.add(form); > > Server Side: > > public void doPost(HttpServletRequest request, HttpServletResponse > response) throws ServletException, IOException { > ServletFileUpload upload = new ServletFileUpload(); > System.out.println("Here"); > Enumerationenumer = request.getParameterNames(); > while(enumer.hasMoreElements()) > { > String name = enumer.nextElement(); > System.out.println(name + " " + request.getParameterValues > (name)); > } > try{ > FileItemIterator iter = upload.getItemIterator(request); > System.out.println("Size " + iter.hasNext()); > while (iter.hasNext()) { > FileItemStream item = iter.next(); > > String name = item.getFieldName(); > InputStream stream = item.openStream(); > > // Process the input stream > ByteArrayOutputStream out = new ByteArrayOutputStream > (); > int len; > byte[] buffer = new byte[8192]; > while ((len = stream.read(buffer, 0, buffer.length)) ! > = -1) { > out.write(buffer, 0, len); > } > > int maxFileSize = 10*(1024*2); //10 megs max > if (out.size() > maxFileSize) { > System.out.println("File is > than " + > maxFileSize); > return; > } > > File f = new File(item.getName()); > if(f.exists()) > f.delete(); > > FileOutputStream fos = new FileOutputStream(f); > byte[] bytes = out.toByteArray(); > fos.write(bytes); > > StandardGridImport sgi = new StandardGridImport(); > sgi.init(f.getPath()); > List beans = sgi.parseGrid(); > List errors = sgi.getErrors(); > PrintWriter pw = response.getWriter(); > for(int x = 0; x < errors.size(); x++) > pw.write(errors.get(x).toString()); > pw.flush(); > pw.close(); > System.out.println("Done"); > } > } > catch(Exception e){ > e.printStackTrace(); > } > > } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why History.newItem() always calls the onModuleLoad?
I'm glad you asked this question! I've just assumed that you had to fire the change event when adding to the history stack with addItem. I guess you probably saw it but your answer is simply use the two argument version and pass in "false" for the issueEvent argument. On Dec 23, 11:32 pm, compuroad wrote: > I thought History.newItem() would only build the history stack. > However in my App it fires the EntryPoint onModuleLoad, restarting the > application. > > What am I missing? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
IE Development plugin not working in 64-bit vista.
I decided to create a new, more descriptive conversation. It seems as though the IE development plugin does not install properly in 64 bit vista. Is this issue being addressed? Does. Anyone have a better work around than remoting into a 32 bit system? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin not working IE8
That's the conclusion i'm sticking with until told otherwise. I've wasted a good 2 hours today trying to get it to work on my dev box with no luck. The dev plugin so far seems amazing in ff. Should make development go much faster when making minor changes. I hope they figure out what's wrong with Vista 64 soon. On Dec 14, 11:28 pm, Sekhar Ravinutala wrote: > I guess it's a problem with 64 bit then - I was having problem with Vista 64 > bit too. > > > > > > On Mon, Dec 14, 2009 at 8:33 PM, Trevis wrote: > > I've installed IE8 on my dev box and it still doesnt work. For kicks > > i installed the plugin on my Vista 32 bit laptop with IE8 and it works > > fine. > > > On Dec 14, 6:29 pm, Trevis wrote: > > > Oh and i cant find an oophm.dll anywhere on my system. Where should > > > it be? > > > > I dont see any errors in the event viewer either. Install runs fine > > > from within ie and directly from the file system. Both run and give > > > me a success message but nither seem to work. I restarted ie multiple > > > times and rebooted the PC. > > > > On Dec 14, 6:03 pm, Trevis wrote: > > > > > I'm having the same problem on IE7 Vista 64bit > > > > > On Dec 10, 5:39 pm, Chris Ramsdale wrote: > > > > > > Some further debugging to get an idea of what's going on. I'm not > > convinced > > > > > that the missing reg entries are the root cause (at least not yet). > > That > > > > > said, I do have some follow-up questions: > > > > > > 1. Are you running a 32-bit or 64-bit version of Windows? > > > > > 2. Is the following registry key installed: > > > > > HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}? If > > so, what > > > > > are its subkeys and values? > > > > > 3. What happens when you run "regsvr32.exe oophm.dll"? Can you try > > running > > > > > "regsvr32.exe /u oophm.dll" and then "regsvr32.exe oophm.dll"? > > > > > 4. Are there any glaring errors within the Windows Event Viewer > > (either > > > > > System or Application level)? > > > > > > - Chris > > > > > > 2009/12/10 Dimitrijević Ivan > > > > > > > I have the same problem. > > > > > > > Windows Vista, GWT 2.0 final, Eclips 3.4 > > > > > > > On Dec 10, 8:38 pm, ksachdeva wrote: > > > > > > > Bumping it up. Please help it is a blocker for us to move to GWT > > 2.0 > > > > > > > > Regards > > > > > > > Kapil > > > > > > > > On Dec 9, 10:00 am, Andrey wrote: > > > > > > > > > The same problem. And it was reported a few times before. > > > > > > > > > On 9 дек, 07:50, ksachdeva wrote: > > > > > > > > > > Same issue for me also. > > > > > > > > > > Windows Vista SP2 / IE 8. > > > > > > > > > > Works fine in Firefox. > > > > > > > > > > Regards > > > > > > > > > Kapil > > > > > > > > > > On Dec 8, 3:00 pm, Sekhar Ravinutala > > wrote: > > > > > > > > > > > Thanks, see my responses below. > > > > > > > > > > > On Tue, Dec 8, 2009 at 12:29 PM, Chris Ramsdale < > > > > > > cramsd...@google.com> > > > > > > > > > > > wrote: > > > > > > > > > > > 1. Have you attempted to restart IE and test after > > installing > > > > > > theplugin? > > > > > > > > > > > Yes. > > > > > > > > > > > > 2. Can you verify that the following registry entries are > > > > > > available ( > > > > > > > > > > > being the unique identifier assigned to your account): > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\User > > > > > > Data\\Components\50E8C0062FB69AB5399BEF4DAE291BB6 > > > > > > > > > > > No > > > > > > > > > > > > HKEY_USERS\\Software\Classes\AppID\oophm.DLL > > > > > > > > > > > Yes > > > HKEY_USERS\\Software\Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5 > > > > > > CB}\InprocServer32 > > > > >
Re: GWT Developer Plugin not working IE8
I've installed IE8 on my dev box and it still doesnt work. For kicks i installed the plugin on my Vista 32 bit laptop with IE8 and it works fine. On Dec 14, 6:29 pm, Trevis wrote: > Oh and i cant find an oophm.dll anywhere on my system. Where should > it be? > > I dont see any errors in the event viewer either. Install runs fine > from within ie and directly from the file system. Both run and give > me a success message but nither seem to work. I restarted ie multiple > times and rebooted the PC. > > On Dec 14, 6:03 pm, Trevis wrote: > > > > > I'm having the same problem on IE7 Vista 64bit > > > On Dec 10, 5:39 pm, Chris Ramsdale wrote: > > > > Some further debugging to get an idea of what's going on. I'm not > > > convinced > > > that the missing reg entries are the root cause (at least not yet). That > > > said, I do have some follow-up questions: > > > > 1. Are you running a 32-bit or 64-bit version of Windows? > > > 2. Is the following registry key installed: > > > HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}? If so, > > > what > > > are its subkeys and values? > > > 3. What happens when you run "regsvr32.exe oophm.dll"? Can you try running > > > "regsvr32.exe /u oophm.dll" and then "regsvr32.exe oophm.dll"? > > > 4. Are there any glaring errors within the Windows Event Viewer (either > > > System or Application level)? > > > > - Chris > > > > 2009/12/10 Dimitrijević Ivan > > > > > I have the same problem. > > > > > Windows Vista, GWT 2.0 final, Eclips 3.4 > > > > > On Dec 10, 8:38 pm, ksachdeva wrote: > > > > > Bumping it up. Please help it is a blocker for us to move to GWT 2.0 > > > > > > Regards > > > > > Kapil > > > > > > On Dec 9, 10:00 am, Andrey wrote: > > > > > > > The same problem. And it was reported a few times before. > > > > > > > On 9 дек, 07:50, ksachdeva wrote: > > > > > > > > Same issue for me also. > > > > > > > > Windows Vista SP2 / IE 8. > > > > > > > > Works fine in Firefox. > > > > > > > > Regards > > > > > > > Kapil > > > > > > > > On Dec 8, 3:00 pm, Sekhar Ravinutala wrote: > > > > > > > > > Thanks, see my responses below. > > > > > > > > > On Tue, Dec 8, 2009 at 12:29 PM, Chris Ramsdale < > > > > cramsd...@google.com> > > > > > > > > > wrote: > > > > > > > > > 1. Have you attempted to restart IE and test after installing > > > > theplugin? > > > > > > > > > Yes. > > > > > > > > > > 2. Can you verify that the following registry entries are > > > > available ( > > > > > > > > > being the unique identifier assigned to your account): > > > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\User > > > > Data\\Components\50E8C0062FB69AB5399BEF4DAE291BB6 > > > > > > > > > No > > > > > > > > > > HKEY_USERS\\Software\Classes\AppID\oophm.DLL > > > > > > > > > Yes > > > > > HKEY_USERS\\Software\Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5 > > > > CB}\InprocServer32 > > > > > > > > > No > > > > > HKEY_USERS\\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B > > > > 4E}\InprocServer32 > > > > > > > > > No > > > > > HKEY_USERS\\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B > > > > 4E}\ToolboxBitmap32 > > > > > > > > > Yes > > > > > HKEY_USERS\\Software\Classes\CLSID\{644FD769-8B9D-4AC4-A79E-AAAF5CD751 > > > > C1}\InprocServer32 > > > > > > > > > No > > > > > HKEY_USERS\\Software\Classes\TypeLib\{9259F105-BE55-4BF6-B7CE-D0AA878C > > > > 1BA6}\1.0\0\win32 > > > > > > > > > Yes > > > > > > > > > > HKEY_USERS\_Classes\AppID\oophm.DLL > > > > > > > > > Yes > > > > > HKEY_USERS\_Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5CB}\Inpro > > > > cServer32 > > > > > > > > > No > > > > > HKEY_USERS\_Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\Inpr
Re: GWT Developer Plugin not working IE8
Oh and i cant find an oophm.dll anywhere on my system. Where should it be? I dont see any errors in the event viewer either. Install runs fine from within ie and directly from the file system. Both run and give me a success message but nither seem to work. I restarted ie multiple times and rebooted the PC. On Dec 14, 6:03 pm, Trevis wrote: > I'm having the same problem on IE7 Vista 64bit > > On Dec 10, 5:39 pm, Chris Ramsdale wrote: > > > > > Some further debugging to get an idea of what's going on. I'm not convinced > > that the missing reg entries are the root cause (at least not yet). That > > said, I do have some follow-up questions: > > > 1. Are you running a 32-bit or 64-bit version of Windows? > > 2. Is the following registry key installed: > > HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}? If so, what > > are its subkeys and values? > > 3. What happens when you run "regsvr32.exe oophm.dll"? Can you try running > > "regsvr32.exe /u oophm.dll" and then "regsvr32.exe oophm.dll"? > > 4. Are there any glaring errors within the Windows Event Viewer (either > > System or Application level)? > > > - Chris > > > 2009/12/10 Dimitrijević Ivan > > > > I have the same problem. > > > > Windows Vista, GWT 2.0 final, Eclips 3.4 > > > > On Dec 10, 8:38 pm, ksachdeva wrote: > > > > Bumping it up. Please help it is a blocker for us to move to GWT 2.0 > > > > > Regards > > > > Kapil > > > > > On Dec 9, 10:00 am, Andrey wrote: > > > > > > The same problem. And it was reported a few times before. > > > > > > On 9 дек, 07:50, ksachdeva wrote: > > > > > > > Same issue for me also. > > > > > > > Windows Vista SP2 / IE 8. > > > > > > > Works fine in Firefox. > > > > > > > Regards > > > > > > Kapil > > > > > > > On Dec 8, 3:00 pm, Sekhar Ravinutala wrote: > > > > > > > > Thanks, see my responses below. > > > > > > > > On Tue, Dec 8, 2009 at 12:29 PM, Chris Ramsdale < > > > cramsd...@google.com> > > > > > > > > wrote: > > > > > > > > 1. Have you attempted to restart IE and test after installing > > > theplugin? > > > > > > > > Yes. > > > > > > > > > 2. Can you verify that the following registry entries are > > > available ( > > > > > > > > being the unique identifier assigned to your account): > > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\User > > > Data\\Components\50E8C0062FB69AB5399BEF4DAE291BB6 > > > > > > > > No > > > > > > > > > HKEY_USERS\\Software\Classes\AppID\oophm.DLL > > > > > > > > Yes > > > > HKEY_USERS\\Software\Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5 > > > CB}\InprocServer32 > > > > > > > > No > > > > HKEY_USERS\\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B > > > 4E}\InprocServer32 > > > > > > > > No > > > > HKEY_USERS\\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B > > > 4E}\ToolboxBitmap32 > > > > > > > > Yes > > > > HKEY_USERS\\Software\Classes\CLSID\{644FD769-8B9D-4AC4-A79E-AAAF5CD751 > > > C1}\InprocServer32 > > > > > > > > No > > > > HKEY_USERS\\Software\Classes\TypeLib\{9259F105-BE55-4BF6-B7CE-D0AA878C > > > 1BA6}\1.0\0\win32 > > > > > > > > Yes > > > > > > > > > HKEY_USERS\_Classes\AppID\oophm.DLL > > > > > > > > Yes > > > > HKEY_USERS\_Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5CB}\Inpro > > > cServer32 > > > > > > > > No > > > > HKEY_USERS\_Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\Inpro > > > cServer32 > > > > > > > > No > > > > HKEY_USERS\_Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\Toolb > > > oxBitmap32 > > > > > > > > Yes > > > > HKEY_USERS\_Classes\CLSID\{644FD769-8B9D-4AC4-A79E-AAAF5CD751C1}\Inpro > > > cServer32 > > > > > > > > No > > > > HKEY_USERS\_Classes\TypeLib\{9259F105-BE55-4BF6-B7CE-D0AA878C1BA6}\1.0 > > > \0\win32 > > > > > > > > Yes > > > > > > > > > On
Re: GWT Developer Plugin not working IE8
I'm having the same problem on IE7 Vista 64bit On Dec 10, 5:39 pm, Chris Ramsdale wrote: > Some further debugging to get an idea of what's going on. I'm not convinced > that the missing reg entries are the root cause (at least not yet). That > said, I do have some follow-up questions: > > 1. Are you running a 32-bit or 64-bit version of Windows? > 2. Is the following registry key installed: > HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}? If so, what > are its subkeys and values? > 3. What happens when you run "regsvr32.exe oophm.dll"? Can you try running > "regsvr32.exe /u oophm.dll" and then "regsvr32.exe oophm.dll"? > 4. Are there any glaring errors within the Windows Event Viewer (either > System or Application level)? > > - Chris > > 2009/12/10 Dimitrijević Ivan > > > > > I have the same problem. > > > Windows Vista, GWT 2.0 final, Eclips 3.4 > > > On Dec 10, 8:38 pm, ksachdeva wrote: > > > Bumping it up. Please help it is a blocker for us to move to GWT 2.0 > > > > Regards > > > Kapil > > > > On Dec 9, 10:00 am, Andrey wrote: > > > > > The same problem. And it was reported a few times before. > > > > > On 9 дек, 07:50, ksachdeva wrote: > > > > > > Same issue for me also. > > > > > > Windows Vista SP2 / IE 8. > > > > > > Works fine in Firefox. > > > > > > Regards > > > > > Kapil > > > > > > On Dec 8, 3:00 pm, Sekhar Ravinutala wrote: > > > > > > > Thanks, see my responses below. > > > > > > > On Tue, Dec 8, 2009 at 12:29 PM, Chris Ramsdale < > > cramsd...@google.com> > > > > > > > wrote: > > > > > > > 1. Have you attempted to restart IE and test after installing > > theplugin? > > > > > > > Yes. > > > > > > > > 2. Can you verify that the following registry entries are > > available ( > > > > > > > being the unique identifier assigned to your account): > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\User > > Data\\Components\50E8C0062FB69AB5399BEF4DAE291BB6 > > > > > > > No > > > > > > > > HKEY_USERS\\Software\Classes\AppID\oophm.DLL > > > > > > > Yes > > > HKEY_USERS\\Software\Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5 > > CB}\InprocServer32 > > > > > > > No > > > HKEY_USERS\\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B > > 4E}\InprocServer32 > > > > > > > No > > > HKEY_USERS\\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B > > 4E}\ToolboxBitmap32 > > > > > > > Yes > > > HKEY_USERS\\Software\Classes\CLSID\{644FD769-8B9D-4AC4-A79E-AAAF5CD751 > > C1}\InprocServer32 > > > > > > > No > > > HKEY_USERS\\Software\Classes\TypeLib\{9259F105-BE55-4BF6-B7CE-D0AA878C > > 1BA6}\1.0\0\win32 > > > > > > > Yes > > > > > > > > HKEY_USERS\_Classes\AppID\oophm.DLL > > > > > > > Yes > > > HKEY_USERS\_Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5CB}\Inpro > > cServer32 > > > > > > > No > > > HKEY_USERS\_Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\Inpro > > cServer32 > > > > > > > No > > > HKEY_USERS\_Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\Toolb > > oxBitmap32 > > > > > > > Yes > > > HKEY_USERS\_Classes\CLSID\{644FD769-8B9D-4AC4-A79E-AAAF5CD751C1}\Inpro > > cServer32 > > > > > > > No > > > HKEY_USERS\_Classes\TypeLib\{9259F105-BE55-4BF6-B7CE-D0AA878C1BA6}\1.0 > > \0\win32 > > > > > > > Yes > > > > > > > > On Mon, Dec 7, 2009 at 9:13 PM, Sekhar > > wrote: > > > > > > > >> Guys, I'm not able to get the devpluginwork inIE8. I uninstalled > > it > > > > > > >> in Control Panel as suggested and re-installed it inIE8. It > > installs > > > > > > >> fine and I can see it in Control Panel, but the next time I try > > with > > > > > > >>IE8, it asks for thepluginagain. I've tried it several times now > > > > > > >> with no success. Could someone help? > > > > > > > >> -- > > > > > > > >> You received this message because you are subscribed to the > > Google Groups > > > > > > >> "Google Web Toolkit" group. > > > > > > >> To post to this group, send email to > > google-web-tool...@googlegroups.com. > > > > > > >> To unsubscribe from this group, send email to > > > > > > >> google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > > > > > >> . > > > > > > >> For more options, visit this group at > > > > > > >>http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the > > Google Groups > > > > > > > "Google Web Toolkit" group. > > > > > > > To post to this group, send email to > > google-web-tool...@googlegroups.com. > > > > > > > To unsubscribe from this group, send email to > > > > > > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > > > > > > . > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > > -- > > > > > > AllureFX LLChttp://www.allurefx.com > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send e
Re: any way to return image through rpc?
Outside of the box! I love it! On Oct 22, 3:22 am, "alex.d" wrote: > There was another really insane way where you actually decode your > image (bytes you've sended back) and produce a lot of 1px sized divs > with accordant colors which makes the image :)) But like i said - > it's kind of crazy. > > On 22 Okt., 07:55, "Robert J. Carr" wrote: > > > > > Thanks Ian ... I had a feeling it was going to be complicated, I just > > wanted to make sure I wasn't missing something. > > > Looks like I'm relegated to building complex queries or making two > > requests. Thanks again for the time! > > > On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen wrote: > > > > You can send bytes back to the client as an RPC response (it's just an > > > HTTP request, after all) but the problem is what to do with the bytes > > > once you have them. If you're willing to restrict yourself to > > > browsers that support data:// URLs, you can send the image back as a > > > data:// URL and just drop the result into an img tag. That approach > > > excludes many (all?) versions of IE. As far as I know, the only IE > > > that _might_ support data:// URLs is IE8. To be fully-compatible, you > > > need to forge ahead with your existing approach or, as you say, > > > generate a URL via RPC and make the generated URL resolve to the > > > desired image. > > > > If you want to fool around with the RPC infrastructure, you could > > > possibly use a GWT-RPC request payload as the query parameter in a > > > standard request, if you think such a representation would be more > > > compact/useful than the representation you're currently using. On the > > > server side, you could then use the RPC class (is that still in use?) > > > to deserialize the parameters and drive the image request. Might be > > > more trouble than it's worth, though. > > > > 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: Join .Net Community
I'm a java person so I'm happy with what we have at the moment but is there any one working on porting gwt to .net? On Oct 20, 5:28 am, Shawon_ wrote: > Join .Net Community > > This group represents the Microsoft .Net community. All .net > programmers all around the world are welcome here. In this group > you'll find the latest releases of .Net related products, frameworks, > Upgradation, technologies, IDEs etc. You also can share your > experiences and problems you are facing. You can discuses about > C#.Net, VB.net, ASP.Net and .Net frameworks, .net in other operating > system etc. topics. > > http://www.dotnetcommunity.tk --~--~-~--~~~---~--~~ 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: Creating new methods for Async class
Not to complicate matters but using ArrayList instead od List supposed to be better in gwt? I could have sworn that ray ryan alluded to this in his presentation. I still don't do it because I hate seeing that in my code but still, ymmv On Oct 20, 1:03 pm, Sudeep S wrote: > try doing > > List clients = new ArrayList(); > > instead of > > ArrayList clients = new ArrayList(); > > > > On Tue, Oct 20, 2009 at 11:31 PM, Sudeep S wrote: > > I am doing something like > > > * > > > public > > **interface* UtilService *extends* RemoteService { > > > Map> fetchdata (Customer objCustomer); > > } > > * > > > public > > **interface* UtilServiceAsync {* > > > void > > *fetchData(Customer objCustomer ,AsyncCallback > Card[]>>> callback); > > > } > > and this works without any hassles. > > > I have even tried ArrayList ..works without a problem.. > > > but make sure all the attributes of list have implemented Serializable or > > isSerilizable interface. > > Thanks > > Sudeep > > On Tue, Oct 20, 2009 at 9:55 AM, Ralf B wrote: > > >> Your return value is an ArrayList, not a String - so much about > >> compatibility of types. However I am not sure if you can actually > >> return an ArrayList (due to the requirement to have implemented the > >> Serializable interface). Working with String[] directly will certainly > >> work but would require you to turn your return value into a static > >> String array. > > >> Ralf > > >> On Mon, Oct 19, 2009 at 4:54 PM, michael.d.clay...@hotmail.com > >> wrote: > > >> > I have an implementation method that I want to return an > >> > arraylist from the DB. > > >> > Here is the method: > > >> > public ArrayList greetClients() { > >> > String result = ""; > >> > Connection conn = null; > >> > Statement st = null; > > >> > String sql = "select distinct dealernumber from > >> financialaccount"; > >> > ArrayList clients = new ArrayList(); > >> > try{ > >> > Class.forName("com.mysql.jdbc.Driver"); > >> > conn = > >> DriverManager.getConnection("jdbc:mysql://localhost:3306/ > >> > DB", "user", "password"); > >> > st = conn.createStatement(); > >> > ResultSet rs = st.executeQuery(sql); > >> > while(rs.next()){ > >> > if(rs.getString(0)!=null){ > >> > clients.add(rs.getString(0)); > >> > } > > >> > } > > >> > //System.out.println(result); > >> > st.close(); > >> > conn.close(); > >> > }catch(Exception e){ > >> > e.printStackTrace(); > >> > } > > >> > return clients; > >> > } > > >> > When I try to create the methods in the other classes; in the Service > >> > and ServiceAsync class I get this error: > > >> > Return type is not compatible with the AsyncCallback parameter from > >> > GreetingServiceAsync.getClients > >> > Here is are my classes: > > >> > GreetingService.java > >> > package com.appcrown.dashboard.client; > > >> > import java.util.ArrayList; > >> > import java.util.List; > > >> > import com.google.gwt.user.client.rpc.RemoteService; > >> > import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; > > >> > /** > >> > * The client side stub for the RPC service. > >> > */ > >> > @RemoteServiceRelativePath("greet") > >> > public interface GreetingService extends RemoteService { > >> > String greetServer(String name); > >> > ArrayList getClients(); //gives error > >> > } > > >> > GreetingServiceAsync.java > >> > package com.appcrown.dashboard.client; > > >> > import java.util.ArrayList; > > >> > import com.google.gwt.user.client.rpc.AsyncCallback; > > >> > /** > >> > * The async counterpart of GreetingService. > >> > */ > >> > public interface GreetingServiceAsync { > >> > void greetServer(String input, AsyncCallback callback); > >> > void getClients(AsyncCallback callback); //gives error > >> > } --~--~-~--~~~---~--~~ 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: Creating a sample application of 3 different pages
Looking at the variety answers here i have to wonder if i'm not missing the point of this question because as far as can tell none of them go straight to the heart of the issue. In GWT i think that the default/defacto/best practices way of showing multiple pages it to operate purely in GWT. You have one html file with one entry point. The html file has one div in it with a known id. You use that element id in GWT in a RootPanel.get("..."); call and then you add your GWT widgets to the returned widget. When you want to switch from the login display to a list of elements you do the exact same thing, do a RootPanel.get("..."); and add your new widgets to it. Once you get a simple thing working like this you want to learn about how GWT does history. I found History to be a pretty odd thing to get a handle on since it comes for free in traditional multi page web development but once you get a feel for it, it makes perfect sense. Good luck. On Oct 14, 7:23 am, neerou wrote: > Hello, > I am novice to GWT. Since now I have been trying the exercises on the > Code.google site. I would now want to create different pages in the > application. > 1) a login page > 2) a list of items > 3) a list of users > > Do i need to create 3 different modules for the 3 different pages? --~--~-~--~~~---~--~~ 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: Triggering an event upon completion of onModuleLoad
Have you looked at how history is handled in gwt? It seems like a more appropriate solution to this kind of issue. On Oct 12, 3:33 pm, Suri wrote: > Hi all, > I have a question for GWT 1.6. I'm currently building a bookmarkable > page. To take an example of a search module, > 1) We can go to a search index page and search by providing some > criteria. Then we can bookmark the results as a link. > 2) Upon loading the bookmarked link, the results would now be > automatically rendered, bypassing the index page. > > In my current design with GWT both the index page and search results > page are the same page. Currently when a user heads to the index page, > the page loads completely and user would enter search criteria after > which search results are rendered. However, when the bookmarked link > is used, I'm detecting the query params and automatically calling the > search function. The problem here is that it seems like the results > return faster than the page loads, causing the page to be distorted. > > Is there a way to maybe instead, trigger an event upon completion of > the onModuleLoad() (i.e completing the rendering of the original > page) or some sort of detection mechanism which then moves to check > the query params and render the results so that the initial page has > been laid out before the results are called. > > 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: Connection with DB
Yeah, had I not known what app engine was g would had probably left it checked. On Oct 12, 3:06 am, Jaroslav Záruba wrote: > It seems to me that having the "App Engine" checked by default was not > a good choice. Lot's of folks stuck on this one... > > On Oct 12, 3:30 am, Chad wrote: > > > > > You can't use your own database with Google App Engine (GAE). You can > > either use GAE for all of your storage or turn GAE off in your project > > and use your own database for all of your storage. > > > HTH, > > Chad > > > On Oct 10, 10:19 pm, luciocamilo wrote: > > > > I am having one problem, when I try to make my connection with the DB, > > > I alredy try to use Berkeley and get the same problem. > > > In debug mode, I can see that the problem occurs at method > > > DriverManager.getConnection, but the same method with the same > > > parameters works in another project that I dont use GWT. > > > I already put the mysqlconnector.jar at the buildpath, and manually at > > > the web-inf/lib. > > > this is my problem: > > > 11/10/2009 03:08:48 > > > com.google.appengine.tools.development.ApiProxyLocalImpl log > > > SEVERE: [125523052830] javax.servlet.ServletContext log: Exception > > > while dispatching incoming RPC call > > > com.google.gwt.user.server.rpc.UnexpectedException: Service method > > > 'public abstract com.teste.cge.client.beans.PlanoBean > > > com.teste.cge.client.GreetingService.greetServerPlano()' threw an > > > unexpected exception: java.lang.ExceptionInInitializerError > > > at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure > > > (RPC.java:360) > > > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > > > (RPC.java:546) > > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > > > (RemoteServiceServlet.java:166) > > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > > > (RemoteServiceServlet.java:86) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > > > at > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > > > 487) > > > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > > > (ServletHandler.java:1093) > > > at > > > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > > > (TransactionCleanupFilter.java:43) > > > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > > > (ServletHandler.java:1084) > > > at > > > com.google.appengine.tools.development.StaticFileFilter.doFilter > > > (StaticFileFilter.java:121) > > > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > > > (ServletHandler.java:1084) > > > at org.mortbay.jetty.servlet.ServletHandler.handle > > > (ServletHandler.java:360) > > > at org.mortbay.jetty.security.SecurityHandler.handle > > > (SecurityHandler.java:216) > > > at org.mortbay.jetty.servlet.SessionHandler.handle > > > (SessionHandler.java:181) > > > at org.mortbay.jetty.handler.ContextHandler.handle > > > (ContextHandler.java:712) > > > at > > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > > > 405) > > > at > > > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle > > > (DevAppEngineWebAppContext.java:54) > > > at org.mortbay.jetty.handler.HandlerWrapper.handle > > > (HandlerWrapper.java:139) > > > at com.google.appengine.tools.development.JettyContainerService > > > $ApiProxyHandler.handle(JettyContainerService.java:313) > > > at org.mortbay.jetty.handler.HandlerWrapper.handle > > > (HandlerWrapper.java:139) > > > at org.mortbay.jetty.Server.handle(Server.java:313) > > > at > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > > > 506) > > > at org.mortbay.jetty.HttpConnection$RequestHandler.content > > > (HttpConnection.java:844) > > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) > > > at > > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) > > > at > > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > > > at org.mortbay.io.nio.SelectChannelEndPoint.run > > > (SelectChannelEndPoint.java:396) > > > at org.mortbay.thread.BoundedThreadPool$PoolThread.run > > > (BoundedThreadPool.java:442) > > > Caused by: java.lang.ExceptionInInitializerError > > > at com.mysql.jdbc.NonRegisteringDriver.connect > > > (NonRegisteringDriver.java:282) > > > at java.sql.DriverManager.getConnection(Unknown Source) > > > at java.sql.DriverManager.getConnection(Unknown Source) > > > at com.teste.cge.server.Conexao.getConnection(Conexao.java:13) > > > at com.teste.cge.server.dao.PlanoDao.(PlanoDao.java:18) > > > at com.teste.cge.server.GreetingServiceImpl.greetServerPla
User selectable themes
I need to implement user selectable themes for my gwt app. Any one know of a "best practices" way to do this? --~--~-~--~~~---~--~~ 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, MVP a beginner's question
I've been mockng the views for testing and injecting for integrating. Easymock and mockito do most of what I need. I've also been creating concrete Has... Mock classes as needed. I'm also still feelling things out. On Oct 4, 5:49 pm, Chris wrote: > Don't you just inject a Mock Panel in that case? (Sorry rather new) > > On Oct 4, 11:08 pm, Dave Pinn wrote: > > > > > What is your alternative, Miroslav? --~--~-~--~~~---~--~~ 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: CommandPattern vs Server side Event Bus?
The enherent problem with having a server side bus that talks to a client bus is that the server can't initiate the event. . (due to the non-push nature of the web) but the second issue is that a client bus services one client where as the server bus would need to service many. Questions spud arise like can a server event fire to a specific client or only to an individual client? In the application that I'm developing I have a polling thread in the gwt client and an event broadcast system on he server to allow the server to notify clients of notworthy activities. I don't use a bus on the server to handle requests though I just use RPC and command pattern. On Sep 29, 4:09 pm, PJ Gray wrote: > Yeah, I have thought the same thing as I was implementing > MVP/CommandPattern. I have a few eventbus events that I handle with > EventHandlers, but then I have the whole gwt rpc mechanism that uses my own > generic action classes. > > Combining the two might be a good move, however it might get tricky crossing > the great wall of javascript. I am no gwt expert, so I don't know how > tight a coupling you can get from your server side stuff and GwtEvent > (assuming you still want to use eventhandlers). > > I am sure its doable though. > > -pj > > On Tue, Sep 29, 2009 at 3:37 PM, Chris wrote: > > > > > > > Just had a quick question... I can see the benefits of the > > CommandPattern to some extent, what I'm not sure about is why, if > > we're using an Event Bus on the client side, one might not try and use > > an event bus on the server side too with an "event bridge" (you might > > say) in the middle. > > > - Each event would define whether it propagates to the server. > > - The clients would be listening for events and all they would see is > > their relevant events being fired. They wouldn't know whether the > > event originated from the server and the client. > > - The server components would be listening on to the server-side event > > bus. In this case, the server would just fire off its response in the > > form of an event that all other server components could see and if > > need be this would propagate to the clients. > > > Just wondering what people think of that pattern? I'm rather new to > > GWT and want to make my app as simple as possible, and it seems to me > > it would be rather nice if my > > > Client Module says: "I need a list of names", > > Server Module sees message "someone needs a list of names". > > Server Module says "Someone needed a list of names and here it is"... > > > I guess in that way, the response can be shared by many clients. The > > bridge in the middle could do some caching/filtering in the middle, > > since clearly not all events would need to be propagated to the > > server... > > > Just some thoughts... --~--~-~--~~~---~--~~ 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 + mysql (noob questions)
>It sounds like hibernate, when integrated into my app, allows me to avoid >having to worry about the lower level SELECTs & parsing results etcetc? That is true for the most part but as Charlie said it's not a pure win because getting it to do what you want, how you want it to do it can be very tricky. I've been using it for oh, maybe a year and a half now and i still feel like i'm just getting my arms wrapped around it. I haven't really dug into IBATIS but it sounds like it may be an easier to use ORM. For me, the hibernate full text search is very valuable. It can be very fast but you really need to understand how it works to get it to do things right. The way the handle lazy instantiation often feels obtuse to me and i'm continually getting a better handle on it. There are a few books out on it if you're really interested as well as a lot of documentation online. If you do use it just never trust that it will query for data the way you expect it to. You have to stay on top of it or else it is very easy to cause situations where it will query repeatedly for data that you should be able to get with one round trip. On and BTW, i'm also a huge fan of the MVP pattern. I'm very glad that i saw Ray Ryan's presentation before i got to far into my project. He saved me from having to write a *lot* of boilerplate code. Are you also using Gin? I was reluctant at first because i was getting framework fatigue but it is pretty handy for being able to unittest your presenters. On Sep 23, 11:45 am, PJ Gray wrote: > Thanks for the information. > > I feel fairly comfortable with GWT and GWT-RPC now. I implemented the > command pattern & MVP pattern as per Ray Ryans talk, for my communication > over RPC. That gave me a pretty good crash course! I am sure there are > details in there I'll be learning along the way though! > > As for Hibernate, I am just trying to decide if its something to invest time > in now. Cause I really hate using technology just for > whiz-bang/bandwagon reasons. It sounds like hibernate, when integrated > into my app, allows me to avoid having to worry about the lower level > SELECTs & parsing results etcetc? All that code is handled by hibernate, > so I can just make calls to classes for accessing/storing data and > everything is persisted behind the scenes for me by hibernate? > > Is that correct? > > -pj > > On Wed, Sep 23, 2009 at 12:30 PM, Trevis wrote: > > > I dont have any tutorials at hand but your understanding of where the > > DB code lies is correct. It's totally on the server side and has > > nothing to do with GWT. Your GWT app would get access to the data via > > RPC. The RPC methods would in turn get data from the DB. > > > Hibernate is an ORM (object relational mapper) which allows you to tie > > Classes to DB tables in a way that is largely transparent to your > > application. One problem though in using hibernate with GWT is that > > the classes created via hibernate cant be serialized to the client via > > RPC (not that i know of anyway) so a lot of people use different > > libraries to make clones of the faux-POJO's so that they can be > > serialized. (I do this in the project that i'm working on but i did > > it by hand) (um, POJO means plain old java object). > > > If you're interested in using hibernate you should probably use it > > from the start because retrofitting the application after the fact > > would on undoubtedly be extremely painful. But with that said and with > > as much as i love hibernate if you're using all of these new > > technologies together for the first time you may become overwhelmed > > and hibernate is a fairly involved framework so you might be better > > off getting a good grip on GWT and GWT's RPC mechanism first. > > > but as always, ymmv > > > On Sep 23, 10:53 am, PJ Gray wrote: > > > I am writing a fairly large web app using GWT in Eclipse. My > > background > > > is as a c++ desktop developer, so while I have used java before, > > sometimes I > > > stumble on easy stuff. > > > > Anyway, I am currently attempting to implement a database to store data > > from > > > my webapp. I am far from an expert in SQL, but I have done some desktop > > > programming of SQL before, so I feel comfortable enough doing SELECTs and > > > whatnot. (Most recently I did some development using the iPhone Sqlite > > > stuff). > > > > Can someone point me to a good tutorial or something that gives an > > example > > > of storing simple user data in a database from a GWT app? I found a > > servlet > &
Re: Lost runtime exceptions when in hosted mode
Excellent. On Sep 23, 12:58 pm, Sripathi Krishnan wrote: > There is -- See the method GWT.setUncaughtExceptionHandler(). > Your ExceptionHandler will be called whenever you fail to catch an exception > on the client side. > > --Sri > > 2009/9/23 Trevis > > > > > Hm, i think that tieTYE's question is more along the lines of is there > > something like the doUnexpectedFailure(Throwable t) in the client > > (which i'd like to know as well) > > > Trevis > > > On Sep 22, 8:25 pm, tieTYT wrote: > > > When I'm in hosted mode, if my client code throws a runtime exception, > > > it seems to be swallowed and not reported. For example, if I put a > > > "throw new NullPointerException()" at the end of a method. I can use > > > the debugger to find the exact line that's throwing the exception but > > > when it occurs it just fails silently. There's no info in the Shell > > > or on the console and the app doesn't even necessarily act like there > > > was an error. > > > > I'm not very familiar with our code or GWT so I have to ask: is this > > > normal, expected GWT behavior or is our code failing to print a stack > > > trace? > > > > If this is GWT's fault, what's the work around? Someone on the irc > > > channel suggested I wrap all my client code around a try/catch but > > > that seems a little inconvenient and messy. --~--~-~--~~~---~--~~ 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: Lost runtime exceptions when in hosted mode
Hm, i think that tieTYE's question is more along the lines of is there something like the doUnexpectedFailure(Throwable t) in the client (which i'd like to know as well) Trevis On Sep 22, 8:25 pm, tieTYT wrote: > When I'm in hosted mode, if my client code throws a runtime exception, > it seems to be swallowed and not reported. For example, if I put a > "throw new NullPointerException()" at the end of a method. I can use > the debugger to find the exact line that's throwing the exception but > when it occurs it just fails silently. There's no info in the Shell > or on the console and the app doesn't even necessarily act like there > was an error. > > I'm not very familiar with our code or GWT so I have to ask: is this > normal, expected GWT behavior or is our code failing to print a stack > trace? > > If this is GWT's fault, what's the work around? Someone on the irc > channel suggested I wrap all my client code around a try/catch but > that seems a little inconvenient and messy. --~--~-~--~~~---~--~~ 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 can I have a function in my button call back, call a function in another class?????
Instead of defining the callback as an anonymous inner class you could make it a regular class and pass an instance of the class containing the method that updates your data into the constructor of the new callback instance that you create before passing it to the RPC. Then when the response comes back from the server you could simply call it. You could also call the method directly from the anonymous inner class but there are some limitations as to what an anonymous inner class can call from the outer class. Side question, what is that 5 sec timeout for? You're not trying to wait for the rpc to finish are you? That's bad voodoo. Async is not your enemy. Also, one other question what's with the 'onResponseReceived' why not just use onSuccess? Trevis On Sep 23, 11:23 am, tedpottel wrote: > Hi, > I have a function that updates the display on my UI. It creats del > buttons for each olomn. I set the row index to be stored in the call > back class for each button. When a person clicks on a button and is > in the callback class, how can they call my update function to show > the changes > The code > public cGetDatabase(String address, > VerticalPanel vname, VerticalPanel > vemail,VerticalPanel vdel, > VerticalPanel vedit) > { > // set up final veribols > this.url=address; > this.vemail=vemail; > this.vname=vname; > this.vdel=vdel; > this.vedit=vedit; > } > > // Main class calls this function > public boolean Send() > { > > // Object to talk to server send http request > RequestBuilder builder = new > RequestBuilder(RequestBuilder.GET, > URL.encode(this.url)); > builder.setTimeoutMillis(5000); > > // Call server using http > try { > // RequestCallback is a class > 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.) > } > > // when server returns string come here > public void HandleResponse(String data) > { > // return; > > String lines[]; > lines=data.split("\r"); > > String line[]; > > // Phrase the string > for(int i=0; i { > if ( lines[i].charAt(0)<'a' ) > > lines[i]=lines[i].substring(1); > > line=lines[i].split("\t"); > String name=line[0]; > String email=line[1]; > > // vname is a UI vertical container > > callback click = new callback(1); > > Button but= new Button("del",click); > > but.setPixelSize(40,25); > > vdel.add(but); > vname.add(new Label(name)); > vemail.add(new Label(email)); > > // add the buttons > > } > > } > > 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; >
Re: GWT + mysql (noob questions)
I dont have any tutorials at hand but your understanding of where the DB code lies is correct. It's totally on the server side and has nothing to do with GWT. Your GWT app would get access to the data via RPC. The RPC methods would in turn get data from the DB. Hibernate is an ORM (object relational mapper) which allows you to tie Classes to DB tables in a way that is largely transparent to your application. One problem though in using hibernate with GWT is that the classes created via hibernate cant be serialized to the client via RPC (not that i know of anyway) so a lot of people use different libraries to make clones of the faux-POJO's so that they can be serialized. (I do this in the project that i'm working on but i did it by hand) (um, POJO means plain old java object). If you're interested in using hibernate you should probably use it from the start because retrofitting the application after the fact would on undoubtedly be extremely painful. But with that said and with as much as i love hibernate if you're using all of these new technologies together for the first time you may become overwhelmed and hibernate is a fairly involved framework so you might be better off getting a good grip on GWT and GWT's RPC mechanism first. but as always, ymmv On Sep 23, 10:53 am, PJ Gray wrote: > I am writing a fairly large web app using GWT in Eclipse. My background > is as a c++ desktop developer, so while I have used java before, sometimes I > stumble on easy stuff. > > Anyway, I am currently attempting to implement a database to store data from > my webapp. I am far from an expert in SQL, but I have done some desktop > programming of SQL before, so I feel comfortable enough doing SELECTs and > whatnot. (Most recently I did some development using the iPhone Sqlite > stuff). > > Can someone point me to a good tutorial or something that gives an example > of storing simple user data in a database from a GWT app? I found a servlet > based java/mysql example, so I am concentrating on classes like datasource > right now. I can only assume the SQL stuff needs to be contained on the > server side of a GWT app anyway, so I was going to start there. But I had > questions like: > > - what is the process for connecting to a database in hosted mode? Is > just left to me to get something like MySql installed locally, and then > follow instructions like listed here > (http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html) in > order to connect? > > - when I do deploy to a live webserver, is it just a matter of switching the > database config (username/password, database name etc)? (as long as I have > everything setup in mysql on my live webserver obviously) > > - how does 'Hibernate' fit into all this? I read about it, and see it > mentioned everywhere. It looks like a library for persisting my java > objects in the database, rather than pulling information out of my objects > and storing the data only? Is that accurate? If so, I could write my > persistance layer in such a way that I could start by storing the data raw > (Strings, longs whatever), then later as my app becomes more complex, I > could implement Hibernate to start storing my model objects directly? > > Thanks in advance! > > -pj --~--~-~--~~~---~--~~ 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: Best way to pass value to
I'm not 100% sure i understand the question but it sounds like the answer would be History. That's how you tell a GWT app to show a specific "page". On Sep 23, 1:38 am, "dannhila...@gmail.com" wrote: > My GWT app is embedded inside a tab view of a JSP page and I wanted to > render the GWT module based on the content/context of the parent > HTML. > > This requires passing initial value to the GWT app entry point and > from there the GWT app can fetch values to server using RPC. I was > able to do this using com.google.gwt.i18n.client.Dictionary > approach. > > My question is, is this the best way to do it or is there better > alternative/s? > > Thanks, > Dann --~--~-~--~~~---~--~~ 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: Link static html elements with GWT
Wow. Mixing custom html and GWT looks painful. I would never do this. I'll be curious to see if someone clears up how to make this work. On Sep 23, 3:41 am, newUser wrote: > Hi All, > > I am a newbie here so please excuse me if I write a silly question. > > I have a html code like: > > > > HOME > > > > > CONTROL ROOM > > > > Now, what i want to do is, whenever the user clicks on the "control > Room" link (as above), only some part of the web page is updated. > However, i am unable to catch the click event on the "Control Room" > link. What I have tried is : > > DOM.sinkEvents(DOM.getElementById("navcontrol"), Event.ONCLICK); > DOM.setEventListener(DOM.getElementById("navcontrol"), new > EventListener() { > public void onBrowserEvent(Event event) { > mainPanel.setSize("10px", "10px"); > } > }); > > Can someone help me identify the mistake? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Why Not Bypass The Middle Man
> Would it be that hard to get the general public to accept a new internet > that involves application browsers? I think that you dramatically underestimate people’s reluctance to install something new. It took a long time for the web and its protocols to reach the levels of saturation that they currently have. Trying to create a brand new one would just about be an exercise in futility. But about GWT specifically... think about it like this. GWT is the evolution of web development. It does what computer languages and development technologies have always done. They took a look at what was needed Javascript, CSS, html, Ajax and they encapsulated it allowing the developer to compose solutions to their specific needs without (or with little) regard for the underlying complexities. Compare that what a high level language like C or Fortran are. They allow you to compose solutions to your problems in relatively easy to manage functions. You don’t care what it takes in assembly language to get user input from a keyboard you just create an input stream. This level of encapsulation is what GWT brings to the table for the web and in my opinion it is simply brilliant in its execution. I’ve been doing web and app development professionally for over 12 years now and I can’t remember the last time I was this excited about a new technology. I find that being able to compose web UI’s with a rich programming language to be liberating. Now that I’ve gone completely off track, to address your concern more directly: what would a new protocol mean for me as a developer? If all it provides is a way for me to execute Java (or some other high level language) on the client then for one thing it’s not really giving me anything fundamentally new. Especially if the UI Widget set was still based on Swing or AWT or the like. What it really does is limits where my app can be used because no one (or very few people) will have the ability to connect to it. The inherent ability to push from the server is pretty trivial in comparison to not having an app that can be used by the majority of people without requiring them to install new software and potentially modify firewall or other hardware settings. I mean, I’d rather just fake push by polling the server and have it usable to everyone. Ajax makes that trivial. And GWT makes Ajax trivial. On Sep 23, 8:32 am, lusus wrote: > > Well, have a look at Java Web Start, .NET ClickOnce or Adobe AIR > > "install badge". > > Java Web Start is in the right direction, but is still limited pull > communication, unless you use sockets on other ports, which may or may > not be available. I am starting to realize that my want for push is > driving much of my thoughts, but I think it would make a significant > difference. > > > > > Something like Opera Unite? > > I am not familiar with Opera Unite. I'll check it out. > > > > > That'd be a Java applet, or a Java desktop app served with Java Web > > Start. > > refer back to my earlier point. push, push, push. > > > > > Yes! > > Though yes is technically an answer, I was hoping for a bit more > discussion. : ) > > > > > Who would you do it? using a "plug-in" for each language? how would it > > be different from Flash, Silverlight or Java applets? > > Basically, yes. The browser could have different VMs built into it. > AND run on it's own port with it's own protocols in order to > streamline the process. Discussion. > > > Have a look at "server-sent events" in HTML5 and the WebSockets > > protocol and API. > > I will. Thanks. > > > > > Why do you think we're all dealing with x-browser compat? because > > people don't upgrade their browsers; so why would it be different? > > But this new idea would halt the need for "upgrades". As long as the > browser understood the language, the display of the application would > be handled by the programmer. > > > > > No, why would it be? > > It would of course depend on the implementation of the "browser". But > I see Java (for instance) as being more encapsulated than things like > javascript, PHP, css, and html. You could control access to the client > computer's resources, etc. I will admit (and did) that this is my > least effective point. I again was looking for discussion. > > > Hey, "the WWW kiddy pool", you're a few years late! > > ??? I'm not sure what you are suggesting here. --~--~-~--~~~---~--~~ 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: SuggestBox manual override?
Man, I must have been tired last night. I could have sworn that i'd tried that. Oh well, it's working now. Thanks a ton. Trevis On Sep 20, 5:49 am, Thomas Broyer wrote: > On 20 sep, 09:18, Trevis wrote: > > > I have a suggestbox with a custom oracle. In some instances i would > > like to be able to automatically cause the suggestions to pop up just > > by the user setting focus to the suggestbox for instance. > > > I figure that i should be able to use a FocusHandler to do that part > > but how do convince the thing to request data? > > > I tried getting the oracle and calling the requestSuggestions method > > but what do i pass to it? The callback function is the problem. I > > need a call back that will actually populate the suggestion list. > > > Am I going about this the wrong way? > > > Any help would be greatly appreciated. > > New to GWT 1.6 were SuggestBox#showSuggestionList() and > SuggestOracle#requestDefaultSuggestions() which will help you do > exactly what you want. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
SuggestBox manual override?
I have a suggestbox with a custom oracle. In some instances i would like to be able to automatically cause the suggestions to pop up just by the user setting focus to the suggestbox for instance. I figure that i should be able to use a FocusHandler to do that part but how do convince the thing to request data? I tried getting the oracle and calling the requestSuggestions method but what do i pass to it? The callback function is the problem. I need a call back that will actually populate the suggestion list. Am I going about this the wrong way? Any help would be greatly 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: Creating a wizard - Series of steps with GWT
GIN is a DI framework that works with GWT http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f6f13ebc2c59a64e# The fact that the client code is compiled into JS before execution makes GWT UI's a unique beast. GWT has a lot of Java's functionality but you cant include libraries that haven't been compiled to JS. Trevis On Sep 16, 12:53 pm, Aju Mathai wrote: > Hi, > > I want to know if I can use spring in my GWT code to use the > dependency injection framework? I am not talking about GWT gui > interaction with backend spring app.The reason I am asking is the GWT > code gets compiled to JavaScript and this is what gets executed in > browser. If I am using spring code in that, then would it work or for > that matter any other library like log4j, etc.?By doing this i could > also control the access to components based on the user permissions. > > Or the GUI code have to be pure GWT API only? > > For example, > > public class MyTable { > private Button myButton; > �...@autowired > public MyTable(Button aMyButton) { > myButton = aMyButton; > }} > > Can you gimme some pointers whether this can be done . Some sample > code egs will 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: URL and GET method
Like Sri is saying here, i think that you're probably missing the boat. Find an article to see an example of History in use. And in the words of Ray Ryan, get history right early! It feels obtuse at first but it eventually comes together. Trevis On Sep 11, 12:25 am, Sri wrote: > Anything after the # can be picked up by calling History.getToken() > method. > > On Sep 10, 12:30 pm, Pion wrote: > > > I just sawhttp://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax > > which mentions about the "#" sign. > > > How do I retrieve the value of FOO which includes on this > > URL:http://localhost:8080/get?FOO=BAR#123"; ? > > The result/value of FOO should be "BAR#123". > > > On Sep 10, 8:56 am, Pion wrote: > > > > Thanks. Window.Location.getParameter("FOO"); works. > > > > What does the "#" mean? > > > I use ""http://localhost:8080/get?FOO=BAR#"; but > > > Window.Location.getParameter("FOO") does not pick up the "#" sign. > > > How do I retrieve the "#" as well? > > > > Again, thanks. > > > > On Sep 10, 8:17 am, Ian Bambury wrote: > > > > > But you probably don't want to be doing that because if anything > > > > between the > > > > ? and the first # changes, your whole app will reload from scratch and > > > > you'll lose all state.. > > > > > 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: GWT + Eclipse + Subversion?
I had a similar question. So far i've just side stepped the issue by ignoring the folders that i dont think i need on sourcecontrol when i synch. Sounds like team > ignore is the answer. So, um. Thanks. On Sep 11, 10:10 am, Jeff Chimene wrote: > On Thu, Sep 10, 2009 at 6:32 PM, PJ Gray wrote: > > > I am new to GWT and I have been using the plugin in Eclipse. I have written > > my first project, and feel confident in using the toolkit now. And I feel > > fairly comfortable using subversion (I use the awesome 'Versions' client). > > I wouldn't say I am an expert, as it always seems to 'just work' so I never > > really have to troubleshoot much. > > I don't know about "Versions". I use Subclipse, so my directions below > will have to be adjusted to fit Versions. > > > However, I am struggling trying to find documentation on how, exactly, to > > get my GWT/Eclipse project into subversion. I did a simple 'add' from the > > top level (src/war) directories. However, that imported thousands of files, > > way more than I thought should be checked in. As I looked closer, I figure > > I must need to separate out the src from the compiled javascript...that > > seems obvious. However, it is unclear what exactly in the war directory > > needs to be under source control and what is compiled or changes > > regularly. > > > I did some investigation, googling and whatnot, but I really only found > > websites complaining that with 1.6 the war directory got "polluted" and a > > few people had workarounds, but usually they either didn't work completely, > > or were using components that I wasn't. > > YMMV > > > So whats the simple answer here? I am using 1.7, is there a doc or webpage > > that explains what I should be keeping in source control? Why is there no > > "output" folder, or is that what the 'war' folder is supposed to be? > > Usually just the war/project.html and war/project.css go into version > control. As you get better with GWT, this will probably change. If > you're using server side Java, you might also have class files in the > war structure that will also go into version control. > > You've probably already figured out the team > add functionality. I > usually use team > ignore on the war/project directory to exclude the > compiled code. Everything else goes into version control. > > Everything in src/ goes into version control. > > Depending on your requirements, you might also want to include such > Eclipse files as: .project .settings/ &c > > > Any help would be appreciated, I realize this might be basic 101 stuff to > > alot of you, so I apologize if it has been answered a million times...just > > include a link with your snarky "RTFM" comment and I'll be happy! > > > -pj gray > >www.saygoodnight.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: Seriously getting beyond my capabilities with GWT....
imho, the purposes of forums like this isnt to find someone who will help you off line but to share questions that others may have so that they can be answered in on central repository. Further the questions and responses could possibly guide future development and documentation. To that end i think that questions in this specific forum should be GWT specific not development in general. That my opinion anyway. Trevis On Sep 11, 10:14 am, John V Denley wrote: > Ok Mars, I wasnt really expecting a technical response on this > particular problem yet, this post was designed to see if anyone was > willing to allow me to send questions to them directly rather than > having to wait for responses on here. > > I dont take offence with your reply, although I dont think your > opinions are correct! > > 1. I'd certainly love for someone to write the app for me, but im > equally happy to realise that id never get anyone to do that for > nothing! We actually did employ an indian development company to do > this for us, but they didnt do anywhere near an acceptable job for us > and that burnt most of our startup costs. I have now had to take on > the job myself, and so far I feel Ive been doing a pretty good job, we > are hoping to start selling V3 of the product next week! > > 2. I do try to read the documentation, I usually dont post onto this > forum until Ive completely run out of ideas having read everything I > can find out about the specific issue im trying to solve.Usually the > problem is that most of the documentation and suggestions from people > like youself assume a certain level of understanding of all the > technologies involved, and often there are terms used, which have no > meaning to me, and I then have to go and investigate those terms > before i can understand the issue im reading about, often to only find > that half the stuff im looking into is not relevant to what im > actually trying to do. > > On this particular issue I am quite happily transferring data to and > from the datastore (Google App Engine - which i did mention above). Im > not actually 100% certain what technology terms to use to describe how > im doing that bit now, I think its RPC, but i cant be sure. I took the > code for the stockwatcher example and modified that to do what im > doing, and some of the code from the "sticky" application (I think). > > I have managed to work around the above problem through my own > "ingenuity" by breaking the date down for each appointment on the > server side into month/day/hour/minute and then passing this as a > string[][] array back to the client, where i reconstitute the date > back into a date object and then apply the localisation manually. I am > certain that this is a horrible way to achieve the result, but it > works OK, so for now Im going to live with it. > > I now have a new problem (sending an HTTP request to a 3rd party > website from the server rather than the client to avoid the "single- > origin security restriction"). I have been trying to figure this out > since about 11pm last night but have not yet looked at all online > documentation and forum posts yet. I will probably post that > separately later this evening as its unrelated to this thread and im > not feeling hopeful about finding an easy answer to that! > > Thanks for your input anyway, all responses are always appreciated :D > > J > > On Sep 11, 9:56 am, mars1412 wrote: > > > to me it's no surprise, that you don't get answers to a post like this > > > here's my very personal opinion and I assure you, it's meant to help > > and not to offend you > > > my opinion after reading your post is > > > 1st impression: your not looking for answers to your questions, but > > for someone who will write the app. for you > > > 2nd impression: you didn't really read the docs and try simple > > examples of whatever technology you use. > > because storing and retrieving data from whatever datastore you use > > is a very basic thing to do and I can't imagine that the specific > > documentation of your datastore-product does not provide information > > or basic examples about this. > > > so what I suggest: > > * read the docs > > * try some examples > > * provide detailed information > > e.g. what technology are you using? > > GWT, GAE, HIbernate, JPA, JDO, Spring, ...? > > how do you transfer data from the server to the client? > > RPC, JSON, ...? > > * provide specific questions about small problems and maybe > > even include source-code or an errormessage > > > On Sep 10, 3:03 pm,JohnVDenley wrote: > > > > Is
Re: Where is the server log ?
This isnt a direct answer to your question but i think that this is the root of what is going wrong. Class instances that you send to the client have to play by the rules of GWT. The class cant have imports that are not available on the javascript runtime code. import javax.persistence.Entity; import javax.persistence.Table; those classes are almost certainly not in the limited environment. Trevis On Aug 17, 8:21 am, tolga ozdemir wrote: > this thread seems the same.. But I cannot reach the solution yet.. I > receive this error.. I cannot retrieve a List of my object via RPC > service > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > ::: HERE IS MY OBJECT ::: > > package net.tolgaozdemir.gwt.client.domain; > > import javax.persistence.Entity; > import javax.persistence.Table; > > import com.google.gwt.user.client.rpc.IsSerializable; > import net.sf.gilead.pojo.java5.LightEntity; > > public class Entry extends LightEntity implements IsSerializable{ > > /** > * > */ > private static final long serialVersionUID = -4123250238413358095L; > > private Integer ID; > private String entry; > > // Properties > /** > * @return the id > */ > public final Integer getId() { > return ID; > } > /** > * @param id the id to set > */ > public final void setId(Integer id) { > this.ID = id; > } > > public String getEntry(){ > return entry; > } > > public void setEntry(String entry){ > this.entry = entry; > } > > public Entry(){ > > } > > } --~--~-~--~~~---~--~~ 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 Stackpanel, load panel content dynamically via RPC?
So with TabPanel there is an addBeforeSelectionHandler() method which allows me to show the tab header and delay loading the content until the tab is selected, how can i do this same thing with StackPanel? I don't see where i could hook that in. What i'm considering is creating a set of nested stack panels that generate themselves dynamically. When you click a panel header, it makes an RPC call to see if there is a need to show a sub-stackpanel, or content. I guess i could do something similar with a tree (using the addOpenHandler() method) but stack panel i think would work better for how i'd like to interact with it. I guess worst case scenario could perhaps create a custom component which detects if it is being shown, and then have it populate itself via an rpc call... But it sure would be nice to have an event fire when the panels in the stack change. I haven't found much info on onBrowserEvent, i wonder if that would help? --~--~-~--~~~---~--~~ 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 SuggestBox or MUltipleWordBox style changes!
I havent gotten around to styling my work in progress yet but i guess i'll also need the answer to this question. If i were trying to do this, my first thought would be to just run the thing in firebug and look at the html being rendered to see what you need to attach css to. Have you tried that? Trevis On Aug 13, 2:16 pm, ART wrote: > Hi All, > How can I change the font size or font-family inside a GWT > SuggestBox , I tried > MultiWordSuggestOracle multi = null; > SuggestBox txtS = null; > > multi = new MultiWordSuggestOracle(); > txtS = new SuggestBox(multi); > txtS.setAnimationEnabled(true); > txtS.setPopupStyleName("menubar"); > > where my css class "menubar" has the attributes below: > .menubar > { > background-color: #eff6ff; > font-family: verdana, arial, Helvetica, sans-serif; > color: #336699; > font-size:6px; > border: #8b9399 1px solid; > padding-left: 8px; > padding-right: 8px; > padding-top: 5px; > padding-bottom: 5px; > > } > > This does not decrease the fontsize. > Any help is appreciated. > thanks , > ART --~--~-~--~~~---~--~~ 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 doesn't work at all on my Vista notebook under Eclipse
Weird. I was planing to take a closer look after vacation to see if my hosts file was gone or something. But mine exists, only with the typo shown in the post you linked to. Weird that i dont have problems using tomcat with a broken hosts file. Oh well. Thanks for the post. (switching the :: to # did fix it) On Aug 4, 8:09 am, Rajeev Dayal wrote: > See the following > thread:http://groups.google.com/group/google-appengine-java/browse_thread/th... > > There have been some instances of Vista shipping with a hosts file that does > not properly map localhost. > > Rajeev > > On Tue, Aug 4, 2009 at 2:35 AM, Trevis wrote: > > > Well that was a hellish 3 hours of my life that i'll never get back. > > For some reason localhost isn't working on my notebook with jetty. > > 127.0.0.1 though does work with it. > > > On Aug 4, 12:34 am, Trevis wrote: > > > Ok, so i compiled it, downloaded tomcat 6 and ran the tests there and > > > it works no problem. Why isnt jetty responding?!?!?! > > > > On Aug 3, 11:58 pm, Trevis wrote: > > > > > Ok, it has nothing to do with eclipse because the ant > > launchedhostedmodedoesn't work either. This is so frustrating! > > > > > On Aug 3, 11:36 pm, Trevis wrote: > > > > > > I've been developing pretty heavily in GWT on my desktop for the past > > > > > month, tomorrow i'm going on a trip and trying to get my notebook > > > > > ready to do builds. For the life of me i can not get GWT to work > > with > > > > > it. > > > > > > I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it > > > > > didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the > > > > > latest GWT version and eclipse plugin and it still does the same > > > > > thing. > > > > > > I can create projects, compile them but i can not launchhostedmode. > > > > > The Jetty browser andhostedserver launch but i get an error in the > > > > > browser and nothing but a simple message in Jetty > > > > > > "Starting Jetty on port 8080" (with two success messages beneath it) > > > > > > What is going on? I don't think that jetty is accepting requests. > > > > > This is on Windows Vista 32 with IE8. Things were flawless on my > > > > > desktop so i'm at a loss. > > > > > > I can create a project and compile it but if i launchhostedmodei > > > > > just get an error in the browser. --~--~-~--~~~---~--~~ 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 doesn't work at all on my Vista notebook under Eclipse
Well that was a hellish 3 hours of my life that i'll never get back. For some reason localhost isn't working on my notebook with jetty. 127.0.0.1 though does work with it. On Aug 4, 12:34 am, Trevis wrote: > Ok, so i compiled it, downloaded tomcat 6 and ran the tests there and > it works no problem. Why isnt jetty responding?!?!?! > > On Aug 3, 11:58 pm, Trevis wrote: > > > Ok, it has nothing to do with eclipse because the ant > > launchedhostedmodedoesn't work either. This is so frustrating! > > > On Aug 3, 11:36 pm, Trevis wrote: > > > > I've been developing pretty heavily in GWT on my desktop for the past > > > month, tomorrow i'm going on a trip and trying to get my notebook > > > ready to do builds. For the life of me i can not get GWT to work with > > > it. > > > > I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it > > > didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the > > > latest GWT version and eclipse plugin and it still does the same > > > thing. > > > > I can create projects, compile them but i can not launchhostedmode. > > > The Jetty browser andhostedserver launch but i get an error in the > > > browser and nothing but a simple message in Jetty > > > > "Starting Jetty on port 8080" (with two success messages beneath it) > > > > What is going on? I don't think that jetty is accepting requests. > > > This is on Windows Vista 32 with IE8. Things were flawless on my > > > desktop so i'm at a loss. > > > > I can create a project and compile it but if i launchhostedmodei > > > just get an error in the browser. --~--~-~--~~~---~--~~ 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 doesn't work at all on my Vista notebook under Eclipse
Ok, so i compiled it, downloaded tomcat 6 and ran the tests there and it works no problem. Why isnt jetty responding?!?!?! On Aug 3, 11:58 pm, Trevis wrote: > Ok, it has nothing to do with eclipse because the ant > launchedhostedmodedoesn't work either. This is so frustrating! > > On Aug 3, 11:36 pm, Trevis wrote: > > > I've been developing pretty heavily in GWT on my desktop for the past > > month, tomorrow i'm going on a trip and trying to get my notebook > > ready to do builds. For the life of me i can not get GWT to work with > > it. > > > I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it > > didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the > > latest GWT version and eclipse plugin and it still does the same > > thing. > > > I can create projects, compile them but i can not launchhostedmode. > > The Jetty browser andhostedserver launch but i get an error in the > > browser and nothing but a simple message in Jetty > > > "Starting Jetty on port 8080" (with two success messages beneath it) > > > What is going on? I don't think that jetty is accepting requests. > > This is on Windows Vista 32 with IE8. Things were flawless on my > > desktop so i'm at a loss. > > > I can create a project and compile it but if i launchhostedmodei > > just get an error in the browser. --~--~-~--~~~---~--~~ 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 doesn't work at all on my Vista notebook under Eclipse
Ok, it has nothing to do with eclipse because the ant launched hosted mode doesn't work either. This is so frustrating! On Aug 3, 11:36 pm, Trevis wrote: > I've been developing pretty heavily in GWT on my desktop for the past > month, tomorrow i'm going on a trip and trying to get my notebook > ready to do builds. For the life of me i can not get GWT to work with > it. > > I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it > didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the > latest GWT version and eclipse plugin and it still does the same > thing. > > I can create projects, compile them but i can not launch hosted mode. > The Jetty browser and hosted server launch but i get an error in the > browser and nothing but a simple message in Jetty > > "Starting Jetty on port 8080" (with two success messages beneath it) > > What is going on? I don't think that jetty is accepting requests. > This is on Windows Vista 32 with IE8. Things were flawless on my > desktop so i'm at a loss. > > I can create a project and compile it but if i launch hosted mode i > just get an error in the browser. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Hosted mode doesn't work at all on my Vista notebook under Eclipse
I've been developing pretty heavily in GWT on my desktop for the past month, tomorrow i'm going on a trip and trying to get my notebook ready to do builds. For the life of me i can not get GWT to work with it. I tried to get it working with MyEclipse 6.01 (Eclipse 3.3.1) and it didnt work so i upgraded to MyEclipse 7.5 (Eclipse 3.4.2) i added the latest GWT version and eclipse plugin and it still does the same thing. I can create projects, compile them but i can not launch hosted mode. The Jetty browser and hosted server launch but i get an error in the browser and nothing but a simple message in Jetty "Starting Jetty on port 8080" (with two success messages beneath it) What is going on? I don't think that jetty is accepting requests. This is on Windows Vista 32 with IE8. Things were flawless on my desktop so i'm at a loss. I can create a project and compile it but if i launch hosted mode i just get an error in the browser. --~--~-~--~~~---~--~~ 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 creating a RPC Service
I dont think that you're looking at your problem right. For starters GWT and AppEngine are to totally separate and unrelated things. If you don't intend to host on AppEngine you probably dont need to develop with it. Using RPC's to add lines of text to a file sounds like a really bad idea. Like everyone else is saying, use a DB. AppEngine should make persisting the info to a DB about as simple as it gets. (if you want to use it) When you're ready to pull down the user entered code to compile it you can use an admin GWT page (or a simple servlet) that you would create to read the text from the DB, and send it down to you so that it can be compiled. If you wrote the retrieving component as a servlet then you could set the page content type to plain/text and write the text directly to the response which would give you a file save dialog when you try to retrieve it. Just my quick though to solving the problem, ymmv. On Aug 3, 12:04 pm, Sednus wrote: > Well, I am trying to make an interface so that students can write > their code on the web and I can compile it and run it in a computer > cluster( Parallel Programs)... For them to see the how they work... > but I've never worked woth stuff like this :s I am really noobie , but > yes I need to create the file so to compile it and run it, yes its > something unususal and i don't know what a DB tier is :( > > On Aug 3, 11:38 am, Daniel Jue wrote: > > > It really has nothing to do with GWT. You would have a servlet on the > > serverside that responds to rpc calls, and the servlet would call some file > > writing command. (in the simplest, non-refactored way). > > The file writing part doesn't care where the input came from. > > As in logging, you won't be able to guarantee what order the data comes in > > when getting RPC calls. So multiple commands issued quicky may generate > > out-of-order text. > > > This said, since you are asking kind of basic questions... > > > Are you absolutely sure you want to write a file on the system? > > Are you trying to do something unusual? > > > Most people would use a DB tier because it can handle multiple users and > > updates better, and it's easier to have a timestamp tacked onto the message, > > where it can be sorted. > > Cleaning up the filesystem can be a chore. > > Dealing with the filesystem is a chore. File locking? etc. > > > On Mon, Aug 3, 2009 at 12:26 PM, Sednus wrote: > > > > Yes, I was planning to run it on my own server... but how do I make > > > that while still using GWT? is it possible? > > > > On Aug 3, 11:04 am, Daniel Jue wrote: > > > > Sure, you just have to run it on your own server, running jetty or > > > tomcat, > > > > etc. > > > > > On Mon, Aug 3, 2009 at 12:00 PM, Sednus wrote: > > > > > > Well, I really need to create a file on the server side and write on > > > > > it whatever the user types on a text area is there any onther way > > > > > to accomplish this? > > > > > > On Aug 3, 10:30 am, Jason Parekh wrote: > > > > > > No, unfortunately you don't have file system access on App Engine. > > > You > > > > > can > > > > > > store data in databases, but you won't have any file handlers to > > > > > > that > > > > > data. > > > > > > jason --~--~-~--~~~---~--~~ 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: fileupload: ensuring the same file being uploaded
This book as a chapter which holds your hand through file upload in GWT with Apache Commons: http://coolandusefulgwt.com/ The book is a tad out of date but still helpful. Here's an online example using apache but you'll still need the stuff to create the form on the client side to initiate the upload from gwt. I'm sure that there is an example online, but i'll leave that googling to you. http://commons.apache.org/fileupload/using.html On Aug 3, 1:12 am, Vinz369 wrote: > Hi twittwit, > And thanks for your reply. > What I want is quite simple. I want to be able to place a button in my > UI. When he user clicks on this button he can retrieve a file on his > machine and clicking another button it will upload it to the server > hosting the website. > I tried with fileupload from gwt, gwt-ext, and others but I usually > get the error that my server code is not found when I click on the > upload button. > Would it be possible to know step by step how should I proceed? > > On Aug 2, 10:09 pm, twittwit wrote: > > > if you mean common fileupload. it should be at the server. > > nope for web.xml. and nope for project.gwt.xml --> since you putting > > common fileupload to the server. > > try to be more clear ini what u want? and where is the problem. > > > On Jul 21, 4:13 pm, Vinz369 wrote: > > > > Hello twittwit and others, > > > > I've been trying to implement fileuploadfor days in my application. > > > It may looks stupid but I really don't understand how it works. > > > I have few questions: > > > - If I want to use the same code as twittwit where should I place it? > > > in my client folder or server folder? should I add something else in > > > my web.xml and project.gwt.xml files? > > > > I'm completely lost, please help me! > > > > On Jul 18, 10:15 am, twittwit wrote: > > > > > perfect! thanks Manuel! > > > > common-fileupload is great! > > > > On Jul 18, 8:51 am, Manuel Carrasco > > > > wrote: > > > > > > filename = item.getName(); > > > > > > On Sat, Jul 18, 2009 at 12:27 AM, twittwit wrote: > > > > > > > ok thank you. i found the answer: > > > > > > > public class MyFormHandler extends HttpServlet{ > > > > > > public void doPost(HttpServletRequest request, > > > > > > HttpServletResponse > > > > > > response) throws ServletException, IOException { > > > > > > ServletFileUploadupload= new ServletFileUpload(); > > > > > > > try{ > > > > > > FileItemIterator iter =upload.getItemIterator(request); > > > > > > > while (iter.hasNext()) { > > > > > > FileItemStream item = iter.next(); > > > > > > > String name = item.getFieldName(); > > > > > > InputStream stream = item.openStream(); > > > > > > > // Process the input stream > > > > > > FileOutputStream out = new FileOutputStream > > > > > > ("example.csv"); > > > > > > //ByteArrayOutputStream out = new > > > > > > ByteArrayOutputStream > > > > > > (); > > > > > > int len; > > > > > > byte[] buffer = new byte[8192]; > > > > > > while ((len = stream.read(buffer, 0, buffer.length)) > > > > > > ! > > > > > > = -1) { > > > > > > out.write(buffer, 0, len); > > > > > > } > > > > > > //... > > > > > > > } > > > > > > } > > > > > > catch(Exception e){ > > > > > > e.printStackTrace(); > > > > > > } > > > > > > > } > > > > > > > } > > > > > > > however, how can i extract the name of the csv file(client side) so > > > > > > that the csv file in my server can have the same name? > > > > > > thanks!! > > > > > > > On Jul 18, 12:19 am, Manuel Carrasco > > > > > > wrote: > > > > > > > In the dialog between the browser and the server, the client > > > > > > > sends a > > > > > > > multipart/form-data request and there is more information besides > > > > > > > the > > > > > > file > > > > > > > content, like form elements values, boundary tags, etc. > > > > > > > > I recommend you to use apache commons-fileupload library to handle > > > > > > > multipart/form-data request in your servlets. > > > > > > > > On Fri, Jul 17, 2009 at 11:44 PM, imgnik > > > > > > > wrote: > > > > > > > > > hi all, > > > > > > > > > i posted a question about fileupload here > > > > > > > > >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa. > > > > > > .. > > > > > > > > but i think i didn't phrase my question correctly. so gonna do > > > > > > > > another > > > > > > > > attempt. > > > > > > > > > I tried to use agwtfileupload widget to send a csv file to the > > > > > > > > server. and at the server i will write it as a file (for other > > > > > > > > usage) > > > > > > > > it by doing : (where request is the httpservletrequest and bw > > > > > > > > is the > > > > > > > > bufferedwriter) > > > > > > > > > BufferedReader r = request.getReader(); > > > > > > > > while((thisread= r.readLine())!=n
Re: Save form data
I think that you may be mixing things up a bit. RPC doesn't use true html forms. So what would look to a user to be a form in a typical GWT application would just be a group of input html elements and a button. The button doesnt submit a form, it has a click handler. The handler makes an RPC call to passing the user entered data to the server. GWT does have a FormPanel widget thought which allows you to make true HTML forms. Those can submit to any webserver configured to handle the http request. I think that these kinds of forms are included to support legacy back ends and to do things that GWT RPC cant like, oh say file upload. ymmv, i'm still pretty green with GWT but i'm coming up to speed. Trevis On Jul 29, 1:34 pm, Jeremiah Moses wrote: > thanks for the response ... i have not made many of the forms made have been > just playing around with gwt for the last couple of weeks ... been using > simple forms ... and not got to point of writing a form handler yet ... > been trying to find some example ... to make my job a bit easier ... > specialy if it has maybe even a RPC implementation for a form ... > > thanks > jeremiah > > On Wed, Jul 29, 2009 at 10:44 PM, Trevis wrote: > > > ...calling setName("foo") on things like TextBox will cause GWT to > > render an html input element with name="foo". > > > On Jul 29, 11:59 am, Trevis wrote: > > > I dont have an example handy but i have to imagine that there are > > > plenty out there. Sounds like you already have GWT creating the > > > forms, so i assume that you are setting the encoding type and post > > > method already. I guess you have also created a FormHandler and > > > added that to your FormPanel. Form there, GWT is (can be) out of the > > > equation. The responding server can be anything. > > > > All you should have to do is call setName() on your form elements and > > > your server should be none the wiser that you are using GWT on the > > > front. > > > > (I have not implemented this yet myself as i am deeply in love with > > > RPC, but i have been reading about using traditional forms with GWT > > > because i need to implement image uploading which i plan to do with > > > Apache Commons fileUpload) > > > > Trevis > > > > On Jul 29, 6:47 am, Jeremiah Moses wrote: > > > > > Hi > > > > I want to save some form data into my database my forms are generated > > using > > > > GWT and i already have code that interacts with my database, now my > > question > > > > is how do i interact with this code ... is RPC the only way to do it in > > GWT > > > > or is there any other way to integrate my gwt UI to this my > > existing > > > > code can save to the database and retrive information so all i need to > > do is > > > > send the info to it using the form generated in GWT any examples with > > > > regards to this are welcome > > > > > thanks > > > > > Jeremiah Moses --~--~-~--~~~---~--~~ 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: Admin Area protected by simple scripted password in GWT
Some good info in that link, Isaac, thanks. "Do NOT attempt to use the Cookie header to transfer the sessionID from GWT to the server; it is fraught with security issues that will become clear in the rest of this article. You MUST transfer the sessionID in the payload of the request. For an example of why this can fail, see CrossSiteRequestForgery. " Hm. Well, ok then... i guess i should heed that warning. The article doesn't seem to directly address Nickelnext concern about having the admin content already in the browser though. I mean, once you compile the UI into javascript and the browser downloads it, everything that the view does is there in the browser. It seems pretty far out there that someone could use that obfuscated javascript mischievously but that's what hacking is all about, so i hear! Trevis On Jul 29, 12:46 pm, Isaac Truett wrote: > http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur... > > This FAQ and the Security for GWT Applications article it links to should > help. > > - Isaac > > On Wed, Jul 29, 2009 at 1:40 PM, Trevis wrote: > > > Ah, I understand your concern. > > > Hm. Maybe someone with more GWT experience can chime in on this but > > i'm thinking this. It's not like you have a simple hidden DIV in the > > browser that you're deciding to show dynamically. You have a > > javascript function that generates that div, which i'd imagine would > > be a lot tricker to hack (though probably not impossible if the hacker > > were properly motivated) Even still, what would the hacker have access > > to at that point? He'd see the admin tab... but what could he do with > > it? You should implement your security so that the admin RPC methods > > also require some kind of authentication. This way, a determined > > hacker may be able to see the tab but he still couldn't do anything > > with it. Not knowing your exact application, this may have other > > complications but that is the way that i'd probably be thinking of > > doing it. > > > I'd love to hear some alternative solutions as i'm pretty much in the > > same boat as you are. I'm porting my first major application to GWT > > and i've been going with the assumption that server based security for > > the admin RPC's combined with obfuscated javascript will give me a > > similar level of security to what i would get by traditional means. > > (though arguably better since there will be no history trail to the > > admin pages left in the browser since gwt allows you to not cause any > > browser history footprint that you don't deliberately generate) > > > On Jul 29, 12:27 pm, Nickelnext wrote: > >> Hello > > >> You suggest that when the callback gets the Onsuccess and the user is > >> valid, i can simply add a new tab or panele or whatever making the > >> Admin Area visible? > > >> Your solution would be perfect, and i thought of it yet but my > >> question is: isn't it easily hack-able? I mean, inside the javascript > >> that gwt compiles there would be also the admin area, so a malicious > >> user could, with some tricks, retrieve the content and do some ugly > >> things with my app, couldn't he? > > >> What i mean is: is this easy and fast solution also secure? Would be > >> the part of the admin area untouchable if the user doesn't > >> authenticate himself or there should be a possibility? Because if i'm > >> not wrong, the solution you suggest isn't like one with, for example, > >> a PHP page that renders a new html page with the private content, but > >> the content is himself into the Application, cause the Admin Area tab > >> (or else) is in the client code (and so in whoever's open my app > >> browser). > > >> Sorry for my bad bad english, hope you get the point. > >> Thank you! > >> Nickelnext --~--~-~--~~~---~--~~ 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: Admin Area protected by simple scripted password in GWT
Ah, I understand your concern. Hm. Maybe someone with more GWT experience can chime in on this but i'm thinking this. It's not like you have a simple hidden DIV in the browser that you're deciding to show dynamically. You have a javascript function that generates that div, which i'd imagine would be a lot tricker to hack (though probably not impossible if the hacker were properly motivated) Even still, what would the hacker have access to at that point? He'd see the admin tab... but what could he do with it? You should implement your security so that the admin RPC methods also require some kind of authentication. This way, a determined hacker may be able to see the tab but he still couldn't do anything with it. Not knowing your exact application, this may have other complications but that is the way that i'd probably be thinking of doing it. I'd love to hear some alternative solutions as i'm pretty much in the same boat as you are. I'm porting my first major application to GWT and i've been going with the assumption that server based security for the admin RPC's combined with obfuscated javascript will give me a similar level of security to what i would get by traditional means. (though arguably better since there will be no history trail to the admin pages left in the browser since gwt allows you to not cause any browser history footprint that you don't deliberately generate) On Jul 29, 12:27 pm, Nickelnext wrote: > Hello > > You suggest that when the callback gets the Onsuccess and the user is > valid, i can simply add a new tab or panele or whatever making the > Admin Area visible? > > Your solution would be perfect, and i thought of it yet but my > question is: isn't it easily hack-able? I mean, inside the javascript > that gwt compiles there would be also the admin area, so a malicious > user could, with some tricks, retrieve the content and do some ugly > things with my app, couldn't he? > > What i mean is: is this easy and fast solution also secure? Would be > the part of the admin area untouchable if the user doesn't > authenticate himself or there should be a possibility? Because if i'm > not wrong, the solution you suggest isn't like one with, for example, > a PHP page that renders a new html page with the private content, but > the content is himself into the Application, cause the Admin Area tab > (or else) is in the client code (and so in whoever's open my app > browser). > > Sorry for my bad bad english, hope you get the point. > Thank you! > Nickelnext --~--~-~--~~~---~--~~ 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: Multiple pages question
I think that the issue that you're running into here is one of mindset. Web developers think in terms of pages but a Swing/MFC/thick client developers dont. GWT is kind of a bridge between the two. >From what i've seen, the GWT way of doing things is to clear out the visible components and render your new components to give the user a different view. (like you said) Now is your question "how can i create these two views in separate java files" (which is an architecture question) or "how can i separate widget (element) composition from Java" which is almost a philosophical question because GWT (at least as far as i've seen) is not designed to operate that way. (which i believe is a design feature, not an oversight) One other fly in the ointment that you may not have stumbled into yet which will blow your mind at first is using the back button. There is lots of documentation out there on using GWT History and it's really a different way of thinking coming from a web developer perspective. ...if you are asking the architecture question, so far i havent seen much yet on best practices for organizing your classes and widgets but you should start by searching for 'GWT Custom widgets' and specifically checking out the Composite class. That should get your started in how you can organize and compose your various views. Disclaimer... I've only been using GWT for about a month now but i've been doing Swing/Visual C++/VB gui's for a long time and to me GWT fits as naturally as anything i've ever seen from a web framework perspective. But it is very different from Swing, Spring MVC, JSF and the like. Trevis On Jul 29, 5:34 am, "maarten.de...@gmail.com" wrote: > Hi, > > I've been trying out GWT for a couple of weeks now and stumbled upon a > beginner's question relating multiple pages. > > For example, let's suppose an application with users where you have an > application page, a login page and a register page. Using GWT for the > application page speaks for itself, but what about the other pages? > > I've read the other topics about this problem in the group. It seems > the proper GWT solution is to clear window and load another GUI there. > This would actually wrap all the pages within the application. I can > see how this solution would work, but then you lack a lot of usefull > HTML pages that lay out the login and register forms. This way, making > the lay-out of the page cannot be seperated from coding the > application, at least not in HTML vs GWT/Java. > > Is there another way of working for this? One that does permit to > seperate page lay-out and coding? > > Greets, > > Maarten Decat --~--~-~--~~~---~--~~ 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: Save form data
...calling setName("foo") on things like TextBox will cause GWT to render an html input element with name="foo". On Jul 29, 11:59 am, Trevis wrote: > I dont have an example handy but i have to imagine that there are > plenty out there. Sounds like you already have GWT creating the > forms, so i assume that you are setting the encoding type and post > method already. I guess you have also created a FormHandler and > added that to your FormPanel. Form there, GWT is (can be) out of the > equation. The responding server can be anything. > > All you should have to do is call setName() on your form elements and > your server should be none the wiser that you are using GWT on the > front. > > (I have not implemented this yet myself as i am deeply in love with > RPC, but i have been reading about using traditional forms with GWT > because i need to implement image uploading which i plan to do with > Apache Commons fileUpload) > > Trevis > > On Jul 29, 6:47 am, Jeremiah Moses wrote: > > > Hi > > I want to save some form data into my database my forms are generated using > > GWT and i already have code that interacts with my database, now my question > > is how do i interact with this code ... is RPC the only way to do it in GWT > > or is there any other way to integrate my gwt UI to this my existing > > code can save to the database and retrive information so all i need to do is > > send the info to it using the form generated in GWT any examples with > > regards to this are welcome > > > thanks > > > Jeremiah Moses --~--~-~--~~~---~--~~ 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: Admin Area protected by simple scripted password in GWT
I take it that regular users for your application dont have to authenticate, but you want the admin to login and then show him or her a different view (a view with an admin tab)? The question is kind of broad, i mean allowing a user to login is pretty much nuts and bolts stuff. You put together a widget with text and password fields, give them a button to click (or respond to the enter key) and then make an RPC call to the server where you'd authenticate them (using a db, text file or hard coded value or whatever you want). Once the RPC call returns successfully you can rebuild the tabs or just add the admin tab. Should be pretty straight forward. Do you have a more specific problem? Trevis On Jul 29, 12:00 pm, Nickelnext wrote: > Hello everyone, > > I'm trying to figure out how to create a small Admin Area protected by > a password (that could be hardcoded or stored in a xml file, it > doesn't matter) inside my application. > > My application is basically a TabbedPanel that contains 4 or 5 panels, > some of them communicates with plain Java servlets and so on. > > Now, what i need to do is a simple form that can authenticate the > admin and let him upload some files and do some other things. What i > wanted to do is to create another GWT class with some widgets inside, > but i don't know what is the best (or simply the easiest) way to do > that. > > I read about using Basic or Form Tomcat Authentication, but in my case > is not possible (is it?) due to the fact that if I add the Admin Area > like a new Tab inside the TabbedPanel, with tomcat auth, every user > that would like to use my app should authenticate himself (what i > learned is that with tomcat auth you choose an entire page to > protect). > > Yet, if i make another Module or try to set another Entry point > (didn't understand well how), using the Admin Area like another > application, would be more complex, and i'd prefer to create a unique > application. > > I was wondering if i could use plain Java servlets, GWT servlets > (async ones), because i know that with php it would be easy to make > but i don't know how to mix php with gwt so i'd prefere to use another > method. > > I hope i explained myself well, if you need any further explanation i > will give you as soon as possible. > Regards > Nickelnext --~--~-~--~~~---~--~~ 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: onSubmitComplete is not working with GWT Showcase
Shot in the dark here but the first thing i would check is are you setting the method type on your form panel? Sounds like you need to set it to "POST". (FromPanel.METHOD_POST constant is defined for doing this) Trevis On Jul 28, 10:15 pm, Simon wrote: > Hi all, > > I have a problem regarding FormPanel. Initially, i am working on > default GWT application for submit text through textarea and upload > file to server, all the events are handled by servlet, works pretty > fine. However, when i switched to using the GWT Showcase framework > (http://gwt.google.com/samples/Showcase/Showcase.html), all my > FormPanel events having problem on onSubmitComplete, it is no respond > at all. But if i try to send the request through URL, the servlet is > responded and all the parameters displayed as predicted. Second thing, > when i try compile and browse in the default IE browser (Chrome), i > click the submit button, it popup a new page and show the correct > servlet url, but the content is > > HTTP ERROR: 405 > HTTP method Get is not supported by this url > RequestURI=.readmesystem/textarea > Powered by Jetty:// > > again, i try insert some parameters after textarea?Variable=Hello, > servlet is just working fine. > > I try search the forum and i found this issue (http://code.google.com/ > p/google-web-toolkit/issues/detail?id=528), i try to remove the > history support in the Showcase.java > History,addValueChangeHandler > (historyHandler), it popop up more error, so i give up this method. > > Therefore, can someone give me guidance about this issue. Thanks in > advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Save form data
I dont have an example handy but i have to imagine that there are plenty out there. Sounds like you already have GWT creating the forms, so i assume that you are setting the encoding type and post method already. I guess you have also created a FormHandler and added that to your FormPanel. Form there, GWT is (can be) out of the equation. The responding server can be anything. All you should have to do is call setName() on your form elements and your server should be none the wiser that you are using GWT on the front. (I have not implemented this yet myself as i am deeply in love with RPC, but i have been reading about using traditional forms with GWT because i need to implement image uploading which i plan to do with Apache Commons fileUpload) Trevis On Jul 29, 6:47 am, Jeremiah Moses wrote: > Hi > I want to save some form data into my database my forms are generated using > GWT and i already have code that interacts with my database, now my question > is how do i interact with this code ... is RPC the only way to do it in GWT > or is there any other way to integrate my gwt UI to this my existing > code can save to the database and retrive information so all i need to do is > send the info to it using the form generated in GWT any examples with > regards to this are welcome > > thanks > > Jeremiah Moses --~--~-~--~~~---~--~~ 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: Can I invoke RPC Methods from Java
I'm still pretty new to GWT but i'd probably start by watching the messages in firebug (the firefox plugin) to see exactly what's going back and forth. Trevis On Jul 29, 10:23 am, Steve wrote: > Thanks for the quick reply. > > Unfortunately I'm in a situation where I can't/shouldn't mess with the > GWT application that I'm trying to call remotely. It is a 3rd party > app that is distributed in WAR form. I'd rather not have to crack it > open and add a SOAP interface into it. > > Do you know of any documentation that details how I can format a POST > request to a GWT RPC service? > > Thanks > > On Jul 29, 10:11 am, Trevis wrote: > > > I'm also pretty new to GWT and your scenario never occurred to me. > > Generally i think that it's probably not the greatest idea to try and > > call the GWT RPC's from a different front end and i've not come across > > anything that would give you a wsdl (or something like a wsdl) that > > you could use from non GWT java app. But, i cant think of any reason > > why you couldnt make it work. > > > The RPC calls are just HTTP Post requests which receive a JSON > > response. Introducing JSON into a non web app seems like a red flag > > to me but if you really wanted to do it, you should be able to convert > > those into java objects. > > > I *think* that a better solution might be to just rewrite a SOAP based > > webservice layer that uses the same code that the GWT services calls. > > That's not a great solution either since it introduces duplication but > > perhaps a better way to go would be to port the logic to a SOAP based > > webservice layer and then call the SOAP service from the GTW RPC > > server so that the logic only exists in one place. > > > Just a thought, ymmv. > > > On Jul 29, 9:38 am, Steve wrote: > > > > Hello All, > > > > I'm new to GWT so please forgive me if there is some obvious answer to > > > my problem. I googled around for this information and came up dry. > > > > Here is my problem. There is an existing GWT Application that I want > > > to leverage in a new application that I am building. This GWT app > > > uses RPC. I was hoping to find a way to call some of its RPCs from a > > > seperate non-GWT Java application. > > > > I am more familiar with using SOAP services, which provides a way to > > > generate a client from a service description (WSDL). Is there > > > anything similar for GWT's RPC? If there isn't, does anyone know if > > > it is possible to create the POSTs to the GWT servlet by hand? Are > > > there any utilities for this? > > > > Thanks, > > > > Steve --~--~-~--~~~---~--~~ 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: Stack overflow at line :0 (Hosted mode memory error)
Yeah, it doesn't seem to cause any problems but it sure is annoying. I guess using the trunk build would be less traumatic than switching to linux. Someday hopefully we'll all be on linux but we're not quit there yet. Trevis On Jul 28, 12:24 pm, Paul Robinson wrote: > You could use trunk instead of GWT 1.7, and then use OOPHM so you can > use firefox for hosted > mode.http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM > > Apart from being annoying, I found that error message didn't cause any > problems. I stopped using windows though, so the problem went away :) > > HTH > Paul > > Trevis wrote: > > I've been developing in GWT for about 3 weeks now. At first i just > > wanted to get my feet wet and maybe port a minor dynamic piece of my > > site to GWT but i'm so blown away by the technology that i'm > > considering a full UI port. > > > So far the one issues that i can not seem to resolve is this "Stack > > overflow at line :0" popup message that happens when i launch the code > > in hosted mode. I know that i'm not the only one who has the problem > > and i've seen blog posts where people talk about having resolved it by > > modifying the memory settings that it uses but nothing seems to work > > for me. > > > I'm using Eclipse and have seen this message with GWT 1.6 and 1.7. > > The hosted browser takes a long time to render my content and then i > > get that popup. It works fine if i compile it and hit it with a real > > browser. It seems strange to me that the popup says "Microsoft > > Internet Explorer" but i guess that's what's being launched > > internally. How do i make this go away? --~--~-~--~~~---~--~~ 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: Can I invoke RPC Methods from Java
I'm also pretty new to GWT and your scenario never occurred to me. Generally i think that it's probably not the greatest idea to try and call the GWT RPC's from a different front end and i've not come across anything that would give you a wsdl (or something like a wsdl) that you could use from non GWT java app. But, i cant think of any reason why you couldnt make it work. The RPC calls are just HTTP Post requests which receive a JSON response. Introducing JSON into a non web app seems like a red flag to me but if you really wanted to do it, you should be able to convert those into java objects. I *think* that a better solution might be to just rewrite a SOAP based webservice layer that uses the same code that the GWT services calls. That's not a great solution either since it introduces duplication but perhaps a better way to go would be to port the logic to a SOAP based webservice layer and then call the SOAP service from the GTW RPC server so that the logic only exists in one place. Just a thought, ymmv. On Jul 29, 9:38 am, Steve wrote: > Hello All, > > I'm new to GWT so please forgive me if there is some obvious answer to > my problem. I googled around for this information and came up dry. > > Here is my problem. There is an existing GWT Application that I want > to leverage in a new application that I am building. This GWT app > uses RPC. I was hoping to find a way to call some of its RPCs from a > seperate non-GWT Java application. > > I am more familiar with using SOAP services, which provides a way to > generate a client from a service description (WSDL). Is there > anything similar for GWT's RPC? If there isn't, does anyone know if > it is possible to create the POSTs to the GWT servlet by hand? Are > there any utilities for this? > > Thanks, > > Steve --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Stack overflow at line :0 (Hosted mode memory error)
I've been developing in GWT for about 3 weeks now. At first i just wanted to get my feet wet and maybe port a minor dynamic piece of my site to GWT but i'm so blown away by the technology that i'm considering a full UI port. So far the one issues that i can not seem to resolve is this "Stack overflow at line :0" popup message that happens when i launch the code in hosted mode. I know that i'm not the only one who has the problem and i've seen blog posts where people talk about having resolved it by modifying the memory settings that it uses but nothing seems to work for me. I'm using Eclipse and have seen this message with GWT 1.6 and 1.7. The hosted browser takes a long time to render my content and then i get that popup. It works fine if i compile it and hit it with a real browser. It seems strange to me that the popup says "Microsoft Internet Explorer" but i guess that's what's being launched internally. How do i make this go away? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---