Re: Chrome 15, GWT DMP Plugin crashes
We have the same issue with Chrome 16.0.912.12 dev-m. In case we deploy the app or use IE in debug mode the app works fine! Thanks Savilak On Oct 26, 8:38 pm, pjspychala wrote: > After upgrading to a new version of the browser (Chrome15) it seems > that the plugin no longer likes whats going on. I've tried > uninstalling and reinstalling the plugin without success. > > What happens: > > Webapp loads > I can do some actions on the webapp, but 95% of actions will freezechrome. > Eventuallychromewill ask to disable the plugin which will > unfreeze the good stuff which will leave me with this inside Eclipse: > > 13:32:15.151 [ERROR] [???] Remoteconnectionlost > > com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remoteconnectionlost > at > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne > lServer.java: > 307) > at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > nelServer.java: > 546) > at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : > 363) > at java.lang.Thread.run(Unknown > Source)Causedby:java.net.SocketException:Connectionresetbypeer:socketwriteerror > at java.net.SocketOutputStream.socketWrite0(Native Method) > at java.net.SocketOutputStream.socketWrite(Unknown Source) > at java.net.SocketOutputStream.write(Unknown Source) > at java.io.BufferedOutputStream.flushBuffer(Unknown Source) > at java.io.BufferedOutputStream.flush(Unknown Source) > at java.io.DataOutputStream.flush(Unknown Source) > at com.google.gwt.dev.shell.BrowserChannel > $ReturnMessage.send(BrowserChannel.java:1310) > at com.google.gwt.dev.shell.BrowserChannel > $ReturnMessage.send(BrowserChannel.java:1315) > at > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne > lServer.java: > 295) > at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > nelServer.java: > 546) > at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : > 363) > at java.lang.Thread.run(Unknown Source) > > which is expected and this: > > 13:32:15.080 [ERROR] [???] Uncaught exception escaped > > com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remoteconnectionlost > at > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo > rReturn(BrowserChannelServer.java: > 354) > at > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann > elServer.java: > 218) > at > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: > 136) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: > 561) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: > 269) > at > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j > ava: > 91) > at com.google.gwt.core.client.impl.Impl.apply(Impl.java) > at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) > at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) > at > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) > at > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: > 172) > at > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne > lServer.java: > 292) > at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > nelServer.java: > 546) > at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : > 363) > at java.lang.Thread.run(Unknown > Source)Causedby:java.net.SocketException:Connectionresetbypeer:socketwriteerror > at java.net.SocketOutputStream.socketWrite0(Native Method) > at java.net.SocketOutputStream.socketWrite(Unknown Source) > at java.net.SocketOutputStream.write(Unknown Source) > at java.io.BufferedOutputStream.flushBuffer(Unknown Source) > at java.io.BufferedOutputStream.flush(Unknown Source) > at java.io.DataOutputStream.flush(Unknown Source) > at com.google.gwt.dev.shell.BrowserChannel > $ReturnMessage.send(BrowserChannel.java:1310) > at com.google.gwt.dev.shell.BrowserChannel > $ReturnMessage.send(BrowserChannel.java:1315) > at > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo > rReturn(BrowserChannelServer.java: > 340) >
Re: RequestFactory JDO One to Many bidirectional managed relationships
The bidirectional owned one to may relationship in requestFactory worked with one bypass! The issue for was the following. The data were saved properly but when we were fetching the child objects were null. This is due to the lazy loading of data from appengine. When you read an object which is related to another then the child object is retrieved with null values although it actually has values. In order to force population of the child object you have to use the @Persistent (defaultFetchGroup = "true") annotation (JDO) AND call the find method using the with() method call (see http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html) If you do only one of these then it will not work! The .with() is not working for us when we try to retrieve the parent from the child. We made two different find methods for the child objects one that is doing lazy loading and one that is not doing lazy loading. We achieved the non lazy behaviour just by reading the parent object at server side. In case someone can give us a better way to do this we will be much obliged. E.g. Property Entity -- Advert Entity (1 Property has N Adverts) You will find the fully functional code here: https://bitbucket.org/repo/all?name=DemoRequestFactoryJDO Keep in mind that this is just a draft project (at some parts it has hard coded key values please replace them with appropriate ones). Parts of code that interest you. In the Property Class use the annotation ... @Persistent (mappedBy = "property", defaultFetchGroup = "true") @Element (dependent = "true") private List adverts; public List getAdverts() {return this.adverts;} public void setAdverts(List adverts) { this.adverts=adverts; } ... public static Property findProperty(String encodedKey) { if (encodedKey == null) { return null; } PersistenceManager pm = persistenceManager(); try { Property x = pm.getObjectById(Property.class, encodedKey); return x; } finally { pm.close(); } } //List of properties @SuppressWarnings("unchecked") public static List findAllProperties() { PersistenceManager pm = persistenceManager(); try { List list = (List) pm.newQuery("select from " + Property.class.getName()).execute(); // force to get all the properties list.size(); return list; } finally { pm.close(); } } In the Advert Class use the annotation @Persistent (defaultFetchGroup = "true") private Property property; public Property getProperty() {return this.property;} public void setProperty(Property property){this.property=property;}; Client Side Code //Get All Properties Handler btn.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent event) { // TODO Auto-generated method stub final PropertyRequest request1 = requestFactory.propertyRequest(); request1.findAllProperties().with("adverts").fire(new Receiver>(){ @Override public void onSuccess(List response) { String str = "Properties: "; for (PropertyProxy property : response){ str += property.getId() + " " + property.getDescription(); } Window.alert(str); } }); } }); On Mar 4, 7:58 am, savilak wrote: > We were using RPC to persist our data and we want to shift to > RequestFactory!!! > > We managed to make One to One and One to Many Unidirectional managed > relationships work with JDO. > > We try for 2 weeks and the bidirectional is not working!!! > We persist then we use AppWrench and we see that the data are saved > but when we retrieve > with our code (getObjectById ...) the related child objects return > null. > > Can someboby please provide a small functional SAMPLE of JDO 1:M > bidirectional relationship. > >
RequestFactory JDO One to Many bidirectional managed relationships
We were using RPC to persist our data and we want to shift to RequestFactory!!! We managed to make One to One and One to Many Unidirectional managed relationships work with JDO. We try for 2 weeks and the bidirectional is not working!!! We persist then we use AppWrench and we see that the data are saved but when we retrieve with our code (getObjectById ...) the related child objects return null. Can someboby please provide a small functional SAMPLE of JDO 1:M bidirectional relationship. Unfortunately Google is not providing working samples for major areas that is releasing in GWT or AppEngine!!! I pretty sure that this is killing Appengine and GWT adoption from the developer community. The DynatableRF sample app that Google suggests covers only a small subset of relationships and has a lot of irrelevant code plus we do not believe that this is the proper way to do it (copying and storing objects all the time ...). At least for the unidirectional we managed to do it in a much simpler and straightforward way. Any help would be much appreciated from us and we believe from a lot of others. Thank you for your 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.
Re: CellTable, how to create a cell with custom listbox
Can you please give me a hint on this? On Nov 29, 6:22 pm, savilak wrote: > I have to create a CellTable with cells that contain ListBoxes. > > The issue is that I want each item of the listbox to contain an Image > and Text! > Standard ListBoxes does not allow us to use images at its items > ( Item 1 ). > > What is the best approach I can follow to implement this? > > Thank you for your time. > > Savilak -- 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.
CellTable, how to create a cell with custom listbox
I have to create a CellTable with cells that contain ListBoxes. The issue is that I want each item of the listbox to contain an Image and Text! Standard ListBoxes does not allow us to use images at its items ( Item 1 ). What is the best approach I can follow to implement this? Thank you for your time. Savilak -- 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 override CellTable css
Hi Manstis, use the code below to do it. 1) Extend CellTable.Resources --- public interface CellTableResource extends CellTable.Resources { public interface CellTableStyle extends CellTable.Style {}; @Source({"CellTable.css"}) CellTableStyle cellTableStyle(); }; --- 2) Link it with your CellTable.css file that contains all your styling --- @CHARSET "UTF-8"; @def selectionBorderWidth 0px; .cellTableWidget { } .cellTableFirstColumn { } .cellTableLastColumn { } .cellTableFooter { border-top: 2px solid #6f7277; padding: 3px 15px; text-align: left; color: #4b4a4a; text-shadow: #ddf 1px 1px 0; } .cellTableHeader { /*border-bottom: 2px solid #6f7277;*/ border-top: 1px solid #6f7277; border-bottom: 1px solid #6f7277; /*padding: 3px 15px;*/ padding: 3px 6px 3px 6px; text-align: left; font-size:14px; color: #4b4a4a; /*text-shadow: #ddf 1px 1px 0;*/ } .cellTableCell { /* padding: 2px 15px; */ padding: 6px 6px 6px 6px; } .cellTableFirstColumnFooter { } .cellTableFirstColumnHeader { } .cellTableLastColumnFooter { } .cellTableLastColumnHeader { } .cellTableEvenRow { background: #ff; } .cellTableEvenRowCell { border: selectionBorderWidth solid #ff; } .cellTableOddRow { background:#f3f7fb; } .cellTableOddRowCell { border: selectionBorderWidth solid #f3f7fb; } .cellTableHoveredRow { background: #cc; } .cellTableHoveredRowCell { border: selectionBorderWidth solid #eee; } .cellTableKeyboardSelectedRow { /*background: #ffc;*/ } .cellTableKeyboardSelectedRowCell { border: selectionBorderWidth solid #ffc; } .cellTableSelectedRow { background: #628cd5; color: white; height: auto; overflow: auto; } .cellTableSelectedRowCell { border: selectionBorderWidth solid #628cd5; } /** * The keyboard selected cell is visible over selection. */ .cellTableKeyboardSelectedCell { border: selectionBorderWidth solid #d7dde8; } @sprite .cellTableLoading { gwt-image: 'cellTableLoading'; margin: 30px; } --- I hope this helps... Regards Savilak On Nov 27, 11:52 pm, manstis wrote: > Hi, > > I need to override some CellTable CSS definitions. > > I've been able to isolate the classes to some named along the lines > of .GL0PBETBKC, .GL0PBETBEC etc. > > The CellTable CSS appears to be injected into my module after my .css > file and the only way I have been able to override the above styles is > by using !important in my css file. Firebug shows the CellTable's CSS > to come fromhttp://127.0.0.1:/MyModule.html?gwt.codesvr=127.0.0.1:9997. > > Can anybody please advise the best way to override the above styles? > They are not part of standard.css and therefore changing my GWT Module > to inherit from 'com.google.gwt.user.theme.standard.StandardResources' > and linking to standard.css from my HTML page manually does not > provide a solution. > > Thanks, > > Mike -- 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 a NumberCell Clickable
Hi, how can I make a NumberCell clickable (just like ClickableTextCell)? I need to do this because I am using Sortable Column is my cell Table and i need to be able to click on number sorted columns. Thank you for your time. Savilak -- 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.