Re: Place image in object, send object over rpc, use hibernate to update database
Thus,the object will contain an image -- 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 - A request is already in progress
Problem solved... I was confused about two key points (sadly confusion is an occupational hazard for us morons): 1) When to "reuse" a RequestContext vs. creating a new RequestContext 2) What Objectify.put() actually does For #1, I believe that the same dynatablerf code put it as "using the given RequestContext to accumulate the edits." My usage had been somewhat random prior to that. So, when calling the persist() I now made sure to use the right RequestContext. For #2, I had been making the change to the Commitment, then calling put() and then making a change to the CommitUser, and then calling put() again. Now I make the changes to both entities and call put() once. This seemed to be the more important of the two. These items may be obvious to all others, but on the off-chance there are other old folks trying to write code Enjoy, RB On Nov 28, 2:04 pm, Richard Berger wrote: > Similar problem, but I was not able to implement your solution - any > guidance is suggested. And I promise, once I get my simple app > working, I will write the "GWT/Objectify 1-to-Many Relationships for > Moron Like Me" guide :). > > The problem in the small... > CommitUsers can have Commitments. I create a new Commitment and try > to associate that with the CommitUser. But the properties on the > CommitUser (even just a string) are not persisted. So, > following:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h... > in the section on Using RequestFactory, I figure I must be falling > into the trap of not having an editable CommitUser (since I didn't > create it, the CommitUseralreadyexists). > > So I change my code from: > Request createReq = > commitmentRequest.persist(currentCommitUserProxy).using(newCommitment); > > To: > CommitUserProxy editableCommitUserProxy = > commitUserReq.edit(currentCommitUserProxy); > Request createReq = > commitmentRequest.persist(editableCommitUserProxy).using(newCommitment); > > Where: > commitUserReq is: > private CommitUserRequest commitUserReq = > requestFactory.commitUserRequest(); > requestFactory is: > CommitmentSystemRequestFactory requestFactory = > GWT.create(CommitmentSystemRequestFactory.class); > > This gives me the error: > Caused by: java.lang.IllegalStateException: Arequestisalreadyinprogress > at > com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocke > d(AbstractRequestContext.java: > 307) > > Following the advice you provided, I tried to create a new > RequestContext, so my code became... > CommitUserRequest commitUserReq2 = > requestFactory.commitUserRequest(); > CommitUserProxy editableCommitUserProxy = > commitUserReq2.edit(currentCommitUserProxy); > Request createReq = > commitmentRequest.persist(editableCommitUserProxy).using(newCommitment); > But that gave me the error: > > Caused by: java.lang.IllegalArgumentException: Attempting to edit an > EntityProxy previously edited by another RequestContext > at > com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkStrea > msNotCrossed(AbstractRequestContext.java: > 334) > > Stepping back a little bit, the slightly bigger picture is that I am > following the article > at:http://www.ibm.com/developerworks/java/library/j-javadev2-13/index.html > (Java development 2.0: Twitter mining with Objectify-Appengine, Part > 1). But that article doesn't use GWT. But the idea is that the > Commitment stores a Key so that I can query the > Commitment.class to find all the Commitments whose Key matches the Key > of the current user. When I save a Commitment, I first save the > Commitment itself and then establish the relationship by modifying the > CommitUser (as the article demonstrates). So, my persist method > (fired above) is... > > public void persist(CommitUser commitUser) { > // Save commitment first > DAO dao = new DAO(); > Objectify ofy = dao.ofy(); > ofy.put(this); > dao = null; > // Then establish relationship > commitUser.addCommitment(this); // Owner is in charge > } > > And the addCommitment method on the CommitUser is: > public void addCommitment(Commitment commitment) { > DAO dao = new DAO(); > Objectify ofy = dao.ofy(); > commitment.setRequesterKey(this); > commitment.setDescription("Updated in addCommitment"); > ofy.put(this); > dao = null; > } > > And finally, the commitment.setRequestKey() is: > public void setRequesterKey(CommitUser commitUser) { > this.requesterKey = new Key(CommitUser.class, > commitUser.getId()); > } > > In the debugger I can see that all the properties - e.g. "Description" > get set, but they are not persisted to the Datastore. > > I am sure this is common, but it seems that I am very close to getting > this simple example to work - so any assistance is greatly appreciated > and I will do my best to provide assistance to the community. I think > my qualifications as a moron have to be helpful in some way. I am > also o
Place image in object, send object over rpc, use hibernate to update database
Hi, I have a scenario which if would solve many of my problems. I have an object which needs to contain a member of type to hold a file which will be an image. What i need to do is to populate the object with its data such as fields and the image, send the object over an rpc. Then at the server implementation use hibernate to update database. Does anyone of you have an idea of how to do this using gwt?? -- 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: Client File IO
Hi, Are you sure that you need to change the picture also ? The Same Origin Policy in the browser doesn't apply to tags. regards didier On Nov 28, 9:50 pm, khalid wrote: > Hello every one > I am working on a web-based proxy using GWT (similar to php proxy) > anyway , the idea is quite simple > Get the URL from the user , make the server fetch it , change the > HTML and send it back to the client > Now I have encountered a problem which is how to send the images back > to the client? > I have thought of two possible ways: > 1-Store them in the server and change their src to MyURL/img.xxx > 2-Send them back to the client > The first option will over load the server (I think?!) > The second option is not possible because as far as I know it is not > possible to do File IO in the client side , or is it? > I need your help > Thank you very much > ps: I think I will get a similar problem with flash , (e.g. flash > videos in youtube) -- 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: Several Servlets Help
http://lmgtfy.com/?q=servlets On Mon, Nov 29, 2010 at 2:14 PM, Noor wrote: > HI, in almost every tutorial I have seen only on servlets, Is it > possible to have several servlets. if yes how to manage the several > servlets -- 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.
Several Servlets Help
HI, in almost every tutorial I have seen only on servlets, Is it possible to have several servlets. if yes how to manage the several servlets 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: GWT 2.1 debug hangs in Eclipse Development mode
Check the Devmode console for errors. There's no library mismatch that you need to worry about with the plugin. On Sun, Nov 28, 2010 at 6:47 AM, MH wrote: > Since I updated to GWT2.1 library when I try to run project in Eclipse > (with Google Eclipse plugin on jdk 1.6.21) with Debug (Eclipse F11) > the browser just hangs in waiting forever and never gets to my first > breakpoint neither does it load the page > > Could it be some mismatch between the Google Eclipse Plugin and using > the latest GWT library? Any other ideas please? > > Thanks > > Zvi > > -- > 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. > > -- 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: server side request are static...
I think it would be better to move the requests out of the entity in their own class and annotate them just like for the proxy (something like @requestsFor(Entity.class)). Would it be possible? -- 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: What is the best way to render complex cell?
We plan to introduce UiBinder for Cells in a future version of GWT, hopefully GWT 2.2. We want Cells to be a complete replacement for Widgets, but we realize that the potential for an HTML syntax error grows as the level of complexity of a Cell increases. UiBinder for Cells should make it much easier to template Cells. Thanks, John LaBanca jlaba...@google.com On Fri, Nov 26, 2010 at 1:01 PM, ailinykh wrote: > Hello, everybody! > I have CellList which contains custom cells. It's pretty close to Cell > List example from show case, but my custom cell is more complicated. > It has several images, several links and I want to handle clicks on > images and links. Generating html code by overriding render method > seems to very difficult and error prone. Is there a better way to do > it? What I wish to have is implementing widget using UiBinder and then > converting it into Cell. > Is it possible? > > 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. > > -- 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 a NumberCell Clickable
Your best bet is to create a new AbstractCell that renders a Number (copy the render method from NumberCell) and fires the ValueUpdater when clicked (copy onBrowserEvent from ClickableTextCell). Thanks, John LaBanca jlaba...@google.com On Sat, Nov 27, 2010 at 3:58 AM, savilak wrote: > 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. > > -- 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 - A request is already in progress
Similar problem, but I was not able to implement your solution - any guidance is suggested. And I promise, once I get my simple app working, I will write the "GWT/Objectify 1-to-Many Relationships for Moron Like Me" guide :). The problem in the small... CommitUsers can have Commitments. I create a new Commitment and try to associate that with the CommitUser. But the properties on the CommitUser (even just a string) are not persisted. So, following: http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships in the section on Using RequestFactory, I figure I must be falling into the trap of not having an editable CommitUser (since I didn't create it, the CommitUser already exists). So I change my code from: Request createReq = commitmentRequest.persist(currentCommitUserProxy).using(newCommitment); To: CommitUserProxy editableCommitUserProxy = commitUserReq.edit(currentCommitUserProxy); Request createReq = commitmentRequest.persist(editableCommitUserProxy).using(newCommitment); Where: commitUserReq is: private CommitUserRequest commitUserReq = requestFactory.commitUserRequest(); request Factory is: CommitmentSystemRequestFactory requestFactory = GWT.create(CommitmentSystemRequestFactory.class); This gives me the error: Caused by: java.lang.IllegalStateException: A request is already in progress at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocked(AbstractRequestContext.java: 307) Following the advice you provided, I tried to create a new RequestContext, so my code became... CommitUserRequest commitUserReq2 = requestFactory.commitUserRequest(); CommitUserProxy editableCommitUserProxy = commitUserReq2.edit(currentCommitUserProxy); Request createReq = commitmentRequest.persist(editableCommitUserProxy).using(newCommitment); But that gave me the error: Caused by: java.lang.IllegalArgumentException: Attempting to edit an EntityProxy previously edited by another RequestContext at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkStreamsNotCrossed(AbstractRequestContext.java: 334) Stepping back a little bit, the slightly bigger picture is that I am following the article at: http://www.ibm.com/developerworks/java/library/j-javadev2-13/index.html (Java development 2.0: Twitter mining with Objectify-Appengine, Part 1). But that article doesn't use GWT. But the idea is that the Commitment stores a Key so that I can query the Commitment.class to find all the Commitments whose Key matches the Key of the current user. When I save a Commitment, I first save the Commitment itself and then establish the relationship by modifying the CommitUser (as the article demonstrates). So, my persist method (fired above) is... public void persist(CommitUser commitUser) { // Save commitment first DAO dao = new DAO(); Objectify ofy = dao.ofy(); ofy.put(this); dao = null; // Then establish relationship commitUser.addCommitment(this); // Owner is in charge } And the addCommitment method on the CommitUser is: public void addCommitment(Commitment commitment) { DAO dao = new DAO(); Objectify ofy = dao.ofy(); commitment.setRequesterKey(this); commitment.setDescription("Updated in addCommitment"); ofy.put(this); dao = null; } And finally, the commitment.setRequestKey() is: public void setRequesterKey(CommitUser commitUser) { this.requesterKey = new Key(CommitUser.class, commitUser.getId()); } In the debugger I can see that all the properties - e.g. "Description" get set, but they are not persisted to the Datastore. I am sure this is common, but it seems that I am very close to getting this simple example to work - so any assistance is greatly appreciated and I will do my best to provide assistance to the community. I think my qualifications as a moron have to be helpful in some way. I am also old if that helps :) :). Thanks all! RB On Nov 9, 7:01 am, Ramon Buckland wrote: > Thanks Tobias, > > That explanation was good. I had it right logically, but omitted > calling one of my "special - create me a new " methods, that replaced > my RequestContext for me. > > All good niow. it saves data! > > On Nov 9, 2:28 pm, Tobias wrote: > > > > > > > > > I *think* that happens after you have fired a RequestContext. From > > looking at the code, which is a bit hard because of the > > DeferredBinding that's going on there, the "locked" variable in a > > RequestContext gets only reset to "false", if the firedRequestfails. > > So I think you need to use a new RequestContext. > > > Regards, > > Tobias > > > On Nov 9, 12:48 pm, Ramon Buckland wrote: > > > > Hi All, > > > > I am currently in the process of building an app, initally based off > > > the Roo framework. > > > I am getting a "Arequestisalreadyinprogress" at the point where I > > > call create for a child entity. > > > > Is there a way I can see what "requestcontexts" are inprogress, so I > > > c
Re: webappcreator with -maven and Eclipse: output directories don't match
On Nov 28, 5:57 pm, Rajeev Dayal wrote: > If you look at Project Properties -> Google -> Web Toolkit, what is > mentioned for the GWT SDK? Also, if you navigate to Window -> Show View -> > Error Log, do you see any errors listed there? Rajeev, The Web Toolkit in use is (specific SDK): "C:\M2Repository\com\google \gwt - 2.1.0". There is also a radio button to "Use default SDK (GWT - 2.1.0)" but it is not selected. N.B. C:\M2Repository is my local repository as specified in Maven's ~/.m2/settings.xml. In the Error Log I have 5 warnings and one error: Warnings: 1): The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. 2): While loading class "com.google.gdt.eclipse.suite.resources.GdtImages", thread "Thread[main,6,main]" timed out waiting (5000ms) for thread "Thread[Worker-1,5,main]" to finish starting bundle "com.google.gdt.eclipse.suite_1.4.0.v201010280102 [12]". To avoid deadlock, thread "Thread[main,6,main]" is proceeding but "com.google.gdt.eclipse.suite.resources.GdtImages" may not be fully initialized. 3) Same as #2 but for class com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContribution. 4) Same as #2 but for class com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContribution $1 5) Same for com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContribution $2 Error: 1) Unable to update index for central|http://repo1.maven.org/maven2. The lowest part of the stack is: java.io.IOException: Transfer for nexus-maven-repository-index.properties failed; Transfer error: null Thanks, Pete -- 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.
Client File IO
Hello every one I am working on a web-based proxy using GWT (similar to php proxy) anyway , the idea is quite simple Get the URL from the user , make the server fetch it , change the HTML and send it back to the client Now I have encountered a problem which is how to send the images back to the client? I have thought of two possible ways: 1-Store them in the server and change their src to MyURL/img.xxx 2-Send them back to the client The first option will over load the server (I think?!) The second option is not possible because as far as I know it is not possible to do File IO in the client side , or is it? I need your help Thank you very much ps: I think I will get a similar problem with flash , (e.g. flash videos in youtube) -- 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.
Can'c get DialogBox working in GWT 2.1
I'm building a new app, so I decided to try out the *LayoutPanels and Standards mode. Things had been working well, but I'm trying to show a DialogBox, and it's not working AT ALL. 1: The frame of the dialog box does not show up. 2: When I tell it "Glass enabled", it does it for the entire web page, not for the dialog box. 3: The Dialog text all appears just overlaid on the rest of my page. 4: My close box doesn't appear anywhere, and as the dialog seems to have taken over the entire page, I can't click outside of it anywhere. So it never goes away. The relevant part of my code. This all worked just fine under 2.0.4: final DialogBox dialogBox = new DialogBox (); dialogBox.setAnimationEnabled (true); dialogBox.setGlassEnabled (true); dialogBox.setText ("SeattleSeq Information"); dialogBox.setStylePrimaryName ("exome-DialogBox"); dialogBox.setStyleName ("exome-DialogBox"); final ButtoncloseButton = new Button ("Close"); closeButton.getElement ().setId ("closeButton"); VerticalPanel dialogVPanel = buildDialogPanel (); // The panel displays where the dialog should be, so this is working dialogVPanel.setHorizontalAlignment (VerticalPanel.ALIGN_RIGHT); dialogVPanel.add (closeButton); dialogBox.setWidget (dialogVPanel); // Add a handler to close the DialogBox closeButton.addClickHandler (new ClickHandler () { @Override public void onClick (final ClickEvent event) { dialogBox.hide (); } }); // Make sure it displays properly dialogBox.center (); dialogBox.show (); Any help would be greatly appreciated. -- 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: clicking outside of widget seems to disable NativePreviewHandler ONKEYPRESS
I've figured out that what's causing the loss of keyboard events is my call to SimplePanel.setWidget(), which happens as part of my app's navigation, via an Activity implementation. I've boiled this down to a simple example that's repeatable (for IE8, at least): Java code http://pastebin.com/ykjvcNRh";>here. UI Binder: http://pastebin.com/kEPck03X";>here. My work-around hack is to skip the setWidget() call in my Activity's start() method, if the containerWidget already contains it. This is a bit ugly, since the actual SimplePanel is wrapped by a ProtectedDisplay, which requires me to pass around a reference to my original panel. But it works. On Nov 27, 8:03 pm, KaffeineComa wrote: > I'm using a NativePreviewHandler to intercept ONKEYPRESS events > application-wide. I'm doing this so that I can implement a customized > text entry widget (example > athttp://www.quickbrownfrog.com/#!typing:lesson:lesson001.xml:1). > > It's been working fine, but I recently noticed a problem on IE8: if > the user clicks outside of my widget, the NativePreviewHandler no > longer gets ONKEYPRESS events; it's as if the widget has "lost focus", > even though it's not relying on focus for receiving events. > Interestingly, it still seems to get mouse events, just not key > presses. If the user clicks inside the widget, it will again start > receiving ONKEYPRESS. > > This does not seem to happen on Safari, Firefox or Chrome. > > My understanding of Event.addNativePreviewHandler() is that it will > receive ALL events, regardless of focus... is that incorrect? > > 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: google plugin error
Try Window -> Show View -> Error Log. On Fri, Nov 19, 2010 at 8:39 AM, Frank Bølviken wrote: > Where do I find this error..? :P It only says "see error log". Does > eclipse have its own error-log somewhere? > > On 15 Nov, 10:23, Didier Durand wrote: > > Hi, > > > > For more info onWebAppCreator, seehttp:// > code.google.com/webtoolkit/doc/1.6/tutorial/create.html > > > > If you want help about your issue, I guess that you have to post your > > java stack trace at time of error > > > > regards > > didier > > > > On Nov 15, 8:40 am, Frank Bølviken wrote: > > > > > > > > > > > > > > > > > Any ideas? > > > > > On 13 Nov, 08:43, Frank Bølviken wrote: > > > > > > Hello, > > > > > > When I try to create a project with the plugin in eclipse, I get an > > > > "invocationof com.Google.gwt...WebAppCreatorfailed". Anyone know > > > > what this mean? On my win 7 64bit laptop its working, but not my win > 7 > > > > 64bit desktop. > > > > > > Frank > > -- > 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. > > -- 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: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.
On Mon, Nov 22, 2010 at 10:23 AM, Chris wrote: > > On Nov 19, 7:50 pm, Thomas Broyer wrote: > > FWIW, I have *no* problem with Eclipse Helios (3.6, updated to SR1) > > with GPE 1.4.0.v201010280102 and m2eclipse 0.10.2.20100623-1649 on > > Windows XP Pro SP3 > > (if I understand correctly the issue, when launching DevMode, my > > index.jsp and other things like that from my "war directory" –$ > > {project.build.directory}/${project.build.finalName}, i.e. target/ > > – would vanish) > > Hi, > > Its not all files in the build output directory - our HTML files and > any static resources that are kept in 'src/main/webapp' and copied to > 'target/' are left alone when starting dev mode. Our > particular problem is that we had a separate maven resources project > that was being deployed to 'target/' during mvn:package, and > those exploded resources were being deleted when dev mode is starting > up. > > Yes, such resources will be wiped out. What's actually happening here is that GPE is using WTP's "smart publish" functionality to publish J2EE modules to the target/ directory. So, in the source of launching, GPE performs a WTP publish. The WTP publish will copy any J2EE modules that it knows about over to the target/ directory, which means that all of your resources in src/main/webapp will be copied over properly. If you're got Maven's integration with WTP installed, then the target/WEB-INF/lib directory will contain all of the libraries that are in the runtime scope which are defined in your pom.xml file. However, the publish is a "smart" one - so if any resources to be published already exist in the target/ directory and are unchanged, the copy of that file is not performed. In addition, if any resources are found in the target/ directory that the publisher did not mean to create, then they are deleted. In the next version of GPE, I think we'll consider either: 1) Allow the user to specify which folders should remain untouched during a smart publish 2) Switch over to a "full publish" - that will leave resources that are unknown alone. > -- > 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. > > -- 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.
gwt File Upload
Hi, Have anyone of used this http://code.google.com/p/gwtupload/. This is because before I use it i want to ensure that it lives up to the expectation. So if anyone of u knows something about this, just place it here 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.
maven and GWTTestCase
Hi, running a GWTTestCase needs com.google.gwt.dev.cfg.Condition. On the other hand, gwt-dev should not be a dependency of the project. Looks like a deadlock. Does anyone know a trick anyway? Stefan Bachert http://gwtworld.de -- 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: webappcreator with -maven and Eclipse: output directories don't match
If you look at Project Properties -> Google -> Web Toolkit, what is mentioned for the GWT SDK? Also, if you navigate to Window -> Show View -> Error Log, do you see any errors listed there? On Sun, Nov 28, 2010 at 10:34 AM, PeteUK wrote: > On Nov 22, 7:41 am, Manuel Carrasco Moñino wrote: > > When using maven in eclipse, it is better to let maven to produce the > > eclipse stuff instead of webAppCreator using the undocumented option > > -XnoEclipse, and use the google eclipse plugin to launch the app in > > dev mode: > > > > 1.- webAppCreator -noant -maven -XnoEclipse com.example.MyApp > > 2.- You can use eitehr: > > - If you have m2eclipse plugin already installed in eclipse, > > import the project as a maven project > > - Otherwise, execute mvn eclipse:eclipse and import it as a > > existing eclipse project > > 3.- Install google plugin for eclipse, and mark the checkbox > > Project -> Google -> Web Toolkit -> 'Use Google Web Toolkit'. > > 4.- Then configure the project's war folder > > Project -> Google -> Web Application -> This project has a war > > folder -> src/main/webapp > > unmark 'Launch an deploy from this directory', and the first time > > you launch it, select target/www > > Following the above instructions, I can create an application and run > it as a GWT Web Application (which is a bonus). If I try to Debug As - > > Web Application I get problems. At debug startup Eclipse complains > that the source attachment does not contain the source for the file > URLClassPath.class. The debug session is suspended with a > FileNotFoundException. Here's the call stack from the Eclipse's Debug > window: > > MyApp.html [Web Application] > com.google.gwt.dev.DevMode at localhost:51620 > Thread [main] (Suspended (exception FileNotFoundException)) > URLClassPath$JarLoader.getJarFile(URL) line: 644 > URLClassPath$JarLoader.access$600(URLClassPath$JarLoader, URL) > line: 540 > URLClassPath$JarLoader$1.run() line: 607 > AccessController.doPrivileged(PrivilegedExceptionAction) line: > not available [native method] > URLClassPath$JarLoader.ensureOpen() line: 599 > URLClassPath$JarLoader.(URL, URLStreamHandler, > HashMap) line: 583 > URLClassPath$JarLoader$3.run() line: 810 > AccessController.doPrivileged(PrivilegedExceptionAction) line: > not available [native method] > URLClassPath$JarLoader.getResource(String, boolean, Set) > line: 806 > URLClassPath$JarLoader.getResource(String, boolean) line: 765 > URLClassPath.getResource(String, boolean) line: 169 > URLClassLoader$1.run() line: 194 > AccessController.doPrivileged(PrivilegedExceptionAction, > AccessControlContext) line: not available [native method] > Launcher$AppClassLoader(URLClassLoader).findClass(String) line: > 190 > Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) > line: 307 > Launcher$AppClassLoader.loadClass(String, boolean) line: 301 > Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248 > C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe (28 Nov 2010 > 15:28:32) > > I have to click resume about 10 times before it'll properly start up. > > I have completely wiped out my Eclipse workspace and recreated/ > reimported the project and the same thing happens. > > Any ideas? > > Thanks, > > Pete > > -- > 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. > > -- 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: Gwt 2.1 Eclipse Helios
You have not provided enough info to know whether this is actually a problem or not. Depending on how you have configured your project and what classes/jars you are referencing, those error may be correct. Please provide the following info: 1) What exact GWT Designer version are you using (from the "WindowBuilder" pref page)? 2) What exact error message are you seeing? What class is being referenced? 3) How exactly have you added the class to your classpath and imported it into your GWT module? On Nov 27, 1:13 pm, Daniel Leon wrote: > i got the same problem here, eclipse send erros about class paths and > whitout the GWT Designer this doesnt happens > > update the latest beta of GWT designer doesnt solve the problem. > =S -- 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.
Upgrading from gwt 2.1.0.RC to 2.1.0 compilation errors: [ERROR] Unable to write re-encoded PNG
Hi guys, I was working on a gwt project with 2.1.0.RC and I upgraded to 2.1.0, but I can't even compile my project: I don't know what kind of problems I encounter with images and resources. Any help will be appreciated. Thank you :) Here is the beginning of the stacktrace: Compiling module com.mfr.tec.gwtProject Scanning for additional dependencies: jar:file:/C:/Documents%20and %20Settings/4pfc09/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt- user-2.1.0.jar!/com/google/gwt/user/client/ui/DisclosurePanel.java Computing all possible rebind results for 'com.google.gwt.user.client.ui.DisclosurePanel.DefaultImages' Rebinding com.google.gwt.user.client.ui.DisclosurePanel.DefaultImages Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator Preparing method disclosurePanelClosed [ERROR] Unable to write re-encoded PNG java.io.IOException: No se puede crear el directorio o archivo at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile(Unknown Source) at java.io.File.createTempFile(Unknown Source) at com.google.gwt.resources.rg.ImageResourceGenerator.reencodeToTempFile(ImageResourceGenerator.java: 643) at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java: 565) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java: 628) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java: 654) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate(AbstractClientBundleGenerator.java: 243) at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java: 427) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 39) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:115) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:58) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 161) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 150) at com.google.gwt.dev.Precompile $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java: 345) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:175) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $400(AbstractCompiler.java:145) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 632) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java: 124) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java: 54) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java: 484) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java: 32) at com.google.gwt.dev.Precompile.precompile(Precompile.java:545) at com.google.gwt.dev.Precompile.precompile(Precompile.java:466) at com.google.gwt.dev.Compiler.run(Compiler.java:205) at com.google.gwt.dev.Compiler.run(Compiler.java:177) at com.google.gwt.dev.Compiler$1.run(Compiler.java:149) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:156) Preparing method disclosurePanelOpen [ERROR] Unable to write re-encoded PNG java.io.IOException: No se puede crear el directorio o archivo at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile(Unknown Source) at java.io.File.createTempFile(Unknown Source) at com.google.gwt.resources.rg.ImageResourceGenerator.reencodeToTempFile(ImageResourceGenerator.java: 643) at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java: 565) at com.google.gwt.resources.rebind.conte
Re: webappcreator with -maven and Eclipse: output directories don't match
On Nov 22, 7:41 am, Manuel Carrasco Moñino wrote: > When using maven in eclipse, it is better to let maven to produce the > eclipse stuff instead of webAppCreator using the undocumented option > -XnoEclipse, and use the google eclipse plugin to launch the app in > dev mode: > > 1.- webAppCreator -noant -maven -XnoEclipse com.example.MyApp > 2.- You can use eitehr: > - If you have m2eclipse plugin already installed in eclipse, > import the project as a maven project > - Otherwise, execute mvn eclipse:eclipse and import it as a > existing eclipse project > 3.- Install google plugin for eclipse, and mark the checkbox > Project -> Google -> Web Toolkit -> 'Use Google Web Toolkit'. > 4.- Then configure the project's war folder > Project -> Google -> Web Application -> This project has a war > folder -> src/main/webapp > unmark 'Launch an deploy from this directory', and the first time > you launch it, select target/www Following the above instructions, I can create an application and run it as a GWT Web Application (which is a bonus). If I try to Debug As - > Web Application I get problems. At debug startup Eclipse complains that the source attachment does not contain the source for the file URLClassPath.class. The debug session is suspended with a FileNotFoundException. Here's the call stack from the Eclipse's Debug window: MyApp.html [Web Application] com.google.gwt.dev.DevMode at localhost:51620 Thread [main] (Suspended (exception FileNotFoundException)) URLClassPath$JarLoader.getJarFile(URL) line: 644 URLClassPath$JarLoader.access$600(URLClassPath$JarLoader, URL) line: 540 URLClassPath$JarLoader$1.run() line: 607 AccessController.doPrivileged(PrivilegedExceptionAction) line: not available [native method] URLClassPath$JarLoader.ensureOpen() line: 599 URLClassPath$JarLoader.(URL, URLStreamHandler, HashMap) line: 583 URLClassPath$JarLoader$3.run() line: 810 AccessController.doPrivileged(PrivilegedExceptionAction) line: not available [native method] URLClassPath$JarLoader.getResource(String, boolean, Set) line: 806 URLClassPath$JarLoader.getResource(String, boolean) line: 765 URLClassPath.getResource(String, boolean) line: 169 URLClassLoader$1.run() line: 194 AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not available [native method] Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 190 Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 307 Launcher$AppClassLoader.loadClass(String, boolean) line: 301 Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248 C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe (28 Nov 2010 15:28:32) I have to click resume about 10 times before it'll properly start up. I have completely wiped out my Eclipse workspace and recreated/ reimported the project and the same thing happens. Any ideas? Thanks, Pete -- 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
That is correct, you also need the following: CellTableResource resource = GWT.create(CellTableResource.class); CellTable table = new CellTable(10,resource); as Marcin suggests. On Sun, Nov 28, 2010 at 11:34 AM, Marcin Misiewicz wrote: > I guess, that you are also passing CellTableResource instance to the > constructor of the CellTable. > Othwerwise you will stiil use the default styles. > > On Nov 28, 9:04 am, savilak wrote: > > 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. > > -- 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...@g
mvn plugin
Hi, I am about to switch to maven. Using gwt-maven-plugin.1.3.2 It looks strange to me that the goal "install" does not include a "gwt:compile". Has someone any idea why? Stefan Bachert http://gwtworld.de -- 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.
onChange event fired twice
Hi, I have a private inner class that implements ChangeHandler. This ChangeHander is applied to the listbox. Each click on the listbox will create another listbox and added to the container. The onChange event is fired twice for one click on the list box. Let say, I have 2 list box already added to the container. I expect only one onChange is triggered when I click the last listbox. But, now, twice is fired. How does that happen? How can I troubleshoot this problem? 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: webappcreator with -maven and Eclipse: output directories don't match
On Nov 22, 3:52 pm, pete wrote: > A very simple receipe also is: > > 1) mvn archetype:generate > -> Select maven-archetype-gwt (currently nr. 46) > 2) adjust gwt-version in pom.xml (and maybe other things if wanted) > 3) mvn eclipse:eclipse > 4) mvn gwt:eclipse > 5) start eclipse -> Import existing project into workspace > 6) configure project preferences -> Google -> Web Application Path and > maybe SDK... (to match the pom) Pete, Thanks for that. I just wanted to check something. You said maven- archetype-gwt is currently number 46 in the list. Am I correct in saying that these numbers can change from maven installation to installation? For example, it might be 46 on your installation but 47 on someone elses? As an aside, my list of archetypes only goes up to 41 and doesn't include maven-archetype-gwt. I'll investigate how to overcome this from Maven docs... Thanks, Pete -- 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: Need help: [ERROR] Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"
Hello Daniel, try to clear the browser cache (cookies and data). That solved the problem for me. On 28 Nov., 10:10, dflorey wrote: > Hi, > I've upgraded one of my apps to 2.1. When running in dev mode I get > this error: > > Connection received from 127.0.0.1:49430 > [ERROR] Invalid version number "2.0" passed to > external.gwtOnLoad(), expected "2.1"; your hosted mode bootstrap file > may be out of date; if you are using -noserver try recompiling and > redeploying your app > > Any ideas? > > Daniel -- 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.
GWT 2.1 debug hangs in Eclipse Development mode
Since I updated to GWT2.1 library when I try to run project in Eclipse (with Google Eclipse plugin on jdk 1.6.21) with Debug (Eclipse F11) the browser just hangs in waiting forever and never gets to my first breakpoint neither does it load the page Could it be some mismatch between the Google Eclipse Plugin and using the latest GWT library? Any other ideas please? Thanks Zvi -- 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.
GWT Designer UiBinder can not accept Arabic text.
When I use GWT Designer (UiBinder) and write Arabic in label or button text property the designer replace the text with things like this: بسم الله the GWT Designer (Java UI) work OK. Thank yo. -- 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: Simple question about GWT.create() signature
On 26 nov, 21:12, "Alessandro Carraro (JUG Padova)" wrote: > A simple qestion, sorry if it is a FAQ: > > Why > public static T create(Class classLiteral) > and not > public static T create(Class classLiteral) With GWT-RPC you pass the "synchronous" (extends RemoteService) interface as an argument and it returns an implementation of the "asynchronous" interface. That wouldn't be possible with the Class argument. > the second one would save me from a lot of unnecessary casts (IMHO). I hardly ever needed a cast: - either the GWT.create() result is assigned to a variable, and javac/ GWT compiler is smart enough to infer the generic type argument - or if it's not possible, you can use a "generic call" instead of a cast: GWT.create(...) but I admit it adds the same boilerplate as a cast... > What's worse, I tried to write the helper function: > > @SuppressWarnings("unchecked") > public static T create(Class classLiteral) { > return (T) GWT.create(classLiteral); > } > > But after a month I discovered that the compiler does not like it at > all (it complains that GWT.create must be called only using class > literals... could be nice if it could find that MY helper is called > with only using literals... It's been requested several types in the past (including by people that now work at Google on GWT) but I guess it's either low priority or it would require too much re-work of the compiler's internals. > Is it possible to get a hook into the compiler phase to replace all > invocations of my helper 'inlining' it? I don't think so; but is it really worth it? risking bugs in your "hook" just to save you from typing a few characters (that, moreover, any good IDE is capable of generating for you) -- 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: Request factory: java.lang.NoClassDefFoundError: org/json/JSONException
On 27 nov, 15:46, Simon Majou wrote: > Hello, > > I am trying to run the dynatablerf example for request factory, and I > get : > > HTTP ERROR: 500org/json/JSONException > RequestURI=/gwtRequestCaused by: h3>java.lang.NoClassDefFoundError: org/json/JSONException [...] > Can you tell which jar to use to resolve that ? Shouldn't the classes > be included into GWT 2.1 ? They are in gwt-servlet-deps.jar (which the build.xml should correctly copy to war/WEB-INF/lib, but maybe the Google Plugin for Eclipse doesn't –can't tell, I'm using Maven for my 2.1 projects–) -- 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
I guess, that you are also passing CellTableResource instance to the constructor of the CellTable. Othwerwise you will stiil use the default styles. On Nov 28, 9:04 am, savilak wrote: > 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.
gwt gdata authentication history problems
Hi Guys, How do you solved the problem when using GData that redirects a link that has history. Example www.mydomain.com/#maps. When I put the sign in link to that link in order to grant access to the user it it wont complete the process. Any suggestions? Regards, Mark -- 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.
Need help: [ERROR] Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"
Hi, I've upgraded one of my apps to 2.1. When running in dev mode I get this error: Connection received from 127.0.0.1:49430 [ERROR] Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app Any ideas? Daniel -- 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.