Re: datagrid body is disappeared!! height is zero!!
finally I give up and change back to use celltable inside a scrollpanel. client do not want to upgrade to GWT 2.5, so upgrade is not possible. it happen in IE9 and FF13. -- 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 show horizontal scrollbar in scrollpanel automatically?
No, the scrollpanel overflow property is already auto, but the horizontal scrollbar cannot be shown in ie8 or FF13 I set the css using scrollPanel.getElement().setAttribute(style, width:210px;height:247px;border:1px solid #B5BBC8; overflow:auto;); In FireFox, I use firebug and see element.style{ border: 1px solid #B5BBC8; height: 247px; overflow: auto; width: 210px; } On Wed, Dec 19, 2012 at 5:20 AM, Andrei vol...@spiraluniverse.com wrote: This is not a standard behavior. You must have a CSS style applied to your scroll panel or its content which resets overflow property. It should be overflow:auto. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NX1QhsV7i84J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ListDataProvider and VM use up memory
Sorry, what is server-side caches and second level cache? On Fri, Nov 9, 2012 at 12:50 AM, Ümit Seren uemit.se...@gmail.com wrote: Exactly for that reason there are server-side caches. Just set up a second level cache (ehcache, etc) and that should solve your scaling issue. If you use Spring as a backend technology it's a couple of configuration lines to add second level cache for Apart from caching there is the question if it really makes sense to transmit 10.000 records to the client. Mostly your users will just search in this huge list. The advantage of transmitting everything at once is that you can search exclusively on the client and you won't need any request to the server. However serializiation and de-serialization of 10.000 records will take some time and it will also increase memory consumption on your browser. You can also go a hybrid approach. Transfer around 2.000 rows using a AsyncDataProvider and once your search criteria is that specific that you have all the records at the client side you can do client side filtering (but programming-wise that's a little bit more involved) On Wednesday, November 7, 2012 10:00:59 AM UTC+1, tong123123 wrote: for using LIstDataProvider, if the search result contains many records and many users use similar criteria to search simultaneously, it will use up the memory of the server JVM easily, is this correct? So for searching record with large result, we should use celltable with pager and data provided by AsyncDataProvider so can break down the search result in server into smaller size, is this correct? For example, if the search criteria return 10,000 record at once time using ListDataProvider and if 500 ppls search using same criteria simultaneously, the server JVM memory will use up. So if using AsyncDataProvider, each time the search result is smaller (from onRangeChange) and so the chance of used up the memory in the server JVM is decrease, is this correct? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ol1vgB5r9FAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to export a ArrayListString in gwt to external file?
I do not underatand how to implement step 2 and 3, so I try to use GWT-RPC to call servlet to export the data, to simplify the case, I just try to hardcode the output text first, with the following code in the RemoteServiceServlet public void exportHistory(ArrayListString sqlHistory){ this.sqlHistory = sqlHistory; try { HttpServletResponse res = this.getThreadLocalResponse(); res.setContentType(text/plain); res.setHeader(Content-disposition, attachment; filename=history.txt); ServletOutputStream out = res.getOutputStream(); out.println(test1); out.println(test2); out.flush(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } there is no exception in this segment, but it return onFailure(Throwable caught) in the asyncCallbackVoid, the caught is InvocationException. What is the problem? On Thu, Jun 14, 2012 at 10:37 PM, Joseph Lust lifeofl...@gmail.com wrote: tong, I have not tested this, but the following should do the trick for you. 1) Write a method to convert your sqlHistory to a string with the desired line returns (if you want each list entry on a separate row). 2) Convert it to a DataUrl for a text file with MIME text/plain 3) Open a new window with the URL from (2) to trigger a file download. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JLZmg_Mnxg0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make CellTable Header always on top
I see the thread https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/PBhu6RtP4G8 and so I put the datagrid inside a scrollPanel (scrollPanel implements ProvidesResize) and I also set each column width (table.setColumnWidth(addressColumn, 7, Unit.EM);) but still cannot show the datagrid, what happens? On Wed, May 30, 2012 at 2:14 PM, Kei Kei tong123...@gmail.com wrote: When I change my application from using CellTable to DataGrid, then nothing can be shown on the result page!! then I try to test the example in http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/cellview/client/DataGrid.html with just very minor modification (as attahced as DataGridExample.java, just don't impelement entrypoint and use onLoad), the data grid cannot be seen also (DataGrid.jpg). Then I try to replace the DataGrid with CellTable, then the CellTable can be shown!! (as in attached useCellTable.jpg) So what is 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 make CellTable Header always on top
I really get confused. in my result page, the hierarchy of widget is DialogBox encloses TabLayoutPanel encloses FlexTable, the FlexTable has three rows. in the first row, after I add a SimpleLayoutPanel with setSize(100%, 360px); and then encloses the DataGrid inside SimpeLayoutPanel, the DataGrid can shown now. But the problem is...SimpleLayoutPanel is also implements RequiresResizehttp://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/RequiresResize.html, so why can I just use 100% but not an exact px unit? The TabLayoutPanel has an explicit size in unit of px, then the FlexTable has setWidth(100%), is this the cause so I can use just % in the enclosing SimpeLayoutPanel? Also, I see DialogBox has not implements RequiresResizehttp://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/RequiresResize.htmland ProvideResizes, so if the outer browser windows shrink, the DialogBox will not resize accordingly, this is expected, right? On Wed, May 30, 2012 at 2:50 PM, Thomas Broyer t.bro...@gmail.com wrote: ScrollPanel is also a RequiresResize, so it won't help. You have to give your DataGrid (or whatever RequiresResize+ProvidesResize parent) a size in pixels. See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Resize (and don't miss the Recipes section!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PpPCjAW-Px0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make CellTable Header always on top
When I change my application from using CellTable to DataGrid, then nothing can be shown on the result page!! then I try to test the example in http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/cellview/client/DataGrid.html with just very minor modification (as attahced as DataGridExample.java, just don't impelement entrypoint and use onLoad), the data grid cannot be seen also. So what is 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. DataGridExample.java Description: Binary data
Re: maven gwt module depends on a external jar
I have called the source:jar-no-fork goal in my *-core.pom.xml project (and als-admin-viewer-core-1.0.0-sources.jar is generated), and I already add the dependency on the webapps pom.xml dependency groupIdhk.gov.ehr.service.tch.als/groupId artifactIdals-admin-viewer-core/artifactId version1.0.0/version classifiersources/classifier /dependency in both the dependencies section and build...plugin..artifactIdgwt-maven-plugin/artifactId dependencies section, but now the error is Fail to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project als-admin-viewer-webapp:Compilation failure: Compilation failure: \worksapce\als-admin-viewer-webap\src\main\java\hk\gov\ehr\service\tch\als\admin\viewer\client\SearchResultPane..java:[43,51] cannot find symbol symbol: class LogSearchCriteria The LogSearchCriteria class is in core project, and the SearchResultPanel[43, 51] is the import statement of LogSearchCriteria in WebApp GWT module, SearchResultPanel Class. what is the cause of this problem?? On Mon, May 21, 2012 at 6:43 PM, Thomas Broyer t.bro...@gmail.com wrote: On Monday, May 21, 2012 12:31:57 PM UTC+2, tong123123 wrote: oh, the pom.xml in the link is quite complex, but in my als-admin-viewer-core pom.xml, I already write packagejar/package and I found under als-admin-viewer-core/target, the als-admin-viewer-core-1.0.0.**jar is already created, so what I miss is adding als-admin-viewer-core-1.0.0.**jar as a dependency in als-admin-viewer-webapp.pom.**xml? That's already the case (from what you said earlier). You need to call the source:jar-no-fork goal in your *-core project (it'll generate a an *-core-1.0.0-sources.jar in target) and add a dependency on that sources JAR (in addition to the binary JAR you already have: one is for javac –and Eclipse–, the other for GWT): dependency groupIdhk.gov.ehr.service.**tch.als/groupId artifactIdals-admin-viewer-**core/artifactId version1.0.0/version /dependency dependency groupIdhk.gov.ehr.service.**tch.als/groupId artifactIdals-admin-viewer-**core/artifactId version1.0.0/version classifiersources/classifier /dependency -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cBHTSC__TjMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
I have called the source:jar-no-fork goal in my *-core.pom.xml project (and als-admin-viewer-core-1.0.0- sources.jar is generated), and I already add the dependency on the webapps pom.xml dependency groupIdhk.gov.ehr.service.tch.als/groupId artifactIdals-admin-viewer-core/artifactId version1.0.0/version classifiersources/classifier /dependency in both the dependencies section and build...plugin..artifactIdgwt-maven-plugin/artifactId dependencies section,but the error message is the same No source code is available for type hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria; did you forget to inherit a required module? I have checked the als-admin-viewer-core-1.0.0-sources.jar, and the LogSearchCriteria.java is definitely in the sources.jar, it seems webapp module still cannot add the dependency of the source...anything I am missing? thanks. On Mon, May 21, 2012 at 6:43 PM, Thomas Broyer t.bro...@gmail.com wrote: On Monday, May 21, 2012 12:31:57 PM UTC+2, tong123123 wrote: oh, the pom.xml in the link is quite complex, but in my als-admin-viewer-core pom.xml, I already write packagejar/package and I found under als-admin-viewer-core/target, the als-admin-viewer-core-1.0.0.**jar is already created, so what I miss is adding als-admin-viewer-core-1.0.0.**jar as a dependency in als-admin-viewer-webapp.pom.**xml? That's already the case (from what you said earlier). You need to call the source:jar-no-fork goal in your *-core project (it'll generate a an *-core-1.0.0-sources.jar in target) and add a dependency on that sources JAR (in addition to the binary JAR you already have: one is for javac –and Eclipse–, the other for GWT): dependency groupIdhk.gov.ehr.service.**tch.als/groupId artifactIdals-admin-viewer-**core/artifactId version1.0.0/version /dependency dependency groupIdhk.gov.ehr.service.**tch.als/groupId artifactIdals-admin-viewer-**core/artifactId version1.0.0/version classifiersources/classifier /dependency -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cBHTSC__TjMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt
following the website http://www.uptick.com.au/content/getting-started-gwt-maven-and-eclipse#comment-263 and start from the middle webAppCreator -maven -out MyGwtMavenSampleApp au.com.uptick.gwt.maven.sample.MyGwtMavenSampleApp and finally the step 4. Test the application in development mode At this point, you should be able to compile and run the new project in GWT Development Mode. Right-click on the pom.xml in the Project Explorer and choose Run As - Maven Build... and run the gwt:run goal: I can run the sample from webAppCreator in development mode, what should I do now to help me understand to transfer my origin non maven gwt application to maven gwt application? -- 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: any method to migrate an existing gwt application to maven project
How to download the source from http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/#samples%2Fmobilewebapp ? -- 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: maven gwt
I am in home now, but before using maven, I put the css file under module folder/public and I placed images folder under war directory, now I need place these css and image under src/main/resources? In gwt developer guide https://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizingProjects there is some suggested folder structure, if using maven, then should use maven structure and neglect the developer guide recommended structure, is it? -- 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: maven gwt
!-- Mark the project for Google Plugin for Eclipse (GPE) -- plugin artifactIdmaven-eclipse-plugin/artifactId version2.8/version configuration downloadSourcestrue/downloadSources downloadJavadocsfalse/downloadJavadocs wtpversion2.0/wtpversion additionalBuildcommands buildCommand namecom.google.gwt.eclipse.core.gwtProjectValidator/name /buildCommand /additionalBuildcommands additionalProjectnatures projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature /additionalProjectnatures /configuration /plugin /plugins I see the above plugin in http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/pom.xml what is its use? I have not installed GPE, instead I have installed M2Eclipse. is GPE necessary? -- 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: maven gwt
in http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/pom.xml configuration !-- URL that should be automatically opened in the GWT shell (gwt:run). -- runTargetDynaTableRf.html/runTarget !-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -- compileReporttrue/compileReport modulecom.google.gwt.sample.dynatablerf.DynaTableRf/module logLevelINFO/logLevel style${gwt.style}/style copyWebapptrue/copyWebapp /configuration why the pom.xml has no need to state the goal for run, compile but just insert parameter? http://mojo.codehaus.org/gwt-maven-plugin/run-mojo.html Also, if I don't want to use the gwt shell, but use normal IE, need change in this segment? in fact, I am not familiar with the configuration segment, any good reference (it mention gwt-maven-plugin but I cannot found how it is used) -- 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: does any Breedcrumb widget in gwt 2.4?
what is gwt bootstrap? I glance the site http://gwtbootstrap.github.com/ but does not find any breedcrumb widget, also, even it has, it is some framework like GXT, SMARTGWT but not GWT? On Mon, Apr 16, 2012 at 9:12 PM, Thomas Lefort lefortho...@gmail.comwrote: May be follow bootstrap for gwt? There is a breadcrumb in bootstrap so you can imagine one days the guys at gwt bootstrap will add it? may be add a feature request? https://github.com/gwtbootstrap/gwt-bootstrap On Friday, 16 March 2012 07:52:30 UTC+1, tong123123 wrote: Hi, is there Breedcrumb control provided in GWT 2.4? I see a link in http://code.google.com/p/gwt-**examples/source/browse/trunk/** Core/src/org/gonevertical/**core/client/ui/breadcrumbs/** BreadCrumbs.java?spec=svn1926**r=1924http://code.google.com/p/gwt-examples/source/browse/trunk/Core/src/org/gonevertical/core/client/ui/breadcrumbs/BreadCrumbs.java?spec=svn1926r=1924 but it has not download link and no related example of how to use it. I just think is there any official Breedcrumb widget in GWT? the format is just simple menu1 menu 1.1 menu 1.1.2 and user can go back to menu 1.1 by clicking the menu 1.1 in the Breedcrumb control. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OmD3Zon9V5kJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a hourglass pointer?
I use the following code public class ShowHourGlass extends FlowPanel { Button showHourGlass = new Button(Show HourGlass); protected void onLoad(){ this.add(showHourGlass); showHourGlass.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent event) { //showWaitCursor(); RootPanel.get().setStyleName(waitCursor); Timer t = new Timer() { public void run() { // do something after a delay //showDefaultCursor(); RootPanel.get().setStyleName(defaultCursor); } }; // delay running for 1 seconds t.schedule(1000); } }); } } and the css is as follow: .waitCursor{ cursor:wait; } .defaultCursor{ cursor:default; } and found some problem, 1) after click the button and move the mouse cursor away from the button and then stay (not move), the cursor will change to wait but will not change back to default, I need to move the cursor to make it return to default state. 2) even I keep moving the mouse cursor, I found the time to return to default cursor is longer than 1 sec even I set t.schedule(1000); 3) If the mouse cursor not leave the button, the cursor is still in hand shape and the user can continue click the button many times. how to solve the above problem? On Tue, Apr 3, 2012 at 6:23 PM, Jens jens.nehlme...@gmail.com wrote: You have to set the CSS rule cursor:wait or cursor:progress on the element where the mouse cursor should be changed. If it should change for the whole site, you would add it to the body tag (accessible through RootPanel.get()) or to a glasspane like div that you maybe already have for disabling all mouse events. -- J. Am Dienstag, 3. April 2012 12:07:10 UTC+2 schrieb tong123123: For lengthy process, I want to set the mouse pointer to hourglass, how to do it in GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gdov4VIG5Q4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to go to a widget at the top of the page
I try to call errMsgPanel.getElement().scrollView(); where errMsgPanel is a FlowPanel, it throws error: NoSuchMethodError:com/google/gwt/user/client/Element.scrollIntoView()V at com.ha On Thu, Apr 5, 2012 at 4:25 PM, Jens jens.nehlme...@gmail.com wrote: Have you tried to call errorFlowPanel.getElement().scrollIntoView() ? You could also set the vertical scroll position on the ScrollPanel to 0 or call ScrollPanel.scrollToTop(). -- J. Am Donnerstag, 5. April 2012 05:29:44 UTC+2 schrieb tong123123: my panel is very long, and I have an FlowPanel for displaying error message at the top of the long panel, there is a search button at the bottom of the page, when user press search, there is validation and if has error, the error is shown on the FlowPanel at the top of page, but the page will not automatically jump to the top of the page to let user see the error message, I try to use a focusPanel to surrounding the error message panel and use focusPanel.setFocus(true) but the page still cannot jump to the focusPanel at the top of the page, so any method I can do? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PYqESnSsaAsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to go to a widget at the top of the page
For more information, I am using GWT 2.4. the errMsgPanel.getElement().scrollIntoView() is called inside a button clickHandler. On Thu, Apr 5, 2012 at 4:52 PM, Kei Kei tong123...@gmail.com wrote: I try to call errMsgPanel.getElement().scrollView(); where errMsgPanel is a FlowPanel, it throws error: NoSuchMethodError:com/google/gwt/user/client/Element.scrollIntoView()V at com.ha On Thu, Apr 5, 2012 at 4:25 PM, Jens jens.nehlme...@gmail.com wrote: Have you tried to call errorFlowPanel.getElement().scrollIntoView() ? You could also set the vertical scroll position on the ScrollPanel to 0 or call ScrollPanel.scrollToTop(). -- J. Am Donnerstag, 5. April 2012 05:29:44 UTC+2 schrieb tong123123: my panel is very long, and I have an FlowPanel for displaying error message at the top of the long panel, there is a search button at the bottom of the page, when user press search, there is validation and if has error, the error is shown on the FlowPanel at the top of page, but the page will not automatically jump to the top of the page to let user see the error message, I try to use a focusPanel to surrounding the error message panel and use focusPanel.setFocus(true) but the page still cannot jump to the focusPanel at the top of the page, so any method I can do? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PYqESnSsaAsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to go to a widget at the top of the page
the problem disappear now after rebuild the whole project, errMsgPanel.getElement().scrollView(); can function as expect. thanks On Thu, Apr 5, 2012 at 4:56 PM, Kei Kei tong123...@gmail.com wrote: For more information, I am using GWT 2.4. the errMsgPanel.getElement().scrollIntoView() is called inside a button clickHandler. On Thu, Apr 5, 2012 at 4:52 PM, Kei Kei tong123...@gmail.com wrote: I try to call errMsgPanel.getElement().scrollView(); where errMsgPanel is a FlowPanel, it throws error: NoSuchMethodError:com/google/gwt/user/client/Element.scrollIntoView()V at com.ha On Thu, Apr 5, 2012 at 4:25 PM, Jens jens.nehlme...@gmail.com wrote: Have you tried to call errorFlowPanel.getElement().scrollIntoView() ? You could also set the vertical scroll position on the ScrollPanel to 0 or call ScrollPanel.scrollToTop(). -- J. Am Donnerstag, 5. April 2012 05:29:44 UTC+2 schrieb tong123123: my panel is very long, and I have an FlowPanel for displaying error message at the top of the long panel, there is a search button at the bottom of the page, when user press search, there is validation and if has error, the error is shown on the FlowPanel at the top of page, but the page will not automatically jump to the top of the page to let user see the error message, I try to use a focusPanel to surrounding the error message panel and use focusPanel.setFocus(true) but the page still cannot jump to the focusPanel at the top of the page, so any method I can do? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PYqESnSsaAsJ. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: about css style in gwt
Sorry, I still have something not clear. if the css selector is .gwt-MenuBar .gwt-MenuItem then under normal html, how to use it? class=gwt-MenuItem class=gwt-MenuBar .gwt-MenuItem seems both does not work. I try to create a label, and if I write the css as .gwt-Label .innerTitle then I found no method to use it, but if I just write .innerTitle then in gwt, I can simply use addStyleName(innerTitle); On Fri, Mar 2, 2012 at 1:24 AM, Joseph Lust lifeofl...@gmail.com wrote: ton123123, The intent is to prevent CSS namespace pollution. It is common practice to use a makeshift namespace for your CSS selectors so as not to break existing CSS selectors. Say for example you had a rule for .closeButton . If anyone else used that selector in their module, you might be overriding and breaking their CSS. So, you use a makeshift namespace. Let's say everything in your module is inside a container, then you could make that selector .myModuleContainer .closeButton and now it will only apply to your module and not break any others. This is why .gwt-MenuBar .gwt-MenuItem is used. There could be .gwt- MenuItem items that appear in places other than the menubar, so use this more specific selector to only apply to the menu items of interest. A better step is to use the CSSResource feature of GWT, and then you'll never need to worry about these collisions as each selector can have a unique name, and your CSS will parse faster. https://code.google.com/p/google-web-toolkit/wiki/CssResourceCookbook Hope that helps. Sincerely, Joseph On Feb 29, 10:43 pm, tong123123 tong123...@gmail.com wrote: in gwt developer guildehttp:// code.google.com/webtoolkit/doc/latest/DevGuideUiCss.html complex style section: .gwt-MenuBar {/* properties applying to the menu bar itself */ } .gwt-MenuBar .gwt-MenuItem { /* properties applying to the menu bar's menu items */ } .gwt-MenuBar .gwt-MenuItem-selected { /* properties applying to the menu bar's selected menu items */ } I cannout underatand, why the css rule is .gwt-MenuBar .gwt-MenuItem but not .gwt-MenuItem ? I am not good in css, is .gwt-MenuBar .gwt-MenuItem is equal to just one css class? not any special meaning for the prefix .gwt-MenuBar, that is we can rename it as .gwt-MenuBargwt-MenuItem will not any different? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ImageResources cannot show image as expected
I try to run a gwt compile but still have no any clue. anyway, for the worst case, I can still use Image ha_logo_files = new Image(imagepath); without using ImageResources On Thu, Mar 8, 2012 at 12:12 PM, JoseM jose.a.marti...@gmail.com wrote: Maybe the ehealthlogo.png is missing from the proper folder or it is misspelled. Look at the logs in the GWT Jetty window it might say something (make sure to set the Level to Debug). Or you can also run a gwt compile that usually gives warning and errors when there is something wrong. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZP9QnVvf0LYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.