Re: Spring
Thanks Joe On Thu, Mar 31, 2011 at 8:32 AM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You can make a service that provide it. Juan 2011/3/30 l3dx thomas.skar...@gmail.com Hi! I'm also interested in this. How can one get information about the authenticated user from within GWT? I'm not even sure if I need this, but I started to think about it and became curious :) /Thomas On Mar 30, 3:51 pm, joe kolba joekolb...@gmail.com wrote: It's really not hard at all, basically start by setting up a typical spring security framework project and after that is set add the gwt project capabilities and in the applicationContext-security protect your hosted.html file. If you have any questions feel free to email me. On Wed, Mar 30, 2011 at 9:48 AM, Alexei Telles alexeitel...@gmail.com wrote: I missed my last conversation (didn't receive e-mail answer because of membership option and I can't find it here in the group discussion). I'm sorry but I have to post it again. I've developing GWT app for some years and now I have to implement Spring Security in my app. I found some tutorials and some libraries in this group, but all old posts. Does anyone know a good tutorial to get started with GWT + Spring Security? Thanks again. -- 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. -- 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: Applet internet explorer
Thanks for the reply Bryan. The problem I was having is different. I fixed it setting my HTML object to - html.setHTML(); and then the applet is not loaded anymore. When I need the applet to be loaded again I set this same HTML to the applet tag. Thanks 2011/1/10 Bryan Donnovan bryandonno...@gmail.com The problem has to do with how IE initializes applets. In my case, I saw an init/destroy cycle followed by a second cycle with init/start The solution was to move the code from Applet::init() to Applet::start() I expect that you are doing work inside init()? If so, that might explain the double print. FYI - I had good luck placing my APPLET code inside of a g:HTML UiBinder template. That does not change the problem above, but it does make for a cleaner implementation. On Jan 10, 9:12 am, Alexei Telles alexeitel...@gmail.com wrote: Hi Group; I am using an applet in my GWT project. This applet opens a socket connection and send a package to a print. I am having a problem only using the internet explorer browser. I have a class that loads the applet. This class extends a VerticalPanel. In the constructor I have: public PanelApplet) { super(); super.add(html); } html is a private GWT HTML object. And when I need to load the applet I do: html.setHTML(APPLET CODEBASE=\applet\ CODE=\PrintApplet.class\ ARCHIVE=\PrintApplet.jar\ WIDTH=400 HEIGHT=70 + PARAM NAME=\address\ VALUE=\ + impressao.getEnderecoRede() + \/PARAM + PARAM NAME=\port\ VALUE=\ + impressao.getPorta() + \/ PARAM + PARAM NAME=\pack\ VALUE=\ + impressao.getPacote() + \/PARAM + /APPLET); The problem I am having is: If I try to remove the html from the panel with: super.remove(html); or super.remove(0); Or even if I make the component invisible. Whatever I do, internet explorer browser executes this applet again and a new package is sent to the printer. I don't know what's happening, so it is a littlle hard to try to find a solution. This only heppens with internet explorer browser. I appreciate any 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: gwt-dnd
Thank you for the reply I found the answer. When I call makeDraggable method I can pass 2 parameters. One is the Draggable widget and the other one is the child part of the widget to drag and drop. Thanks 2010/11/9 ciosbel andrew...@gmail.com Of course it is possible. See live demos http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragAndDropDemo/DragAndDropDemo.html The demo 8 should tell you how (see java sources). I think you have to tell the drag controller to make a given panel draggable by a given child. i.e. // make the panel draggable by its header dragController.makeDraggable(verticalPanel, header); Hope that helps. On Nov 9, 2:03 am, Alexei Telles alexeitel...@gmail.com wrote: Hi Everybody I need some drag and drop's in my application. Searching GWT group I found gwt-dnd. I tried some examples and works fine. But I need to be able to drag and drop a widget that will contain some textboxes, buttons, hyperlinks, etc... I am a little confuse. Is possible to make this with gwt-dnd? The way I did following some examples when I click in a textbox, or a button, etc...inside the dragable widget, the textbox does note get the focus. Any advice? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Frameworks
Thank you very much As soon as I have some news about these tools I'll try to post my experiences here to help new GWT developers. :) Alexei Telles 2010/8/19 Robert Munteanu robert.munte...@gmail.com You can take advantage of two stable, solid frameworks insipired by Ray Ryan's Best Practices For Architecting Your GWT App session at Google I/O 2009: gwt-dispatch - http://code.google.com/p/gwt-dispatch/ gwt-presenter - http://code.google.com/p/gwt-presenter/ Robert On Aug 19, 4:51 pm, Alexei Telles alexeitel...@gmail.com wrote: Hi everybody. I've searching for some gwt news and I 've seen many new gwt tools on the internet. We could list here in this post frameworks that we have some experience. I mean 3rd Party Libraries to be used in gwt projects, both client and server sides. Reporting experiences, etc... What you guys think about? -- 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.comgoogle-web-toolkit%2bunsubscr...@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: ListBox with Image
All right friends I am going to develop one custom ListBox to do that Thank you everybody 2010/3/2 mariyan nenchev nenchev.mari...@gmail.com There is so called gwt advanced components library that has such feature. I used it in my project exactly because of the Listbox. Pure gwt haven't list box with image arrow, but it is stanard html select. Smart gwt is too heavy to user because of just one widget. I suggest you implement one for yourself or user gwt adv components or the best choice is to copy and adapt the code from gwt adv components. -- 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.comgoogle-web-toolkit%2bunsubscr...@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: incubator ScrollTable
Ok..I know there must be many workarounds... But I wold like to know the reason this is happen. I am taking a look at Firebug, but is not easy to undertand... 2010/1/22 Felipe felipe.andres.p...@gmail.com m I don't know if is the better solution, this maybe: public void afterLoad () { if ( tablaScroll.getDataTable().getColumnCount() == 1) { // setColumnWitdh } else { // otra cosa. } } regards.! On Jan 22, 9:46 am, Ashar Lohmar asharloh...@gmail.com wrote: this might sound like a stupid workaround ... but can't you add an if statement or something to check if the table will have only one column ?! and for that use setColumnWidth ... i know that this is not a real answer but this is the only thing that comes into my mind without trying the real source/objects to see another trick hope it helps good luck On Jan 22, 2:57 am, Alexei Telles alexeitel...@gmail.com wrote: Hi, I'm just starting using the gwt-incubator. I need to make a table, so I am using a FixedWidthFlexTable to the header and a FixedWidthGrid to the dataTable (content of the table). I have a procedure that mounts the dataTable The problem that I am having is: when my dataTable have more than one column, the dataTable is ok I am setting the width to 100%, so my table fits my div at all. But when my table have only one column, I don't know why the column width stays to short Of course, if I use the method setColumnWidth of the FixedWidthGrid works fine, but I use the same procedure to generate all tables of my application, so I can't do that!!! I don't know if I gave a good explanation about my problem. I am trying to use the Firebug to discover what i am doing wrong, but the HTML code generated is a little confused. Is ther anything in the FixedWidthGrid about the first column of the table, or is there a way to I set all widths of my table like automatic? I appreciate any 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Page back color
All right Itś working now Thanks 2009/12/30 leslie web...@comcast.net Disregard my post. Mine appears to be working now, having shut down everything for the night, restarted, recompiled, reloaded, it's working I can see that both the stylesheet and the standard theme are in effect. It must have been a problem with my browser caching or something. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: gwt-voices
Of course...I tried by relative path too... I am going to make some more tests... Thank You 2009/12/21 olivier nouguier olivier.nougu...@gmail.com hi AFAIK you can't access local file :) deploy your audio file and use http:// with repect to SOP (Same Origin Policy) HIH On Mon, Dec 21, 2009 at 8:31 PM, Alexei Telles alexeitel...@gmail.comwrote: Hello guys, I am trying to start using the gwt-voices in my GWT project. To start I tried the example: SoundController soundController = new SoundController(); Sound sound = soundController.createSound (Sound.MIME_TYPE_AUDIO_MPEG, file:///home/alexei/teste.mp3); sound.play(); But the mp3 never plays My Sound object is like: OBJECT(audio/mpeg, file:///home/alexei/teste.mp3, not streaming) and its loadState property is: LOAD_STATE_NOT_SUPPORTED Dos anybody could give me a little help please? Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Page back color
And now I see that nothing that is inside my body css (like margin, font, etc) works... Where do I set properties for my hole page thanks 2009/12/22 Alexei Telles alexeitel...@gmail.com Hi guys, I am trying to change the back color of my page, but I can't do that.. I tried by CSS body { background-color: #f1f2f3; } and setting the bgcolor property of the body tag in my HTML file: body bgcolor=#f1f2f3 /body It's not working. Any help? Thanks again -- 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: Page back color
Hi Ian My CSS file works fine. I mean, every widget that i put setStyleName takes all properties that are in my CSS file. I need to know where do I set the properties for the hole page. Uselly I put inside body { } in my CSS file. But in my GWT project it does not work... 2009/12/22 Ian Bambury ianbamb...@gmail.com Do you have some kind of GWT style overriding it? Have a look in your project gwt.xml file. If you are adding css in the html host page, the it will be overridden by that. Ian http://examples.roughian.com 2009/12/22 ALEXEI BARBONI alexeitel...@gmail.com And now I see that nothing that is inside my body css (like margin, font, etc) works... Where do I set properties for my hole page thanks 2009/12/22 Alexei Telles alexeitel...@gmail.com Hi guys, I am trying to change the back color of my page, but I can't do that.. I tried by CSS body { background-color: #f1f2f3; } and setting the bgcolor property of the body tag in my HTML file: body bgcolor=#f1f2f3 /body It's not working. Any help? Thanks again -- 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: Download file
Ok, I finished creating a servlet. I pass some parameters like path and name of the file, etc.. and get the download And then I call Window.open at my GWT project Works ok... thanx 2009/10/1 ALEXEI BARBONI alexeitel...@gmail.com Hi guys, I still couldn't find the right way to create an hyperlink in my web app that makes a download of a file from the server to the client. When you say You have to create a GWT hyperlink and point it to the resource What method of the GWT Hyperlink do I use to point this hyperlink to the resource (the file to be downloaded in my server - I know the exactly location path + filename.) I can't find the method that I can use to point to this file. Can abybody give me a little help one more time? thanks again 2009/9/16 Ian Bambury ianbamb...@gmail.com Please don't post the same question more than once - at least, not in the same 5 minutes. Ian http://examples.roughian.com 2009/9/16 sathya sathyavik...@gmail.com I am having same problem in GWT 1.7. In my application, I need to download file from server to client. So I am directly using file path in window.open as shown below Window.open(“d:\result.xls”,_self,); This opens in Firefox as expected however this doesn’t work with IE7. Please let me know if there is any workaround to do this. I need this very urgently. Please help me out in resolving this. On Sep 3, 12:38 pm, chandrahas koyari koy...@gmail.com wrote: Yes you have to create a GWT hyperlink and point it to the resource. On Sep 2, 6:28 pm, ALEXEI BARBONI alexeitel...@gmail.com wrote: Hi chandrahas, thanks for the answer I've been out from work last week. Now I have to create a way to the user of my application make adownloadof afilethat is in the server. I know the exactly location of thefileand its name. But I don't understand how to create a link (would be a GWT Hyperlink) that point to myfile. I think this way is easier than to create a servlet. Could anybody give me a little help about? thank you guys again 2009/8/25 chandrahas koyari koy...@gmail.com There are two general methods to achieve it 1. Create a link which directly point to that resource (file) 2. Point to a Servlet which respond with afile(by using getResourceAsFile() ) On Aug 25, 2:50 am, Alexei Telles alexeitel...@gmail.com wrote: Hi... I need to create a link in my web application where the user will downloadafilethat is in my server. I was searching for something in the web, but I could not find something about. Is there any GWT tool that allow me to develop a link in my application to make adownloadfrom the server to the client? Or another way that you guys use to do? Thanks again- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Download file
Hi guys, I still couldn't find the right way to create an hyperlink in my web app that makes a download of a file from the server to the client. When you say You have to create a GWT hyperlink and point it to the resource What method of the GWT Hyperlink do I use to point this hyperlink to the resource (the file to be downloaded in my server - I know the exactly location path + filename.) I can't find the method that I can use to point to this file. Can abybody give me a little help one more time? thanks again 2009/9/16 Ian Bambury ianbamb...@gmail.com Please don't post the same question more than once - at least, not in the same 5 minutes. Ian http://examples.roughian.com 2009/9/16 sathya sathyavik...@gmail.com I am having same problem in GWT 1.7. In my application, I need to download file from server to client. So I am directly using file path in window.open as shown below Window.open(“d:\result.xls”,_self,); This opens in Firefox as expected however this doesn’t work with IE7. Please let me know if there is any workaround to do this. I need this very urgently. Please help me out in resolving this. On Sep 3, 12:38 pm, chandrahas koyari koy...@gmail.com wrote: Yes you have to create a GWT hyperlink and point it to the resource. On Sep 2, 6:28 pm, ALEXEI BARBONI alexeitel...@gmail.com wrote: Hi chandrahas, thanks for the answer I've been out from work last week. Now I have to create a way to the user of my application make adownloadof afilethat is in the server. I know the exactly location of thefileand its name. But I don't understand how to create a link (would be a GWT Hyperlink) that point to myfile. I think this way is easier than to create a servlet. Could anybody give me a little help about? thank you guys again 2009/8/25 chandrahas koyari koy...@gmail.com There are two general methods to achieve it 1. Create a link which directly point to that resource (file) 2. Point to a Servlet which respond with afile(by using getResourceAsFile() ) On Aug 25, 2:50 am, Alexei Telles alexeitel...@gmail.com wrote: Hi... I need to create a link in my web application where the user will downloadafilethat is in my server. I was searching for something in the web, but I could not find something about. Is there any GWT tool that allow me to develop a link in my application to make adownloadfrom the server to the client? Or another way that you guys use to do? Thanks again- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Download file
Hi chandrahas, thanks for the answer I've been out from work last week. Now I have to create a way to the user of my application make a download of a file that is in the server. I know the exactly location of the file and its name. But I don't understand how to create a link (would be a GWT Hyperlink) that point to my file. I think this way is easier than to create a servlet. Could anybody give me a little help about? thank you guys again 2009/8/25 chandrahas koyari koy...@gmail.com There are two general methods to achieve it 1. Create a link which directly point to that resource (file) 2. Point to a Servlet which respond with a file (by using getResourceAsFile() ) On Aug 25, 2:50 am, Alexei Telles alexeitel...@gmail.com wrote: Hi... I need to create a link in my web application where the user will download a file that is in my server. I was searching for something in the web, but I could not find something about. Is there any GWT tool that allow me to develop a link in my application to make a download from the server to the client? Or another way that you guys use to do? Thanks again --~--~-~--~~~---~--~~ 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: Widgets
Thank you Thomas and Yanick, I downloaded SmartGWT... And I am getting used with GWT original widgets... Maybe they are really enough to develop the application 2009/8/21 Yanick yanick.roc...@gmail.com On Aug 20, 4:57 pm, Alexei Telles alexeitel...@gmail.com wrote: Hi folks, What widgets do you use in your GWT application? Currently I am using GWT widgets, but they are basic widgets i think. And there are only about 30 or more. I was searching for new options on the web and I found the GXT. In my case, I would have to buy one license. Take a look at SmartGWT, it's a growing project that deserves to be bookmarked and supported (with more themes, etc.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Server side
OPS, MY BAD FOLKS My Jar file doesn't have the jar's necessary. My apologize. 2009/8/18 Alexei Telles alexeitel...@gmail.com Hello guys. I'm trying finally to make my GWT application works client and server sides. I have a simple service (just one method for now). This method, on the server side, uses a Jar file (created for me) to connect in my database (MySql) using hibernate. I am having a problem to use hibernate (the java method that uses hibernate is in the jar file - that is in the class path of my GWT project). It throws me an exception when I am configuring hibernate SessionFactory sessionFactory = new Configuration().configure (guardian.hibernate.cfg.xml).buildSessionFactory(); I don't know if you guys use hibernate, but I am sure this problem is in my GWT project, because if I create a basic java project and try to use this Jar file (that uses hibernate) everithing works fine. The exception is: Aug 18, 2009 1:28:29 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1250602109691000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List br.com.engsys.voippanel.client.VoippanelService.getCallHistory (java.lang.String,java.lang.String,java.lang.String)' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:124) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Caused by: java.lang.ExceptionInInitializerError at br.com.engsys.guardian.persistence.HibernateUtil.clinit (HibernateUtil.java:13) at br.com.engsys.guardian.db.DaoApplications.getApplications (DaoApplications.java:57) at br.com.engsys.business.User.init(User.java:15) at br.com.engsys.voippanel.server.VoippanelServiceImpl.getCallHistory (VoippanelServiceImpl.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) ... 27 more Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException at
Re: RadioButton listener
OPS, MY BAD I tryied in the mozilla web browser and it is working fine, even when I click in the label of the radio. In the GWT browser does not. Is this a bug, or something? 2009/8/13 Alexei Telles alexeitel...@gmail.com Hello everybody I hava 2 Raio buttons in my application. Both are inside a FlowPanel. I just need to execute some stuffs when the user clicks in these radio's. I have: radio.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { gridEnterprise.setVisible(true); gridHome.setVisible(false); } }); The problem of this is: the event onClick is being executed only when I click in the radio itself (I mean - the little circle). If I click over the label of the radio, event is not executed. I was searching for some information about this in the group, bu I didn't find anything about. Does anybody know how to make the event be executed when I click in the label of the radio button? Or if I have to use another event? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Newbie - HTML pages
Hi jreue; Thank you very very much for the explanation. I couldn't find any explanation like this about this topic on the web. I am going to start implementing this right now. Thank you again Regards 2009/8/12 jreue jamesr...@gmail.com You should only need one html page. This is the main html page that you already have in your project. If you have done swing work, think of that html page as your JFrame if you will. I'll run through a simple example that should at least get you on your feet. Your html page could define the basic skeleton layout of your app, say a header at the top, a panel of your links right under it, and the rest of the bottom portion of the page is content that will change dynamically depending on the link clicked. In your html page you could define div's that define where these panels will go and give them an identifier id. div class=header id=header/div div class=linksPanel id=linksPanel/div div class=contentPanel id=contentPanel/div In your corresponding css file, add the necessary definitions to layout your page, size, borders, etc of each div. First you could create a class called MyContentPanel. It could be a singleton with static methods of getInstance() and replaceContent(). This was you will have 1 content panel you can access statically. public class MyContentPanel extends VerticalPanel { private static MyContentPanel INSTANCE = null; // do not allow outside instantiation private MyContentPanel() { //do layout panel stuff etc } public synchronized static MyContentPanel getInstance() { if (INSTANCE==null) INSTANCE = new MyContentPanel(); return INSTANCE; } public static void replaceContent(Widget widget) { MyContentPanel content = getInstance(); .. remove all current children using getWidgetCount and remove(int) or remove(Widget) .. content.add(widget); } } For your link section, you could create a class called MyLinkPanel that extends Composite (or maybe HorizontalPanel, etc) that defines your link panel. You could set up handlers on the links that would be responsible for firing an event to show a particular page in the MyContentPanel. Lets say when you click link1, it needs to show a particular page in the ContentPanel. Well, create your page again as a class that extends again, Composite or some panel or whatever. Lets say we call it MyLoginPage. On the handler on link1 could make a static call to pop it on the content panel like so: MyContentPanel.replaceContent(new MyLoginPage()); Lets say your app is called MyApp, you will have a MyApp.java file that implements EntryPoint where you will implement the method onModuleLoad(). This would be responsible do initializing your app by public class MyApp implements EntryPoint { public void onModuleLoad( ) { RootPanel.get(header).add(new HeaderPanel()); RootPanel.get(linkPanel).add(new MyLinkPanel()); // add the singleton panel to the contentPanel div RootPanel.get(contentPanel).add(ContentPanel.getInstance()); } } Now that the framework is defined, you can just create new panels instead of HTML pages and put them in the content panel by calling the static ContentPanel.replaceContent(widget) method. Remember, think java, not html. It's kind of why GWT was invented :) On Aug 11, 2:01 pm, Alexei Telles alexeitel...@gmail.com wrote: Hello everybody.. I am just beginning with GWT development and this is my first post. I have some experience with web development. I am using Eclipse as IDE for developing. I created an GWT project using the GWT plugin for Eclipse. So far, so good... Eclipse created the packages, classes, etc.. I am able to change the client and the server-side, make deploy on tomcat. Everithing is working fine. My question is: I need to develop an application that will heavy many pages. Do I need one GWT project to each page of my application? Or can I have many HTML's in my WAR folder and only one project? My idea is to have some links in the top of these pages. Each link to a page of the application. I am not sure how to do that. I've searching for in the web, but I got nothing about. Can anybody give me a little help about? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---