cellTable paging: server side query return wrong result using JPA
hi all: follow the well know expense example, i see the following code in Report.java: @SuppressWarnings(unchecked) public static ListReport findReportEntries(int firstResult, int maxResults) { EntityManager em = entityManager(); try { ListReport reportList = em.createQuery( select o from Report o).setFirstResult(firstResult).setMaxResults( maxResults).getResultList(); // force it to materialize reportList.size(); return reportList; } finally { em.close(); } } i setup my environment exactly the same as expense does, however, everytime the query return the first *maxResults *result. and never return the entries beyonds the* maxResults.* * * for example, at client side, my cell table using a SimplePager, with the range 0-8 each page. say i have 80 entities in table, whatever the firstResult and maxResults is, the search result is exactly the *0-8* in the table. never show the others beyond *8*. i debug for days yet still not luck. anyone can give some clues where is wrong? i use datanucleus JPA 2.1.4 and GWT 2.1 with Mysql 5. thanks very much. -- 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: Editor Framework Questions
hi : i'm new to the Editor too, but to my understand, Editors are for displaying/editing data directly from server side. for example you have data in your DB, you retrieved it as Entity in your web server side, by using Editor you can edit and/or display it at client side with ease. seems like a map from data/object to UI. without Editors, you have to parse the data from server side, creating UI to display/edit the data at client side. i know the Expense example using editor. i didn't get through it though. -- 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: cellTable paging: server side query return wrong result using JPA
another question, the JPQL query seems rarely function well, i checked if i use: ListPerson rl = em.createQuery( select o from Person o ).setFirstResult( startIndex ).setMaxResults( maxCount ).getResultList(); my first query using the startIndex=0; and maxCount=35, it return 35 objects, the next time i invoke this method using startIndex=0 and maxCount=55, it still return 35 objects. what's wrong with 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-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.
ClassNotFoundException: org.slf4j.LoggerFactory
Hi, I'd like to use hibernate with gwt and maven, but I get an exception this point: new Configuration().configure().buildSessionFactory(); -- Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at com.google.gwt.dev.shell.jetty.JettyLauncher $WebAppContextWithReload $WebAppClassLoaderExtension.findClass(JettyLauncher.java:354) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 366) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 337) The sl4f-jar is in my webapp/WEB-INF/lib folder My maven dependencies: dependency groupIdorg.slf4j/groupId artifactIdslf4j-simple/artifactId version1.6.1/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.6.1/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.6.1/version /dependency dependency groupIdorg.slf4j/groupId artifactIdjul-to-slf4j/artifactId version1.6.1/version /dependency Any tips? -- 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.
how to make table auto-extend, just like new google group UI 's content view?
hi all: if you are using the new version of google group now, you must be feeling that it's much much more comfortable than the old ones, it's just like a desktop app with wonderful user experience. i'm more interested in the auto-extend cellList, i.e. if the scrollbar hit the end it display more content automatically, i'm trying to add this feature to my own application, now i can impl the auto-extend function follow by the cellList example, but stuck at the UI layout: .scrollable { height: 100%; width: 100%; border: 0px solid #ccc; text-align: left; position:relative; } g:HTMLPanel styleName={style.listView} a:ShowMorePagerPanel addStyleNames='{style.scrollable}' ui:field='pagerPanel' / a:RangeLabelPager ui:field='rangeLabelPager' / /g:HTMLPanel the HTMLPanel still has outer HTMLPanel which wrap it, it's style is: .content { position: relative; border: 1px solid #ddf; overflow-y: auto; overflow-x: hidden; } public class ShowMorePagerPanel extends AbstractPager { ... private final ScrollPanel scrollable = new ScrollPanel(); /** * Construct a new {...@link ShowMorePagerPanel}. */ public ShowMorePagerPanel() { scrollable.addScrollHandler(...); } public void setDisplay( HasRows display ) { assert display instanceof Widget: display must extend Widget; scrollable.setWidget( ( Widget ) display ); super.setDisplay( display ); } ... } but seems there are two scrollbar, the outer one and inner one, the outer one can scroll but the inner one can not. my question is how to set the style, and let it behaves like google group? 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: how to make table auto-extend, just like new google group UI 's content view?
You could use a CellList. http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList That example has the exact behavior that you're looking for. -- 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: how to make table auto-extend, just like new google group UI 's content view?
yes i said in my question i followed the cellList example, but they are different: cellList has a fixed height which make it scroll. my question is how to make the table *occupy the center page* just like google group center view does, rather than a fixed height. do i make it clear? -- 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: Can Flash communicate with GWT?
On Dec 24, 6:34 am, BogdanB buta.i.bog...@gmail.com wrote: Hy, How can I return a value or set a parameter at the end of a flash movie and then get it using gwt2swf? I need to know when the flash movie ended so I can make another widget visible. Thanks. before loading the flash object attach a function, that calls your GWT function, to the window, using $wnd, with a jsni function then be sure to call that function when the movie is complete. -- 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: how to make table auto-extend, just like new google group UI 's content view?
Oops, sorry. Maybe try putting it in a dock layout panel? -- 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: how to make table auto-extend, just like new google group UI 's content view?
Off topic question guys :) How do i access the new google group ? Greets, Alain 2010/12/25 Matthew Hill matt2...@gmail.com Oops, sorry. Maybe try putting it in a dock layout panel? -- 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.comgoogle-web-toolkit%2bunsubscr...@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-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: ClassNotFoundException: org.slf4j.LoggerFactory
1- is this line of code on your server side, or on the client ? new Configuration().configure().buildSessionFactory(); 2- are you using Log4J on the client or server ? you cannot use any of these in GWT, for logging on clientside, use this: http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html -- 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.
Implement TreeTable
Hello Is it possible to implement TreeTable using existing Cell Widgets? -- 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: get plugin failed to connect to hosted mode server on .... error with Chrome GWT developer plugin but works fine with Firefox
I'm still seeing this issue. Plugin version is 1.0.9274. The GWT plugin icon stays red and shows host 127.0.0.1 is allowed to use the plugin. There is no problem when using Firefox though. -- 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: how to make table auto-extend, just like new google group UI 's content view?
nino, its to the right side of the main page. see here: http://oi53.tinypic.com/2hnvwno.jpg -- 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: how to make table auto-extend, just like new google group UI 's content view?
found it thx 2010/12/25 zixzigma zixzi...@gmail.com nino, its to the right side of the main page. see here: http://oi53.tinypic.com/2hnvwno.jpg -- 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.comgoogle-web-toolkit%2bunsubscr...@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-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: Editor Framework Questions
Hi; thanks for your answer! I'm beginning to understand it better now. A few more questions though...: - Is it best used with RequestFactory? - What are the pros and cons? -- 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.
Purposes of three JAR files
What purposes are served by each of the main GWT JAR files: gwt-user.jar, gwt-servlet.jar, and gwt-dev.jar? I'm putting together a project definition in Intellij IDEA, and would like to know which JAR files to include, and at which scope (compile, test, provided, runtime) -- 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: Editor Framework Questions
There are two driver types - SimpleBeanEditorDriver to work with simple bean-like objects - RequestFactoryEditorDriver integrated with RequestFactory and RequestContext objects The pros are best described in the goals: http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html#Goals The cons are, from my perspective, as with any generic framework: a generic algorithm theoretically should be a bit slower than if you hand-code your bindings between UI controls and backing data objects. However, I haven't seen any performance problems since I started using RequestFactoryEditorDriver: it works great. On Dec 25, 2:45 pm, Matthew Hill matt2...@gmail.com wrote: Hi; thanks for your answer! I'm beginning to understand it better now. A few more questions though...: - Is it best used with RequestFactory? - What are the pros and cons? -- 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.
RequestFactory: /gwtRequest not found
HTTP ERROR: 404 NOT_FOUND RequestURI=/gwtRequest *Powered by Jetty:// http://jetty.mortbay.org/* * * I've been following thishttp://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html, but get the above error when running my app. Presumably I need to set up some kind of servlet binding to that URI. How? -- 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: RequestFactory: /gwtRequest not found
Fixed by adding a servlet handler for com.google.gwt.requestfactory.serve.RequestFactoryServlet in web.xml -- 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: Maven repository for GWT 2.1.1
I tried to run it (mvn gwt:run) If I use URL as http://127.0.0.1:/Expenses.html?gwt.codesvr=127.0.0.1:9997 everything looks good, but if I point browser to http://127.0.0.1:/Expenses.html I get popup dialog with message GWT module may need to be (re)compile Is it supposed to happen or I do something wrong? Thank you, Andrey -- 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.
TreeViewModel and AsyncDataProvider
I have a 3 level CellBrowser. Everything is working fine using a ListDataProvider except that it's too long to grab the data from the server. So I want to use the AsyncDataProvider to fetch only the data that the user actually needs. Basically what I want to do is when the user selects the level1 value, the level2 provider executes a RPC call to get the level2 data based on the selected level1 parent. The problem is that the onRangeChanged method is called before the onSelectionChange, so when the RPC call is done the level1 value is still null. What is the proper way to use AsyncDataProvider to grab the level2 data depending on the level1 selected value? public class SportTreeModel implements TreeViewModel, Handler { private AsyncDataProviderLevel1Node level1Provider; private AsyncDataProviderLevel2Node level2Provider; private final SingleSelectionModelLevel1Node level1SelectionModel; // In the construtor I create these objets // In getNodeInfo I link a cell with the data provider and the selection model @Override public void onSelectionChange(SelectionChangeEvent event) { Object src = event.getSource(); if (src == level1SelectionModel) { Level1Node level1 = level1SelectionModel.getSelectedObject(); ((MyAsyncLevel2Provider) level2Provider).setLevel1(level1.getValue()); } } } 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.
How to fail gracefully when the main GWT js file fails to load
hi there, I have an app where the main HTML file contains a loading div with a Loading, please wait... message, and when the GWT app loads, it will remove the loading div and start rendering the application. However i am running into a problem where if the GWT js file fails to be retrieved (ie. network issues) then the page will remain with the Loading, please wait... message forever. Could I please get some advice on how to resolve this? Best Regards, Icky -- 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: How to fail gracefully when the main GWT js file fails to load
What about setting a JS timer and checking in the callback if the main app has been loaded? http://www.w3schools.com/js/js_timing.asp On Dec 25, 9:47 pm, Icky cloudsketc...@gmail.com wrote: hi there, I have an app where the main HTML file contains a loading div with a Loading, please wait... message, and when the GWT app loads, it will remove the loading div and start rendering the application. However i am running into a problem where if the GWT js file fails to be retrieved (ie. network issues) then the page will remain with the Loading, please wait... message forever. Could I please get some advice on how to resolve this? Best Regards, Icky -- 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: Purposes of three JAR files
1- gwt-servlet scope: default(compile) 2- gwt-user - scope: provided default scope is compile, therefore you dont need to specify it dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwt.version}/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwt.version}/version scopeprovided/scope /dependency -- 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: how to make table auto-extend, just like new google group UI 's content view?
it's already in a docklayoutpanle: g:DockLayoutPanel g:north size=10/g:north g:west size=20/g:west g:center g:FlowPanel g:SimplePanel a:ShowMorePagerPanel addStyleNames='{style.scrollable}' ui:field='pagerPanel' / /g:SimplePanel /g:FlowPanel /g:center /g:DockLayoutPanel -- 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: Maven repository for GWT 2.1.1
you need compile first before you run http://127.0.0.1:/Expenses.html -- 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.