Re: can it be ?
you can create a new module for test.vo.example. For example, create a .gwt.xml at test.vo package. At your existing gwt.xml, add the following code ... ... .. .. On Jan 3, 7:26 pm, jimmy6 wrote: > How can i do this . I just want the > following sub package included. Can? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
CheckboxSelectionModel: uncheck All is not working in Firefox
Hi I am using CheckboxSelectionModel to CheckAll/UncheckAll. This check box is working fine in IE.But in Firefox Uncheck all is not working (i.e. all the checkboxes are not getting unchecked when click on header checkbox). Check all is working fine. Iam using Firefox 3.0.5 Please help me Cris --~--~-~--~~~---~--~~ You received 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: gwt1.5 + ejb3 crud example
you can refer to Gilead. The former name of Gilead is Hibernate4Gwt. The Gilead is refactored for generically support ejb3 without using hibernate annotation. you can refer http://noon.gilead.free.fr/gilead/index.php?page=gwt On Jan 4, 8:11 pm, asianCoolz wrote: > is there any real example of this using annotation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to change the name of the host html page in project
I can look into what features the maven plugin may have but I think I'm missing something. I don't understand why changing the name to index.html fixes things. And by fixing things I mean get rid of package names in the URL. I'm not a web guru, I spend most of my time with jars/apps not wars so I'm somewhat unclear which part does what. I have the following structure in the non-gwt part: - webapp - WEB-INF web.xml index.html (this index.html file contains content="0;url=com.companyname.website.App/App.html">) Then in the gwt part I have an App.html file in the public folder. (this html file contains ) Why does changing the name of the later fix anything? -Dave 2009/1/4 gregor > > yeah, that's why I use Ant: I know how it works! > > In that maven thing I would think the key is around here: > > >com.totsp.sample.Application > >com.totsp.sample.Application/ > Application.html > > One way or another I expect you could alter that to your > taste, but I don't know what the side effects/pre-conditions it might > be. As I say I just use Ant to build my wars. > > On Jan 4, 11:49 pm, "David Hoffer" wrote: > > I don't know what plugin you are referring to. I used > > maven-googlewebtoolkit2-plugin which worked very well. I'm no expert on > its > > usage but I don't have and don't know about any feature like you > describe. > > > > -Dave > > > > 2009/1/4 gregor > > > > > > > > > I would have thought > > > > > > > > > > >META-INF/plexus > > > > > in a POM more or less does the same job in maven. no? > > > > > On Jan 4, 10:36 pm, "David Hoffer" wrote: > > > > Because not everyone uses Ant. Some use maven to build the war, it's > not > > > a > > > > standard practice to rename during the compile/deploy process and > > > therefore > > > > maven it not going to do this. > > > > > > -Dave > > > > > > On Sun, Jan 4, 2009 at 3:11 PM, gregor > > > > wrote: > > > > > > > Because not everyone wants to organize their web sites the same way > or > > > > > wants to call their GWT module bootstrap file index.html? As Addy > > > > > says, what's the problem with Ant? > > > > > > > On Jan 4, 7:55 pm, "David Hoffer" wrote: > > > > > > In this case why not just name it statically index.html? Why > wait? > > > > > > > > -Dave > > > > > > > > 2009/1/4 Addy > > > > > > > > > I use a simple ant task to rename the file during the build > > > process. > > > > > > > You dont have to do anything else. > > > > > > > > > > > > > > > > > > You can see it here:- > > > > > > > > >http://checkappointments.com/checkAppointments/index.html > > > > > > > > > regards, > > > > > > > Addy > > > > > > >http://checkAppointments.com > > > > > > > > > On Jan 3, 1:10 pm, "David Hoffer" wrote: > > > > > > > > Thanks for the reply. It sounds like you are suggesting a > manual > > > > > > > process. > > > > > > > > I'm looking for an auto process, something I can do in > > > code/xml/html > > > > > and > > > > > > > it > > > > > > > > just works. I use maven to build a war, I don't have the > option > > > of > > > > > > > manually > > > > > > > > moving files around. Is there a way I can code this in my > > > gwt.xml > > > > > and/or > > > > > > > > html, etc? > > > > > > > > > > Again, my goal here is to remove the package names from the > URLs > > > so > > > > > the > > > > > > > site > > > > > > > > URLs look more 'normal'. I.e. my index.html file (which is > my > > > > > > > welcome-file > > > > > > > > in my web.xml) points to > com.mycompanyname.website.App/App.html. > > > I > > > > > don't > > > > > > > > want users to see all this package stuff. > > > > > > > > > > -Dave > > > > > > > > > > 2009/1/3 Ian Bambury > > > > > > > > > > > Once compiled, take all the files inside the package-name > > > folder > > > > > and > > > > > > > put > > > > > > > > > them wherever you like. You can also change the host html > page > > > name > > > > > to > > > > > > > > > anything you want. If you change it in the source code, you > > > will > > > > > have > > > > > > > to > > > > > > > > > change it in any file that runs hosted mode. > > > > > > > > > Just change 'MyProject.html' to the new name i.e. if there > is > > > no > > > > > > > '.html' > > > > > > > > > after the 'MyProject', don't change it because it is > referring > > > to > > > > > > > something > > > > > > > > > else - the actual project itself or maybe the prefix to the > > > gwt.xml > > > > > > > file. > > > > > > > > > > > That is the problem with the project creator, although it > makes > > > > > things > > > > > > > easy > > > > > > > > > by asking for one name (e.g. MyProject) it names everything > as > > > > > > > MyProject - > > > > > > > > > the main class file, the html file, the gwt.xml file, the > > > launch > > > > > files, > > > > > > > and > > > > > > > > > the project folder. > > > > > > > > > > > If you go to my site and join up (and confirm your em
Re: How to change the name of the host html page in project
yeah, that's why I use Ant: I know how it works! In that maven thing I would think the key is around here: com.totsp.sample.Application com.totsp.sample.Application/ Application.html One way or another I expect you could alter that to your taste, but I don't know what the side effects/pre-conditions it might be. As I say I just use Ant to build my wars. On Jan 4, 11:49 pm, "David Hoffer" wrote: > I don't know what plugin you are referring to. I used > maven-googlewebtoolkit2-plugin which worked very well. I'm no expert on its > usage but I don't have and don't know about any feature like you describe. > > -Dave > > 2009/1/4 gregor > > > > > I would have thought > > > > > > > META-INF/plexus > > > in a POM more or less does the same job in maven. no? > > > On Jan 4, 10:36 pm, "David Hoffer" wrote: > > > Because not everyone uses Ant. Some use maven to build the war, it's not > > a > > > standard practice to rename during the compile/deploy process and > > therefore > > > maven it not going to do this. > > > > -Dave > > > > On Sun, Jan 4, 2009 at 3:11 PM, gregor > > wrote: > > > > > Because not everyone wants to organize their web sites the same way or > > > > wants to call their GWT module bootstrap file index.html? As Addy > > > > says, what's the problem with Ant? > > > > > On Jan 4, 7:55 pm, "David Hoffer" wrote: > > > > > In this case why not just name it statically index.html? Why wait? > > > > > > -Dave > > > > > > 2009/1/4 Addy > > > > > > > I use a simple ant task to rename the file during the build > > process. > > > > > > You dont have to do anything else. > > > > > > > > > > > > > > You can see it here:- > > > > > > >http://checkappointments.com/checkAppointments/index.html > > > > > > > regards, > > > > > > Addy > > > > > >http://checkAppointments.com > > > > > > > On Jan 3, 1:10 pm, "David Hoffer" wrote: > > > > > > > Thanks for the reply. It sounds like you are suggesting a manual > > > > > > process. > > > > > > > I'm looking for an auto process, something I can do in > > code/xml/html > > > > and > > > > > > it > > > > > > > just works. I use maven to build a war, I don't have the option > > of > > > > > > manually > > > > > > > moving files around. Is there a way I can code this in my > > gwt.xml > > > > and/or > > > > > > > html, etc? > > > > > > > > Again, my goal here is to remove the package names from the URLs > > so > > > > the > > > > > > site > > > > > > > URLs look more 'normal'. I.e. my index.html file (which is my > > > > > > welcome-file > > > > > > > in my web.xml) points to com.mycompanyname.website.App/App.html. > > I > > > > don't > > > > > > > want users to see all this package stuff. > > > > > > > > -Dave > > > > > > > > 2009/1/3 Ian Bambury > > > > > > > > > Once compiled, take all the files inside the package-name > > folder > > > > and > > > > > > put > > > > > > > > them wherever you like. You can also change the host html page > > name > > > > to > > > > > > > > anything you want. If you change it in the source code, you > > will > > > > have > > > > > > to > > > > > > > > change it in any file that runs hosted mode. > > > > > > > > Just change 'MyProject.html' to the new name i.e. if there is > > no > > > > > > '.html' > > > > > > > > after the 'MyProject', don't change it because it is referring > > to > > > > > > something > > > > > > > > else - the actual project itself or maybe the prefix to the > > gwt.xml > > > > > > file. > > > > > > > > > That is the problem with the project creator, although it makes > > > > things > > > > > > easy > > > > > > > > by asking for one name (e.g. MyProject) it names everything as > > > > > > MyProject - > > > > > > > > the main class file, the html file, the gwt.xml file, the > > launch > > > > files, > > > > > > and > > > > > > > > the project folder. > > > > > > > > > If you go to my site and join up (and confirm your email > > address, > > > > just > > > > > > so > > > > > > > > people can't subscribe other people) for the free email course, > > the > > > > > > first > > > > > > > > day (which is sent immediately) there is a project you can > > > > download > > > > > > which > > > > > > > > has all the elements named differently. You can always > > unsubscribe > > > > > > > > immediately afterwards - the course mostly assumes you have > > > > Eclipse, so > > > > > > a > > > > > > > > lot of it might not be relevant for you. > > > > > > > > > Ian > > > > > > > > >http://examples.roughian.com > > > > > > > > > 2009/1/3 David Hoffer > > > > > > > > > Could you post what you did to make this work? I am not having > > any > > > > > > success > > > > > > > >> with the linkhttp:// > > > > > > java.dzone.com/tips/getting-rid-package-based-gwt-. > > > > > > > >> Also I don't use eclipse, could you explain in non-eclipse > > terms > > > > how I > > > > > > can > > > > > > > >> remove the package names from the
Re: Deploy GWT application with hibernate config xml files
It depends on how you build the WAR file. Are you using Ant or Maven? You just need to make sure that you're including the *.hbm.xml files in the WAR. -- Arthur Kalmenson On Tue, Dec 30, 2008 at 9:53 AM, ganesh wrote: > > I have hibernate.cfg.xml and *.hbm.xml files in a package /com/test/ > server/config folder. > > /com/test/client/Example.java > /com/test/server/ > > How do i deploy these cfg.xml and hbm.xml files to the 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-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 without commons or bundled by Maven?
How are you using GWT with Maven? Are you using the gwt-maven google code project? Are you using the central repo GWT jars? Which commons libraries are conflicting? -- Arthur Kalmenson On Tue, Dec 30, 2008 at 3:58 AM, Sven wrote: > > Dear all, > > I had an issue with a version conflict of commons digester coming > bundled with GWT and the version coming from my project's Maven > dependencies. > > Is there any way either to remove all commons classes from gwt-dev- > windows.jar and use explicit commons jars instead? E.g. by using maven > or manually? > > What is the reason for bundeling those classes? From my point of view, > it would be good to avoid any implicit use of other artifacts which > may cause errors in case of conficts. > > Thanks > Sven > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to change the name of the host html page in project
I don't know what plugin you are referring to. I used maven-googlewebtoolkit2-plugin which worked very well. I'm no expert on its usage but I don't have and don't know about any feature like you describe. -Dave 2009/1/4 gregor > > I would have thought > > > >META-INF/plexus > > in a POM more or less does the same job in maven. no? > > > > On Jan 4, 10:36 pm, "David Hoffer" wrote: > > Because not everyone uses Ant. Some use maven to build the war, it's not > a > > standard practice to rename during the compile/deploy process and > therefore > > maven it not going to do this. > > > > -Dave > > > > On Sun, Jan 4, 2009 at 3:11 PM, gregor > wrote: > > > > > Because not everyone wants to organize their web sites the same way or > > > wants to call their GWT module bootstrap file index.html? As Addy > > > says, what's the problem with Ant? > > > > > On Jan 4, 7:55 pm, "David Hoffer" wrote: > > > > In this case why not just name it statically index.html? Why wait? > > > > > > -Dave > > > > > > 2009/1/4 Addy > > > > > > > I use a simple ant task to rename the file during the build > process. > > > > > You dont have to do anything else. > > > > > > > > > > > > > > You can see it here:- > > > > > > >http://checkappointments.com/checkAppointments/index.html > > > > > > > regards, > > > > > Addy > > > > >http://checkAppointments.com > > > > > > > On Jan 3, 1:10 pm, "David Hoffer" wrote: > > > > > > Thanks for the reply. It sounds like you are suggesting a manual > > > > > process. > > > > > > I'm looking for an auto process, something I can do in > code/xml/html > > > and > > > > > it > > > > > > just works. I use maven to build a war, I don't have the option > of > > > > > manually > > > > > > moving files around. Is there a way I can code this in my > gwt.xml > > > and/or > > > > > > html, etc? > > > > > > > > Again, my goal here is to remove the package names from the URLs > so > > > the > > > > > site > > > > > > URLs look more 'normal'. I.e. my index.html file (which is my > > > > > welcome-file > > > > > > in my web.xml) points to com.mycompanyname.website.App/App.html. > I > > > don't > > > > > > want users to see all this package stuff. > > > > > > > > -Dave > > > > > > > > 2009/1/3 Ian Bambury > > > > > > > > > Once compiled, take all the files inside the package-name > folder > > > and > > > > > put > > > > > > > them wherever you like. You can also change the host html page > name > > > to > > > > > > > anything you want. If you change it in the source code, you > will > > > have > > > > > to > > > > > > > change it in any file that runs hosted mode. > > > > > > > Just change 'MyProject.html' to the new name i.e. if there is > no > > > > > '.html' > > > > > > > after the 'MyProject', don't change it because it is referring > to > > > > > something > > > > > > > else - the actual project itself or maybe the prefix to the > gwt.xml > > > > > file. > > > > > > > > > That is the problem with the project creator, although it makes > > > things > > > > > easy > > > > > > > by asking for one name (e.g. MyProject) it names everything as > > > > > MyProject - > > > > > > > the main class file, the html file, the gwt.xml file, the > launch > > > files, > > > > > and > > > > > > > the project folder. > > > > > > > > > If you go to my site and join up (and confirm your email > address, > > > just > > > > > so > > > > > > > people can't subscribe other people) for the free email course, > the > > > > > first > > > > > > > day (which is sent immediately) there is a project you can > > > download > > > > > which > > > > > > > has all the elements named differently. You can always > unsubscribe > > > > > > > immediately afterwards - the course mostly assumes you have > > > Eclipse, so > > > > > a > > > > > > > lot of it might not be relevant for you. > > > > > > > > > Ian > > > > > > > > >http://examples.roughian.com > > > > > > > > > 2009/1/3 David Hoffer > > > > > > > > > Could you post what you did to make this work? I am not having > any > > > > > success > > > > > > >> with the linkhttp:// > > > > > java.dzone.com/tips/getting-rid-package-based-gwt-. > > > > > > >> Also I don't use eclipse, could you explain in non-eclipse > terms > > > how I > > > > > can > > > > > > >> remove the package names from the browser URLs? > > > > > > > > >> -Dave > > > > > > > > >> 2008/12/29 giannisdag > > > > > > > > >>> Thank you, it is very simple as it should be. > > > > > > > > >>> On 29 Δεκ, 16:13, "Ian Bambury" > wrote: > > > > > > >>> > Don't do all that. Rename the page to index.html. In any > > > .launch > > > > > file, > > > > > > >>> > rename just the ProjectName.html part - just one place - > leave > > > > > > >>> everything > > > > > > >>> > else alone. > > > > > > >>> > Ian > > > > > > > > >>> >http://examples.roughian.com > > > > > > > > >>> > 2008/12/29 giannisdag > > > > > > > > >>> > > Hi, > > > > > > >>> > > I can' t figure out the solution to a simple problem. I > want > > > to
Re: How to change the name of the host html page in project
I would have thought META-INF/plexus in a POM more or less does the same job in maven. no? On Jan 4, 10:36 pm, "David Hoffer" wrote: > Because not everyone uses Ant. Some use maven to build the war, it's not a > standard practice to rename during the compile/deploy process and therefore > maven it not going to do this. > > -Dave > > On Sun, Jan 4, 2009 at 3:11 PM, gregor wrote: > > > Because not everyone wants to organize their web sites the same way or > > wants to call their GWT module bootstrap file index.html? As Addy > > says, what's the problem with Ant? > > > On Jan 4, 7:55 pm, "David Hoffer" wrote: > > > In this case why not just name it statically index.html? Why wait? > > > > -Dave > > > > 2009/1/4 Addy > > > > > I use a simple ant task to rename the file during the build process. > > > > You dont have to do anything else. > > > > > > > > > > You can see it here:- > > > > >http://checkappointments.com/checkAppointments/index.html > > > > > regards, > > > > Addy > > > >http://checkAppointments.com > > > > > On Jan 3, 1:10 pm, "David Hoffer" wrote: > > > > > Thanks for the reply. It sounds like you are suggesting a manual > > > > process. > > > > > I'm looking for an auto process, something I can do in code/xml/html > > and > > > > it > > > > > just works. I use maven to build a war, I don't have the option of > > > > manually > > > > > moving files around. Is there a way I can code this in my gwt.xml > > and/or > > > > > html, etc? > > > > > > Again, my goal here is to remove the package names from the URLs so > > the > > > > site > > > > > URLs look more 'normal'. I.e. my index.html file (which is my > > > > welcome-file > > > > > in my web.xml) points to com.mycompanyname.website.App/App.html. I > > don't > > > > > want users to see all this package stuff. > > > > > > -Dave > > > > > > 2009/1/3 Ian Bambury > > > > > > > Once compiled, take all the files inside the package-name folder > > and > > > > put > > > > > > them wherever you like. You can also change the host html page name > > to > > > > > > anything you want. If you change it in the source code, you will > > have > > > > to > > > > > > change it in any file that runs hosted mode. > > > > > > Just change 'MyProject.html' to the new name i.e. if there is no > > > > '.html' > > > > > > after the 'MyProject', don't change it because it is referring to > > > > something > > > > > > else - the actual project itself or maybe the prefix to the gwt.xml > > > > file. > > > > > > > That is the problem with the project creator, although it makes > > things > > > > easy > > > > > > by asking for one name (e.g. MyProject) it names everything as > > > > MyProject - > > > > > > the main class file, the html file, the gwt.xml file, the launch > > files, > > > > and > > > > > > the project folder. > > > > > > > If you go to my site and join up (and confirm your email address, > > just > > > > so > > > > > > people can't subscribe other people) for the free email course, the > > > > first > > > > > > day (which is sent immediately) there is a project you can > > download > > > > which > > > > > > has all the elements named differently. You can always unsubscribe > > > > > > immediately afterwards - the course mostly assumes you have > > Eclipse, so > > > > a > > > > > > lot of it might not be relevant for you. > > > > > > > Ian > > > > > > >http://examples.roughian.com > > > > > > > 2009/1/3 David Hoffer > > > > > > > Could you post what you did to make this work? I am not having any > > > > success > > > > > >> with the linkhttp:// > > > > java.dzone.com/tips/getting-rid-package-based-gwt-. > > > > > >> Also I don't use eclipse, could you explain in non-eclipse terms > > how I > > > > can > > > > > >> remove the package names from the browser URLs? > > > > > > >> -Dave > > > > > > >> 2008/12/29 giannisdag > > > > > > >>> Thank you, it is very simple as it should be. > > > > > > >>> On 29 Δεκ, 16:13, "Ian Bambury" wrote: > > > > > >>> > Don't do all that. Rename the page to index.html. In any > > .launch > > > > file, > > > > > >>> > rename just the ProjectName.html part - just one place - leave > > > > > >>> everything > > > > > >>> > else alone. > > > > > >>> > Ian > > > > > > >>> >http://examples.roughian.com > > > > > > >>> > 2008/12/29 giannisdag > > > > > > >>> > > Hi, > > > > > >>> > > I can' t figure out the solution to a simple problem. I want > > to > > > > > >>> rename > > > > > >>> > > my first html page to index.html. I am using eclipse. I have > > > > renamed > > > > > >>> > > the html page and the corresponding java class file to > > index.htm. > > > > > >>> Also > > > > > >>> > > i have changed the entry point of the settings xml file to > > > > > >>> > > > > > > > >>> > > But when i am running in host mode, i keep getting the > > following > > > > > >>> > > error. > > > > > >>> > > [WARN] Resource not found: villaView.html; (could a file be > > > > missing > > > > > >>> > > from the public path
Re: Getting java.net.SocketTimeoutException: Read timed out
Please provide more details on what you are doing. Are you getting this error on client or server? How much time does your request waits? Is it because of long executing methods? The error message clearly reads that it is a time out exception. My guess is some operation on server is taking more time than your time out values set. For a better answer, give us more information. Rakesh Wagh On Jan 4, 12:45 am, tin wrote: > Hi All, > > I occassionally get this exception when my app's page is getting > downloaded in the broser. In my application, I make few rpc calls to > fetch the data once the JSP is downloaded by the browser. > > Any help in this will greatly be appreciated. No concrete answer could > be found for this on the internet but it seeems others have faced this > problem too. > > Stack Trace: > > java.net.SocketTimeoutException: Read timed out > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at org.apache.coyote.http11.InternalInputBuffer.fill > (InternalInputBuffer.java:747) > at org.apache.coyote.http11.InternalInputBuffer > $InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) > at org.apache.coyote.http11.filters.IdentityInputFilter.doRead > (IdentityInputFilter.java:115) > at org.apache.coyote.http11.InternalInputBuffer.doRead > (InternalInputBuffer.java:712) > at org.apache.coyote.Request.doRead(Request.java:427) > at org.apache.catalina.connector.InputBuffer.realReadBytes > (InputBuffer.java:283) > at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:379) > at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java: > 298) > at org.apache.catalina.connector.CoyoteInputStream.read > (CoyoteInputStream.java:180) > at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 > (RPCServletUtils.java:146) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent > (RemoteServiceServlet.java:335) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:77) > at org.gwtwidgets.server.spring.GWTSpringController.handleRequest > (GWTSpringController.java:82) > at > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle > (SimpleControllerHandlerAdapter.java:48) > at org.springframework.web.servlet.DispatcherServlet.doDispatch > (DispatcherServlet.java:875) > at org.springframework.web.servlet.DispatcherServlet.doService > (DispatcherServlet.java:809) > at org.springframework.web.servlet.FrameworkServlet.processRequest > (FrameworkServlet.java:523) > at org.springframework.web.servlet.FrameworkServlet.doPost > (FrameworkServlet.java:463) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) --~--~-~--~~~---~--~~ You received 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 Question on GWT/JSON
You probably got your answer by now. Think this way. JSON string is like any other string. The transport mechanism does not have to know weather it is json or text or number or binary or otherwise. With that said, you can use forms with get or post(knowing the advantages drawback of each will help you select the right mechanism) and simply posting it to your php page. In your php page, read the request parameters as if they were any other parameters. As a matter of fact you can even append the json string as part of your target page url with a variable name and expect the json string (with a hyperlink click) to reach its destination as expected. Good luck! Rakesh Wagh On Jan 3, 9:09 pm, Ian wrote: > I am new to the Web application world; I am trying to encapsulate my > set of data in a JSONObject, convert to string, and send it (async > POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial > discusses the trip from the server back to the client and not the > other way around where I am unclear about. > > Do I need to set the header? Currently I set it to: > builder.setHeader("Content-Type", "application/x-www-form- > urlencoded"); > > However, this works fine as long as am sending > key1=value1&key2=values where I can retrieve variable via $_POST > ['key1'] or $_POST['key2'] > > But I am not sure how to send a JSON string where it can be retrieved > in a php page. I have tried sending myvar=MyJsonString but cannot > retrieve in my php page. How should $_POST reference the JSON object? > > Any clarification would be much appreciated. > > 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to change the name of the host html page in project
Because not everyone uses Ant. Some use maven to build the war, it's not a standard practice to rename during the compile/deploy process and therefore maven it not going to do this. -Dave On Sun, Jan 4, 2009 at 3:11 PM, gregor wrote: > > Because not everyone wants to organize their web sites the same way or > wants to call their GWT module bootstrap file index.html? As Addy > says, what's the problem with Ant? > > On Jan 4, 7:55 pm, "David Hoffer" wrote: > > In this case why not just name it statically index.html? Why wait? > > > > -Dave > > > > 2009/1/4 Addy > > > > > > > > > I use a simple ant task to rename the file during the build process. > > > You dont have to do anything else. > > > > > > > > > > You can see it here:- > > > > >http://checkappointments.com/checkAppointments/index.html > > > > > regards, > > > Addy > > >http://checkAppointments.com > > > > > On Jan 3, 1:10 pm, "David Hoffer" wrote: > > > > Thanks for the reply. It sounds like you are suggesting a manual > > > process. > > > > I'm looking for an auto process, something I can do in code/xml/html > and > > > it > > > > just works. I use maven to build a war, I don't have the option of > > > manually > > > > moving files around. Is there a way I can code this in my gwt.xml > and/or > > > > html, etc? > > > > > > Again, my goal here is to remove the package names from the URLs so > the > > > site > > > > URLs look more 'normal'. I.e. my index.html file (which is my > > > welcome-file > > > > in my web.xml) points to com.mycompanyname.website.App/App.html. I > don't > > > > want users to see all this package stuff. > > > > > > -Dave > > > > > > 2009/1/3 Ian Bambury > > > > > > > Once compiled, take all the files inside the package-name folder > and > > > put > > > > > them wherever you like. You can also change the host html page name > to > > > > > anything you want. If you change it in the source code, you will > have > > > to > > > > > change it in any file that runs hosted mode. > > > > > Just change 'MyProject.html' to the new name i.e. if there is no > > > '.html' > > > > > after the 'MyProject', don't change it because it is referring to > > > something > > > > > else - the actual project itself or maybe the prefix to the gwt.xml > > > file. > > > > > > > That is the problem with the project creator, although it makes > things > > > easy > > > > > by asking for one name (e.g. MyProject) it names everything as > > > MyProject - > > > > > the main class file, the html file, the gwt.xml file, the launch > files, > > > and > > > > > the project folder. > > > > > > > If you go to my site and join up (and confirm your email address, > just > > > so > > > > > people can't subscribe other people) for the free email course, the > > > first > > > > > day (which is sent immediately) there is a project you can > download > > > which > > > > > has all the elements named differently. You can always unsubscribe > > > > > immediately afterwards - the course mostly assumes you have > Eclipse, so > > > a > > > > > lot of it might not be relevant for you. > > > > > > > Ian > > > > > > >http://examples.roughian.com > > > > > > > 2009/1/3 David Hoffer > > > > > > > Could you post what you did to make this work? I am not having any > > > success > > > > >> with the linkhttp:// > > > java.dzone.com/tips/getting-rid-package-based-gwt-. > > > > >> Also I don't use eclipse, could you explain in non-eclipse terms > how I > > > can > > > > >> remove the package names from the browser URLs? > > > > > > >> -Dave > > > > > > >> 2008/12/29 giannisdag > > > > > > >>> Thank you, it is very simple as it should be. > > > > > > >>> On 29 Δεκ, 16:13, "Ian Bambury" wrote: > > > > >>> > Don't do all that. Rename the page to index.html. In any > .launch > > > file, > > > > >>> > rename just the ProjectName.html part - just one place - leave > > > > >>> everything > > > > >>> > else alone. > > > > >>> > Ian > > > > > > >>> >http://examples.roughian.com > > > > > > >>> > 2008/12/29 giannisdag > > > > > > >>> > > Hi, > > > > >>> > > I can' t figure out the solution to a simple problem. I want > to > > > > >>> rename > > > > >>> > > my first html page to index.html. I am using eclipse. I have > > > renamed > > > > >>> > > the html page and the corresponding java class file to > index.htm. > > > > >>> Also > > > > >>> > > i have changed the entry point of the settings xml file to > > > > >>> > > > > > > >>> > > But when i am running in host mode, i keep getting the > following > > > > >>> > > error. > > > > >>> > > [WARN] Resource not found: villaView.html; (could a file be > > > missing > > > > >>> > > from the public path or a tag misconfigured in > module > > > > >>> > > com.xel.gwt.villaView.gwt.xml ?) > > > > >>> > > [TRACE] The development shell servlet received a request for > > > > >>> > > 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml' > > > > >>> > > How can I change the development shell servlet to fix the > > > problem? > > > --~-
Re: How to change the name of the host html page in project
Because not everyone wants to organize their web sites the same way or wants to call their GWT module bootstrap file index.html? As Addy says, what's the problem with Ant? On Jan 4, 7:55 pm, "David Hoffer" wrote: > In this case why not just name it statically index.html? Why wait? > > -Dave > > 2009/1/4 Addy > > > > > I use a simple ant task to rename the file during the build process. > > You dont have to do anything else. > > > > > > You can see it here:- > > >http://checkappointments.com/checkAppointments/index.html > > > regards, > > Addy > >http://checkAppointments.com > > > On Jan 3, 1:10 pm, "David Hoffer" wrote: > > > Thanks for the reply. It sounds like you are suggesting a manual > > process. > > > I'm looking for an auto process, something I can do in code/xml/html and > > it > > > just works. I use maven to build a war, I don't have the option of > > manually > > > moving files around. Is there a way I can code this in my gwt.xml and/or > > > html, etc? > > > > Again, my goal here is to remove the package names from the URLs so the > > site > > > URLs look more 'normal'. I.e. my index.html file (which is my > > welcome-file > > > in my web.xml) points to com.mycompanyname.website.App/App.html. I don't > > > want users to see all this package stuff. > > > > -Dave > > > > 2009/1/3 Ian Bambury > > > > > Once compiled, take all the files inside the package-name folder and > > put > > > > them wherever you like. You can also change the host html page name to > > > > anything you want. If you change it in the source code, you will have > > to > > > > change it in any file that runs hosted mode. > > > > Just change 'MyProject.html' to the new name i.e. if there is no > > '.html' > > > > after the 'MyProject', don't change it because it is referring to > > something > > > > else - the actual project itself or maybe the prefix to the gwt.xml > > file. > > > > > That is the problem with the project creator, although it makes things > > easy > > > > by asking for one name (e.g. MyProject) it names everything as > > MyProject - > > > > the main class file, the html file, the gwt.xml file, the launch files, > > and > > > > the project folder. > > > > > If you go to my site and join up (and confirm your email address, just > > so > > > > people can't subscribe other people) for the free email course, the > > first > > > > day (which is sent immediately) there is a project you can download > > which > > > > has all the elements named differently. You can always unsubscribe > > > > immediately afterwards - the course mostly assumes you have Eclipse, so > > a > > > > lot of it might not be relevant for you. > > > > > Ian > > > > >http://examples.roughian.com > > > > > 2009/1/3 David Hoffer > > > > > Could you post what you did to make this work? I am not having any > > success > > > >> with the linkhttp:// > > java.dzone.com/tips/getting-rid-package-based-gwt-. > > > >> Also I don't use eclipse, could you explain in non-eclipse terms how I > > can > > > >> remove the package names from the browser URLs? > > > > >> -Dave > > > > >> 2008/12/29 giannisdag > > > > >>> Thank you, it is very simple as it should be. > > > > >>> On 29 Δεκ, 16:13, "Ian Bambury" wrote: > > > >>> > Don't do all that. Rename the page to index.html. In any .launch > > file, > > > >>> > rename just the ProjectName.html part - just one place - leave > > > >>> everything > > > >>> > else alone. > > > >>> > Ian > > > > >>> >http://examples.roughian.com > > > > >>> > 2008/12/29 giannisdag > > > > >>> > > Hi, > > > >>> > > I can' t figure out the solution to a simple problem. I want to > > > >>> rename > > > >>> > > my first html page to index.html. I am using eclipse. I have > > renamed > > > >>> > > the html page and the corresponding java class file to index.htm. > > > >>> Also > > > >>> > > i have changed the entry point of the settings xml file to > > > >>> > > > > > >>> > > But when i am running in host mode, i keep getting the following > > > >>> > > error. > > > >>> > > [WARN] Resource not found: villaView.html; (could a file be > > missing > > > >>> > > from the public path or a tag misconfigured in module > > > >>> > > com.xel.gwt.villaView.gwt.xml ?) > > > >>> > > [TRACE] The development shell servlet received a request for > > > >>> > > 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml' > > > >>> > > How can I change the development shell servlet to fix the > > problem? --~--~-~--~~~---~--~~ You received 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: Get file from server with GWT-RPC
Hi Daniele, Your problem is that: private static String UPLOAD_DIRECTORY = "./src/com/webphotogallery/server/category/"; does not exist under the temporary GWT dev shell Tomcat instance created when you run hosted mode, whatever your development environment. To sort this out you will have to think through where in a production environment the photos would actually be stored. To do this quick and get it to work in hosted mode, I think if you put them under the /public directory rather than /server, it might do the trick. regards gregor On Jan 4, 1:13 pm, Daniele wrote: > It's doesn't work. > My project directory structure is: > > /home/dany/TESI/projects/WebPhotoGallery/ > -- build/ > -- src > -- com > -- webphotogallery > -- server > -- category > -- [...] > -- client > -- public > -- tomcat > -- WebConten > > (I use Eclipse with Cypal studio plugin) > > On servlet, the code for create category directory is: > > private static String UPLOAD_DIRECTORY = > "./src/com/webphotogallery/server/category/"; > [...] > > if((it.getFieldName().equals("categoryBox"))){ > String categoryFolder = it.getString(); > > UPLOAD_DIRECTORY = UPLOAD_DIRECTORY + > categoryFolder; > [...] > where categoryFolder is passed by client with a form. > But when I call setURL() method on client, what URL I > put??http://localhost:/com.webphotogallery.WebPhotoGallery/category/ca... > not works. > > I'm totally disoriented. > > Thanks. > > Daniele. > > 2008/12/28 Daniele : > > > Sorry, but I'm newbie of servlet & GWT...I'm here for learning GWT and > > servlet :) > > I try. > > Thanks. > > > Daniele. > > > 2008/12/28 rakesh wagh : > > >> Cannot comment on what you are doing wrong without looking into the > >> code. However I see no need for setUrl on server side. You should have > >> a "Servlet" that will parse the parameters, read the appropriate image > >> file(either file system or db or any doc mgmt system for that matter), > >> set a proper content type and just spit out the byte stream. > > >> From the client just call this servlet with appropriate params for it > >> to retrieve the image. In essence: > >> Image img = new Image(); > >> img.setUrl("/servlet?photoId=39934&width=50"); > > >> Rakesh Wagh > > >> On Dec 26, 4:26 pm, Daniele wrote: > >>> I cannot planning image manipulation. > >>> If images are on client sides, setUrl() etc it works. > > >>> On server side, I have an undefined number of folders that represent > >>> photo category, but if I put on setUrl() method path to folders on > >>> server, it's not work. > > >>> 2008/12/26 rakesh wagh : > > >>> > ask yourself: > >>> > Even if you get your image/files using rpc, what will you do with it? > >>> > I mean there is no real application of getting binary files using rpc > >>> > yet. Are you planning to do image manipulations like rotation, > >>> > filters, etc on the client side? js is not yet ready for that. However > >>> > if you wish, you can get the entire file using rpc method. But > >>> > sticking it to the image tag is very difficult. Search through the > >>> > group, some one mentioned how you can embed the actual bytes and > >>> > construct a img tag that will display the image. Good luck, because > >>> > that is very non standard and your millage can greatly vary. > > >>> > You might also want to look at Gears, it allows you to store and > >>> > retrieve Blobs in client database... not sure if it has to do anything > >>> > with your requirement but will come handy if you are playing a lot > >>> > with files etc. .. > > >>> > Rakesh Wagh > > >>> > On Dec 24, 8:01 am, Daniele B wrote: > >>> >> Hi. > >>> >> I work on a photogallery application for my thesis. > >>> >> I have a problem. > >>> >> How can I do to retrieve image files stored on a server folder trought > >>> >> GWT-RPC? > > >>> >> Thanks at all! > >>> >> Sorry fo my english!!! :) > > >>> >> Daniele. --~--~-~--~~~---~--~~ You received 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 Question on GWT/JSON
On Sun, Jan 4, 2009 at 11:31 PM, Reinier Zwitserloot wrote: > JSON's mimetype is "application/json" (see [1] below). You missed the [1] below part and my interest is piqued. Is application/json an officially accepted MIME type? > Oh, PHP. Every single time someone posts a code snippet written in > PHP, my aesthetic sense blows its brains out in sheer despair. And > this one is up there, which is really saying something. I think its a > conspiracy by the zend folks to make the inner child of developers > worldwide die a little inside every time they come in contact with it. > Sadistic bastards. Too bad the truth can be so inflammatory Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to change the name of the host html page in project
In this case why not just name it statically index.html? Why wait? -Dave 2009/1/4 Addy > > I use a simple ant task to rename the file during the build process. > You dont have to do anything else. > > > > You can see it here:- > > http://checkappointments.com/checkAppointments/index.html > > regards, > Addy > http://checkAppointments.com > > On Jan 3, 1:10 pm, "David Hoffer" wrote: > > Thanks for the reply. It sounds like you are suggesting a manual > process. > > I'm looking for an auto process, something I can do in code/xml/html and > it > > just works. I use maven to build a war, I don't have the option of > manually > > moving files around. Is there a way I can code this in my gwt.xml and/or > > html, etc? > > > > Again, my goal here is to remove the package names from the URLs so the > site > > URLs look more 'normal'. I.e. my index.html file (which is my > welcome-file > > in my web.xml) points to com.mycompanyname.website.App/App.html. I don't > > want users to see all this package stuff. > > > > -Dave > > > > 2009/1/3 Ian Bambury > > > > > Once compiled, take all the files inside the package-name folder and > put > > > them wherever you like. You can also change the host html page name to > > > anything you want. If you change it in the source code, you will have > to > > > change it in any file that runs hosted mode. > > > Just change 'MyProject.html' to the new name i.e. if there is no > '.html' > > > after the 'MyProject', don't change it because it is referring to > something > > > else - the actual project itself or maybe the prefix to the gwt.xml > file. > > > > > That is the problem with the project creator, although it makes things > easy > > > by asking for one name (e.g. MyProject) it names everything as > MyProject - > > > the main class file, the html file, the gwt.xml file, the launch files, > and > > > the project folder. > > > > > If you go to my site and join up (and confirm your email address, just > so > > > people can't subscribe other people) for the free email course, the > first > > > day (which is sent immediately) there is a project you can download > which > > > has all the elements named differently. You can always unsubscribe > > > immediately afterwards - the course mostly assumes you have Eclipse, so > a > > > lot of it might not be relevant for you. > > > > > Ian > > > > >http://examples.roughian.com > > > > > 2009/1/3 David Hoffer > > > > > Could you post what you did to make this work? I am not having any > success > > >> with the linkhttp:// > java.dzone.com/tips/getting-rid-package-based-gwt-. > > >> Also I don't use eclipse, could you explain in non-eclipse terms how I > can > > >> remove the package names from the browser URLs? > > > > >> -Dave > > > > >> 2008/12/29 giannisdag > > > > >>> Thank you, it is very simple as it should be. > > > > >>> On 29 Δεκ, 16:13, "Ian Bambury" wrote: > > >>> > Don't do all that. Rename the page to index.html. In any .launch > file, > > >>> > rename just the ProjectName.html part - just one place - leave > > >>> everything > > >>> > else alone. > > >>> > Ian > > > > >>> >http://examples.roughian.com > > > > >>> > 2008/12/29 giannisdag > > > > >>> > > Hi, > > >>> > > I can' t figure out the solution to a simple problem. I want to > > >>> rename > > >>> > > my first html page to index.html. I am using eclipse. I have > renamed > > >>> > > the html page and the corresponding java class file to index.htm. > > >>> Also > > >>> > > i have changed the entry point of the settings xml file to > > >>> > > > > >>> > > But when i am running in host mode, i keep getting the following > > >>> > > error. > > >>> > > [WARN] Resource not found: villaView.html; (could a file be > missing > > >>> > > from the public path or a tag misconfigured in module > > >>> > > com.xel.gwt.villaView.gwt.xml ?) > > >>> > > [TRACE] The development shell servlet received a request for > > >>> > > 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml' > > >>> > > How can I change the development shell servlet to fix the > problem? > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to change the name of the host html page in project
I use a simple ant task to rename the file during the build process. You dont have to do anything else. You can see it here:- http://checkappointments.com/checkAppointments/index.html regards, Addy http://checkAppointments.com On Jan 3, 1:10 pm, "David Hoffer" wrote: > Thanks for the reply. It sounds like you are suggesting a manual process. > I'm looking for an auto process, something I can do in code/xml/html and it > just works. I use maven to build a war, I don't have the option of manually > moving files around. Is there a way I can code this in my gwt.xml and/or > html, etc? > > Again, my goal here is to remove the package names from the URLs so the site > URLs look more 'normal'. I.e. my index.html file (which is my welcome-file > in my web.xml) points to com.mycompanyname.website.App/App.html. I don't > want users to see all this package stuff. > > -Dave > > 2009/1/3 Ian Bambury > > > Once compiled, take all the files inside the package-name folder and put > > them wherever you like. You can also change the host html page name to > > anything you want. If you change it in the source code, you will have to > > change it in any file that runs hosted mode. > > Just change 'MyProject.html' to the new name i.e. if there is no '.html' > > after the 'MyProject', don't change it because it is referring to something > > else - the actual project itself or maybe the prefix to the gwt.xml file. > > > That is the problem with the project creator, although it makes things easy > > by asking for one name (e.g. MyProject) it names everything as MyProject - > > the main class file, the html file, the gwt.xml file, the launch files, and > > the project folder. > > > If you go to my site and join up (and confirm your email address, just so > > people can't subscribe other people) for the free email course, the first > > day (which is sent immediately) there is a project you can download which > > has all the elements named differently. You can always unsubscribe > > immediately afterwards - the course mostly assumes you have Eclipse, so a > > lot of it might not be relevant for you. > > > Ian > > >http://examples.roughian.com > > > 2009/1/3 David Hoffer > > > Could you post what you did to make this work? I am not having any success > >> with the linkhttp://java.dzone.com/tips/getting-rid-package-based-gwt-. > >> Also I don't use eclipse, could you explain in non-eclipse terms how I can > >> remove the package names from the browser URLs? > > >> -Dave > > >> 2008/12/29 giannisdag > > >>> Thank you, it is very simple as it should be. > > >>> On 29 Δεκ, 16:13, "Ian Bambury" wrote: > >>> > Don't do all that. Rename the page to index.html. In any .launch file, > >>> > rename just the ProjectName.html part - just one place - leave > >>> everything > >>> > else alone. > >>> > Ian > > >>> >http://examples.roughian.com > > >>> > 2008/12/29 giannisdag > > >>> > > Hi, > >>> > > I can' t figure out the solution to a simple problem. I want to > >>> rename > >>> > > my first html page to index.html. I am using eclipse. I have renamed > >>> > > the html page and the corresponding java class file to index.htm. > >>> Also > >>> > > i have changed the entry point of the settings xml file to > >>> > > > >>> > > But when i am running in host mode, i keep getting the following > >>> > > error. > >>> > > [WARN] Resource not found: villaView.html; (could a file be missing > >>> > > from the public path or a tag misconfigured in module > >>> > > com.xel.gwt.villaView.gwt.xml ?) > >>> > > [TRACE] The development shell servlet received a request for > >>> > > 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml' > >>> > > How can I change the development shell servlet to fix the problem? --~--~-~--~~~---~--~~ You received 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: Get file from server with GWT-RPC
It's doesn't work. My project directory structure is: /home/dany/TESI/projects/WebPhotoGallery/ -- build/ -- src -- com -- webphotogallery -- server -- category -- [...] -- client -- public -- tomcat -- WebConten (I use Eclipse with Cypal studio plugin) On servlet, the code for create category directory is: private static String UPLOAD_DIRECTORY = "./src/com/webphotogallery/server/category/"; [...] if((it.getFieldName().equals("categoryBox"))){ String categoryFolder = it.getString(); UPLOAD_DIRECTORY = UPLOAD_DIRECTORY + categoryFolder; [...] where categoryFolder is passed by client with a form. But when I call setURL() method on client, what URL I put?? http://localhost:/com.webphotogallery.WebPhotoGallery/category/categoryName!?!? not works. I'm totally disoriented. Thanks. Daniele. 2008/12/28 Daniele : > Sorry, but I'm newbie of servlet & GWT...I'm here for learning GWT and > servlet :) > I try. > Thanks. > > Daniele. > > 2008/12/28 rakesh wagh : >> >> Cannot comment on what you are doing wrong without looking into the >> code. However I see no need for setUrl on server side. You should have >> a "Servlet" that will parse the parameters, read the appropriate image >> file(either file system or db or any doc mgmt system for that matter), >> set a proper content type and just spit out the byte stream. >> >> From the client just call this servlet with appropriate params for it >> to retrieve the image. In essence: >> Image img = new Image(); >> img.setUrl("/servlet?photoId=39934&width=50"); >> >> Rakesh Wagh >> >> On Dec 26, 4:26 pm, Daniele wrote: >>> I cannot planning image manipulation. >>> If images are on client sides, setUrl() etc it works. >>> >>> On server side, I have an undefined number of folders that represent >>> photo category, but if I put on setUrl() method path to folders on >>> server, it's not work. >>> >>> 2008/12/26 rakesh wagh : >>> >>> >>> >>> > ask yourself: >>> > Even if you get your image/files using rpc, what will you do with it? >>> > I mean there is no real application of getting binary files using rpc >>> > yet. Are you planning to do image manipulations like rotation, >>> > filters, etc on the client side? js is not yet ready for that. However >>> > if you wish, you can get the entire file using rpc method. But >>> > sticking it to the image tag is very difficult. Search through the >>> > group, some one mentioned how you can embed the actual bytes and >>> > construct a img tag that will display the image. Good luck, because >>> > that is very non standard and your millage can greatly vary. >>> >>> > You might also want to look at Gears, it allows you to store and >>> > retrieve Blobs in client database... not sure if it has to do anything >>> > with your requirement but will come handy if you are playing a lot >>> > with files etc. .. >>> >>> > Rakesh Wagh >>> >>> > On Dec 24, 8:01 am, Daniele B wrote: >>> >> Hi. >>> >> I work on a photogallery application for my thesis. >>> >> I have a problem. >>> >> How can I do to retrieve image files stored on a server folder trought >>> >> GWT-RPC? >>> >>> >> Thanks at all! >>> >> Sorry fo my english!!! :) >>> >>> >> Daniele. >> >> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT maps API
Check out the gwt google maps page: http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=MapsGettingStarted You need to download the maps api module on this page: http://code.google.com/p/gwt-google-apis/ this is the zip file (there's a tar.gz on the same page (right hand side) http://gwt-google-apis.googlecode.com/files/gwt-maps-1.0.2.zip add the jar file to your classpath and the following line to your gwt.xml file for your project: I think you have to use gwt v 1.5.3 I've been using it for a bit and it seems to work pretty well! Hope this helps --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
gwt1.5 + ejb3 crud example
is there any real example of this using annotation? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---