Re: UiBinder xml definition reference: HELP...
Hi, I was supposed to use SuggestionBox widget with UiBinder. How could I mention the data provider as a property from xml or the code? - Thamizharasu S On 14 Aug, 15:17, Thomas Broyer wrote: > On 13 août, 20:04, Thamizharasu S wrote: > > > Hi All, > > > Where can I find the full list of property reference for UiBinder > > controls in xml file? > > > For example, any GWT elements can be bind with UiBinder. Sometimes it > > is confusing to identify the correct property name and some available > > values. > > > Can any one point to identify it for my reference? > > From the doc: > """See how the g:ListBox element has a visibleItemCount='1' attribute? > That becomes a call to ListBox#setVisibleItemCount(int). Every one of > the widget's methods that follow JavaBean-style conventions for > setting a property can be used this > way."""http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#He... > > Widgets with special parsers have a "Use in UiBinder Templates" > section in their respective JavaDoc. > For > instance:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: UiBinder xml definition reference: HELP...
On 14 août, 14:39, Thamizharasu S wrote: > Hi, > I was supposed to use SuggestionBox widget with UiBinder. How could I > mention the data provider as a property from xml or the code? http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget -- 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.
Help Needed: Bidding System with GWT
Hi, I need to build a bidding system for a university disertation. Can u suggest me some which i may need or some factors which i need to consider when designing app with GWT 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: help on my small project
If you are new to GWT based development my suggestion is learn from project HUPA http://svn.apache.org/repos/asf/labs/hupa its based on pretty good architecture and in my experience you straight lift lot of initial Boiler plate code. In my view dont get too much into running its ok if you cant run it, just read the code starting from entry point and you will be good to go . as far as your query goes its simple dialogbox.center and dialogbox.show/hide will do. On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang wrote: > > Hi all, > I am quite new to GWT development, now am struggling in a small web > application, my application include a lot of GUI. > > while, I got two questions here, > 1). How can centralize the application on the final web page? e.g. I > create a login window which is quite small, when I preview on the web > page, it's not in the center of the page, how can i capture the web > page size in my java code? > > 2). As the application has a lot of GUI, how should I switch between > different windows? e.g. after login, the main window should display > and the login window should be hide, how to do this? > > thanks for your attention, any comments are appreciate. > > Regards, > Derrick > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: help on my small project
Hi Parvez, just a note.. Hupa moved to james.apache.org as subproject (I'm just in preparations to deploy the website). The website can be found ( after I finished the work) under http://james.apache.org/hupa. The svn repos is: http://svn.apache.org/repos/asf/james/hupa Bye, Norman Ps: README.txt should include everything to get it running ;) 2009/9/25 Parvez Shah : > If you are new to GWT based development my suggestion is learn from project > HUPA > http://svn.apache.org/repos/asf/labs/hupa > > its based on pretty good architecture and in my experience you straight > lift lot of initial Boiler plate code. > > In my view dont get too much into running its ok if you cant run it, just > read the code starting from entry point and you will be good to go . > > as far as your query goes its simple dialogbox.center and > dialogbox.show/hide will do. > > > > On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang > wrote: >> >> Hi all, >> I am quite new to GWT development, now am struggling in a small web >> application, my application include a lot of GUI. >> >> while, I got two questions here, >> 1). How can centralize the application on the final web page? e.g. I >> create a login window which is quite small, when I preview on the web >> page, it's not in the center of the page, how can i capture the web >> page size in my java code? >> >> 2). As the application has a lot of GUI, how should I switch between >> different windows? e.g. after login, the main window should display >> and the login window should be hide, how to do this? >> >> thanks for your attention, any comments are appreciate. >> >> Regards, >> Derrick >> >> > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: help on my small project
Thanks guys. I will go and study it. On Sep 25, 3:47 pm, Norman Maurer wrote: > Hi Parvez, > > just a note.. Hupa moved to james.apache.org as subproject (I'm just > in preparations to deploy the website). The website can be found ( > after I finished the work) underhttp://james.apache.org/hupa. > > The svn repos is: > > http://svn.apache.org/repos/asf/james/hupa > > Bye, > Norman > > Ps: README.txt should include everything to get it running ;) > > 2009/9/25 Parvez Shah : > > > If you are new to GWT based development my suggestion is learn from project > > HUPA > >http://svn.apache.org/repos/asf/labs/hupa > > > its based on pretty good architecture and in my experience you straight > > lift lot of initial Boiler plate code. > > > In my view dont get too much into running its ok if you cant run it, just > > read the code starting from entry point and you will be good to go . > > > as far as your query goes its simple dialogbox.center and > > dialogbox.show/hide will do. > > > On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang > > wrote: > > >> Hi all, > >> I am quite new to GWT development, now am struggling in a small web > >> application, my application include a lot of GUI. > > >> while, I got two questions here, > >> 1). How can centralize the application on the final web page? e.g. I > >> create a login window which is quite small, when I preview on the web > >> page, it's not in the center of the page, how can i capture the web > >> page size in my java code? > > >> 2). As the application has a lot of GUI, how should I switch between > >> different windows? e.g. after login, the main window should display > >> and the login window should be hide, how to do this? > > >> thanks for your attention, any comments are appreciate. > > >> Regards, > >> Derrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: help on my small project
Sorry to clarify, i am not using a dialogbox, i want my rootpanel to be centralized in the web page, as I previewed, it's always located at the top left corner. Regards, Derrick On Sep 25, 3:47 pm, Norman Maurer wrote: > Hi Parvez, > > just a note.. Hupa moved to james.apache.org as subproject (I'm just > in preparations to deploy the website). The website can be found ( > after I finished the work) underhttp://james.apache.org/hupa. > > The svn repos is: > > http://svn.apache.org/repos/asf/james/hupa > > Bye, > Norman > > Ps: README.txt should include everything to get it running ;) > > 2009/9/25 Parvez Shah : > > > If you are new to GWT based development my suggestion is learn from project > > HUPA > >http://svn.apache.org/repos/asf/labs/hupa > > > its based on pretty good architecture and in my experience you straight > > lift lot of initial Boiler plate code. > > > In my view dont get too much into running its ok if you cant run it, just > > read the code starting from entry point and you will be good to go . > > > as far as your query goes its simple dialogbox.center and > > dialogbox.show/hide will do. > > > On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang > > wrote: > > >> Hi all, > >> I am quite new to GWT development, now am struggling in a small web > >> application, my application include a lot of GUI. > > >> while, I got two questions here, > >> 1). How can centralize the application on the final web page? e.g. I > >> create a login window which is quite small, when I preview on the web > >> page, it's not in the center of the page, how can i capture the web > >> page size in my java code? > > >> 2). As the application has a lot of GUI, how should I switch between > >> different windows? e.g. after login, the main window should display > >> and the login window should be hide, how to do this? > > >> thanks for your attention, any comments are appreciate. > > >> Regards, > >> Derrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: help on my small project
Hi derrck What i usually do is create a DockPanel, then set the width and height to "100%" and stick my login box in the center panel of the DockPanel. TextBox login=new TextBox(); Dockpanel myDock=new DockPanel() myDock.setSize("100%","100%"); myDock.add(login,DockPanel.CENTER); Something like that should do the trick. On Sep 25, 11:37 am, Derrick Xiang wrote: > Sorry to clarify, i am not using a dialogbox, i want my rootpanel to > be centralized in the web page, as I previewed, it's always located at > the top left corner. > > Regards, > Derrick > > On Sep 25, 3:47 pm, Norman Maurer wrote: > > > Hi Parvez, > > > just a note.. Hupa moved to james.apache.org as subproject (I'm just > > in preparations to deploy the website). The website can be found ( > > after I finished the work) underhttp://james.apache.org/hupa. > > > The svn repos is: > > >http://svn.apache.org/repos/asf/james/hupa > > > Bye, > > Norman > > > Ps: README.txt should include everything to get it running ;) > > > 2009/9/25 Parvez Shah : > > > > If you are new to GWT based development my suggestion is learn from > > > project > > > HUPA > > >http://svn.apache.org/repos/asf/labs/hupa > > > > its based on pretty good architecture and in my experience you straight > > > lift lot of initial Boiler plate code. > > > > In my view dont get too much into running its ok if you cant run it, just > > > read the code starting from entry point and you will be good to go . > > > > as far as your query goes its simple dialogbox.center and > > > dialogbox.show/hide will do. > > > > On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang > > > wrote: > > > >> Hi all, > > >> I am quite new to GWT development, now am struggling in a small web > > >> application, my application include a lot of GUI. > > > >> while, I got two questions here, > > >> 1). How can centralize the application on the final web page? e.g. I > > >> create a login window which is quite small, when I preview on the web > > >> page, it's not in the center of the page, how can i capture the web > > >> page size in my java code? > > > >> 2). As the application has a lot of GUI, how should I switch between > > >> different windows? e.g. after login, the main window should display > > >> and the login window should be hide, how to do this? > > > >> thanks for your attention, any comments are appreciate. > > > >> Regards, > > >> Derrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: help on my small project
I use a deckpanel to hold all my pages. For example deckPanel.showWidget(0) // Show My Welcome/Login page deckPanel.showWidget(1) // Show page 1 of application. deckpanel.showWidget(2) // Show another page of the app etc. Each Page is some type of Panel, with other widgets on it. Successful login causes the application to switch to page 1 of the app. Mike. On Sep 25, 3:48 am, monk3y wrote: > Hi derrck > > What i usually do is create a DockPanel, then set the width and height > to "100%" and stick my login box in the center panel of the > DockPanel. > > TextBox login=new TextBox(); > Dockpanel myDock=new DockPanel() > myDock.setSize("100%","100%"); > myDock.add(login,DockPanel.CENTER); > > Something like that should do the trick. > > On Sep 25, 11:37 am, Derrick Xiang wrote: > > > > > Sorry to clarify, i am not using a dialogbox, i want my rootpanel to > > be centralized in the web page, as I previewed, it's always located at > > the top left corner. > > > Regards, > > Derrick > > > On Sep 25, 3:47 pm, Norman Maurer wrote: > > > > Hi Parvez, > > > > just a note.. Hupa moved to james.apache.org as subproject (I'm just > > > in preparations to deploy the website). The website can be found ( > > > after I finished the work) underhttp://james.apache.org/hupa. > > > > The svn repos is: > > > >http://svn.apache.org/repos/asf/james/hupa > > > > Bye, > > > Norman > > > > Ps: README.txt should include everything to get it running ;) > > > > 2009/9/25 Parvez Shah : > > > > > If you are new to GWT based development my suggestion is learn from > > > > project > > > > HUPA > > > >http://svn.apache.org/repos/asf/labs/hupa > > > > > its based on pretty good architecture and in my experience you straight > > > > lift lot of initial Boiler plate code. > > > > > In my view dont get too much into running its ok if you cant run it, > > > > just > > > > read the code starting from entry point and you will be good to go . > > > > > as far as your query goes its simple dialogbox.center and > > > > dialogbox.show/hide will do. > > > > > On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang > > > > wrote: > > > > >> Hi all, > > > >> I am quite new to GWT development, now am struggling in a small web > > > >> application, my application include a lot of GUI. > > > > >> while, I got two questions here, > > > >> 1). How can centralize the application on the final web page? e.g. I > > > >> create a login window which is quite small, when I preview on the web > > > >> page, it's not in the center of the page, how can i capture the web > > > >> page size in my java code? > > > > >> 2). As the application has a lot of GUI, how should I switch between > > > >> different windows? e.g. after login, the main window should display > > > >> and the login window should be hide, how to do this? > > > > >> thanks for your attention, any comments are appreciate. > > > > >> Regards, > > > >> Derrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Help with web application if possible.
I have eclipse installed with the GWT as well as the full blown Java SDK. I created a GWT template web application that is standard within eclipse. I basically am testing functionality of being able to send an email using the shell that is provided from eclipse. I have renamed several files, and for whatever reason, when I change the web.xml file located in the war/WEB-INF directory to the relative path for the servlet -- I change the "url-pattern" property of the "servlet- mapping" item to "/email" instead of "/greet" -- I lose the ability to communicate with the server. My question is where else is this information being stored, because it clearly is not pulling the information just from the web.xml file. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
IE Script error... Urgent help needed
Hi all, I'm a newbie to GWT. Whenever, i try to re-load a Form Panel on Combo Box 'onSelect' event then i am getting IE script error that says: "A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?" My form panel contains more than 300 fields (Checkbox & TextField). So, in order to reload, first, i clear up the Form Panel and then redraw the components on the same and my code as follows: if(formPanel != null) { DeferredCommand.addCommand(new IncrementalCommand() { private int index = 0; protected static final int COUNT = 20; public boolean execute() { formPanel.clear(); return (++index < COUNT); } }); } Although, script error got resolved i made changes in Windows registry as suggested in the following link: http://gwt-ext.com/forum/viewtopic.php?f=7&t=4180 But, i cannot ask to every user to do the same in their OS. So, i request you to please guide me the right approach to resolve the issue. Thanks alot in advance. -Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Help Add gwt-connectors into smartgwt
I write a testing class below, but I not able to add it into the com.smartgwt.client.widgets.Window. Anyone can help me on this? Thanks in advanced! package com.smartgwt.sample.showcase.client; import pl.tecna.gwt.connectors.client.ConnectionPoint; import pl.tecna.gwt.connectors.client.Connector; import pl.tecna.gwt.connectors.client.Diagram; import pl.tecna.gwt.connectors.client.SectionDecoration; import pl.tecna.gwt.connectors.client.Shape; import com.google.gwt.user.client.ui.AbsolutePanel; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Image; import com.smartgwt.client.widgets.Label; public class NetworkMap{ public NetworkMap() { AbsolutePanel widget = new AbsolutePanel(); final Diagram diagram = new Diagram(widget); final Label label = new Label("LABEL"); final Image image = new Image("http://code.google.com/images/ code_sm.png"); image.setPixelSize(153, 55); widget.add(label, 50, 250); widget.add(image, 200, 300); Shape shapeForLabel = new Shape(label); shapeForLabel.showOnDiagram(diagram); Shape shapeForImage = new Shape(image); shapeForImage.showOnDiagram(diagram); ConnectionPoint labelConnectionPoint = shapeForLabel.connectionPoints [Shape.E]; ConnectionPoint imageConnectionPoint = shapeForImage.connectionPoints[Shape.W]; Connector label2image = new Connector (labelConnectionPoint.getAbsoluteLeft(), labelConnectionPoint.getAbsoluteTop(), imageConnectionPoint.getAbsoluteLeft(), imageConnectionPoint.getAbsoluteTop(), null, new SectionDecoration (SectionDecoration.DECORATE_ARROW)); label2image.startEndPoint.glueToConnectionPoint (labelConnectionPoint); label2image.endEndPoint.glueToConnectionPoint (imageConnectionPoint); label2image.showOnDiagram(diagram); /* // Create boundary panel AbsolutePanel boundaryPanel = new AbsolutePanel(); initWidget(boundaryPanel); boundaryPanel.setSize("700px", "700px"); RootPanel.get().add(boundaryPanel, 10, 10); final Diagram diagram = new Diagram(boundaryPanel); boundaryPanel.add(new Label("Connectors example for GWT 1.7"), 10, 2); // Add some elements that can be connected final Label label = new Label("LABEL"); final Image image = new Image("http://code.google.com/images/ code_sm.png"); image.setPixelSize(153, 55); boundaryPanel.add(label, 50, 250); boundaryPanel.add(image, 200, 300); Shape shapeForLabel = new Shape(label); shapeForLabel.showOnDiagram(diagram); Shape shapeForImage = new Shape(image); shapeForImage.showOnDiagram(diagram); // Connect label and image ConnectionPoint labelConnectionPoint = shapeForLabel.connectionPoints[Shape.E]; ConnectionPoint imageConnectionPoint = shapeForImage.connectionPoints[Shape.W]; Connector label2image = new Connector (labelConnectionPoint.getAbsoluteLeft(), labelConnectionPoint.getAbsoluteTop(), imageConnectionPoint.getAbsoluteLeft(), imageConnectionPoint.getAbsoluteTop(), null, new SectionDecoration (SectionDecoration.DECORATE_ARROW)); label2image.startEndPoint.glueToConnectionPoint (labelConnectionPoint); label2image.endEndPoint.glueToConnectionPoint (imageConnectionPoint); label2image.showOnDiagram(diagram); */ } } -- 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: plz help - Label + font size
In general, CSS should be used to affect such things as they are external, tunable, skinnable, etc. You can use addStyleName() to add any styles (CSS classes actually) you want to the label, or if all your labels should be the same, you can set .gwt-Label to use any common styles for all labels, etc. Or if you put a style on the container that holds the Label, you can then set the styles so it applies to all Labels in such a container using .ContainerStyleName .gwt-Label . -- 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: plz help - Label + font size
Thanks for the answer but I need some more help. If I have something like below - LayoutCOntainer lc = new layoutContainer() lc.add(new Label("myText"); Can you please explain how to apply the style? On Dec 6, 11:33 pm, Yozons Support on Gmail wrote: > In general, CSS should be used to affect such things as they are external, > tunable, skinnable, etc. You can use addStyleName() to add any styles (CSS > classes actually) you want to the label, or if all your labels should be the > same, you can set .gwt-Label to use any common styles for all labels, etc. > Or if you put a style on the container that holds the Label, you can then > set the styles so it applies to all Labels in such a container using > .ContainerStyleName .gwt-Label . -- 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: plz help - Label + font size
There are lots of ways, but basically, create a label you manage a bit Label mylabel = new Label("myText"); mylabel.addStyleName("test"); Then in your css: .test { font-size: 10pt; } This sets a CSS class so you can make it do whatever you want... Of you could put a class on the container to limit the built-in class (gwt-Label) that's assigned to the Label widget. lc.addStyleName("mycontainer"); and in your CSS: .mycontainer .gwt-Label { font-size: 10pt; } This would set all labels in the container to use the same. If you want the Label to use a span instead of a div, use InlineLabel. Hope this helps... but you really should understand HTML/DOM and CSS a bit before you attempt to program w/ GWT. I'm certainly no expert myself. -- 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: plz help - Label + font size
Thanks. That helped. I had thought that theres a way to write CSS files also in java. Is there a reason for not having it? On Dec 7, 1:07 am, Yozons Support on Gmail wrote: > There are lots of ways, but basically, create a label you manage a bit > > Label mylabel = new Label("myText"); > mylabel.addStyleName("test"); > > Then in your css: > .test { font-size: 10pt; } > > This sets a CSS class so you can make it do whatever you want... > > Of you could put a class on the container to limit the built-in class > (gwt-Label) that's assigned to the Label widget. > > lc.addStyleName("mycontainer"); > > and in your CSS: > > .mycontainer .gwt-Label { font-size: 10pt; } > > This would set all labels in the container to use the same. > > If you want the Label to use a span instead of a div, use InlineLabel. > > Hope this helps... but you really should understand HTML/DOM and CSS a bit > before you attempt to program w/ GWT. I'm certainly no expert myself. -- 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.
help debugging gwt apps with database
I'm an old school gwt user, and as such, so is my gwt project. I think it was initially created using GWT 1.3. I have since updated the SDK along the way and made the necessary changes (and just completed the work for 2.0). However, since my gwt project existed long before gwt had eclipse plug- ins (or even ant scripts), I've never taken advantage of the gwt debugging tools available to eclipse. My project uses database connectivity so whenever I wanted to run bytecode instead of javascript I needed to use the 'noserver' flag and set up my own tomcat. What I'd really like to do is use all the eclipse debugging features for my project. I've read the docs and they explain how to set up the noserver but not how to debug (which is essentially what I already have). So, a couple questions: 1) Can you use the gwt eclipse plug-in debugging tools if your server runs a database? If so, how? 2) If debugging doesn't work with a database then is my only option to set up eclipse to work with tomcat? -- 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.
gwt 2.0 + apache + rpc pls help
i am trying to run a project that include gwt as client side and rpc + php as server side the only webserver iknow capable of running all of those together is apache but every time i try to call rpc i get an error of page not found DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 404 Not Found Not Found The requested URL /vzooo/ChatServerlet was not found on this server. Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 Server at localhost Port 80 pls help someone -- 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.
Can anyone help me add jars
I'm just learning GWT right now, I'm actually using smartGWT and building inside Eclipse using eclipse's GWT plugin. I'm trying to build a simple application where the smartGWT front end talks to a standard smartclient servlet backend. My problem is at run time all the jars I've tried to install into eclipse can't be found by the servlet engine. It crashes with messages like: Dec 12, 2009 4:25:38 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed BaseServlet java.lang.NoClassDefFoundError: com/isomorphic/servlet/IDACall at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass (IsolatedAppClassLoader.java:151) at java.lang.ClassLoader.loadClass(Unknown Source) at org.mortbay.util.Loader.loadClass(Loader.java:91) at org.mortbay.util.Loader.loadClass(Loader.java:71) at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 233) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:612) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:181) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:217) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start (AppEngineLauncher.java:86) at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:589) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Eclipse does know where the jar is but for some reason the Jetty engine doesn't know where it is. Apparently it's not being package correctly. Can anyone tell me what I have to do to make sure the jars get exported? Do I need to make modules for these? I'm a little fuzzy on modules but I thought they were only used to exposed the jars to client side code. The GWT code doesn't need to know about these jars they are purely used by the servlets and the only connection is done via DSRequests through URLs. Can anyone help me figure out what I'm doing wrong? This is driving me nuts. -- 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.
help with the new layout deprecations
I've been using GWT for several years now but after updating to the 2.1.0 release I'm seeing hundreds of warnings, mostly to do with the deprecation of ui panels (e.g., DockPanel). I assume the panels weren't strictly compatible with the UIBinder (something I haven't gotten into), so new LayoutPanels were needed, but does this mean the previous panels need to be deprecated? I've looked into updating my (for example) DockPanels to DockLayoutPanels and they aren't close to the same. I've just started and I've already come up with: * Docs say you must use standards mode (not a big problem) * Docs say you should use RootLayoutPanel instead of RootPanel, but I can't do this because I need to grab specific components from the DOM with RootPanel.get(String) * The DockLayoutPanel constructor takes a unit (for what?) * The DockLayoutPanel takes a size parameter when adding an element (but I don't know what the size is) * The DockLayoutPanel isn't a cell panel so you can't set alignment (there is likely a way around this) So now I have 500 warnings in my IDE and no easy way to fix them. I completely understand that code needs to be deprecated from time to time, but I don't feel like it was done with reasonable alternatives nor do I feel like it was ready to make official. Looking at the Showcase it still has DockPanel as one of the layout options (included with other deprecated items) and no usage of DockLayoutPanel. Do I have any other alternatives other than reverting back to 2.0.x? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help with Custom GWT RPC
Also, in the discussion I saw about this, it was said that it was more secure to send the session ID in the RPC itself instead of getting it from the header/cookie. Why is this? Does GWT add something extra like a hash to make sure the RPC hasn't been tampered with? On Dec 29, 9:24 am, Falcon wrote: > I'm trying to send the session ID with every RPC request my GWT > application makes and handle our login context. On the server, it > looks like you can handle that by overriding > onAfterRequestDeserialized() and onAfterResponseSerialized() (we don't > need to add any information to the outgoing payload, just destroy the > login context, so we can do this after serialization). > > However, I'm not sure what I need to override on the client since > RemoteService is just an interface. I know GWT is doing some magic > with GWT.create(). Ideally, I'd like to extend RemoteService with a > new class, then extend that new class for all of my RPCs that needed > to send the session IDs automatically and then put the session ID > somewhere in the payload before the RPC was serialized to send across > the wire to the server. This just seems to make more sense to me than > having the session ID be a part of every single RPC method signature. > > Any help would be appreciated! Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help with Custom GWT RPC
> > *Also, in the discussion I saw about this, it was said that it was > more secure to send the session ID in the RPC itself instead of getting > it from the header/cookie. Why is this? Does GWT add something extra like a > hash to make sure the RPC hasn't been tampered with?* * * *GWT doesn't do anything special with RPC to make it tamper-proof. * The cookie is treated specially by the browser. The browser will automatically send the cookie to the server regardless of any client or server code explicitly asking for it. If you rely blindly on it, your code will be susceptible to CSRF attacks. A header cannot be manipulated easily. If you "double-submit the session id" - once in a custom header and once in the session cookie - and then compare that both the ids are same - you prevent CSRF. If you prefer, you can also send the header as a GET parameter. But why maintain the session id in the cookie if it is such a hassle? Because that way you can leverage your application servers/frameworks inbuilt session handling mechanism. There is no point in re-inventing the wheel. If you haven't done so, please read GWT security<http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications?pli=1>to understand why this "double submit session id" approach works. For code, see notes below - *Client Side* 1. RPC async interface implements ServiceDefTarget. Using this interface, you can set a custom RpcRequestBuilder 2. In your custom RpcRequestBuilder, override the doCreate() call super.doCreate() and get an instance of RequestBuilder 3. Once you get the instance of RequestBuilder - add a custom http header via the setHeader() method. The value of this header would be the session id. 4. See code below - //In a global file public static final RpcRequestBuilder global_rpc_request_builder = new RpcRequestBuilder() { @Override protected RequestBuilder doCreate(String serviceEntryPoint) { /* * This RequestBuilder is used to make a RPC request */ RequestBuilder builder = super.doCreate(serviceEntryPoint); builder.setHeader("SESSION_ID", getSessionIdFromCookie()); return builder; } }; //Before invoking RPC method GreetingServiceAsync greetingService = GWT.create(GreetingService.class); ((ServiceDefTarget)greetingService).setRpcRequestBuilder(global_rpc_request_builder); //Now invoke the RPC method greetingService.greetServer("Hello World", callback); *Server side* This is straightforward - read the header from the request object, and compare the session id in header with the one you get from the session cookie. --Sri On 29 December 2010 21:01, Falcon wrote: > Also, in the discussion I saw about this, it was said that it was more > secure to send the session ID in the RPC itself instead of getting it > from the header/cookie. Why is this? Does GWT add something extra like > a hash to make sure the RPC hasn't been tampered with? > > On Dec 29, 9:24 am, Falcon wrote: > > I'm trying to send the session ID with every RPC request my GWT > > application makes and handle our login context. On the server, it > > looks like you can handle that by overriding > > onAfterRequestDeserialized() and onAfterResponseSerialized() (we don't > > need to add any information to the outgoing payload, just destroy the > > login context, so we can do this after serialization). > > > > However, I'm not sure what I need to override on the client since > > RemoteService is just an interface. I know GWT is doing some magic > > with GWT.create(). Ideally, I'd like to extend RemoteService with a > > new class, then extend that new class for all of my RPCs that needed > > to send the session IDs automatically and then put the session ID > > somewhere in the payload before the RPC was serialized to send across > > the wire to the server. This just seems to make more sense to me than > > having the session ID be a part of every single RPC method signature. > > > > Any help would be appreciated! Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-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. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help with Custom GWT RPC
Thanks Sri. That makes complete sense. I'd totally forgotten about CSRF. On Dec 29, 11:12 am, Sripathi Krishnan wrote: > > *Also, in the discussion I saw about this, it was said that it was > > more secure to send the session ID in the RPC itself instead of getting > > it from the header/cookie. Why is this? Does GWT add something extra like a > > hash to make sure the RPC hasn't been tampered with?* > > * > * > *GWT doesn't do anything special with RPC to make it tamper-proof. * > > The cookie is treated specially by the browser. The browser will > automatically send the cookie to the server regardless of any client or > server code explicitly asking for it. If you rely blindly on it, your code > will be susceptible to CSRF attacks. > > A header cannot be manipulated easily. If you "double-submit the session id" > - once in a custom header and once in the session cookie - and then compare > that both the ids are same - you prevent CSRF. If you prefer, you can also > send the header as a GET parameter. > > But why maintain the session id in the cookie if it is such a hassle? > Because that way you can leverage your application servers/frameworks > inbuilt session handling mechanism. There is no point in re-inventing the > wheel. > > If you haven't done so, please read GWT > security<http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gw...>to > understand why this "double submit session id" approach works. > > For code, see notes below - > > *Client Side* > > 1. RPC async interface implements ServiceDefTarget. Using this interface, > you can set a custom RpcRequestBuilder > 2. In your custom RpcRequestBuilder, override the doCreate() call > super.doCreate() and get an instance of RequestBuilder > 3. Once you get the instance of RequestBuilder - add a custom http header > via the setHeader() method. The value of this header would be the session > id. > 4. See code below - > > //In a global file > public static final RpcRequestBuilder global_rpc_request_builder = new > RpcRequestBuilder() { > �...@override > protected RequestBuilder doCreate(String serviceEntryPoint) { > /* > * This RequestBuilder is used to make a RPC request > */ > RequestBuilder builder = super.doCreate(serviceEntryPoint); > builder.setHeader("SESSION_ID", getSessionIdFromCookie()); > return builder; > > } > }; > > //Before invoking RPC method > GreetingServiceAsync greetingService = GWT.create(GreetingService.class); > ((ServiceDefTarget)greetingService).setRpcRequestBuilder(global_rpc_request_builder); > > //Now invoke the RPC method > greetingService.greetServer("Hello World", callback); > > *Server side* > This is straightforward - read the header from the request object, and > compare the session id in header with the one you get from the session > cookie. > > --Sri > > On 29 December 2010 21:01, Falcon wrote: > > > Also, in the discussion I saw about this, it was said that it was more > > secure to send the session ID in the RPC itself instead of getting it > > from the header/cookie. Why is this? Does GWT add something extra like > > a hash to make sure the RPC hasn't been tampered with? > > > On Dec 29, 9:24 am, Falcon wrote: > > > I'm trying to send the session ID with every RPC request my GWT > > > application makes and handle our login context. On the server, it > > > looks like you can handle that by overriding > > > onAfterRequestDeserialized() and onAfterResponseSerialized() (we don't > > > need to add any information to the outgoing payload, just destroy the > > > login context, so we can do this after serialization). > > > > However, I'm not sure what I need to override on the client since > > > RemoteService is just an interface. I know GWT is doing some magic > > > with GWT.create(). Ideally, I'd like to extend RemoteService with a > > > new class, then extend that new class for all of my RPCs that needed > > > to send the session IDs automatically and then put the session ID > > > somewhere in the payload before the RPC was serialized to send across > > > the wire to the server. This just seems to make more sense to me than > > > having the session ID be a part of every single RPC method signature. > > > > Any help would be appreciated! Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. &
Re: please Help me GWT Listbox
Not sure if I understand your requirement; but are you looking to allow the user select multiple options from a list?? If so, there is a GWT widget: ListBox ( http://gwt.google.com/samples/Showcase/Showcase.html#!CwListBox) -- 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: please Help me GWT Listbox
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/ListBox.html Based on the javadoc, you should see what you need to add elements to a ListBox. If this is not what you needed, please explain further. On Jan 3, 3:57 am, vijay gohel wrote: > hi, > > please Help Me in Listbox widget > > i want to add option Group like "Select tag's Option group" in List > box > > How it is Possible. i don't Know. > > Please Help me on it > > thanks in advance > > Regards, > Vijay Gohel -- 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: please Help me GWT Listbox
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/548749fc1cef2ae8 On Jan 3, 10:57 am, vijay gohel wrote: > hi, > > please Help Me in Listbox widget > > i want to add option Group like "Select tag's Option group" in List > box > > How it is Possible. i don't Know. > > Please Help me on it > > thanks in advance > > Regards, > Vijay Gohel -- 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: please Help me GWT Listbox
Not sure if you can do this with ListBox, but you can try constructing this through DOM manipulation using SelectElement, OptGroupElement and OptionElement On Jan 5, 10:34 pm, vijay gohel wrote: > i want aout put like > > Group1 > Item1-1 > Item1-2 > Item1-3 > Item1-4 > Group2 > Item2-1 > Item2-2 > Item2-3 > Item2-4 > etc > > for that in HTML > > there is option in "Select Tag" and Option in "Select Tag" is > "optiongroup" > > i want that's output in get list box > > thanks > > Vijay -- 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: please Help me GWT Listbox
Vijay, if you can't figure this out using Y2i's suggestion, consider using a Tree rather than a ListBox. http://gwt.google.com/samples/Showcase/Showcase.html#!CwTree On Jan 6, 2:18 am, Y2i wrote: > Not sure if you can do this with ListBox, but you can try constructing > this through DOM manipulation using SelectElement, OptGroupElement and > OptionElement > > On Jan 5, 10:34 pm, vijay gohel wrote: > > > i want aout put like > > > Group1 > > Item1-1 > > Item1-2 > > Item1-3 > > Item1-4 > > Group2 > > Item2-1 > > Item2-2 > > Item2-3 > > Item2-4 > > etc > > > for that in HTML > > > there is option in "Select Tag" and Option in "Select Tag" is > > "optiongroup" > > > i want that's output in get list box > > > thanks > > > Vijay -- 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: please Help me GWT Listbox
Group 1 -Original Message- From: vijay gohel Sent: 06/01/2011 12:04:25 pm Subject: please Help me GWT Listbox i want aout put like Group1 Item1-1 Item1-2 Item1-3 Item1-4 Group2 Item2-1 Item2-2 Item2-3 Item2-4 etc for that in HTML there is option in "Select Tag" and Option in "Select Tag" is "optiongroup" i want that's output in get list box thanks Vijay -- 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. -- 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.
Unable to load image, please help
Hi, Im trying load an image from the server using RPC, the problem is that it always fails to load the image and throws the following error: com.google.gwt.user.client.rpc.StatusCodeException: 403 Error 403 FORBIDDEN HTTP ERROR 403 Problem accessing /diskmonitor/. Reason: FORBIDDENPowered by Jetty:// Im implementing my classes as the following: public class ChartImage extends Image { private UpdatePlotsServiceAsync plotService; public ChartImage(String hostname) { super(); /* * Setup connection to chart generator service. */ plotService = (UpdatePlotsServiceAsync) GWT.create(UpdatePlotsService.class); ServiceDefTarget endpoint = (ServiceDefTarget)plotService; String url = GWT.getModuleBaseURL()+""; System.out.println(url); endpoint.setServiceEntryPoint(url); /* * Setup the callback from the chart generator service. */ AsyncCallback callback = new AsyncCallback() { /* * If the call was successful, we will get back the name of the chart * that was created and stored on the server. */ public void onSuccess(String s) { String chartName = (String)s; String imageUrl = GWT.getModuleBaseURL() + chartName; setUrl(imageUrl); } /* * Something went wrong with the call. Handle the issue how you'd like. */ public void onFailure(Throwable ex) { System.out.println("Failed to load image"); ex.printStackTrace(); } }; /* * Make the call to the chart generator service with the previously created * callback. */ plotService.getImagesPaths("default", callback); /* * Since we've made an asynchronous call, we don't need to do anything further. * The callback object will handle the remainder of the work for us. */ } } The image is generated in the server side using JFreeChart public class UpdatePlotsServiceImpl extends RemoteServiceServlet implements UpdatePlotsService { @Override public String getImagesPaths(String hostname) { String chartName = ""; /* * Create the data for the pie chart */ DefaultPieDataset dataset = new DefaultPieDataset(); //Fake Data dataset.setValue("Available", 71); dataset.setValue("Used", 39); String title = "Data at:"+ info.getHostname()+"-"+ info.getLocation(); JFreeChart chart = ChartFactory.createPieChart(title, dataset, true, false, false); File file = new File("chart.png"); //Save the image try { ChartUtilities.saveChartAsPNG(file, chart, 800, 600); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return file.getName(); } } Please 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.
Help, UIBinder and mixed mode HTML
I have a UIBinder file that specifies a HTMLPanel that contains a mix of plain HTML and GWT widgets. If I don't bind any of the variables, the Widget will load correctly and display. As soon as I bind a UI field in my code including the @UIField definition, @UiField TextBox userid; then initializing the Widget fails in a NPE. Thanks for any help in advance. John Gentilin This is the exception java.lang.NullPointerException: null at com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java: 61) at com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java: 1) at com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController.<init> (RegistrationController.java:37) at com.CloudTvApps.PicRollr.client.PicRollrEntryPoint.onModuleLoad(PicRollrEntryPoint.java: 32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:680) UIBinder definition http://dl.google.com/gwt/DTD/xhtml.ent";> User ID: Password: Confirm Password: Name: E-mail: I agree with the terms of service Register -- 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: Cell Tree Indentation PLEASE HELP!!
Did you know you can search the group's archives? Using "cell tree indentation", there are 2 results, the first one being: https://groups.google.com/d/msg/google-web-toolkit/_jE_CXA4ijs/4APQax_iisUJ -- 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: Cell Tree Indentation PLEASE HELP!!
Sorry My bad! Thank you! t -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
If your server impl is getting called, it's not really a GWT question, but I notice you're trying to use smtp.gmail.com as your SMTP host. I highly doubt that's allowed due to spam potential. /dmc On Mon, Feb 28, 2011 at 5:28 PM, GrahamH wrote: > Hi all, > > Im trying to set up my GWT app so that it can send emails. > > I have the code to send the email in a server-side servlet class. I > have downloaded the Java Mail API and the JAF and included both the > mail.jar and the activation.jar files to the external jars. > > Here is my Code: > > import java.util.Properties; > > import javax.mail.Message; > import javax.mail.MessagingException; > import javax.mail.Session; > import javax.mail.Transport; > import javax.mail.Message.RecipientType; > import javax.mail.internet.AddressException; > import javax.mail.internet.InternetAddress; > import javax.mail.internet.MimeMessage; > import javax.activation.*; > > import com.google.gwt.user.server.rpc.RemoteServiceServlet; > > import cs.ubc.ca.cs310.HockeyPool.client.EmailService; > > public class EmailServiceImpl extends RemoteServiceServlet implements > EmailService { >/** > * > */ >private static final long serialVersionUID = 1L; > >public void sendEmail(String email){ >Properties props = System.getProperties(); >props.put("mail.smtp.host", "smtp.gmail.com"); >props.put("mail.smtp.port", "465"); > >Session mailSession = Session.getDefaultInstance(props); >Message simpleMessage = new MimeMessage(mailSession); > >InternetAddress fromAddress = null; >InternetAddress toAddress = null; >try { >fromAddress = new InternetAddress(" > gharold...@gmail.com"); >toAddress = new InternetAddress(email); >} catch (AddressException e) { >// TODO Auto-generated catch block >e.printStackTrace(); >} > >try { >simpleMessage.setFrom(fromAddress); >simpleMessage.setRecipient(RecipientType.TO, > toAddress); >simpleMessage.setSubject("HockeyPool PoolAdmin > Invitation"); >simpleMessage.setText("Hello,You have > been added as a > Pool Administrator for our Hockey Pool System"); > >Transport.send(simpleMessage); >System.out.println("email sent"); >} catch (MessagingException e) { >// TODO Auto-generated catch block >e.printStackTrace(); >} >} > } > > When i GWT Compile i get no errors at all. > Even when i debug the program it executes all of this code just fine > and never hits an exception but the email is NEVER sent. > > Another thing is every single post about using Java Mail tells me i > need the activation.jar but the following line gives me a warning that > the activiation is never used anywhere in my class > > import javax.activation.*; > > Any help is much appreciated > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
> When i GWT Compile i get no errors at all. GWT Compile is client side. What you're doing is done, and can only be done, on the server. Where are you trying to send the mail from? Greg On Feb 28, 4:28 pm, GrahamH wrote: > Hi all, > > Im trying to set up my GWT app so that it can send emails. > > I have the code to send the email in a server-side servlet class. I > have downloaded the Java Mail API and the JAF and included both the > mail.jar and the activation.jar files to the external jars. > > Here is my Code: > > import java.util.Properties; > > import javax.mail.Message; > import javax.mail.MessagingException; > import javax.mail.Session; > import javax.mail.Transport; > import javax.mail.Message.RecipientType; > import javax.mail.internet.AddressException; > import javax.mail.internet.InternetAddress; > import javax.mail.internet.MimeMessage; > import javax.activation.*; > > import com.google.gwt.user.server.rpc.RemoteServiceServlet; > > import cs.ubc.ca.cs310.HockeyPool.client.EmailService; > > public class EmailServiceImpl extends RemoteServiceServlet implements > EmailService { > /** > * > */ > private static final long serialVersionUID = 1L; > > public void sendEmail(String email){ > Properties props = System.getProperties(); > props.put("mail.smtp.host", "smtp.gmail.com"); > props.put("mail.smtp.port", "465"); > > Session mailSession = Session.getDefaultInstance(props); > Message simpleMessage = new MimeMessage(mailSession); > > InternetAddress fromAddress = null; > InternetAddress toAddress = null; > try { > fromAddress = new > InternetAddress("gharold...@gmail.com"); > toAddress = new InternetAddress(email); > } catch (AddressException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > try { > simpleMessage.setFrom(fromAddress); > simpleMessage.setRecipient(RecipientType.TO, > toAddress); > simpleMessage.setSubject("HockeyPool PoolAdmin > Invitation"); > simpleMessage.setText("Hello,You have > been added as a > Pool Administrator for our Hockey Pool System"); > > Transport.send(simpleMessage); > System.out.println("email sent"); > } catch (MessagingException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > } > > } > > When i GWT Compile i get no errors at all. > Even when i debug the program it executes all of this code just fine > and never hits an exception but the email is NEVER sent. > > Another thing is every single post about using Java Mail tells me i > need the activation.jar but the following line gives me a warning that > the activiation is never used anywhere in my class > > import javax.activation.*; > > Any help is much appreciated > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
any idea how i would go about sending an email? Do i have to use a different host or do i have to add my user validation? I don't know the slightest thing about sending emails in code using SMTP, so any direction here would be great. Thanks Graham On Mon, Feb 28, 2011 at 2:55 PM, David Chandler wrote: > If your server impl is getting called, it's not really a GWT question, but > I notice you're trying to use smtp.gmail.com as your SMTP host. I highly > doubt that's allowed due to spam potential. > > /dmc > > > On Mon, Feb 28, 2011 at 5:28 PM, GrahamH wrote: > >> Hi all, >> >> Im trying to set up my GWT app so that it can send emails. >> >> I have the code to send the email in a server-side servlet class. I >> have downloaded the Java Mail API and the JAF and included both the >> mail.jar and the activation.jar files to the external jars. >> >> Here is my Code: >> >> import java.util.Properties; >> >> import javax.mail.Message; >> import javax.mail.MessagingException; >> import javax.mail.Session; >> import javax.mail.Transport; >> import javax.mail.Message.RecipientType; >> import javax.mail.internet.AddressException; >> import javax.mail.internet.InternetAddress; >> import javax.mail.internet.MimeMessage; >> import javax.activation.*; >> >> import com.google.gwt.user.server.rpc.RemoteServiceServlet; >> >> import cs.ubc.ca.cs310.HockeyPool.client.EmailService; >> >> public class EmailServiceImpl extends RemoteServiceServlet implements >> EmailService { >>/** >> * >> */ >>private static final long serialVersionUID = 1L; >> >>public void sendEmail(String email){ >>Properties props = System.getProperties(); >>props.put("mail.smtp.host", "smtp.gmail.com"); >>props.put("mail.smtp.port", "465"); >> >>Session mailSession = Session.getDefaultInstance(props); >>Message simpleMessage = new MimeMessage(mailSession); >> >>InternetAddress fromAddress = null; >>InternetAddress toAddress = null; >>try { >>fromAddress = new InternetAddress(" >> gharold...@gmail.com"); >>toAddress = new InternetAddress(email); >>} catch (AddressException e) { >>// TODO Auto-generated catch block >>e.printStackTrace(); >>} >> >>try { >>simpleMessage.setFrom(fromAddress); >>simpleMessage.setRecipient(RecipientType.TO, >> toAddress); >>simpleMessage.setSubject("HockeyPool PoolAdmin >> Invitation"); >>simpleMessage.setText("Hello,You have >> been added as a >> Pool Administrator for our Hockey Pool System"); >> >>Transport.send(simpleMessage); >>System.out.println("email sent"); >>} catch (MessagingException e) { >>// TODO Auto-generated catch block >>e.printStackTrace(); >>} >>} >> } >> >> When i GWT Compile i get no errors at all. >> Even when i debug the program it executes all of this code just fine >> and never hits an exception but the email is NEVER sent. >> >> Another thing is every single post about using Java Mail tells me i >> need the activation.jar but the following line gives me a warning that >> the activiation is never used anywhere in my class >> >> import javax.activation.*; >> >> Any help is much appreciated >> Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > > > -- > David Chandler > Developer Programs Engineer, Google Web Toolkit > w: http://code.google.com/ > b: http://googlewebtoolkit.blogspot.com/ > t: @googledevtools > > -- > 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. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
Again, im not quite sure what im trying to send emails from, i can probably use my email, which is a gmail account. I tried that and i also tried adding my account and password to the properties but it still does nothing On Mon, Feb 28, 2011 at 3:04 PM, Greg Dougherty wrote: > > When i GWT Compile i get no errors at all. > > GWT Compile is client side. What you're doing is done, and can only > be done, on the server. Where are you trying to send the mail from? > > Greg > > On Feb 28, 4:28 pm, GrahamH wrote: > > Hi all, > > > > Im trying to set up my GWT app so that it can send emails. > > > > I have the code to send the email in a server-side servlet class. I > > have downloaded the Java Mail API and the JAF and included both the > > mail.jar and the activation.jar files to the external jars. > > > > Here is my Code: > > > > import java.util.Properties; > > > > import javax.mail.Message; > > import javax.mail.MessagingException; > > import javax.mail.Session; > > import javax.mail.Transport; > > import javax.mail.Message.RecipientType; > > import javax.mail.internet.AddressException; > > import javax.mail.internet.InternetAddress; > > import javax.mail.internet.MimeMessage; > > import javax.activation.*; > > > > import com.google.gwt.user.server.rpc.RemoteServiceServlet; > > > > import cs.ubc.ca.cs310.HockeyPool.client.EmailService; > > > > public class EmailServiceImpl extends RemoteServiceServlet implements > > EmailService { > > /** > > * > > */ > > private static final long serialVersionUID = 1L; > > > > public void sendEmail(String email){ > > Properties props = System.getProperties(); > > props.put("mail.smtp.host", "smtp.gmail.com"); > > props.put("mail.smtp.port", "465"); > > > > Session mailSession = Session.getDefaultInstance(props); > > Message simpleMessage = new MimeMessage(mailSession); > > > > InternetAddress fromAddress = null; > > InternetAddress toAddress = null; > > try { > > fromAddress = new InternetAddress(" > gharold...@gmail.com"); > > toAddress = new InternetAddress(email); > > } catch (AddressException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } > > > > try { > > simpleMessage.setFrom(fromAddress); > > simpleMessage.setRecipient(RecipientType.TO, > toAddress); > > simpleMessage.setSubject("HockeyPool PoolAdmin > Invitation"); > > simpleMessage.setText("Hello,You have > been added as a > > Pool Administrator for our Hockey Pool System"); > > > > Transport.send(simpleMessage); > > System.out.println("email sent"); > > } catch (MessagingException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } > > } > > > > } > > > > When i GWT Compile i get no errors at all. > > Even when i debug the program it executes all of this code just fine > > and never hits an exception but the email is NEVER sent. > > > > Another thing is every single post about using Java Mail tells me i > > need the activation.jar but the following line gives me a warning that > > the activiation is never used anywhere in my class > > > > import javax.activation.*; > > > > Any help is much appreciated > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
race(); >> > } >> > >> > try { >> > simpleMessage.setFrom(fromAddress); >> > simpleMessage.setRecipient(RecipientType.TO, >> toAddress); >> > simpleMessage.setSubject("HockeyPool PoolAdmin >> Invitation"); >> > simpleMessage.setText("Hello,You >> have been added as a >> > Pool Administrator for our Hockey Pool System"); >> > >> > Transport.send(simpleMessage); >> > System.out.println("email sent"); >> > } catch (MessagingException e) { >> > // TODO Auto-generated catch block >> > e.printStackTrace(); >> > } >> > } >> > >> > } >> > >> > When i GWT Compile i get no errors at all. >> > Even when i debug the program it executes all of this code just fine >> > and never hits an exception but the email is NEVER sent. >> > >> > Another thing is every single post about using Java Mail tells me i >> > need the activation.jar but the following line gives me a warning that >> > the activiation is never used anywhere in my class >> > >> > import javax.activation.*; >> > >> > Any help is much appreciated >> > Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > -- > 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. > -- -- A. Stevko === "If everything seems under control, you're just not going fast enough." M. Andretti -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
Graham, "From" isn't your email account, "From" is "which half of your application, the client, or the server?" You can NOT send email from the client, but that so0und't like what you're trying to do. Greg On Feb 28, 8:27 pm, Graham Haroldson wrote: > Again, im not quite sure what im trying to send emails from, i can > probably use my email, which is a gmail account. I tried that and i also > tried adding my account and password to the properties but it still does > nothing > > On Mon, Feb 28, 2011 at 3:04 PM, Greg Dougherty > wrote: > > > > When i GWT Compile i get no errors at all. > > > GWT Compile is client side. What you're doing is done, and can only > > be done, on the server. Where are you trying to send the mail from? > > > Greg > > > On Feb 28, 4:28 pm, GrahamH wrote: > > > Hi all, > > > > Im trying to set up my GWT app so that it can send emails. > > > > I have the code to send the email in a server-side servlet class. I > > > have downloaded the Java Mail API and the JAF and included both the > > > mail.jar and the activation.jar files to the external jars. > > > > Here is my Code: > > > > import java.util.Properties; > > > > import javax.mail.Message; > > > import javax.mail.MessagingException; > > > import javax.mail.Session; > > > import javax.mail.Transport; > > > import javax.mail.Message.RecipientType; > > > import javax.mail.internet.AddressException; > > > import javax.mail.internet.InternetAddress; > > > import javax.mail.internet.MimeMessage; > > > import javax.activation.*; > > > > import com.google.gwt.user.server.rpc.RemoteServiceServlet; > > > > import cs.ubc.ca.cs310.HockeyPool.client.EmailService; > > > > public class EmailServiceImpl extends RemoteServiceServlet implements > > > EmailService { > > > /** > > > * > > > */ > > > private static final long serialVersionUID = 1L; > > > > public void sendEmail(String email){ > > > Properties props = System.getProperties(); > > > props.put("mail.smtp.host", "smtp.gmail.com"); > > > props.put("mail.smtp.port", "465"); > > > > Session mailSession = Session.getDefaultInstance(props); > > > Message simpleMessage = new MimeMessage(mailSession); > > > > InternetAddress fromAddress = null; > > > InternetAddress toAddress = null; > > > try { > > > fromAddress = new InternetAddress(" > > gharold...@gmail.com"); > > > toAddress = new InternetAddress(email); > > > } catch (AddressException e) { > > > // TODO Auto-generated catch block > > > e.printStackTrace(); > > > } > > > > try { > > > simpleMessage.setFrom(fromAddress); > > > simpleMessage.setRecipient(RecipientType.TO, > > toAddress); > > > simpleMessage.setSubject("HockeyPool PoolAdmin > > Invitation"); > > > simpleMessage.setText("Hello,You have > > been added as a > > > Pool Administrator for our Hockey Pool System"); > > > > Transport.send(simpleMessage); > > > System.out.println("email sent"); > > > } catch (MessagingException e) { > > > // TODO Auto-generated catch block > > > e.printStackTrace(); > > > } > > > } > > > > } > > > > When i GWT Compile i get no errors at all. > > > Even when i debug the program it executes all of this code just fine > > > and never hits an exception but the email is NEVER sent. > > > > Another thing is every single post about using Java Mail tells me i > > > need the activation.jar but the following line gives me a warning that > > > the activiation is never used anywhere in my class > > > > import javax.activation.*; > > > > Any help is much appreciated > > > Thanks > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
On 1 March 2011 17:29, Greg Dougherty wrote: > "From" isn't your email account, "From" is "which half of your > application, the client, or the server?" > > You can NOT send email from the client, but that so0und't like what > you're trying to do. *OF COURSE* you can send an email from the client. What do you think your desktop is, a server? :-) You do need to be able to *connect* to a server but you don't have to be running *on* a server. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
On 1 March 2011 02:27, Graham Haroldson wrote: > Again, im not quite sure what im trying to send emails from, i can > probably use my email, which is a gmail account. I tried that and i also > tried adding my account and password to the properties but it still does > nothing Get it working as a normal Java application so you're sure you have all your settings correct. Then move it into your GWT code. Note that while it's possible to do this from the client, I don't think it's a good idea to put your credentials in your client code (you're basically telling anyone who uses your app what your password is). So create some sort of message that you can send from the client to the server and let the server handle sending the actual email. Then you don't have to add all the JavaMail related JARs to your client code. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RE: help sending emails in GWT
Wow, so you're saying you think that randomly picked up bits of JavaScript should be able to take over your computer and send emails from your computer to whomever they want? Every spammer in the world must love you. Fortunately, the browser makers disagree. You can generate a "mail to" link, which will give the user the option to send some mail (outside the scope of your web application). Your client app can send information to your servlet, and the servlet can use that information to send a mail message. Your client web app can NOT, and SHOULD not be able to, access the JavaMail API, or any other API that would let it send email FROM THE CLIENT w/o user interaction that is outside the control of your web app. >Gregory Dougherty | Systems Programmer | Bioinformatics Support Unit >Division of Research and Education Support Systems | dougherty.greg...@mayo.edu | 507-284-8493 >_ >Mayo Clinic | 200 First Street SW | Rochester, MN 55905 | www.mayoclinic.org > > -Original Message- From: Hilco Wijbenga [mailto:hilco.wijbe...@gmail.com] Sent: Tuesday, March 01, 2011 12:12 PM To: google-web-toolkit@googlegroups.com Cc: Dougherty, Gregory T. Subject: Re: help sending emails in GWT On 1 March 2011 17:29, Greg Dougherty wrote: > "From" isn't your email account, "From" is "which half of your > application, the client, or the server?" > > You can NOT send email from the client, but that so0und't like what > you're trying to do. *OF COURSE* you can send an email from the client. What do you think your desktop is, a server? :-) You do need to be able to *connect* to a server but you don't have to be running *on* a server. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
On 1 March 2011 19:38, Dougherty, Gregory T. wrote: > Wow, so you're saying you think that randomly picked up bits of > JavaScript should be able to take over your computer and send emails > from your computer to whomever they want? > > Every spammer in the world must love you. > > Fortunately, the browser makers disagree. Sigh, yes of course. I saw "client" and wasn't thinking "browser + SOP". :-) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
Yep, it's easy to forget the difference. On Mar 1, 2:10 pm, Hilco Wijbenga wrote: > On 1 March 2011 19:38, Dougherty, Gregory T. > wrote: > > > Wow, so you're saying you think that randomly picked up bits of > > JavaScript should be able to take over your computer and send emails > > from your computer to whomever they want? > > > Every spammer in the world must love you. > > > Fortunately, the browser makers disagree. > > Sigh, yes of course. I saw "client" and wasn't thinking "browser + SOP". :-) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help sending emails in GWT
That difference is the source of confusion over and over again. Browser hosted obfuscated javascriptvs Server hosted java byte code. On Tue, Mar 1, 2011 at 12:17 PM, Greg Dougherty wrote: > Yep, it's easy to forget the difference. > > On Mar 1, 2:10 pm, Hilco Wijbenga wrote: > > On 1 March 2011 19:38, Dougherty, Gregory T. > wrote: > > > > > Wow, so you're saying you think that randomly picked up bits of > > > JavaScript should be able to take over your computer and send emails > > > from your computer to whomever they want? > > > > > Every spammer in the world must love you. > > > > > Fortunately, the browser makers disagree. > > > > Sigh, yes of course. I saw "client" and wasn't thinking "browser + SOP". > :-) > > -- > 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. > > -- -- A. Stevko === "If everything seems under control, you're just not going fast enough." M. Andretti -- 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: Need some help on Editors
On Thursday, March 24, 2011 9:21:00 PM UTC+1, Potate wrote: > > Hi everyone > > I'm having trouble understanding Editors introduced in GWT 2.1. It > sounds like a nice feature to reduce boilerplate code. The Dev Guide > is very very useful, but I couldn't get all the answers >_< > > == > > my first question is about validation and error reporting. > take the Dev Guide example, > > public class PersonEditor extends Dialog implements Editor { > Label nameEditor; > ... > } > > I wish to detect bad names, create a visual feedback upon error, and > bubble this information up so the caller knows not to proceed further. > I see there is recordError in EditorDelegate. Is it the right method > to tackle this? Can I get an example please? Yes, have a look at the DynatableRf sample and its ZipPlusFourBox widget. It extends ValueBox, so actually, have a look at the ValueBoxEditor adapter from GWT. > I have a lot fields to > edit. I hope I don't have to create bunch delegates. The less code the > better =) > The delegate is provided to you by the editor framework, you have to implement HasEditorDelegate. > == > > second question is about "Q: How can I edit objects with a large > number of properties?" from the FAQ section > It has the following example > class BagOfStateBiographicalEditor implements Editor { > AddressEditor address; > Label name; > } > > class BagOfStateUserPreferencesEditor implements Editor { > CheckBox likesCats; > CheckBox likesDogs; > } > > How do I chain up the two editors? Should I use a CompositeEditor? or > a list of drivers? What do you mean by "chaining them"? à la wizard? then either you use them as they do in the example and just adjust their visibility (use a DeckPanel or TabPanel/TabLayoutPanel?), or you use 2 drivers. I think you don't generally need 2 drivers; and you don't need a CompositeEditor here, CompositeEditor is for editing an object that's composed of zero or more other objects (zero or one => OptionalEditor, a List<> of objects => ListEditor) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help: How to refresh Button Text?
Hi All, I am new to GWT and was trying to create an horizontal panel with 5 Buttons on it. So far, so good. Point is that when I implemented the method that would define what to be written in each Button it did not work. Can anyone helpe me? Thanks, Rodrigo public void onModuleLoad() { hPanel.setSpacing(10); // Add some content to the panel hPanel.add(Stop1Button); Stop1Button.addStyleName("B1"); hPanel.add(Stop2Button); Stop2Button.addStyleName("B2"); hPanel.add(Stop3Button); Stop3Button.addStyleName("B3"); hPanel.add(Stop4Button); Stop4Button.addStyleName("B2"); hPanel.add(Stop5Button); Stop5Button.addStyleName("B1"); // Associate the Main panel - hPanel - with the HTML host page. RootPanel.get("stopList").add(hPanel); // Setup timer to refresh list periodically. Timer refreshTimer = new Timer() { @Override public void run() { refreshStopList(); } }; refreshTimer.scheduleRepeating(REFRESH_INTERVAL); } private void refreshStopList() { // For testing purpose, generate a second screen with different text then the first one // hPanel is cleared hPanel.clear(); // I could do it altogether , but am testing if it is working step by step // Text generated in tester is associated with a variable textButton1 = "Test 1"; // Text received is attributed to a button Stop1Button.setText(textButton1); // Button is added to the Screen. hPanel.add(Stop1Button); // hPanel is associated with the screen RootPanel.get("stopList").add(hPanel); } -- 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: Need some help on Editors
hi Thomas thank you for the reply. After reading your email and the referenced examples, it makes much more sense now. I have one more question poped out. How does the editor framework work with inheritance? say I have interface Base { String getBaseProperty() } interface Child extends Base { String getChildProperty() } currently, without the editor framework, I have one view that displays both Base and Child. I do a check with instanceof with the object to be displayed and toggle visibilities of widgets accordingly. How might similar functionality be implemented with the editor framework? I poked around but had no luck. class View implements Editor did not work because the child property sub editor was complaining about no child property getter in Base class View implements Editor could work, but I have to wrap Base as a Child, which somewhat breaks the meaning of inheritance class ChildView extends View implements Editor doesn't work because java does not allow implementing the same interface twice thanks On Mar 24, 9:05 pm, Thomas Broyer wrote: > On Thursday, March 24, 2011 9:21:00 PM UTC+1, Potate wrote: > > > Hi everyone > > > I'm having trouble understanding Editors introduced in GWT 2.1. It > > sounds like a nice feature to reduce boilerplate code. The Dev Guide > > is very very useful, but I couldn't get all the answers >_< > > > == > > > my first question is about validation and error reporting. > > take the Dev Guide example, > > > public class PersonEditor extends Dialog implements Editor { > > Label nameEditor; > > ... > > } > > > I wish to detect bad names, create a visual feedback upon error, and > > bubble this information up so the caller knows not to proceed further. > > I see there is recordError in EditorDelegate. Is it the right method > > to tackle this? Can I get an example please? > > Yes, have a look at the DynatableRf sample and its ZipPlusFourBox widget. > It extends ValueBox, so actually, have a look at the ValueBoxEditor adapter > from GWT. > > > I have a lot fields to > > edit. I hope I don't have to create bunch delegates. The less code the > > better =) > > The delegate is provided to you by the editor framework, you have to > implement HasEditorDelegate. > > > > > > > > > > > == > > > second question is about "Q: How can I edit objects with a large > > number of properties?" from the FAQ section > > It has the following example > > class BagOfStateBiographicalEditor implements Editor { > > AddressEditor address; > > Label name; > > } > > > class BagOfStateUserPreferencesEditor implements Editor { > > CheckBox likesCats; > > CheckBox likesDogs; > > } > > > How do I chain up the two editors? Should I use a CompositeEditor? or > > a list of drivers? > > What do you mean by "chaining them"? à la wizard? then either you use them > as they do in the example and just adjust their visibility (use a DeckPanel > or TabPanel/TabLayoutPanel?), or you use 2 drivers. I think you don't > generally need 2 drivers; and you don't need a CompositeEditor here, > CompositeEditor is for editing an object that's composed of zero or more > other objects (zero or one => OptionalEditor, a List<> of objects => > ListEditor) -- 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.
CellTable row header size - Please help
Hi All, I want to set the size of the celltable first row size to constant width. In the CSSof the celltable I am using the property height but there is no diff. Please help. .cellTableHeader { border-bottom: 2px solid #6f7277; padding: 3px 15px; text-align: top; color: #4b4a4a; text-shadow: #ddf 1px 1px 0; overflow: hidden; font:bold; height:2px } -- 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.
Adding scrollbar to celltable - please help
Hi All, This might be very trivial issue but somehow I am not able to add scrollbar to celltable. I am not sure if I am doing this right. I have just set the size of the table to show 3 records and I assumed that the celltable will have a built in feature to display a scrollbar. Any help is appreciated. Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help - Trying to make XWT application
I did the following steps 1) Install Java 2) Install Eclipse 3) Install WindowBuilder, SWT Designer 4) File->New->Project->WindowBuilder\SWT Designer\SWT/JFace Java Project 5) Ctrl-N->SWT Designer\XWT\XWT Application Now I see my project, I can enter designer mode and edit my form, I can edit the source, etc. But when I click Run I get an exception Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/ core/databinding/conversion/IConverter at org.eclipse.e4.xwt.XWTLoaderManager.(XWTLoaderManager.java: 19) at org.eclipse.e4.xwt.XWT.load(XWT.java:379) at com.something.SomeXWTApp.main(SomeXWTApp.java:16) Caused by: java.lang.ClassNotFoundException: org.eclipse.core.databinding.conversion.IConverter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 3 more I don't understand this error. Is my project missing a reference? If so, why is it missing a reference? (isn't that the job of the wizard, to add all the references I need?) Did I use the wizard incorrectly? Thank you in advance for the 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: Need help for storing Sessions
2011/8/4 Foermchen82 > Hi, > > i actual do my first steps with GWT. > Now I want to secure my web application. It is no problem, to build a > login dialog with username and password. > On several websites i have read, that I have to build a secure token > ant store it in a cookie to track the validility of the session. > > For this, I have several questions: > > 1. What, if i can't use cookies. How can I remember, that the user is > still logged in? > >> If you can't use cookies you can: 1) Tell to the user enable cookies (as many web mail clients) 2) Use a token. > 2. If I refresh the page, the login dialog will be shown. How I can > display the last state of the website? > >> You can use place/activities >> system<http://code.google.com/intl/es/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html> . > 3. If I close the browser an open it again, and if I store the token > in a cookie, does the laste state of the session will be restored? I > hope not! If I close the browser, the session should not be reusable > >> The site don't do magic. You can store same information in a cookie and then restore using this information. > 4. I have read, that cookies can possible be a security problem. How > can I prevent this? > >> 1) Don't use cookies 2) Tell me the problems and then I tell how solve. > > Can comebody help me? > > Thank you > > -- > 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. > > -- 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.
Need help with parallel build (ant)
Hello, We are working on a project which has 5 modules and one entry point. Four modules can be build independently, in 0.20 seconds. The main module is called site, it has the entry point and uses all modules. Can you use the ANT parallel tag in this case? If you gwt compile the site module then it doesn't use the existing js code. It compiles everything and takes up to 1 minute. -- 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: install problem help me thanks
Download the latest gwt 2.4.0 sdk from the link "http:// code.google.com/p/google-web-toolkit/downloads/detail? name=gwt-2.4.0.zip". Extract the gwt-2.4.0 zip file to the desired directory. In eclipse IDE configure your corresponding gwt sdk. File-- >New--> WebApplication Project-->configure sdk -->Add -->Installation directory using Browse button. S. Abraham www.DataStoreGwt.com Persist objects directly in GAE On Sep 23, 11:19 am, wisdom white wrote: > when I install gwt the eclipse shows me a error like: > > An error occurred while collecting items to be installed > session context was:(profile=epp.package.jee, > phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, > action=). > No repository found containing: osgi.bundle,com.springsource.javax.jms, > 1.1.0 > > anyone can tell me what should i do 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: Help--GWT-Drag and drop
Did you try gwt-dnd? I'm just getting started with it but it seems pretty good. Lots of example code. http://code.google.com/p/gwt-dnd/ On Thu, Aug 28, 2008 at 5:31 PM, shan <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am new to this group and also the GWT. > > Right now i am learning GWT for my Career. > > i need help regarding Drag and Drop. i found some examples in the > webiste but those are all well advanced one. > > i am looking for a simple drag and drop example for a newbie (like me) > can understand easily. > > i tried one example dragging and dropping a Label.It came good. > > With that same example i tried to drag and drop a Button Widget. i > didn't get that. > > anyone pls help me to write a code for drag and drop a Button > widget.and also any website with the simple sample programs with DND. > > -Thanks a lot. > Shan > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Help with Portal Columns and Titles?
Hello all, I am fairly new to GWT. I have 4 Portal Columns, each with a set of 4 portlets. I want to add a title header and border to each of the 4 columns (and possibly a different BG color) How do I go about doing this? setTitle to a portalcolumn doesnt seem to do the trick. Thanks! -- And alternatively, is there a better method for being able to move boxes or message blocks around between 4 sets of columns? Ideally I'd want the data within those 4 boxes to become one variable also. (so if box 1 had the letter A in it, and box 2 had the letter B in it the resulting value would be AB). Im mostly interested in the titles though. Thanks for your 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Help in gwt Sync conection
On Mon, Sep 1, 2008 at 1:10 PM, Vítor Castro <[EMAIL PROTECTED]> wrote: > how can I do this? Put System.out.println("Final") in the onSuccess method, after you call createNodesProducts, like this: public void onSuccess(Object s) { Vector vectorOfProducts = (Vector)s; createNodesProducts(vectorOfProducts); System.out.println("Final"); } 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Help in gwt Sync conection
On 1 Set, 22:23, "Ian Petersen" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 1, 2008 at 1:10 PM, Vítor Castro <[EMAIL PROTECTED]> wrote: > > how can I do this? > > Put System.out.println("Final") in the onSuccess method, after you > call createNodesProducts, like this: > > public void onSuccess(Object s) { > Vector vectorOfProducts = (Vector)s; > createNodesProducts(vectorOfProducts); > System.out.println("Final"); > > } > > Ian ok, System.out.println("Final"); its a example i used in forum. in reality, the function createNodesProducts(vectorOfProducts), execute many operations, but this operations, they are made after of System in this example. I have to force to implement only the latest instruction after the success of connection,ie: 1 - createNodesProducts(vectorOfProducts) 2 - all instructions in this procedure 3 - the instructions after conection (System.out.println in this example), understand me? thanks, 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Help in gwt Sync conection
On Tue, Sep 2, 2008 at 4:20 AM, Vítor Castro <[EMAIL PROTECTED]> wrote: > ok, System.out.println("Final"); its a example i used in forum. > > in reality, the function createNodesProducts(vectorOfProducts), > execute many operations, but this operations, they are made after of > System in this example. > > I have to force to implement only the latest instruction after the > success of connection,ie: > 1 - createNodesProducts(vectorOfProducts) > 2 - all instructions in this procedure > 3 - the instructions after conection (System.out.println in this > example), > understand me? Yeah, I think I understand you, but I think you're not understanding me. You have approximately two choices: - put the stuff in step 3 in onSuccess - put the stuff in step 3 in a method and invoke that method in onSuccess I say "approximately" because you could get fancy with callback objects (ie. the Observer pattern) and invoke a callback instead of tightly coupling yourself to "step 3", but that's just a generic version of what I've just described. I think you're trying desperately to do something in a synchronous fashion. You need to read this: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd GWT doesn't provide a way to do synchronous connections. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Making GWT Incubator Better - Help!
On 9 oct, 02:51, Kevin <[EMAIL PROTECTED]> wrote: > Using GWT 1.5.2 I checked out gwt/tools and gwt/trunk, then zipped > them up, burned to a CD, then unzipped onto my work machine. > > Next I followed the instruction, "Build and test with ant." > > It says, "From the incubator directory, type ant -Dgwt.home= your gwt jar> test" > > Please tell me what I'm supposed to set to ? > > I've tried, "ant -Dgwt.home="c:\Google Web Toolkit\gwt- > windows-1.5.2\...jar" test" where ... is every jar that exists in the > folder, however it didn't work. > > I also tried, "ant -dgwt.home="d:\...\desktop\incubator\gwt- > incubator.jar" test" where gwt-incubator.java is what I downloaded on > GWT's web site. > > Please tell me what I need to put for . gwt.home="c:\Google Web Toolkit\gwt-windows-1.5.2" (the folder containing the gwt-user.jar and gwt-dev-windows.jar) (my preference is to set the environment variables GWT_HOME and GWT_TOOLS so they're set once and for all projects, Eclipse, etc. but of course YMMV) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Making GWT Incubator Better - Help!
As I understand, I need to do three high-level tasks. 1. Check out gwt-incubator project via SVN 2. Do ant build 3. Package as JAR I'm getting stuck on #2. I checked out gwt-tools, then set my GWT_TOOLS environment variable. Then I checked out trunk. Then I ran the "ant -Dgwt= test" and that completed. Next I reached the Eclipse setup. When I attempt to import projects from trunk, I get a folder with empty contents. Please guide me. Thanks, Kevin On Oct 9, 6:29 am, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 9 oct, 02:51, Kevin <[EMAIL PROTECTED]> wrote: > > > > > > > Using GWT 1.5.2 I checked out gwt/tools and gwt/trunk, then zipped > > them up, burned to a CD, then unzipped onto my work machine. > > > Next I followed the instruction, "Build and test with ant." > > > It says, "From theincubatordirectory, type ant -Dgwt.home= > your gwt jar> test" > > > Please tell me what I'm supposed to set to ? > > > I've tried, "ant -Dgwt.home="c:\Google Web Toolkit\gwt- > > windows-1.5.2\...jar" test" where ... is every jar that exists in the > > folder, however it didn't work. > > > I also tried, "ant -dgwt.home="d:\...\desktop\incubator\gwt- > >incubator.jar" test" where gwt-incubator.java is what I downloaded on > > GWT's web site. > > > Please tell me what I need to put for . > > gwt.home="c:\Google Web Toolkit\gwt-windows-1.5.2" > (the folder containing the gwt-user.jar and gwt-dev-windows.jar) > > (my preference is to set the environment variables GWT_HOME and > GWT_TOOLS so they're set once and for all projects, Eclipse, etc. but > of course YMMV)- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Help with Get Started StockPrice Example
Hi, While reading Remote Procedure Calls in GWT tutorial (http:// code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web- toolkit-doc-1-5&t=GettingStartedRPC), I am having trouble understanding how these two lines in StockWatcher.java work: private StockPriceServiceAsync stockPriceSvc; stockPriceSvc = GWT.create(StockPriceService.class); How can you assign StockPriceService (or its implementation: StockPriceServiceImpl) object to StockPriceServiceAsync while neither StockPriceService nor StockPriceServiceImpl implements StockPriceServiceAsync? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Would LOVE some design help
Hi Andre, What you're planning to do could work, but there are a few thing to note: 1) The UI interaction when submitting "Add product to cart" messages is entirely a function of the API exposed by the Amazon service. Depending on the control given to you there, you may be able to add products behind the scenes while putting up a spinner style dialog box without any other UI interactions or you may not. Double-check what's available to you to see what you can do. 2) If there are UI interactions as a result of adding items to a shopping cart behind the scenes, you can't really freeze or turn the browser off to hide these from view, but you can use something like the GlassPanel in the GWT incubator project. The GlassPanel is essentially a transparent panel that you can place over the entire page to block out user interactions until some given process or action is complete. The only thing to watch out for with the GlassPanel is that it is indeed transparent by default, so although users won't be able to interact with the page as some given action is occurring, they will still be able to see what's going on behind the scenes. You could style the GlassPanel to be completely opaque, but that would still lead to a negative user experience as the user would lose all feedback with the page. Hope that helps, -Sumit Chandel On Thu, Oct 16, 2008 at 1:38 PM, aangel <[EMAIL PROTECTED]> wrote: > > Hi, everyone. > > I am running a store using Amazon's back end (http:// > store.postpeakliving.com). I have no access to the back end whatsoever > but I can change the HTML, add Javascript and thus can use GWT. > > One feature Amazon doesn't give its merchants is the ability to fill > the shopping cart with multiple items using only one click -- a sort > of "buy the kit" functionality. > > I'd like to use GWT to create that. > > Here is what I'm thinking: > * show a dialog box with the message "One moment as we fill your > shopping cart with those products." > * given a list of product SKUs (probably passed via a cookie), send > the "add product to cart" message for each one > > From a design perspective, it would be wonderful if the background > page didn't show that the products were being added. > > So here are my questions: > * is there a way to "turn off" the browser display or "freeze" it so > that I can work in the background? Then turn it back on? > * does anyone know of a tutorial similar to this task? > * are there any other hidden snafus to watch for? > > Thanks for any help you can provide. > > -Andre' > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: [HELP] Problems with ZipFileDownload Servlet
Hi, I have the same mistake previous after deployment on tomcat. When I commented the line that close ZipOutPutStream, the download of file don't ocurr correctly, the file is corrupted. I uncommented the line, but the previous error continue, the mime type of zip file is lost. How to resolve this problem? Thanks! -- "Se um dia tiver que escolher entre o mundo e o amor... Lembre-se: Se escolher o mundo, ficará sem o amor, mas se escolher o amor, com ele conquistará o mundo." (Albert Einstein) ╔╗ ROMERYTO VIEIRA LIRA Bacharelando em Ciência da Computação - UFCG Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br Página Pessoal: http://romeryto.googlepages.com Blog: http://olhartecnologico.blogspot.com ╚╝ Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio ambiente. 2008/11/13 Romeryto Lira <[EMAIL PROTECTED]> > Thanks for your help. I resolved the problem with your suggestion. > > -- > "Se um dia tiver que escolher entre o mundo e o amor... Lembre-se: > Se escolher o mundo, ficará sem o amor, mas se escolher o amor, > com ele conquistará o mundo." (Albert Einstein) > ╔╗ > ROMERYTO VIEIRA LIRA > Bacharelando em Ciência da Computação - UFCG > Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br > Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br > Página Pessoal: http://romeryto.googlepages.com > Blog: http://olhartecnologico.blogspot.com > ╚╝ > > Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio > ambiente. > > > > > 2008/11/12 Nicolas Chalon <[EMAIL PROTECTED]> > > Hi, >> >> In fact, in think that the problem comes from the way you close the >> outputstream. When you call zout.close(), the *close *method will call >> the underlying outputstream *close *method too and the reply will be sent >> to the client at that stage instead of when you call out.close(). you should >> try removing your zout.close() call and it should work. >> >> Regards >> >> Nicolas >> >> PS: Sorry if my english is not perfect, i am not an english native >> speaker. >> >> 2008/11/11 Romeryto Lira <[EMAIL PROTECTED]> >> >> I have problem with my zip download servlet. When I go to download, in the >>> window that open the mime tipe of the zip file is lost. >>> >>> *snippet of code: >>> >>> *String fileName = request.getParameter("filename"); >>> >>> OutputStream out = response.getOutputStream(); >>> ZipOutputStream zout = new ZipOutputStream(out); >>> *...* >>> >>> zout.close(); >>> response.setHeader("Content-Disposition", "attachment;filename=\"" + >>> fileName + "\";"); >>> response.setContentType("application/zip"); >>> out.flush(); >>> out.close(); >>> >>> I mute the response to mime type "zip" but in download the file name and >>> mime types are lost. >>> In xml MyApplication.gwt.xml the servlet is declared like this: >>> >>> >> class="myapplication.server.files.MyZipFileServlet" /> >>> >>> How to resolve this problem? >>> >>> Thanks! >>> >>> Ps.: The error's picture is attached. >>> >>> -- >>> "Se um dia tiver que escolher entre o mundo e o amor... Lembre-se: >>> Se escolher o mundo, ficará sem o amor, mas se escolher o amor, >>> com ele conquistará o mundo." (Albert Einstein) >>> ╔╗ >>> ROMERYTO VIEIRA LIRA >>> Bacharelando em Ciência da Computação - UFCG >>> Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br >>> Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br >>> Página Pessoal: http://romeryto.googlepages.com >>> Blog: http://olhartecnologico.blogspot.com
Help modifying celltable styles with gss
I'm in the process of updating to GWT 2.8, and I have the following code from 2.7: public interface DataGridResource extends DataGrid.Resources { public interface Style2 extends Style {} @Source({DataGrid.Style.DEFAULT_CSS, "MaterialDataGrid.css"}) Style2 dataGridStyle(); } Following the instructions on http://www.gwtproject.org/articles/gss_migration.html, I'm trying to switch to using all gss. however, when I try to change MaterialDataGrid.css to MaterialDataGrid.gss, I get the following error: "[ERROR] Only either css files or gss files are supported on one interface". I assume this is because "You cannot mix css and gss on the same method (@Source annotation)." and DataGrid.Style.DEFAULT_CSS points to com/google/gwt/user/cellview/client/DataGrid.css. If I manually use "com/google/gwt/user/cellview/client/DataGrid.gss", it works fine, but there doesn't appear to be a constant for the gss path. Am I missing anything here, or should I just either use the full path in my code or replace ".css" with ".gss" on DataGrid.Style.DEFAULT_CSS? Thank you! -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Help finding UK based get developers
Hi guys, I'm looking for some help if you would be so kind. I am looking for a gwt developer in the south of England. I'm having trouble finding a gwt specialist rather than someone who has just used it at some point in the past. If anyone could point me in the right direction or recommend anyone it would be greatly appreciated. Thanks -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
a total GWT newbie needs help
Hello everyone, I am very very new to this, but have somehow by hook or by crook, managed to create a website with pages, links, paypal widgets, etc. However - I do not know how to write html and only understand a very small portion of what I read as I look for a solution to my problem. Therefore I joined this group to see if there is anyone who is willing to assist me. What I need is help (by explaining in very simple everyday language) in getting rid of huge spaces between PayPal buttons on a registration page I created on the website. If such a person exists and would reply to this email, I don't think it would take much time to fix this issue. I've been looking for the answer for hours and while I find references to the issue, I can't understand the solutions due to my woeful lack of programming skill. I will be eternally grateful, truly. Thank you, Wicca -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
Try that: put the image in img/pdficon_large.png at the root of your WAR, then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")' (provided your HTML host page is also at the root of your war, alongside the "img" folder). See my reply on the issue tracker about why WEB-INF doesn't work. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dlkBDEGRX9wJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
I m also using the same as told by Thomas,It works fine, On Tue, Jan 24, 2012 at 9:34 PM, Thomas Broyer wrote: > Try that: put the image in img/pdficon_large.png at the root of your WAR, > then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")' > (provided your HTML host page is also at the root of your war, alongside > the "img" folder). > > See my reply on the issue tracker about why WEB-INF doesn't work. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/dlkBDEGRX9wJ. > > 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. > -- vaibhav jain. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
Hi Tom, Thanks for your reply. Where is the issue tracker? I would definitely like to see why WEB-INF doesn't work. But I am in the process of trying your suggestion now. Here is my directory structure: note I am using the to let you know the name is a directory. If I don't use then assume its just a file: path: /opt/streamserve/tomcateomconsole/webapps under "Webapps" EOMConsole EOMConsole.war path: /opt/streamserve/tomcateomconsole/webapps/EOMConsole under "EOMConsole" eomconsole (directory where the GWT subdirectory resides) META-INF WEB-INF EOMConsole.CSS EOMConsole.HTML I have the images under the directory where the WAR resides but that didn't work before. Should I create the img directory in the same directory as the war? ( path: /opt/streamserve/tomcateomconsole/webapps ) or under the directory where the html file is? ( path: /opt/streamserve/tomcateomconsole/webapps/EOMConsole) thanks for your help, this is definitely tricky. Joshua On Tue, Jan 24, 2012 at 10:04 AM, Thomas Broyer wrote: > Try that: put the image in img/pdficon_large.png at the root of your WAR, > then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")' > (provided your HTML host page is also at the root of your war, alongside > the "img" folder). > > See my reply on the issue tracker about why WEB-INF doesn't work. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/dlkBDEGRX9wJ. > > 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. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
Hi, Is there any other way to put image on a button if we don't want to use push button. Regards, Vaibhav On Tue, Jan 24, 2012 at 9:34 PM, Thomas Broyer wrote: > Try that: put the image in img/pdficon_large.png at the root of your WAR, > then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")' > (provided your HTML host page is also at the root of your war, alongside > the "img" folder). > > See my reply on the issue tracker about why WEB-INF doesn't work. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/dlkBDEGRX9wJ. > > 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. > -- vaibhav jain. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
On Tuesday, January 24, 2012 5:30:00 PM UTC+1, Joshua Carey wrote: > > Hi Tom, > > Thanks for your reply. Where is the issue tracker? I would definitely > like to see why WEB-INF doesn't work. But I am in the process of trying > your suggestion now. Here is my directory structure: > note I am using the to let you know the name is a directory. If I > don't use then assume its just a file: > > path: /opt/streamserve/tomcateomconsole/webapps > > under "Webapps" > > EOMConsole > EOMConsole.war > > path: /opt/streamserve/tomcateomconsole/webapps/EOMConsole > > under "EOMConsole" > > eomconsole (directory where the GWT subdirectory resides) > META-INF > WEB-INF > EOMConsole.CSS > EOMConsole.HTML > > I have the images under the directory where the WAR resides but that > didn't work before. Should I create the img directory in the same > directory as the war? ( path: /opt/streamserve/tomcateomconsole/webapps ) > or under the directory where the html file is? ( > path: /opt/streamserve/tomcateomconsole/webapps/EOMConsole) > > thanks for your help, this is definitely tricky. > Tomcat expands the WARs, so when you copy EOMConsole.war in .../webapps and restart tomcat, it'll expand the WAR into .../webapps/EOMConsole and work from there (well, Tomcat also keeps things in its own "temp" and "work" folders, so make sure you clean them out before restarting Tomcat when deploying an update to your app). So, put the image *within* your WAR (or alternatively, put the image within the .../webaps/EOMConsole folder), in the same directory as your HTML host page. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ivggsf_XAh0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
new Button(""); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vBkHDauH6tsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
I tried using the example you provided: new Button(""); and it basically put the img src= tag above as text on the button. I am going to try to create an image object first using the path above: "GWT.getHostPageBaseURL() + "pdficon_large.png" first and then just use the image object in the creation of the PushButton instead of adding the " tag you suggested. I also put the image files in the same directory as the HTML file. Wish me luck. Thanks, Joshua On Tue, Jan 24, 2012 at 11:03 AM, Thomas Broyer wrote: > new Button(""); > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/vBkHDauH6tsJ. > > 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. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
Hi Thomas, I finally got it to work. You were correct in that once I put the images as part of the war file and "NOT" in the WEB-INF, it worked correctly. Although our JAVA guy here is insisting WEB-INF is the place it needs to be. I'm assuming it is a GWT thing that doesn't allow reading files from WEB-INF but in any event, I got it working so thank you very much. Are we supposed to mark which people solved our problems and mark them complete on this site? I am totally new to GWT and this help board. Thanks again and I would love to read about the WEB-INF article you informed me about so I can set my Java person here straight. We would still be working on the same problem right now if I listened to him. :) Thanks again for everything. Joshua On Tue, Jan 24, 2012 at 12:03 PM, Thomas Broyer wrote: > new Button(""); > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/vBkHDauH6tsJ. > > 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. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
On Tuesday, January 24, 2012 7:43:28 PM UTC+1, Joshua Carey wrote: > > Hi Thomas, > > I finally got it to work. You were correct in that once I put the images > as part of the war file and "NOT" in the WEB-INF, it worked correctly. > Although our JAVA guy here is insisting WEB-INF is the place it needs to > be. I'm assuming it is a GWT thing that doesn't allow reading files from > WEB-INF No, it's a Java thing. Point your "Java guy" to the servlet spec: http://jcp.org/en/jsr/detail?id=154 EXCERPT FROM SECTION SRV.9.5 (from “Java™ Servlet Specification Version 2.5 MR6”) A special directory exists within the application hierarchy named “WEB-INF”. This directory contains all things related to the application that aren’t in the document root of the application. The WEB-INF node is not part of the public document tree of the application. No file contained in the WEB-INF directory may be served directly to a client by the container. However, the contents of the WEB- INF directory are visible to servlet code using the getResource and getResource- AsStream method calls on the ServletContext, and may be exposed using the RequestDispatcher calls. Hence, if the Application Developer needs access, from servlet code, to application specific configuration information that he does not wish to be exposed directly to the Web client, he may place it under this directory. Since requests are matched to resource mappings in a case-sensitive manner, client requests for ‘/WEB-INF/foo’, ‘/WEb-iNf/foo’, for example, should not result in contents of the Web application located under /WEB-INF being returned, nor any form of directory listing thereof. END OF EXCERPT > but in any event, I got it working so thank you very much. Are we > supposed to mark which people solved our problems and mark them complete on > this site? I am totally new to GWT and this help board. Google Groups is hardly more than a mailing list, with a Web interface, so no, you don't mark as "solved" or things like that. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EzVivyyoqZEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HELP.. ADDING IMAGE TO PushButton.
First put your image to war/images folder and then direct access it from ur code like this HTML html = new HTML(new Image("images//Image_Name.png").toString()); Button button = new Button(h.toString()); now u can do ur work On Jan 24, 10:50 am, Joshua Carey wrote: > Hi, > > I am new to GWT but been developing java for a few years. I am trying to > add a simple png ICON to a button and in GWT I guess PushButton is the only > widget to use. I am not concerned with changing the image when the button > is pressed, etc. I simply want a default image to always display on the > button. I have tried putting the image file in the same directory as the > war file, but that didn't work. I also tried putting it in subdirectories > throughout the project paths with still no luck. A coworker told me that > images must be in WEB-INF or a subdirectory of WEB-INF. I c created a > directory under WEB-INF called "IMG": > > WEB-INF/img/printer_image.png. In my java code I used the following logic > and it still doesn't work. I really need some direction here and > appreciate any help anyone can provide. Thank you very much. > > //Image printImage = new > Image("/tomcateomconsole/webapps/pdficon_large.png"); "This image path is > where the War is deployed and didn't work". > > Image printImage = new Image("/WEB-INF/img/pdficon_large.png"); "This > image path is under the WEB-INF and gets deployed with the war file but > still doesn't work. > > PushButton printButton = new PushButton(printImage); > > Joshua -- 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: New to GWT: Need Help
try to give a fixed height in pixel to those componenets you don't see, like your's SplitlayoutPanel, something like width="200px". good look On Sat, 4 Feb 2012 07:11:04 -0800 (PST) Pascal Auderset wrote: > Hello > > I try to write a little Application. I' ve the problem that I' don't > see all the hole page in the Browser. I've designed the page with the > UI Designer for Eclipse. There I see everything with the preview. > > I only see the Toppanel (north), but not the SplitlayoutPanel (nor > the StackPanel or the Tree and also not the HTMLPanel) in the center! > When I debug the Source from my page in Chrome I see that the > Instructions for the widget in the panel are sent but I dont see them > on the screen. > > Sorry for my english. > > Someone knows what i'am doing worg? > > Here is the code: > > DesktopView.ui.xml: > http://dl.google.com/gwt/DTD/xhtml.ent";> >xmlns:g="urn:import:com.google.gwt.user.client.ui" > xmlns:p1="urn:import:ch.asolution.pikett.client.ui"> > > > > > > > > > > > > > Mitarbeiter >ui:field="mitarbeiterTree"> > > >state="true"/> > > > > > Pikettplanung >ui:field="showTree"> >state="true"/> >state="true"/> > > > > > > > > > > > > > DestopView.java > package ch.asolution.pikett.client.ui; > > import ch.asolution.pikett.client.presenter.DesktopPresenter; > > import com.google.gwt.core.client.GWT; > import com.google.gwt.event.logical.shared.HasSelectionHandlers; > import com.google.gwt.uibinder.client.UiBinder; > import com.google.gwt.uibinder.client.UiField; > import com.google.gwt.user.client.ui.Composite; > import com.google.gwt.user.client.ui.DockLayoutPanel; > import com.google.gwt.user.client.ui.HasWidgets; > import com.google.gwt.user.client.ui.Tree; > import com.google.gwt.user.client.ui.TreeItem; > > public class DesktopView extends Composite implements > DesktopPresenter.Display { > > private static DesktopViewUiBinder uiBinder = GWT > .create(DesktopViewUiBinder.class); > @UiField > TopPanel toppanel; > @UiField > Tree mitarbeiterTree; > @UiField > Tree showTree; > @UiField > HasWidgets detail; > > interface DesktopViewUiBinder extends > UiBinder { > } > > public DesktopView() { > DockLayoutPanel outer = uiBinder.createAndBindUi(this); > initWidget(outer); > } > > @Override > public TopPanel getToppanel() { > return toppanel; > } > > @Override > public HasWidgets getDetailPanel() { > return detail; > } > > @Override > public HasSelectionHandlers getMitarbeiter() { > return mitarbeiterTree; > } > > @Override > public HasSelectionHandlers getShow() { > return showTree; > } > > } > > DesktopPresenter.java > package ch.asolution.pikett.client.presenter; > > import ch.asolution.pikett.client.ui.MitarbeiterView; > import ch.asolution.pikett.client.ui.TopPanel; > import ch.asolution.pikett.shared.User; > > import com.google.gwt.event.logical.shared.HasSelectionHandlers; > import com.google.gwt.event.logical.shared.SelectionEvent; > import com.google.gwt.event.logical.shared.SelectionHandler; > import com.google.gwt.event.shared.HandlerManager; > import com.google.gwt.user.client.ui.HasWidgets; > import com.google.gwt.user.client.ui.TreeItem; > import com.google.gwt.user.client.ui.Widget; > > public class DesktopPresenter implements Presenter { > > public interface Display { > TopPanel getToppanel(); > > HasSelectionHandlers getMitarbeiter(); > > HasSelectionHandlers getShow(); > > HasWidgets getDetailPanel(); > > Widget asWidget(); > } > > private HandlerManager eventBus; > private HandlerManager localEventBus; > private Display display; > private TopPanelPresenter topPanelPresenter; > > private MitarbeiterPresenter
[Help] GChart has encountered a problem
, int, java.lang.String) [unresolved] Unresolved type com.google.gwt.user.client.ui.Image createIconImage(com.googlecode.gchart.client.GChart.Symbol, int, double) [unresolved] private static boolean areDisjointRanges(double, double, double, double) [unresolved] static boolean intersects(double, double, double, double, double, double, double, double) [unresolved] protected void realizeOneImageOfSymbol(Unresolved type com.googlecode.gchart.client.GChart$PlotPanel, Unresolved type com.googlecode.gchart.client.GChart$GraphicsRenderingPanel, Unresolved type com.googlecode.gchart.client.GChart$AnnotationRenderingPanel, com.googlecode.gchart.client.GChart.Symbol, Unresolved type com.googlecode.gchart.client.GChart$Annotation, boolean, boolean, boolean, double, double, double, double, double, double, double, double) [unresolved] protected double distance(double, double, double, double) [unresolved] void realizeSymbol(Unresolved type com.googlecode.gchart.client.GChart$PlotPanel, Unresolved type com.googlecode.gchart.client.GChart$GraphicsRenderingPanel, Unresolved type com.googlecode.gchart.client.GChart$AnnotationRenderingPanel, com.googlecode.gchart.client.GChart.Symbol, Unresolved type com.googlecode.gchart.client.GChart$Annotation, boolean, boolean, boolean, boolean, double, double, double, double, double, double) /* members */ Unresolved type com.googlecode.gchart.client.GChart$SymbolType $AnnotationAnchor Unresolved type com.googlecode.gchart.client.GChart$SymbolType $HBarBaseline Unresolved type com.googlecode.gchart.client.GChart$SymbolType $HBarLeft Unresolved type com.googlecode.gchart.client.GChart$SymbolType $HBarRight Unresolved type com.googlecode.gchart.client.GChart$SymbolType $LineSymbolType Unresolved type com.googlecode.gchart.client.GChart$SymbolType $PieSliceSymbolType Unresolved type com.googlecode.gchart.client.GChart$SymbolType $VBarBaseline Unresolved type com.googlecode.gchart.client.GChart$SymbolType $VBarBottom Unresolved type com.googlecode.gchart.client.GChart$SymbolType$VBarTop Unresolved type com.googlecode.gchart.client.GChart$TickLocation Unresolved type com.googlecode.gchart.client.GChart $TouchedPointUpdateOption Unresolved type com.googlecode.gchart.client.GChart$XAxis Unresolved type com.googlecode.gchart.client.GChart$Y2Axis Unresolved type com.googlecode.gchart.client.GChart$YAxis Unresolved type com.googlecode.gchart.client.GChart$YAxisId org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding [ERROR] at GChartExample08.java(6): class GChartExample08 com.google.gwt.dev.jjs.ast.JClassType Help me please, Thx. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help to create Lightweight widgets
> > For #2, I have tried both case and have the following errors : > extend Widget 11:58:03.274 [ERROR] [MS] Error injecting com.MS.client.application.widget.poster.Poster_Tooltip$Binder: Unable to create or inherit binding: No @Inject or default constructor found for com.MS.client.application.widget.poster.Poster_Tooltip$Binder extend Composite This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement() -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Touchevent vs ClickEvent (+ phonegap help)
i think you need to do some Googling... See for example: https://developers.google.com/mobile/articles/fast_buttons And the m-gwt project. Understand what the use is of gwt-phonegap You don't need it until you want to access native mobile functionality... Using HTML 5 offline, makes a web app startup blazing fast... it depends on your detail functionality if you really need a native mob app. Start web responsive if web is a must haven... Then evaluate and optional start a native app dev... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Using super-dev mode - please help
Hi! I've a project that started with GWT 2.0 and now is updated to GWT 2.6.0. Environment: - NetBeans 8.0 with latest GWT plugin - JDK 1.8.0_11 x64 working on compatibility mode (sources version 1.6) - About 30 GWT modules In order to make app working as secure as possible, everything compiled is destined to sub-folder /secure (by everything, I mean all jsp pages, the servlets - inculding RPC service implementations - etc). All works fine, but we are facing that someday we will have to leave the beloved DEV mode. Our problem is that we cannot get the source map found when running in super-dev-mode. Where it is supposed to be in **release** app (because source structure in NetBens is separated from runtime structure, and I would like to filter out everything unneeded to avoid bloated WAR file). Currently, without any LIB (.jar), our app already has 46Mb on size (only .jsp and generated js files), which is big enough. Is there any setting where I can point where the source maps reside? Thanks in advance for your support. Regards, Edson -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Help with the first application
You forgot to call txbResultado.setText(result) in onSuccess() You are also creating new Label objects but you do not attach them to the panel, so they will be invisible. /Rene Den tirsdag den 16. december 2014 19.46.52 UTC+1 skrev Eduardo Pereira: > > Hello everyone. > > I'm starting with the GWT now and I have a problem, if you could help me, > I'd be thankful > > I'm creating a simple program to encrypt a string. When a user types a > word in the box he clicks the button, and in the box below returns the word > changed. But I can not make this return, I am unable to make the word > modified appear on its box. > > Could anyone help me? > > These are the codes > > http://pastebin.com/QdRK4Zb0 > http://pastebin.com/2G8mcPFk > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: help understanding complicated client logs
You can test it locally if you use Chrome DevTools. When you open DevTools you can click on the small mobile device icon on the left side right next to the search icon. Once you have done that you should see a new dark toolbar at the top of your page which has a Network drop down which allows you to emulate slower network conditions in Chrome. Given your stack trace it seems like you called AbsolutePanel.add(childWidget) somewhere but your instance of AbsolutePanel was null. For your understanding how to read these stack frames: __gwt$exception: : Cannot read property 'com_google_gwt_user_client_ui_UIObject_element' of null at Unknown.com_google_gwt_user_client_ui_AbsolutePanel_$add__Lcom_google_gwt_user_client_ui_AbsolutePanel_2Lcom_google_gwt_user_client_ui_Widget_2V First line is the JavaScript exception message which says you have tried to access UIObject.element but UIObject was null. Since UIObject has a getElement() method that means your java code did call "null.getElement()". At the next line you see that this happened in AbsolutePanel.$add(AbsolutePanel, Widget). This method has been generated by the GWT compiler and is a static version of AbsolutePanel.add(Widget). These generated static methods are marked with "$" by GWT. Given the implementation of AbsolutePanel.add(Widget) it seems like your instance of AbsolutePanel was null. Your code did something like: AbsolutePanel myPanel = null; // somehow the variable was null myPanel.add(child); with AbsolutePanel.add() being implemented as: public void add(Widget w) { super.add(w, *getElement()*); } GWT compiler changed your method call to a static method call AbsolutePanel.$add(myPanel, w); And the implementation of $add is probably similar to public static void $add(AbsolutePanel instance, Widget w) { ComplexPanel.$add(w, *instance.getElement()*); } The bold code causes the exception. Since getElement() and the element field are defined on UiObject the exception message says you have tried to access UiObject.element with UiObject being null. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: help understanding complicated client logs
Thanks so much for the detailed response. And I'll give those dev tool suggestions a try. And what you say makes sense about dereferencing a null, but it doesn't explain how it would work most of the time, but sometimes it doesn't. If the code is dereferencing null it should always be an error, right? Anyway, thanks again, you've given me some things to try. On Sat, Jan 17, 2015 at 4:46 AM, Jens wrote: > You can test it locally if you use Chrome DevTools. When you open DevTools > you can click on the small mobile device icon on the left side right next > to the search icon. Once you have done that you should see a new dark > toolbar at the top of your page which has a Network drop down which allows > you to emulate slower network conditions in Chrome. > > Given your stack trace it seems like you called > AbsolutePanel.add(childWidget) somewhere but your instance of AbsolutePanel > was null. > > For your understanding how to read these stack frames: > > __gwt$exception: : Cannot read property > 'com_google_gwt_user_client_ui_UIObject_element' of null >at > Unknown.com_google_gwt_user_client_ui_AbsolutePanel_$add__Lcom_google_gwt_user_client_ui_AbsolutePanel_2Lcom_google_gwt_user_client_ui_Widget_2V > > First line is the JavaScript exception message which says you have tried > to access UIObject.element but UIObject was null. Since UIObject has a > getElement() method that means your java code did call "null.getElement()". > At the next line you see that this happened in > AbsolutePanel.$add(AbsolutePanel, Widget). This method has been generated > by the GWT compiler and is a static version of AbsolutePanel.add(Widget). > These generated static methods are marked with "$" by GWT. Given the > implementation of AbsolutePanel.add(Widget) it seems like your instance of > AbsolutePanel was null. > > Your code did something like: > > AbsolutePanel myPanel = null; // somehow the variable was null > myPanel.add(child); > > with AbsolutePanel.add() being implemented as: > > public void add(Widget w) { >super.add(w, *getElement()*); > } > > GWT compiler changed your method call to a static method call > > AbsolutePanel.$add(myPanel, w); > > And the implementation of $add is probably similar to > > public static void $add(AbsolutePanel instance, Widget w) { > ComplexPanel.$add(w, *instance.getElement()*); > } > > The bold code causes the exception. Since getElement() and the element > field are defined on UiObject the exception message says you have tried to > access UiObject.element with UiObject being null. > > -- J. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Web Toolkit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/PFyayaTVYbA/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: help understanding complicated client logs
> > If the code is dereferencing null it should always be an error, right? > Not really. Maybe a field becomes null while a server request is in progress and when the request finishes the onSuccess callback tries to use that field without any checks. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: help understanding complicated client logs
Thanks, true I guess, I'll try to sort it out. I was able to use the throttling to reproduce the problem as you suggested so thanks! Unfortunately dev mode isn't working for me so now I have to go figure out super dev mode I guess. Thanks again for the help. You certainly gave me a start! On Saturday, January 17, 2015, Jens wrote: > If the code is dereferencing null it should always be an error, right? >> > > Not really. Maybe a field becomes null while a server request is in > progress and when the request finishes the onSuccess callback tries to use > that field without any checks. > > -- J. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Web Toolkit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/PFyayaTVYbA/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > google-web-toolkit+unsubscr...@googlegroups.com > > . > To post to this group, send email to google-web-toolkit@googlegroups.com > . > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: help understanding complicated client logs
Just following up on this. It turns out the problem was that I have some native javascript that builds some elements after the page loads and these elements are referenced in the gwt (that's where the null panel was showing up). Even though this panel is referenced in a deferred block the page may still take longer to load than that and the elements aren't yet created. I tried fixing this by dynamically loading the gwt nocache file in my native javascript with something like this: var gwt = document.createElement("script"); gwt.setAttribute("type", "text/javascript"); gwt.setAttribute("src", "gwt/gwt.nocache.js"); document.body.appendChild(gwt); But either the browser or gwt didn't like it (I got various errors that I couldn't figure out). So, I ended up creating a timer that keeps checking the availability of that panel and only proceeds after it's been created. Seems strange I can't control when the GWT files get loaded, but this will work as a backup. Thanks again for the help! On Sat, Jan 17, 2015 at 5:54 PM, Robert J. Carr wrote: > Thanks, true I guess, I'll try to sort it out. I was able to use the > throttling to reproduce the problem as you suggested so thanks! > Unfortunately dev mode isn't working for me so now I have to go figure out > super dev mode I guess. > > Thanks again for the help. You certainly gave me a start! > > On Saturday, January 17, 2015, Jens wrote: > >> If the code is dereferencing null it should always be an error, right? >>> >> >> Not really. Maybe a field becomes null while a server request is in >> progress and when the request finishes the onSuccess callback tries to use >> that field without any checks. >> >> -- J. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Web Toolkit" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-web-toolkit/PFyayaTVYbA/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> Visit this group at http://groups.google.com/group/google-web-toolkit. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Urgent help on Debugging in GWT
Hello, Please let me know how can we debug a GWT application. Thanks and regards, Moushmi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/A8Wxd77By_0J. 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.
Need help with GWT 2.4 project
Hi, We are starting a new initiative of developing a huge web app... We have pretty much locked down the backed technologies, but still struggling with the front end. Have looked around and found tons of javascript frameworks and libs and tools to build them, but GWT really caught our attention. Can anyone pls point out to one good example using GWT2.4 with activities, places and MVP. I am looking at an enterprise level (huge app) example.. Thank you.. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help: GWT , RequestFactory with SQLServer ???
Sure its possible. GWT/RF does not make any assumptions about the database you are using. -- J. Am Mittwoch, 9. Mai 2012 11:18:21 UTC+2 schrieb laxman lingampally: > > Hi all, > > please help me out asap, > > i have a question > > it is passible GWT, RF(RequestFactory) with any database ( not Google > Datastore GAE & GQL ,google cloud)? > > i have doubt it is passible or not ? > > > Thanks & Regards > laxman. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/073TiZhedCsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help: GWT , RequestFactory with SQLServer ???
Hi Thanks for the quick reply!! thnaks a lot i am trying to working on using GWT/RF and SQLServer with Hibernate, my web application runing is fine but i am trying connect to sql server database at that time i got exceptions that exception i given below: Exception: * * * java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1433 connect,resolve)* myHibernate code given below: 1) this in side POJO class:Here Contact.java is a POJO class //same setter and getter here this code is in side persiste method SessionFactory sf = new Configuration().configure().buildSessionFactory(); session = sf.openSession(); Transaction trans =session.beginTransaction(); Contact contact = new Contact(); contact.setId(6); contact.setName("dyna"); session.save(contact); trans.commit(); 2)Hibernate.cfg,xml file. com.microsoft.sqlserver.jdbc.SQLServerDriver jdbc:sqlserver://localhost;databaseName=gwtrf sa root 10 true org.hibernate.dialect.SQLServerDialect 3)mapping file: Please tell me where i am done worng , i am using all related hibernate jars , gwt/rf jars. but i am tring to connect jdbc also giving same exception On Wed, May 9, 2012 at 3:01 PM, Jens wrote: > Sure its possible. GWT/RF does not make any assumptions about the database > you are using. > > -- J. > > > > Am Mittwoch, 9. Mai 2012 11:18:21 UTC+2 schrieb laxman lingampally: > >> Hi all, >> >> please help me out asap, >> >> i have a question >> >> it is passible GWT, RF(RequestFactory) with any database ( not Google >> Datastore GAE & GQL ,google cloud)? >> >> i have doubt it is passible or not ? >> >> >> Thanks & Regards >> laxman. >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/073TiZhedCsJ. > 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. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help with GWTTestCase and GWT-RPC
I'm having trouble getting a basic GWTTestCase running with a simple GWT-RPC. Here is what it looks like. What am I doing wrong. Note that when the test is run the callback's onFailure() is called with a 404 error detail. public class Test2 extends GWTTestCase { @Override public String getModuleName() { return "com.test.app.MyApp"; } public void testTwo() { System.out.println( "Test2 starting." ); MyServiceAsync srv = GWT.create( MyService.class ); DoitCallback doitCallback = new DoitCallback(); srv.doit( doitCallback ); delayTestFinish( 1 ); System.out.println( "Test2 ending." ); } /** * */ private class DoitCallback extends AsyncCallback { public void onFailure( Throwable caught ) { assert false; caught.printStackTrace(); } public void onSuccess( String results ) { System.out.println( results ); finishTest(); } } } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/iuSTL_IYjVUJ. 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, SmartGWT, Google Visualization Help
Hello Matt, I am newbie for GWT but currently developing a machine system monitoring web application and using SmartGwt as my tool. Right now I am having trouble with implanting Google Visualization into the the SmartGwt Canvas. If you have any ideas or solutions about it, please shed me some light on it. Thank you very much. On Wednesday, May 12, 2010 4:49:56 PM UTC-5, Matt wrote: > > I've solved my problem but am wondering if anyone else is doing > similar development.. > > On May 12, 2:10 pm, Matt wrote: > > I'm trying to draw a Google Column Chart into SmartGWT draggable > > window. I can draw the chart correctly. I can draw the window > > correctly. I am just having trouble drawing the chart into the > > window. Does anyone have any examples or tutorials of doing this? > > > > Thanks! > > -m > > > > -- > > 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 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-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. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oqCWxbxuTXEJ. 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, SmartGWT, Google Visualization Help
Hi, Browse the gwt-cx source: http://code.google.com/p/gwt-cx/ it has several wrappers and examples. also: -> http://uptick.com.au/content/smartgwt-and-fusioncharts and take a look at gwt-highcharts: -> http://www.moxiegroup.com/moxieapps/gwt-highcharts/ Cheers Rob > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/re_779w1YLoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help debug GWT Designer in eclipse
Hi, I'm using Gentoo and I have eclipse version 4.2 along with swt 4.2 and libwebkit-gtk installed. Everything looks good with respect to system libraries and whatnot. Still, eclipse refuses to load up the designer saying that it needs xulrunner version bla bla bla. On version 3.7 I had an option to enable WebKit as renderer but now I don't. I'm looking for help to diagnose the problem and try to understand if it's a system configuration (or libraries installed) problem or some kind of bug/"feature" of GWT Designer for Eclipse 4.2. Thanks in advance, Carlos Silva -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
help with celltable problem in devmode
I'm having a weird problem in most of my celltables that only happens in devmode. Compiled javascript works just fine. I'm using gwt2.3.3 and everything has been working for close to a year now. The only thing that's changed recently is some css styling. Anyway, my cell tables initialize method is failing with "String is not complete HTML (ends in non-inner-HTML context):" Does this sound familiar. Again, its only happening in devmode. thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MlecxF4N098J. 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: Need help in using CellTable
Look at the example in the CellTable Javadoc ( http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/CellTable.html), specifically "Pushing data asynchronously with Async Data Provider". Like the example says, instead of a Timer, make an RPC call. On Thursday, September 6, 2012 12:34:17 PM UTC-4, swingm wrote: > > Hi, > > I want to populate the celltable with the data that comes from database > through RPC call. Can someone give me an example application which > demonstrates this. im bit confuse > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/E9wWxeyNVsQJ. 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 super Dev Mode help
I created a new GWT project by V3 and it can run DevMode to debug. I will compare old project setup with new one's to see the differences On Monday, August 9, 2021 at 11:39:47 AM UTC-5 Yibin Li wrote: > 1. We do not use Maven > 2. We use GWT 2.5.1 + Firefox Version 42 (old version) > > Currently, we just use right click the project > > Debug As -> Web Application The link > http://127.0.0.1:/My_Project.html?gwt.codesvr=127.0.0.1:9997 is > generated. I just need to click the link to debug the My_Project > > Now, I upgrated the GWT to 2.9.2 and JDK 11. When I right click the project > > The Debug As gives me multiple options > 1. GWT Compiler > 2. GWT Development Mode with Jetty > 3. GWT Legacy Development Mode with Jetty > 4. GWT Development Mode > > I setup Dev Mode on on Chrome > > when I click GWT Development Mode with Jetty , Eclipse generates > http://127.0.0.1:/My_Project.html > > When I click GWT Legacy Development Mode with Jetty, eclipse generates > http://127.0.0.1:/My_Project.html?gwt.codesvr=127.0.0.1:9997 > > But when I put the link in Chrome browser > > I got > > HTTP ERROR: 503 > > Problem accessing /ARIES.html. Reason: > Service Unavailable > > *Powered by Jetty://* > > > When I put http://127.0.0.1:9876/ (Jetty server) > > I got popup window Can't find any GWT Modules on this page. > http://127.0.0.1:9876 > > How can I make super dev mode work in GWT 2.9 > > Any help is appreciated > > Yibin LI > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/ac4d02cf-feea-48bf-8579-eb22c7f23debn%40googlegroups.com.
Please help with gwt MenuItem CSS define
I need to change the menu item into different colors (both front & background) when mouse over and the item is selected. So I defined the following in my css: .gwt-MenuBar-vertical .gwt-MenuItem { color: yellow; background: blue; } .gwt-MenuBar-vertical .gwt-MenuItem-selected { color: black; background: red; } .gwt-MenuBar-vertical .gwt-MenuItem-hover { color: white; background: green; } But the actual result is not right. When mouse is over, the display is using '.gwt-MenuItem-selected'. If I selected a item, then move the mouse to other item, the selected item back to default color. What's wrong with my css? Please help. 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 -~--~~~~--~~--~--~---