Re: GWTTestCase: reduce log level
Thanks Thomas, I'll look into that (tomorrow). Have a nice evening! Am Donnerstag, 10. März 2016 11:53:22 UTC+1 schrieb Thomas Broyer: > > > > On Thursday, March 10, 2016 at 9:31:04 AM UTC+1, Denny Kluge wrote: >> >> This is probably a newbie question, but I googled around for the past >> half hour without finding a solution. So when I run a GWTTestCase in >> Eclipse, >> tons of log info are spewed out to the Eclipse console by htmlunit and other >> sub-components of the GWT JUnit environment. E.g., >> >> 00:48:05.949 [htmlUnit client thread] DEBUG org.apache.http.wire - >> >> "GET/com.gxe.GwtTest.JUnit/com.gxe.GwtTest.JUnit.nocache.js >> HTTP/1.1[EOL]" >> 00:48:05.949 [htmlUnit client thread] DEBUG org.apache.http.wire - >> "Host: >> 192.168.1.124:37966[EOL]" >> 00:48:05.949 [htmlUnit client thread] DEBUG org.apache.http.wire - >> >> "User-Agent: >> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) >> Gecko/2010031422 Firefox/3.0.19[EOL]" >> >> >> Does anyone know how I can tune down the log level of the GWT Junit >> environment? >> > > You must have some logging configuration file in your classpath (or system > properties) such that Apache Commons Logging configures itself with DEBUG > logging. > See http://htmlunit.sourceforge.net/logging.html and > https://commons.apache.org/proper/commons-logging/guide.html > AFAICT, HtmlUnit should by default use java.util.logging, so that'd mean > you have a java.util.logging.config.file system property set to some file > that configures logging at DEBUG level; or your JRE's > lib/logging.properties sets logging to DEBUG by default. > But if you have Log4j in your classpath (or an adapter for Log4j 2.x or > SLF4J), then that'd be used instead, so look for a log4j.properties in your > classpath. > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
GWTTestCase: reduce log level
This is probably a newbie question, but I googled around for the past half hour without finding a solution. So when I run a GWTTestCase in Eclipse, tons of log info are spewed out to the Eclipse console by htmlunit and other sub-components of the GWT JUnit environment. E.g., 00:48:05.949 [htmlUnit client thread] DEBUG org.apache.http.wire - >> "GET/com.gxe.GwtTest.JUnit/com.gxe.GwtTest.JUnit.nocache.js HTTP/1.1[EOL]" 00:48:05.949 [htmlUnit client thread] DEBUG org.apache.http.wire - >> "Host: 192.168.1.124:37966[EOL]" 00:48:05.949 [htmlUnit client thread] DEBUG org.apache.http.wire - >> "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19[EOL]" Does anyone know how I can tune down the log level of the GWT Junit environment? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: CellTable FieldUpdater Validation (not null, etc)
I had to call refresh on the DataProvider for the grid to display the previous value. tColName.setFieldUpdater(new FieldUpdater() { public void update(int index, final MyModel model, final String newValue) { if (newValue == null || newValue.trim().isEmpty()) { textCellName.clearViewData(model); mDataProvider.refresh(); return; } } } -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: ScrollPanel maxWidth or maxHeight?
I don't know if it still relevant, but I had the same problem and I found a solution. I have small popup (my Class extends DialogBox). Inside the popup, I have a VerticalPanel. Inside this panel is a ScrollPanel and a HorizontalPanel for some buttons. Inside the ScrollPanel is a FlexTable. Now, the user can add and remove rows in the FlexTable. I want to grow the Dialog a bit, but when it gets too large, I want the ScrollPanel to have a fixed height so that the scrollbars appear. When the user removes elements from the table and gets beyond the critical height, I want the dialog to shrink. It's quite easy. Here is how I achieved it. private void handlePanelHeight() { String height = null; if (table.getOffsetHeight() MAX_PANEL_HEIGHT) { height = String.valueOf(MAX_PANEL_HEIGHT); } else { height = String.valueOf(table.getOffsetHeight()); } DOM.setStyleAttribute(scrollPanel.getElement(), height, height); } In my example, I set MAX_PANEL_HEIGHT to 250. I call this method when - the dialog is opened - the user adds a row - the user removes a row I hope this helps. Best regards Denny -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.