Re: GWT-2.1 java.util.logging
I didn't read the blog yet, so sorry if this is repeat.. add log4j.properties and commons-logging.properties in the devel mode-only src tree at the root of the src directory (eg dev/src/java) in commons-logging.properties: org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger and for the log4j.properties, use your own normal incantation here's one ripped from somewhere out there: 1log4j.rootCategory=INFO, dest1, dest3 2! Log to the console 3log4j.appender.dest1=org.apache.log4j.ConsoleAppender 4log4j.appender.dest1.layout=org.apache.log4j.PatternLayout 5log4j.appender.dest1.layout.ConversionPattern=%-5p %d{HH:mm:ss.SSS} [%-15.15t] [%-25.25c{1}] %m%n 6! LOG TO A FILE 7log4j.appender.dest3=org.apache.log4j.RollingFileAppender 8log4j.appender.dest3.layout=org.apache.log4j.PatternLayout 9log4j.appender.dest3.layout.ConversionPattern=%-5p %d{EEE MMM dd HH:mm:ss.SSS zzz } [%-15.15t] [%-25.25c{1}] %m%n 10! Specify the file name 11log4j.appender.dest3.File=./logs/hosted-log4j.log 12! Control the maximum log file size 13log4j.appender.dest3.MaxFileSize=3000KB 14log4j.appender.dest3.MaxBackupIndex=3 add your log4j.loggerpkg-and-class=DEBUG lines here james wrote: Last week I was trying to find a similar example and couldn't. So I took a little time an wrote a quick blog post with a small example app that should help you get started with logging. http://treasonx.blogspot.com/2010/07/gwt-21-logging.html On Jun 21, 3:21 pm, jie...@gmail.com jie...@gmail.com wrote: Does anyone have an example of how to get java.util.logging.Logger messages to the console when running in development mode? I was excited about removing an external dependency of gwt-log, but can not seem to get any dev-mode CLIENT log messages to appear to the console.. Complicating matters is that Jetty uses slf4j, which I am fairly unfamiliar with for setting up properly with respect to the appropriate libraries being available. I really just want log messages to go to the console... any information leading to this situation will be rewarded with beer. :-) -Jesse -- Jon Gorrono email{+[+++-]+++..---.-.+++..---.-.+.+.++..+.---.+..---.+..-.++.} http{ats.ucdavis.edu} -- 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: Open File on client side.
With the new W3C File API you could access files that are picked (by the user) using an input tag or dropped via mouse (etc) over the browser window, but AFAIK FF 3.6 is the only browser that supports it now. @ Google IO, the comments from the GWT team were that as soon as there is more browser penetration, gwt will support it. On Mon, Jun 28, 2010 at 4:05 PM, alan alan.sny...@gmail.com wrote: I would like to open a file on the client side, so it can populate a local (client-side) table. (After validating of course). The data is not needed on the server side. What is the best way to do this? It seems uploading the file to the server would be wasteful, but can you open the file on the client side? -- 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. -- Jon Gorrono PGP Key: 0x5434509D - http{pgp.mit.edu:11371/pks/lookup?search=0x5434509Dop=index} GSWoT Introducer - {GSWoT:US75 5434509D Jon P. Gorrono jpgorrono - gswot.org} http{ats.ucdavis.edu} -- 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.
popup or glasspanel that ignores events
I've been trying to get GlassPanel to overlay the entire screen and pass all events to the underlying components... (think of it as adding smokey haze to the app :) ... I looked around at PopupPanel as well but it seems to have the same issue ... this is intended to hi-light a sensitive edit mode to the user that might otherwise seem like normal editing thinking about adding an image or styled text so there is a watermarking effect. But I have not had success ... tried instantating an anonymous extension of GlassPanel constructed with 'autohide=true' (so that onEventPreview is called) overriding onEventPreview and returning true for all events... didn't work but I suspect that since the other components underneath are not children then they would never get the events... seems like a matter of focus. Anyone know how I might be able to allow the event be completely ignored by a transparent layer? Thanks for any tips -- Jon Gorrono PGP Key: 0x5434509D - http{pgp.mit.edu:11371/pks/lookup?search=0x5434509Dop=index} GSWoT Introducer - {GSWoT:US75 5434509D Jon P. Gorrono jpgorrono - gswot.org} http{ats.ucdavis.edu} -- 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.