Re: How to do multiple form submission by single servlet action.
I wouldn't work with FormPanels. Just create your TextBoxes/Areas and then add a ClickHandler to your button. If you click on your submit/ save button, send all the TextBox/Area values to the backend. On Feb 23, 6:06 am, prem premn...@gmail.com wrote: I have 3 continues forms. On final submission data of 3 forms should be inserted in database. How to store 3 froms data up to final submission? Please respond. -- You received 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.
Best approach for modifying meta data?
I have a page with content coming from the database. I would like to modify my meta tag to be able to put in some keywords coming from the database. For example: meta name=keywords value=some keywords coming from the database This meta tag attribute value for content should be modified after my RPC call. Does anybody know what's the best approach to get it done? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best approach for modifying meta data?
Hi Michael, Thanks, but acutally this is what I would like to do. I would like to render the page after I received the keywords from database. I thought, I could do it via the DOM object. Something like: DOM.setAttribute( meta, value, My keywords ); If I do this, I can't see the changes inside my rendered html page. Did you do it before? On Feb 22, 11:35 am, mmoossen mmoos...@gmail.com wrote: hi Dariusz! you should NOT set the keywords via a RPC call. since that info is only usefull to search engine robots, and they do not understand nor execute js code, your rpc call wont never be executed... just do it the 'OLD' way, getting the keywords from DB when rendering the page. HTH Michael On Feb 22, 10:28 am, Dariusz darius...@gmail.com wrote: I have a page with content coming from the database. I would like to modify my meta tag to be able to put in some keywords coming from the database. For example: meta name=keywords value=some keywords coming from the database This meta tag attribute value for content should be modified after my RPC call. Does anybody know what's the best approach to get it done? -- You received 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.
DatePicker / set a minimum date
Hi! Is there a function how to prevent people selecting a date, which is in the past? Something like, setMinDate( Date date)? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Resize image
Thanks Martin for the hint! Now it's working. As usual, the devil is in the details... Using the loadHandler, the image (in my case my thumb) is being resized if image is not in the cache. If you refresh the site, the loadHandler won't be executed. That means, resizing the image has to be in two places. 1. inside the loadHandler 2. outside the loadHandler, in case it's reading from cache... Now, I'm thinking if this approach is the appropriate one... maybe I should shrink the images already when saving to the database for performance reason. On Nov 6, 10:50 am, Martin Trummer martin.trum...@24act.at wrote: well and one alternative, that might sometimes be usefull is, to transfer the imagename and the imagesize to the client then you already know the dimensions when you create the image On Nov 6, 10:49 am, Martin Trummer martin.trum...@24act.at wrote: try to use a load handler the getWidth() methods comment says: Gets the width of the image. When the image is in the unclipped state, the width of the image is not known until the image has been loaded (i.e. load event has been fired for the image). if you just create the Image object and call getWidth() immediately, it cannot know it's width - because the browser has not even loaded it yet It might sometimes work, for images, that the browser already has in it's cache. I didn't actually try it, but it sounds reasonable. On Nov 5, 1:38 pm, Dariusz darius...@gmail.com wrote: I have an image lets say 600x800 pixel. Now I want to resize downit to 60x80 pixel. If I use setWidth or setPixelSize( width, height ), then it sometimes it does it correctly and sometimes not. I've got this problem in both IE FF. Do I need to do it within a loadHandler()? Or does anyone has a better solution for it? My approach: Image thumb = new Image( C:\path\to\image.jpg ); int w = thumb.getWidth(); int h = thumb.getHeight(); int newH = 60; int newW = ( w * newH ) / h; if( h newH ) { thumb.setPixelSize( newW, newH ); } 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 -~--~~~~--~~--~--~---
Call URL via a ListBox change handler
I have a problem setting the locale via a ListBox behaviour. Let's take this example: public class GWTClient implements EntryPoint,ChangeHandler { ListBox list = new ListBox(); public void onModuleLoad() { list.setVisibleItemCount(10); list.setMultipleSelect(true); list.addItem(A); list.addItem(B); list.addItem(C); list.addItem(D); list.addChangeHandler(this); RootPanel.get().add(list); } public void onChange(Widget sender) { if (sender == list) { // here it should update the url to '?locale=en' } } } I tried already Window.Location.assign( ?locale=en ); It's working in FF but not in IE. Appreciate for any hints, examples or solutions. --~--~-~--~~~---~--~~ You received 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: using a JPA annotated class in a RPC call yelds IncompatibleRemoteServiceException
I don't know for sure if it's required or not, but what about your table annotation? @Entity @Table(name = user) public class User implements IsSerializable{ ... On Oct 10, 11:29 pm, Alexandru Ioan alexandruioan.c...@gmail.com wrote: I came across this strage problem... I have this entity bean @Entity public class User implements IsSerializable{ private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id; @Column private String name; @Column private String password; //... getters and setters... } If I send this bean over an RPC call, I get an com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type signature for com.dinc.bandmplace.client.model.User at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:298) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: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: com.google.gwt.user.client.rpc.SerializationException: Invalid type signature for com.dinc.bandmplace.client.model.User at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.validateTypeVersions (ServerSerializationStreamReader.java:737) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize (ServerSerializationStreamReader.java:492) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject (AbstractSerializationStreamReader.java:61) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader $ValueReader$8.readValue(ServerSerializationStreamReader.java:131) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue (ServerSerializationStreamReader.java:372) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287) If I remove the @Id and @GeneratedValue annotations, all runs fine... --~--~-~--~~~---~--~~ You received 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: Call URL via a ListBox change handler
Thomas, Thanks! That's it! It works! :-) On Oct 12, 3:03 pm, Thomas Broyer t.bro...@gmail.com wrote: On 12 oct, 11:07, Dariusz darius...@gmail.com wrote: I tried already Window.Location.assign( ?locale=en ); It's working in FF but not in IE. Appreciate for any hints, examples or solutions. Assuming you want to entirely replace the query-string: Window.Location.assign(Window.Location.getPath() + ?locale=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 -~--~~~~--~~--~--~---
HttpSession NullPointerException
Hi! A simple scenario. - User logs in - User in database, save user object in HttpSession (works) - Forward to page /account and read the HttpSession (not working) Saving the user object in session works fine, but when I try to read it, I get a NullPointerException. The session is not there. The weird part is here. If I run it on my local machine (http:// localhost:8080/myApp) it's working fine and I can set and read the session through my entire application. If I deploy it on our server (Linux), I can set the session and read it with the same Impl class, but if I try to execute a different service (like AccountServiceImpl), then the session is not there anymore. My code looks like this: ... HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); session.setAttribute( user, userObject ); User u = ( User )session.getAttribute( user ); // here it is working System.out.println( User name is: +u.getName() ); Now if I try to get the session in my AccountServiceImpl, I'm getting an exception??? I'm wondering if it's a server setting issue or something with my code? (or maybe with my libraries) I would appreciate any help!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: HttpSession NullPointerException
OK, I think it is related to my vhosts settings. The problem is, that I'm using a vhost to forward from port 80 to my internal webapp directory. I'm using ProxyPass and probably this causes the problem. My settings are: *Virtual Host xx.xx.xx.x:80 Servername my.url.com DocumentRoot /home/me/webapps/myApp/WebContent ProxyRequest Off Proxy * Options FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from al /Proxy ProxyPass / http://localhost:8080/myApp/ ProxyPassReverse / http://localhost:8080/myApp/ /VirtualHost* Does anyone know what I need to change, so I can use the HttpSession on the server side through my entire application? Thanks! On Mon, Sep 21, 2009 at 10:24 AM, Dariusz darius...@gmail.com wrote: Hi! A simple scenario. - User logs in - User in database, save user object in HttpSession (works) - Forward to page /account and read the HttpSession (not working) Saving the user object in session works fine, but when I try to read it, I get a NullPointerException. The session is not there. The weird part is here. If I run it on my local machine (http:// localhost:8080/myApp) it's working fine and I can set and read the session through my entire application. If I deploy it on our server (Linux), I can set the session and read it with the same Impl class, but if I try to execute a different service (like AccountServiceImpl), then the session is not there anymore. My code looks like this: ... HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); session.setAttribute( user, userObject ); User u = ( User )session.getAttribute( user ); // here it is working System.out.println( User name is: +u.getName() ); Now if I try to get the session in my AccountServiceImpl, I'm getting an exception??? I'm wondering if it's a server setting issue or something with my code? (or maybe with my libraries) I would appreciate any help!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: HttpSession NullPointerException
Thanks Lothar, but I allow Cockies and still the session is not there... Dariusz On Sep 21, 10:35 am, Lothar Kimmeringer j...@kimmeringer.de wrote: Dariusz schrieb: - User logs in - User in database, save user object in HttpSession (works) - Forward to page /account and read the HttpSession (not working) The session is found by a cookie. If the browser forbids the use of cookies, the server is screwed. The weird part is here. If I run it on my local machine (http:// localhost:8080/myApp) it's working fine and I can set and read the session through my entire application. Localhost is running within a different security setting, so the use of cookies might be allowed. Regards, Lothar --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Set link on Image not working in IE!
Hi Guys, I'm having a problem setting a link on an image. It's working in FF but not in IE. I just wanted to make sure if this issue is solved or do I need to have a workaround? I want to do something like this, but in GWT of course: a href=? locale=enimg src=en.gif//a In java it looks like this: Image en = images.enImage().createImage(); Anchor anchor = new Anchor(); anchor.setHref(?locale=de); anchor.getElement().appendChild( de.getElement() ); HTML info = new HTML( anchor+nbsp; some more input... ); I found this help here: http://code.google.com/p/google-web-toolkit/issues/detail?id=3080 I'm just wondering that something trivial like setting a link on an image is not implemented properly... :( I appreciated any help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
RPC not working in web mode
I have different modules in war structure, because I want to keep the overview as simple as possible. If I test the module in hosted mode it's working but not in my web mode. I'm trying to use RPC to get the data, but unfortunately it's not working in web mode. After I compile the structure the war looks like this: MyApp/ /WebContent /WEB-INF /classes /moduleA /moduleB web.xml If I put all the compiled *.html, *.css, *.js in the root (WebCotnent) then it's working, but I would like to have my modules in separate directories like 'moduleA', 'moduleB', and so on. Is it possible?? --~--~-~--~~~---~--~~ You received 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: RPC not working in web mode
And something else I realized. I have a module it calls 'register'. This module is the one which is causing my RPC problem. It's not only that I have my module directory 'register' in the WebContent, but as well a directory calls 'register-aux' with a log file in it. Inside the log file I see the following Exception: Reachable types computed on: Mon Jul 13 19:57:29 CEST 2009 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException Serialization status Instantiable Path 'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is reachable as a subtype of type 'class com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' Started from 'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' I appreciated any help!!! On Jul 13, 6:32 pm, Dariusz darius...@gmail.com wrote: I have different modules in war structure, because I want to keep the overview as simple as possible. If I test the module in hosted mode it's working but not in my web mode. I'm trying to use RPC to get the data, but unfortunately it's not working in web mode. After I compile the structure the war looks like this: MyApp/ /WebContent /WEB-INF /classes /moduleA /moduleB web.xml If I put all the compiled *.html, *.css, *.js in the root (WebCotnent) then it's working, but I would like to have my modules in separate directories like 'moduleA', 'moduleB', and so on. Is it possible?? --~--~-~--~~~---~--~~ You received 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: RPC not working in web mode
Hmm, I don't know exactly what you mean and what do I need to change. Here is my RegisterService, maybe you can take a look. import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; import com.google.gwt.user.client.rpc.ServiceDefTarget; @RemoteServiceRelativePath(registerservice) public interface RegisterService extends RemoteService { public static class Util { public static RegisterServiceAsync getInstance() { return GWT.create(RegisterService.class); } } public void registerUser( String firstName, String lastName, String email ); } My snippet of my web.xml looks like this: servlet servlet-nameRegisterService/servlet-name servlet-classcom.myapp.module.register.server.RegisterServiceImpl/ servlet-class /servlet servlet-mapping servlet-nameRegisterService/servlet-name url-pattern/registerservice/url-pattern /servlet-mapping Thanks!! On Jul 13, 8:08 pm, waf wlod...@gmail.com wrote: Hi, As a matter of fact each GWT entry point module is placed in a separate subdirectory of your app war directory (i.e. in a separate subdirectory of server root or your application context after app deployment). If you want to move module startup html and css it's a matter of changing the src of module bootstrap JS moduleA.nocache.js instead of moduleA/moduleA.nocache.js As for the RPC just configure servlet mapping in your web.xml to suite your needs. -- waf --~--~-~--~~~---~--~~ You received 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: RPC not working in web mode
OK, my fault (of course)! I need to change the web.xml to this one, since my service is being called from a subdirectory. servlet servlet-nameRegisterService/servlet-name servlet- classcom.myapp.module.register.server.RegisterServiceImpl/servlet- class /servlet servlet-mapping servlet-nameRegisterService/servlet-name url-pattern/register/registerservice/url-pattern /servlet-mapping Thanks waf!! On Jul 13, 8:41 pm, Dariusz darius...@gmail.com wrote: Hmm, I don't know exactly what you mean and what do I need to change. Here is my RegisterService, maybe you can take a look. import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; import com.google.gwt.user.client.rpc.ServiceDefTarget; @RemoteServiceRelativePath(registerservice) public interface RegisterService extends RemoteService { public static class Util { public static RegisterServiceAsync getInstance() { return GWT.create(RegisterService.class); } } public void registerUser( String firstName, String lastName, String email ); } My snippet of my web.xml looks like this: servlet servlet-nameRegisterService/servlet-name servlet-classcom.myapp.module.register.server.RegisterServiceImpl/ servlet-class /servlet servlet-mapping servlet-nameRegisterService/servlet-name url-pattern/registerservice/url-pattern /servlet-mapping Thanks!! On Jul 13, 8:08 pm, waf wlod...@gmail.com wrote: Hi, As a matter of fact each GWT entry point module is placed in a separate subdirectory of your app war directory (i.e. in a separate subdirectory of server root or your application context after app deployment). If you want to move module startup html and css it's a matter of changing the src of module bootstrap JS moduleA.nocache.js instead of moduleA/moduleA.nocache.js As for the RPC just configure servlet mapping in your web.xml to suite your needs. -- waf --~--~-~--~~~---~--~~ You received 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: Different button layout
I found the mistake I was doing... :( As usual, most errors are stupid and made by the developer itself. My module, which was calling my own css was overwritten by the default one. When I changed the ordering it was working module !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Specify the app entry point class. -- entry-point class='com.module.client.HelloWorld'/ inherits name=com.google.gwt.user.theme.standard.Standard/ !-- inherits name=com.google.gwt.user.theme.chrome.Chrome/ -- !-- inherits name=com.google.gwt.user.theme.dark.Dark/ -- !-- Personal style: HAS TO BE AT THE END -- stylesheet src='css/style.css' / /module Thanks to Ian for his effort! PushButton would do the job as well! :) Cheers, D. On Jun 25, 3:36 pm, Dariusz darius...@gmail.com wrote: Thanks a lot! PushButton solves this issue! On Jun 25, 3:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Buttons and alerts are OS/Browser dependent. You can get the size roughly the same but if you want the same look across all browsers you have to make your own with a label and images or use something like PushButton Ian http://examples.roughian.com 2009/6/25 Dariusz darius...@gmail.com Guys, the issue with thebuttonlayoutis still not solved. Even if I do the complete example shown here: http://www.ibm.com/developerworks/library/j-ajax4/index.html Thebuttondoesn't look like on their screen shots. It's just the defaultlayout. I'm using 'gwt-windows-1.6.4' . Is it related to the version? Thanks! On Jun 17, 7:57 pm, Dariusz darius...@gmail.com wrote: Oh, my email is 'dariusz.b[at]' Thanks! On Jun 17, 6:42 pm, Ian Bambury ianbamb...@gmail.com wrote: It may not be IE too big, it may be FF too small. You didn't change the defaultsize, did you? It should be Serif/Georgia/Arial 16 in Advanced Fonts (and Courier New 13), min font size:none, and you should be allowing pages to choose their own fonts. Also, I've put my test app up herehttp:// test.roughian.com/20090617/soif you look at that and it's OK, I'll send you the whole project if you want. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Hey Ian! Thanks a lot for you effort and your test result. I copied you css but the font inside thebuttonin IE just for god sake doesn't want to change. I think I will live with it for now. :( Many thanks!! On Jun 17, 5:50 pm, Ian Bambury ianbamb...@gmail.com wrote: OK, this is what I got. Chrome/IE7/FF3/Hosted On the left is .gwt-Button{ font-size: small; width: 100px; height : 30px; margin : 0; } On the right is the same thing but with my standard browser-levelling css and basic css to set it up again I don't know what the rules are for attaching images, so if you don't see it, let me know. screenshots.png 96KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
Guys, the issue with the button layout is still not solved. Even if I do the complete example shown here: http://www.ibm.com/developerworks/library/j-ajax4/index.html The button doesn't look like on their screen shots. It's just the default layout. I'm using 'gwt-windows-1.6.4' . Is it related to the version? Thanks! On Jun 17, 7:57 pm, Dariusz darius...@gmail.com wrote: Oh, my email is 'dariusz.b[at]' Thanks! On Jun 17, 6:42 pm, Ian Bambury ianbamb...@gmail.com wrote: It may not be IE too big, it may be FF too small. You didn't change the defaultsize, did you? It should be Serif/Georgia/Arial 16 in Advanced Fonts (and Courier New 13), min font size:none, and you should be allowing pages to choose their own fonts. Also, I've put my test app up herehttp://test.roughian.com/20090617/soif you look at that and it's OK, I'll send you the whole project if you want. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Hey Ian! Thanks a lot for you effort and your test result. I copied you css but the font inside thebuttonin IE just for god sake doesn't want to change. I think I will live with it for now. :( Many thanks!! On Jun 17, 5:50 pm, Ian Bambury ianbamb...@gmail.com wrote: OK, this is what I got. Chrome/IE7/FF3/Hosted On the left is .gwt-Button{ font-size: small; width: 100px; height : 30px; margin : 0; } On the right is the same thing but with my standard browser-levelling css and basic css to set it up again I don't know what the rules are for attaching images, so if you don't see it, let me know. screenshots.png 96KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
Thanks a lot! PushButton solves this issue! On Jun 25, 3:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Buttons and alerts are OS/Browser dependent. You can get the size roughly the same but if you want the same look across all browsers you have to make your own with a label and images or use something like PushButton Ian http://examples.roughian.com 2009/6/25 Dariusz darius...@gmail.com Guys, the issue with the button layout is still not solved. Even if I do the complete example shown here: http://www.ibm.com/developerworks/library/j-ajax4/index.html The button doesn't look like on their screen shots. It's just the default layout. I'm using 'gwt-windows-1.6.4' . Is it related to the version? Thanks! On Jun 17, 7:57 pm, Dariusz darius...@gmail.com wrote: Oh, my email is 'dariusz.b[at]' Thanks! On Jun 17, 6:42 pm, Ian Bambury ianbamb...@gmail.com wrote: It may not be IE too big, it may be FF too small. You didn't change the defaultsize, did you? It should be Serif/Georgia/Arial 16 in Advanced Fonts (and Courier New 13), min font size:none, and you should be allowing pages to choose their own fonts. Also, I've put my test app up herehttp:// test.roughian.com/20090617/soif you look at that and it's OK, I'll send you the whole project if you want. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Hey Ian! Thanks a lot for you effort and your test result. I copied you css but the font inside thebuttonin IE just for god sake doesn't want to change. I think I will live with it for now. :( Many thanks!! On Jun 17, 5:50 pm, Ian Bambury ianbamb...@gmail.com wrote: OK, this is what I got. Chrome/IE7/FF3/Hosted On the left is .gwt-Button{ font-size: small; width: 100px; height : 30px; margin : 0; } On the right is the same thing but with my standard browser-levelling css and basic css to set it up again I don't know what the rules are for attaching images, so if you don't see it, let me know. screenshots.png 96KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
Thanks Alex, Yes, I can minimize it, but by default the Button in IE is much bigger than in FF and hell I can't change the font-size for IE. It's just not working... It's weird though, I tried others code and it looks the same. I even ran the app on different PC and the result was the same... Strange! On Jun 17, 9:20 am, alex.d alex.dukhov...@googlemail.com wrote: It's probably your user font settings in FF or IE that are making font bigger or smaller. Press Ctrl and scroll mouse wheel. On 16 Jun., 22:03, Dariusz darius...@gmail.com wrote: This is weird... :( This: .gwt-Button { width: 300px; } works fine, but not if I want to change the font-size?? On Jun 16, 9:41 pm, Dariusz darius...@gmail.com wrote: I did setup a style.css file, where I'm trying to change the size of the button like this: .gwt-Button { border:1px outset #CC; cursor: pointer; font-size:10px; margin:0pt; padding:3px 5px; text-decoration:none; } Unfortunately, no effect on the result...it's still bigger than in FF. On Jun 16, 8:57 pm, Dariusz Borowski darius...@gmail.com wrote: Does anyone know, why I'm having a different layout in IE than in FF? Please, check out my attached screenshots. ie.jpg 4KViewDownload ff.jpg 3KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
Thanks for your response. Unfortunately, it's still not working; even not with x-small. Funny though, if I'm using any other properties like 'width' it is working, but not this damn font size... :( I just want to make this stupid button smaller, so it looks similar to the one in FF. On Jun 17, 1:47 pm, Ian Bambury ianbamb...@gmail.com wrote: Try using anything other than px. px-sizing has accessibility issues for a start. Browsers *should* show them as that exact number of pixels (mostly), but because users with then can't resize them, newer browsers allow users to resize and might well do their own thing if you use px. In the case where pixel density is dramatically different from standard, browsers are required to change the display size. Imagine what would happen if a super-HD monitor of 960ppi came out, you would have 96 characters per inch the way you are doing it. Even if you don't care about people with accessibility problems, it is a good idea to use something else, like x-small, or 80%. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Thanks Alex, Yes, I can minimize it, but by default the Button in IE is much bigger than in FF and hell I can't change the font-size for IE. It's just not working... It's weird though, I tried others code and it looks the same. I even ran the app on different PC and the result was the same... Strange! On Jun 17, 9:20 am, alex.d alex.dukhov...@googlemail.com wrote: It's probably your user font settings in FF or IE that are making font bigger or smaller. Press Ctrl and scroll mouse wheel. On 16 Jun., 22:03, Dariusz darius...@gmail.com wrote: This is weird... :( This: .gwt-Button { width: 300px; } works fine, but not if I want to change the font-size?? On Jun 16, 9:41 pm, Dariusz darius...@gmail.com wrote: I did setup a style.css file, where I'm trying to change the size of the button like this: .gwt-Button { border:1px outset #CC; cursor: pointer; font-size:10px; margin:0pt; padding:3px 5px; text-decoration:none; } Unfortunately, no effect on the result...it's still bigger than in FF. On Jun 16, 8:57 pm, Dariusz Borowski darius...@gmail.com wrote: Does anyone know, why I'm having a different layout in IE than in FF? Please, check out my attached screenshots. ie.jpg 4KViewDownload ff.jpg 3KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
The results on the other machine were the same as the results on your machine (i.e. different sizes in different browsers), Yes. Which means, that on IE the button was bigger than on FF. On Jun 17, 4:08 pm, Ian Bambury ianbamb...@gmail.com wrote: I'm not quite clear - It's weird though, I tried others code and it looks the same. I even ran the app on different PC and the result was the same... The results on the other machine were the same as the results on your machine (i.e. different sizes in different browsers), or the results on the other machine were the same for both browsers (i.e. what you wanted but only when run on the other machine)? Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Thanks for your response. Unfortunately, it's still not working; even not with x-small. Funny though, if I'm using any other properties like 'width' it is working, but not this damn font size... :( I just want to make this stupid button smaller, so it looks similar to the one in FF. On Jun 17, 1:47 pm, Ian Bambury ianbamb...@gmail.com wrote: Try using anything other than px. px-sizing has accessibility issues for a start. Browsers *should* show them as that exact number of pixels (mostly), but because users with then can't resize them, newer browsers allow users to resize and might well do their own thing if you use px. In the case where pixel density is dramatically different from standard, browsers are required to change the display size. Imagine what would happen if a super-HD monitor of 960ppi came out, you would have 96 characters per inch the way you are doing it. Even if you don't care about people with accessibility problems, it is a good idea to use something else, like x-small, or 80%. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Thanks Alex, Yes, I can minimize it, but by default the Button in IE is much bigger than in FF and hell I can't change the font-size for IE. It's just not working... It's weird though, I tried others code and it looks the same. I even ran the app on different PC and the result was the same... Strange! On Jun 17, 9:20 am, alex.d alex.dukhov...@googlemail.com wrote: It's probably your user font settings in FF or IE that are making font bigger or smaller. Press Ctrl and scroll mouse wheel. On 16 Jun., 22:03, Dariusz darius...@gmail.com wrote: This is weird... :( This: .gwt-Button { width: 300px; } works fine, but not if I want to change the font-size?? On Jun 16, 9:41 pm, Dariusz darius...@gmail.com wrote: I did setup a style.css file, where I'm trying to change the size of the button like this: .gwt-Button { border:1px outset #CC; cursor: pointer; font-size:10px; margin:0pt; padding:3px 5px; text-decoration:none; } Unfortunately, no effect on the result...it's still bigger than in FF. On Jun 16, 8:57 pm, Dariusz Borowski darius...@gmail.com wrote: Does anyone know, why I'm having a different layout in IE than in FF? Please, check out my attached screenshots. ie.jpg 4KViewDownload ff.jpg 3KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
Sure! Java: import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TextBox; public class SearchPanel { public TabPanel tabPanel = null; public HorizontalPanel searchPanel = null; public SearchPanel() { } public TabPanel init() { searchPanel = new HorizontalPanel(); tabPanel = new TabPanel(); setProperties(); Button btn = new Button( search ); HTML advanced = new HTML( a href=\#\advanced/a ); searchPanel.add( btn ); searchPanel.add( advanced ); tabPanel.add( searchPanel, A title ); tabPanel.selectTab( 0 ); return tabPanel; } private void setProperties() { searchPanel.setSpacing( Constant.SPACING ); searchPanel.setVerticalAlignment( HorizontalPanel.ALIGN_MIDDLE ); } } CSS: .gwt-Button { font-size: 2pt; width: 300pt; } That's it... As you can see not such a big deal, but it's not working... *confused* By the way, the width is working fine. On Jun 17, 4:17 pm, Ian Bambury ianbamb...@gmail.com wrote: Sounds like it's your code then, rather than your machine :-) Can you post the code and the css for a trivial example? Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com The results on the other machine were the same as the results on your machine (i.e. different sizes in different browsers), Yes. Which means, that on IE the button was bigger than on FF. On Jun 17, 4:08 pm, Ian Bambury ianbamb...@gmail.com wrote: I'm not quite clear - It's weird though, I tried others code and it looks the same. I even ran the app on different PC and the result was the same... The results on the other machine were the same as the results on your machine (i.e. different sizes in different browsers), or the results on the other machine were the same for both browsers (i.e. what you wanted but only when run on the other machine)? Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Thanks for your response. Unfortunately, it's still not working; even not with x-small. Funny though, if I'm using any other properties like 'width' it is working, but not this damn font size... :( I just want to make this stupid button smaller, so it looks similar to the one in FF. On Jun 17, 1:47 pm, Ian Bambury ianbamb...@gmail.com wrote: Try using anything other than px. px-sizing has accessibility issues for a start. Browsers *should* show them as that exact number of pixels (mostly), but because users with then can't resize them, newer browsers allow users to resize and might well do their own thing if you use px. In the case where pixel density is dramatically different from standard, browsers are required to change the display size. Imagine what would happen if a super-HD monitor of 960ppi came out, you would have 96 characters per inch the way you are doing it. Even if you don't care about people with accessibility problems, it is a good idea to use something else, like x-small, or 80%. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Thanks Alex, Yes, I can minimize it, but by default the Button in IE is much bigger than in FF and hell I can't change the font-size for IE. It's just not working... It's weird though, I tried others code and it looks the same. I even ran the app on different PC and the result was the same... Strange! On Jun 17, 9:20 am, alex.d alex.dukhov...@googlemail.com wrote: It's probably your user font settings in FF or IE that are making font bigger or smaller. Press Ctrl and scroll mouse wheel. On 16 Jun., 22:03, Dariusz darius...@gmail.com wrote: This is weird... :( This: .gwt-Button { width: 300px; } works fine, but not if I want to change the font-size?? On Jun 16, 9:41 pm, Dariusz darius...@gmail.com wrote: I did setup a style.css file, where I'm trying to change the size of the button like this: .gwt-Button { border:1px outset #CC; cursor: pointer; font-size:10px; margin:0pt; padding:3px 5px; text-decoration:none; } Unfortunately, no effect on the result...it's still bigger than in FF. On Jun 16, 8:57 pm, Dariusz Borowski darius...@gmail.com wrote
Re: Different button layout
Hey Ian! Thanks a lot for you effort and your test result. I copied you css but the font inside the button in IE just for god sake doesn't want to change. I think I will live with it for now. :( Many thanks!! On Jun 17, 5:50 pm, Ian Bambury ianbamb...@gmail.com wrote: OK, this is what I got. Chrome/IE7/FF3/Hosted On the left is .gwt-Button { font-size: small; width: 100px; height : 30px; margin : 0; } On the right is the same thing but with my standard browser-levelling css and basic css to set it up again I don't know what the rules are for attaching images, so if you don't see it, let me know. screenshots.png 96KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
Your link is behaving the same on IE and FF. It would be great if you could send me your project, so I run it locally and see what causes the problem. Many thanks! On Jun 17, 6:42 pm, Ian Bambury ianbamb...@gmail.com wrote: It may not be IE too big, it may be FF too small. You didn't change the default size, did you? It should be Serif/Georgia/Arial 16 in Advanced Fonts (and Courier New 13), min font size:none, and you should be allowing pages to choose their own fonts. Also, I've put my test app up herehttp://test.roughian.com/20090617/so if you look at that and it's OK, I'll send you the whole project if you want. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Hey Ian! Thanks a lot for you effort and your test result. I copied you css but the font inside the button in IE just for god sake doesn't want to change. I think I will live with it for now. :( Many thanks!! On Jun 17, 5:50 pm, Ian Bambury ianbamb...@gmail.com wrote: OK, this is what I got. Chrome/IE7/FF3/Hosted On the left is .gwt-Button { font-size: small; width: 100px; height : 30px; margin : 0; } On the right is the same thing but with my standard browser-levelling css and basic css to set it up again I don't know what the rules are for attaching images, so if you don't see it, let me know. screenshots.png 96KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
Oh, my email is 'dariusz.b[at]' Thanks! On Jun 17, 6:42 pm, Ian Bambury ianbamb...@gmail.com wrote: It may not be IE too big, it may be FF too small. You didn't change the default size, did you? It should be Serif/Georgia/Arial 16 in Advanced Fonts (and Courier New 13), min font size:none, and you should be allowing pages to choose their own fonts. Also, I've put my test app up herehttp://test.roughian.com/20090617/so if you look at that and it's OK, I'll send you the whole project if you want. Ian http://examples.roughian.com 2009/6/17 Dariusz darius...@gmail.com Hey Ian! Thanks a lot for you effort and your test result. I copied you css but the font inside the button in IE just for god sake doesn't want to change. I think I will live with it for now. :( Many thanks!! On Jun 17, 5:50 pm, Ian Bambury ianbamb...@gmail.com wrote: OK, this is what I got. Chrome/IE7/FF3/Hosted On the left is .gwt-Button { font-size: small; width: 100px; height : 30px; margin : 0; } On the right is the same thing but with my standard browser-levelling css and basic css to set it up again I don't know what the rules are for attaching images, so if you don't see it, let me know. screenshots.png 96KViewDownload --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Different button layout
Does anyone know, why I'm having a different layout in IE than in FF? Please, check out my attached screenshots. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~--- attachment: ie.jpgattachment: ff.jpg
Re: Different button layout
I did setup a style.css file, where I'm trying to change the size of the button like this: .gwt-Button { border:1px outset #CC; cursor: pointer; font-size:10px; margin:0pt; padding:3px 5px; text-decoration:none; } Unfortunately, no effect on the result...it's still bigger than in FF. On Jun 16, 8:57 pm, Dariusz Borowski darius...@gmail.com wrote: Does anyone know, why I'm having a different layout in IE than in FF? Please, check out my attached screenshots. ie.jpg 4KViewDownload ff.jpg 3KViewDownload --~--~-~--~~~---~--~~ You received 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: Different button layout
This is weird... :( This: .gwt-Button { width: 300px; } works fine, but not if I want to change the font-size?? On Jun 16, 9:41 pm, Dariusz darius...@gmail.com wrote: I did setup a style.css file, where I'm trying to change the size of the button like this: .gwt-Button { border:1px outset #CC; cursor: pointer; font-size:10px; margin:0pt; padding:3px 5px; text-decoration:none; } Unfortunately, no effect on the result...it's still bigger than in FF. On Jun 16, 8:57 pm, Dariusz Borowski darius...@gmail.com wrote: Does anyone know, why I'm having a different layout in IE than in FF? Please, check out my attached screenshots. ie.jpg 4KViewDownload ff.jpg 3KViewDownload --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Guice 2.0 servlet example
I'm trying to get the example of guice 2.0 running, but I can't figure out why it's not working. I try to do the same thing as on this page: http://code.google.com/p/google-guice/wiki/ServletModule Here is what I got: web.xml web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.com/xml/ ns/j2ee xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameguicy/display-name filter filter-nameguiceFilter/filter-name filter-classcom.google.inject.servlet.GuiceFilter/filter-class /filter filter-mapping filter-nameguiceFilter/filter-name url-pattern/*/url-pattern /filter-mapping listener listener-classcom.test.MyGuiceServletConfig/listener-class /listener /web-app MyGuiceServletConfig.java import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.servlet.GuiceServletContextListener; public class MyGuiceServletConfig extends GuiceServletContextListener { @Override protected Injector getInjector() { return Guice.createInjector( new MyServletModule() ); } } MyServletModule.java import com.google.inject.servlet.ServletModule; public class MyServletModule extends ServletModule { @Override protected void configureServlets() { serve(/*).with( MyServlet.class ); } } MyServlet.java import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.inject.Singleton; @Singleton public class MyServlet extends HttpServlet { @Override public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType(text/html); PrintWriter writer = resp.getWriter(); writer.printf(h1Welcome to the application!/h1 ); System.out.println( ...testing ); resp.setStatus( HttpServletResponse.SC_OK ); } /** * Process the HTTP Post request */ public void doPost( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { System.out.println( inside MyServlet class ); } } I'm not getting anywhere and I don't have anything in my log file. I would really appreciate any help. I think th approach of Guice is excellent and would love to use it for my applications. Thanks a lot 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: GWT Compiler Question
Yes, it is possible. You need to do 2 things. 1. In your gwt module you need to call the rename-to attribute like this: module rename-to=members ... /module 2. Your ant script need to be modified. I found some pieces here and there and it looks like this: ... target name=compile-gwt depends=init gwtCompile module=org.test.module.User output=$ {dest.dir}/www/members/ / gwtCompile module=org.test.module.Login output=$ {dest.dir}/www/login/ / . /target macrodef name=gwtCompile attribute name=module / attribute name=output default=${dest.dir}/www/ / sequential java classname=com.google.gwt.dev.GWTCompiler fork=true classpath refid=classpath / jvmarg value=-Xmx256M / arg value=-out / arg value=@{output} / arg value=@{module} / /java /sequential /macrodef ... Every time you create a new module, you need to define it in you ant script. Maybe there are different (better) solutions, but this works fine for me. I hope it helps! On Jun 10, 1:00 am, lineman78 linema...@gmail.com wrote: Is there any way to tell the compiler not to put the files in a folder named after the package name. i.e., if my module is com.google.test.TestApp and I compile with -war www, it puts all the files under ./www/com.google.test.TestApp. I was wondering if there is a way to get it to just put all the files in ./www? I am building a rather large project that I am building with an ant script and I am having to move all the files after they are compiled and moving over 6000 files is taking a long time. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---