creating an abstraction layer above ways to communicate with the server?
hi.. our CTO would like to develop a framework for application developers that would depend on a specific wiring protocl (such as rpc/json/xml) meaning, the would be able to write a service and a client in the application and be able to configure either by annotation (provided by our framework) or from external configuration, this should also serve in case a client is a sliverlight/flex instead of another gwt client my question is , is such a thing possible with rpc's nameing converions restrictions, our cto's claims you DON'T have to use naming convensions, nor do you have use rpc's annoations.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/_XkR6q7Sw-8J. 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.
gwt-servlet.jar size 200KB to 4MB?
I've been noticing that the size of the gwt-servlet.jar keep growing. In version 1.1 it was around 200KB, and now it's over 4MB. I realize most people could care less, however, it matters for my little project. I thought the gwt-servlet.jar only contained information for RPCs. I tried just using the old gwt-servlet.jar, and it worked! However, I'm nervious that something, somehere, will break. Anyone care to hazard a guess as to why it has grown to over 4MB? Cheers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NW00GPMhcq4J. 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: Curious instance equality issue with Longs
You must use equals() to compare objects. I have similar issue, but inverse. In production run and in dev mode not. The problem I think is, for example the next expression: anInteger == otherInteger If are different objects don't work in Java (becouse compare memory pointers), but when GWT compile translate to Javascript works becouse == in Javascript is behave different. Conclusion, use equals always to compare objets and you will don't have this kind of bugs Juan 2011/6/28 Jens jens.nehlme...@gmail.com Hi, I just fixed a bug in my application and the circumstances under which the bug has occurred (or better has been noticed) are really strange and maybe someone here can give me a hint to understand it. First of all the bug itself was pretty dump because I have done a businessObject.getId() == this.currentBo.getId() check on client side and both instances have been loaded from the server (GWT RPC). So both instances are different (deserialization) and it should be an equals check (must have been late). The curious thing is that the instance check has worked for me in my development environment (hosted mode as well as compiled)!! So I thought everything is fine with my code and I deployed to production and then the bug occurs (the instance check always returns false). There is no difference between my development environment and the production environment except the data stored in the database (test data vs. real data). So I have copied production data to my development database and then the bug also occurs in development environment! I know it sounds pretty silly and I am sure the reason is not the actual data but maybe its part of it. So I have done some logging and it turns out that the Long instances returned by getId() can be the same although the businessObject instances are different. So basically: 1.) businessObject == this.currentBo returns false 2.) businessObject.equals(this.currentBo) returns true 3.) businessObject.getId() == this.currentBo.getId() returns true (this should return false!) The id itself can only be set via the BusinessObject's constructor, so its immutable. Does anyone have an idea how this can happen? As the BusinessObjects instances are created by deserializing the GWT RPC payload I thought that every instance is different. How can it happen that Long instances are the same? I do not have any idea that would help me to understand what has happened. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bAJy30kYUf8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Frame Redirecting Problem
Hi, is there a way to disable GWT Frame to redirect and change the browser address? Problem is that its causing the browser to replace the URL and load a page which closes the Hosted GWT app in the same browser. Thanks in advance. -- 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.
GWT + UIBinder
Trying to build a new WindowBuilder project in Eclipse as New Project- GWT Window Builder-GWT Designer-GWT Java UI-GWT UiBinder- Composite and getting a message, You need at least GWT 2.1M4 for UiBinder visual editing. I have the latest of everything: Eclipse 3.6, GWT 2.3.0, GWT Designer 2.3.2, Google Plugin for Eclipse 2.3.2, GWT Designer Editor 2.3.2. Any clues? 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-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: Facebook like Chat App with GWT
You can use long polling. There is a gwt project: http://code.google.com/p/gwt-comet/ Regards, Stefan Am 27.06.2011 11:43, schrieb mram: Is there any channel API without AppEngine? On 27 jun, 10:34, Jambimichael.lukaszc...@googlemail.com wrote: Maybe you should check out the channel API from AppEngine. It works with web sockets and it愀 very easy to use. You should make use of sockets because the server can notify the client if something new happened. The client doesn愒 have to poll all the time. On 25 Jun., 22:23, gangurg gangurggang...@gmail.com wrote: I am trying to implement a Facebook style Chat APP . I use JBOSS as my APP server . Can anyone share thoughts on how do I go about . I have GWT for my client . -- 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.
Fill a grid from my database
Good morning everybody, I wonder if someone could help me to fill my Grid from a database. My result have to be like this example http://www.sencha.com/examples/pages/grid/widgetrenderer.html Thanks. -- Cordialement, Khadija FERJANI Élève ingénieur à la faculté des sciences de Tunis. -- 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: gwt-servlet.jar size 200KB to 4MB?
gwt-user keep growing, and with features that can be used on the server side: SafeHtml, I18N, RegExp, and of course RequestFactory. gwt-servlet contains almost everything from gwt-user (except for rebind classes, super source, and the source code), not just server-side code. I do agree it's unfortunate. If I were you, I'd rather try to patch the gwt-servlet to remove unneeded classes (e.g. remove everything **/client/** except for the RemoteService interface and friends), than to use an older one (reasons: protocol changes, security, performance, etc.). The rule of thumb is that you should always use the same gwt-servlet version as the GWT SDK you compiled your client code with. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ekkeX17dh7kJ. 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: gwt-servlet.jar size 200KB to 4MB?
Thanks Thomas. I'll give patching the correct version a go. I can see some obvious ones that I wouldn't think need to be in there, like dom, editor, and uibinder. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/KF9R-Uqe7zkJ. 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: Intercept basic authentication popup
Not sure how this helps ? Should I make a RPC call to the JSON service before each JSONP call ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/r8vtU9l35bkJ. 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.
is there a simpler gwt gae tutorial?
hi all, I find that there's a lack of gae tutorial and sample code that uses gwt as front end. Do you have any resource to share? Thank you! /bryan -- 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.
Aw: is there a simpler gwt gae tutorial?
Have you already seen: http://code.google.com/p/gwt-gae-book/ ? Seems to be a nice walkthrough how to create an app with gwt on appengine. I think the tutorial uses gwt-platform as a library but even if you do not want to use gwt-platform you will get a good general idea on how things work together. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dNLJq0rVCe4J. 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.
Profiling using speed tracer does not pick up jvm args
When I create a new profiler configuration for speed tracer and pass Xms or Xms (for example -Xmx1024m -Xms256m) and run a profile a GWT application it is always run with -Xmx512m param only. I use latest stable version of GPE and eclipse 3.6. Has anyone had similar issues? Here you can see my profile configuration https://picasaweb.google.com/lh/photo/muFEzUPVR8CpmnaFwt_A1-LZadJo0K1gwox6XuxJ2b0?feat=directlink Here you can find a screenshot from jvisualvm. https://picasaweb.google.com/lh/photo/BPRcOODfC_s9o2iPksHdMuLZadJo0K1gwox6XuxJ2b0?feat=directlink I'm starting to thing that this might be a bug -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0wjagQ21KOAJ. 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: Suggestionbox clickhandler
Thanks On Jun 28, 7:53 am, Kevin Anderson kev...@gmail.com wrote: The javadocs have the methods you should use instead. In this case you would use suggestBox.getTextBox().addFocusHandler/addBlurHandler. -- 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.
Transient methods and imports
Is there anyway how one can mark certain methods/imports as transient for the gwt compiler. By doing this i can use the same pojo on client and server side where the transient methods will be ignored on the client side. An Example: package bla.bla.dto.basemodel; import com.extjs.gxt.ui.client.data.BaseModelData; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; public class EntityBase extends BaseModelData { public EntityBase() { } public Long getPk() { return get(pk); } public void setPk(Long pk) { set(pk, pk); } @GWTTransient private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); ... } @GWTTransient private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); ... } } Regards Christie -- 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: GWT + UIBinder
Perhaps try Eclipse 3.7. I think it's now included with the default install. On Wed, Jun 29, 2011 at 2:46 AM, Mike Dee mdichiapp...@cardeatech.comwrote: Trying to build a new WindowBuilder project in Eclipse as New Project- GWT Window Builder-GWT Designer-GWT Java UI-GWT UiBinder- Composite and getting a message, You need at least GWT 2.1M4 for UiBinder visual editing. I have the latest of everything: Eclipse 3.6, GWT 2.3.0, GWT Designer 2.3.2, Google Plugin for Eclipse 2.3.2, GWT Designer Editor 2.3.2. Any clues? 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-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. -- Which would you rather believe in: A God that never answers you or a society that embraces 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-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: is there a simpler gwt gae tutorial?
You might try here to get you started http://tinyurl.com/3hvxoly On Jun 29, 5:29 am, Jens jens.nehlme...@gmail.com wrote: Have you already seen:http://code.google.com/p/gwt-gae-book/? Seems to be a nice walkthrough how to create an app with gwt on appengine. I think the tutorial uses gwt-platform as a library but even if you do not want to use gwt-platform you will get a good general idea on how things work together. -- 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: Transient methods and imports
GWT honors the transient keyword. Simply mark any non-GWT-safe fields as transient: private transient NonGWTSafeType someField; See http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#serialize HTH, /dmc On Wed, Jun 29, 2011 at 2:50 AM, Christie Davel christieda...@gmail.comwrote: Is there anyway how one can mark certain methods/imports as transient for the gwt compiler. By doing this i can use the same pojo on client and server side where the transient methods will be ignored on the client side. An Example: package bla.bla.dto.basemodel; import com.extjs.gxt.ui.client.data.BaseModelData; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; public class EntityBase extends BaseModelData { public EntityBase() { } public Long getPk() { return get(pk); } public void setPk(Long pk) { set(pk, pk); } @GWTTransient private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); ... } @GWTTransient private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); ... } } Regards Christie -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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: gwt-servlet.jar size 200KB to 4MB?
FYI, if you're using RequestFactory only and build from source, you'll find build/lib/requestfactory-server.jar (468k), which you can use in place of gwt-servlet.jar. /dmc On Wed, Jun 29, 2011 at 4:45 AM, Craig Mitchell craig...@gmail.com wrote: Thanks Thomas. I'll give patching the correct version a go. I can see some obvious ones that I wouldn't think need to be in there, like dom, editor, and uibinder. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/KF9R-Uqe7zkJ. 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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: GWT + UIBinder
What other versions of GWT do you have installed locally? What version of GWT is being used with this project? I'm guessing that it is not 2.3.0. On Jun 29, 2:46 am, Mike Dee mdichiapp...@cardeatech.com wrote: Trying to build a new WindowBuilder project in Eclipse as New Project-GWT Window Builder-GWT Designer-GWT Java UI-GWT UiBinder- Composite and getting a message, You need at least GWT 2.1M4 for UiBinder visual editing. I have the latest of everything: Eclipse 3.6, GWT 2.3.0, GWT Designer 2.3.2, Google Plugin for Eclipse 2.3.2, GWT Designer Editor 2.3.2. Any clues? 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-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.
How to socialize GWT application
Hello, My GWT application should allow sharing content to social network like twitter, linkedIn,facebook,.. Google search give me 3 framework based on javascript that facilitate content sharing:Gigya,sharethis,addthis i have tried the last two by appending jascript code to Document object..., but nothing is displayed!!! is there someone who did something like this to give me ideas ,propose framework or widget that are the most appropriate for GWT. Thanks in advance for yoour help. Any help is appreciated :) Note: im using GWT 2.3 -- 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.
GWT Internet Explorer ListBox issues (dropdown items are chopped)
I am not sure if this has been asked before. I have a GWT Dropdown listbox, which on a dropdown expands the dropdown list automatically to show long list items in FF and Chrome. IE however does not resize dynamically as a result the dropdown list shows chopped items. Any workarounds ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/H-RL4DXOXVwJ. 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: RequestFactory object lifecycle change propagation
Ashwin, Thanks for your reply. Basically, as I hold an in memory contact list (held in ModelLocator) I'd like to refresh that list with the newly updated object. I don't think it's necessary a trip to the server because I know I have the latest object version (I just saved it!). EntityProxyChange doesn't seem to provide a reference to the proxy object that triggered the change. I'm kind of confused with RequestFactory, I see having multiple change contexts and multiple proxy graphs as a handicap rather that an advantage. :-( On Jun 29, 12:59 am, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: J, did you look at EntityProxyChange.registerForProxyType ? You can use this and register for any changes to your entities with the eventBus. The Handler method is called on change of entities (especially version changes). example: EntityProxyChange.registerForProxyType(eventBus, UserContactsProxy.class, new EntityProxyChange.HandlerUserContactsProxy() { @Override public void onProxyChange( EntityProxyChangeUserContactsProxy arg0) { proxyId = arg0.getProxyId() //data has changed, so fetch the contact again fetchUserContact(prxoyId); } }); Regards Ashwin On Wed, Jun 29, 2011 at 2:29 AM, isern juanis...@gmail.com wrote: Hi people, Since I'm new to GWT in general and RequestFactory in particular I resort to your experience, cause I'm trying to find out what's the best way to solve a problem, that has an impact on my application as a whole, regarding RequestFactory, and I couldn't find a previous discussion about it. I have a master/detail, typical CRUD manager where I edit contacts. Since those contacts rarely surpass 200 or so I thought it was okay to load them at start time, just like GMail does. So, I keep them in a singleton ModelLocator, and to render my contact CRUD and use contacts everywhere in my application I use that reference. Like, for instance, from a CellTable. Now, when I'm editing one of those contacts, I invoke request.edit() so that the changes are tracked in the context of the current request, and finally .fire(). The remote service method gets called and everything works fine. The moment after doing so, I notice that I must refresh somehow ModelLocator.contacts because it points to an element that now is stale, it didn't get noticed about the edition. In an ideal world, I'd like to think of the original RequestFactory pretty much like a Hibernate session and merge the successful save() request into the original getContacts() request, so that the original proxies get updated and finally have just one copy of the data. But as far as I've seen RequestContexts objects have a rather short lifecycle. So, I think most people using RF should have faced the same situation, what is the best possible solution to this? Thanks a lot, and I'd greatly appreciate your help J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory and populate form field with dynamic data
Hi all, I'm studying new RequestFactory framework and I have a big doubt. If the RequestFactory is stricly associated with a single Entity, which is the best way transmit dynamic data to populate form fields with default values? For example I want to fill a drop down list, I can not use RequestFactory to load all data. Should I use RPC? -- 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.
A newbie's question on the bufferedImage
Hi, there, I have a question on the bufferedImage. I know this class is from AWT. My question is if I can use it in the client code? If not, what the com.google.gwt.user.rebind.uiserves?This not a client code? I am confused somehow. Thanks for your helps. OrNot -- 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.
Making a button fire inside a custom AbstractCell
Greetings, First off, the sample I'm describing here is just a trimmed down version of what I'm really going for. What I'm really trying to do is put a FileUpload widget (gwtupload) inside a Cell so for each row within the table, the user can select one or more files and upload them. I know one wouldn't typically do what I'm describing here because there are other Cell widgets available that cover it. I've just trimmed it down to this to try and make sure I understand what I can/can't do in an AbstractCell. When I saw this behavior as I was trying to use the file upload widget from gwtupload, I simplified it to try and get an idea as to where the issue might be. The bottom line is it appears as though when creating an AbstractCell that contains a button, I am unable to get the button to fire it's click handler. Here's some sample code that should demonstrate what I'm trying to do in this narrowed down case: My AbstractCell: private static class AbstractButtonCell extends AbstractCellString { @Override public void render(com.google.gwt.cell.client.Cell.Context context, final String value, SafeHtmlBuilder sb) { if (value == null) { return; } VerticalPanel buttonPanel = new VerticalPanel(); Button addLinkButton = new Button(Click + value); addLinkButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Window.alert(You clicked + value); } }); buttonPanel.add(addLinkButton); sb.appendHtmlConstant(buttonPanel.toString()); } } My column that's using the AbstractCell above: AbstractButtonCell buttonCell = new AbstractButtonCell(); ColumnSimilarApplication, String buttonColumn = new ColumnSimilarApplication, String (buttonCell) { @Override public String getValue(SimilarApplication object) { return object.getName(); } }; _cellTable.addColumn(buttonColumn, A Button); So, when the cell renders, it's got a button in it that says Click whatever comes from object.getName(). However, when I click the button, it's onClick handler doesn't seem to fire. I've looked through several other posts that discuss AbstractCells but I haven't been able to find one that describes quite what I'm seeing. Any thoughts or suggestions would be greatly appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FHDa0IaRZUkJ. 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.
RequestContext GAE EntityGroups?
Hello, I am building a project where I have a datamodel as shown below. A { @Transient B b; @Transient C c; } //there are few more params, just showing the basic structure B { String title; SetB child; } C { //set of keys is stored SetD d; SetLong count; } D { String name; String country; } As I am using Spring-Roo for generating my entites it automatically only store only keys/ primary id's of the referencing entities. All entities are rendered using custom widgets. I am using Editor frramework to edit the entities. On my parent View (which displays Entity A), I have a save button, on click I persists all the children (B, C) and the parent Currently I make individual calls to persist each entity set in the datastore. I have two challenges 1. Can I combine the request to persist all of these entities into a single call using entitygroups? Can this be achieved using RequestContext RequestFactory framework. Any advice/ suggestions would be much appreciated 2. If I go with my current approach of saving all entities separately, even though it works well, the implementation becomes messy when I have to re-edit the Objects. for example, I had to display details of Object A in my home page, so I fetched A from datastore, while doing so I used the with clause as below requestContext.findAllA().with(b) now if I pass this retrieved proxy to the editor framework, it not only sets the object A to edit mode, it also sets the Object B to edit. Without entity groups, I cannot persist any changes to B along with A. The only way for me to save B (using my current approach to save entities separately) is to use AutoBeanUtils and freeze the entity B, dis-associate the requestContext reference and re-edit it using a different requestContext. This approach works, but i feel its messy and there should be a better and cleaner approach to achieve data persistance. Appreciate all your advice/ suggestions. Thanks Ashwin -- 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: gwt-servlet.jar size 200KB to 4MB?
As you're talking about it: is it planned to publish it as a Maven artifact along with GWT 2.4? And if so, do you know already which groupId and artifactId it will use? (and talking about Maven, I suppose you have scripts to prepare the deployments, and pom.xml files; what's the reason for them not being in the source repository? it would make life a bit easier to us, people building from source) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JYFY_7Nqp-0J. 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: RequestFactory and populate form field with dynamic data
you should be able to dynamically populate a drop list using requestFactory. Once you fetch the data from the server, you can update your list. The only instance where you would have to build a custom widget is when you want to dynamically populate a SelectionCell with your dynamic data. For that you can refer to the following link http://stackoverflow.com/questions/4565790/how-to-dynamically-update-the-choices-in-a-selectioncell-using-gwt Thanks Ashwin On Wed, Jun 29, 2011 at 7:14 PM, ungarida ungar...@gmail.com wrote: Hi all, I'm studying new RequestFactory framework and I have a big doubt. If the RequestFactory is stricly associated with a single Entity, which is the best way transmit dynamic data to populate form fields with default values? For example I want to fill a drop down list, I can not use RequestFactory to load all data. Should I use RPC? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory and populate form field with dynamic data
On Wednesday, June 29, 2011 3:44:21 PM UTC+2, ungarida wrote: Hi all, I'm studying new RequestFactory framework and I have a big doubt. If the RequestFactory is stricly associated with a single Entity, which is the best way transmit dynamic data to populate form fields with default values? For example I want to fill a drop down list, I can not use RequestFactory to load all data. Yes you can, what makes you think it's not possible? You must be misunderstanding something, but it's hard to tell what exactly. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/H13wStc3Z2kJ. 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: Making a button fire inside a custom AbstractCell
you have not specified the events you want your cell to consume. You will have to add a constructor and specify the events you want to consume AbstractButtonCell() { super(new String[] { click, keydown }); //do rest of the init; } ~Ashwin On Wed, Jun 29, 2011 at 7:30 PM, Tod Jackson tod.jacks...@gmail.com wrote: Greetings, First off, the sample I'm describing here is just a trimmed down version of what I'm really going for. What I'm really trying to do is put a FileUpload widget (gwtupload) inside a Cell so for each row within the table, the user can select one or more files and upload them. I know one wouldn't typically do what I'm describing here because there are other Cell widgets available that cover it. I've just trimmed it down to this to try and make sure I understand what I can/can't do in an AbstractCell. When I saw this behavior as I was trying to use the file upload widget from gwtupload, I simplified it to try and get an idea as to where the issue might be. The bottom line is it appears as though when creating an AbstractCell that contains a button, I am unable to get the button to fire it's click handler. Here's some sample code that should demonstrate what I'm trying to do in this narrowed down case: My AbstractCell: private static class AbstractButtonCell extends AbstractCellString { @Override public void render(com.google.gwt.cell.client.Cell.Context context, final String value, SafeHtmlBuilder sb) { if (value == null) { return; } VerticalPanel buttonPanel = new VerticalPanel(); Button addLinkButton = new Button(Click + value); addLinkButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Window.alert(You clicked + value); } }); buttonPanel.add(addLinkButton); sb.appendHtmlConstant(buttonPanel.toString()); } } My column that's using the AbstractCell above: AbstractButtonCell buttonCell = new AbstractButtonCell(); ColumnSimilarApplication, String buttonColumn = new ColumnSimilarApplication, String (buttonCell) { @Override public String getValue(SimilarApplication object) { return object.getName(); } }; _cellTable.addColumn(buttonColumn, A Button); So, when the cell renders, it's got a button in it that says Click whatever comes from object.getName(). However, when I click the button, it's onClick handler doesn't seem to fire. I've looked through several other posts that discuss AbstractCells but I haven't been able to find one that describes quite what I'm seeing. Any thoughts or suggestions would be greatly appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FHDa0IaRZUkJ. 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. http://search.surfcanyon.com/search?f=nrl1q=With%20regards%20to%20your%20solution%20belowpartner=fastestfoxhttp://www.google.com/search?q=With%20regards%20to%20your%20solution%20belowhttp://api3.smarterfox.com/wikisearch/search?q=With%20regards%20to%20your%20solution%20belowlocale=en-UShttp://duckduckgo.com/?q=With%20regards%20to%20your%20solution%20below -- 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: RequestFactory object lifecycle change propagation
since you want to update your in-memory list you can look at custom events and pass the updated object by throwing an event whenever your contact was modified. Your contact list can listen for this custom event and update the existing object with new data. with regards to EntityProxyId, you have to main a map of your proxies and their proxyId's. this way you whenever a proxy has changed, you can pick the corresponding proxy from the map and update it by fetching new data from the server. Thanks Ashwin On Wed, Jun 29, 2011 at 7:45 PM, isern juanis...@gmail.com wrote: Ashwin, Thanks for your reply. Basically, as I hold an in memory contact list (held in ModelLocator) I'd like to refresh that list with the newly updated object. I don't think it's necessary a trip to the server because I know I have the latest object version (I just saved it!). EntityProxyChange doesn't seem to provide a reference to the proxy object that triggered the change. I'm kind of confused with RequestFactory, I see having multiple change contexts and multiple proxy graphs as a handicap rather that an advantage. :-( On Jun 29, 12:59 am, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: J, did you look at EntityProxyChange.registerForProxyType ? You can use this and register for any changes to your entities with the eventBus. The Handler method is called on change of entities (especially version changes). example: EntityProxyChange.registerForProxyType(eventBus, UserContactsProxy.class, new EntityProxyChange.HandlerUserContactsProxy() { @Override public void onProxyChange( EntityProxyChangeUserContactsProxy arg0) { proxyId = arg0.getProxyId() //data has changed, so fetch the contact again fetchUserContact(prxoyId); } }); Regards Ashwin On Wed, Jun 29, 2011 at 2:29 AM, isern juanis...@gmail.com wrote: Hi people, Since I'm new to GWT in general and RequestFactory in particular I resort to your experience, cause I'm trying to find out what's the best way to solve a problem, that has an impact on my application as a whole, regarding RequestFactory, and I couldn't find a previous discussion about it. I have a master/detail, typical CRUD manager where I edit contacts. Since those contacts rarely surpass 200 or so I thought it was okay to load them at start time, just like GMail does. So, I keep them in a singleton ModelLocator, and to render my contact CRUD and use contacts everywhere in my application I use that reference. Like, for instance, from a CellTable. Now, when I'm editing one of those contacts, I invoke request.edit() so that the changes are tracked in the context of the current request, and finally .fire(). The remote service method gets called and everything works fine. The moment after doing so, I notice that I must refresh somehow ModelLocator.contacts because it points to an element that now is stale, it didn't get noticed about the edition. In an ideal world, I'd like to think of the original RequestFactory pretty much like a Hibernate session and merge the successful save() request into the original getContacts() request, so that the original proxies get updated and finally have just one copy of the data. But as far as I've seen RequestContexts objects have a rather short lifecycle. So, I think most people using RF should have faced the same situation, what is the best possible solution to this? Thanks a lot, and I'd greatly appreciate your help J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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: Making a button fire inside a custom AbstractCell
Thanks for the reply. Unfortunately, that doesn't seem to make any difference. The CellTable I'm working with is in a custom DialogBox, I don't suppose that would make any difference would it? I know I've had to do a little extra before when using DialogBoxes...perhaps I'll try to eliminate that as a possible culprit. Thanks again. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZZ5tM4EqdAoJ. 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: Error when run in Eclipse in Mac
Any ideas? 2011/6/29 Juan Pablo Gardella gardellajuanpa...@gmail.com Hi folks, When run in Eclipse an GWT application show me an error (only in a Mac). This error I can fix in maven when add xercesImpl 2.9.1 as depedency in the project and in the plugins. But in eclipse I don't know how resolve. Enviroment: Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300) Java version: 1.6.0_24 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: mac os x version: 10.6.8 arch: i386 Family: mac Error: 2011-06-29 00:04:22.908 java[20592:903] [Java CocoaComponent compatibility mode]: Enabled 2011-06-29 00:04:22.912 java[20592:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 [WARN] Unable to process 'file:/Users//WEB-INF/web.xml' for servlet validation org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:188) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:172) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:426) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) Loading modules gov.senasa.embalajemadera.EmbalajeMadera [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:324) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:151) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:979) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:548) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:436) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) [ERROR] Unexpected error while processing XML com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:355) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:151) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:979) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:548) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:436) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) [ERROR] shell failed in doStartup method -- 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
Re: Error when run in Eclipse in Mac
Can you copypaste the gwt module file that its failing? It should be gov.senasa.embalajemadera.EmbalajeMadera.gwt.xml On Wed, Jun 29, 2011 at 12:24 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Any ideas? 2011/6/29 Juan Pablo Gardella gardellajuanpa...@gmail.com Hi folks, When run in Eclipse an GWT application show me an error (only in a Mac). This error I can fix in maven when add xercesImpl 2.9.1 as depedency in the project and in the plugins. But in eclipse I don't know how resolve. Enviroment: Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300) Java version: 1.6.0_24 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: mac os x version: 10.6.8 arch: i386 Family: mac Error: 2011-06-29 00:04:22.908 java[20592:903] [Java CocoaComponent compatibility mode]: Enabled 2011-06-29 00:04:22.912 java[20592:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 [WARN] Unable to process 'file:/Users//WEB-INF/web.xml' for servlet validation org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:188) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:172) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:426) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) Loading modules gov.senasa.embalajemadera.EmbalajeMadera [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:324) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:151) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:979) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:548) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:436) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) [ERROR] Unexpected error while processing XML com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:355) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:151) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:979) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:548) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:436) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) [ERROR] shell failed in doStartup method -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,
Re: RequestFactory object lifecycle change propagation
Ok Ashwin, it's a good idea, to create myself an identity map and always use it to keep the latest version of the proxies. Identity map updates and propagations could definitely go via the EventBus. Just wanted to make sure there wasn't a provided way of doing this. It's unfortunate that this should be done in a manual fashion, I mean, the RequestContext, AFAIK, has an request-scoped identity map too so it'd suffice to let a RF be reused over and over. Thanks for your help! On Jun 29, 11:47 am, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: since you want to update your in-memory list you can look at custom events and pass the updated object by throwing an event whenever your contact was modified. Your contact list can listen for this custom event and update the existing object with new data. with regards to EntityProxyId, you have to main a map of your proxies and their proxyId's. this way you whenever a proxy has changed, you can pick the corresponding proxy from the map and update it by fetching new data from the server. Thanks Ashwin On Wed, Jun 29, 2011 at 7:45 PM, isern juanis...@gmail.com wrote: Ashwin, Thanks for your reply. Basically, as I hold an in memory contact list (held in ModelLocator) I'd like to refresh that list with the newly updated object. I don't think it's necessary a trip to the server because I know I have the latest object version (I just saved it!). EntityProxyChange doesn't seem to provide a reference to the proxy object that triggered the change. I'm kind of confused with RequestFactory, I see having multiple change contexts and multiple proxy graphs as a handicap rather that an advantage. :-( On Jun 29, 12:59 am, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: J, did you look at EntityProxyChange.registerForProxyType ? You can use this and register for any changes to your entities with the eventBus. The Handler method is called on change of entities (especially version changes). example: EntityProxyChange.registerForProxyType(eventBus, UserContactsProxy.class, new EntityProxyChange.HandlerUserContactsProxy() { @Override public void onProxyChange( EntityProxyChangeUserContactsProxy arg0) { proxyId = arg0.getProxyId() //data has changed, so fetch the contact again fetchUserContact(prxoyId); } }); Regards Ashwin On Wed, Jun 29, 2011 at 2:29 AM, isern juanis...@gmail.com wrote: Hi people, Since I'm new to GWT in general and RequestFactory in particular I resort to your experience, cause I'm trying to find out what's the best way to solve a problem, that has an impact on my application as a whole, regarding RequestFactory, and I couldn't find a previous discussion about it. I have a master/detail, typical CRUD manager where I edit contacts. Since those contacts rarely surpass 200 or so I thought it was okay to load them at start time, just like GMail does. So, I keep them in a singleton ModelLocator, and to render my contact CRUD and use contacts everywhere in my application I use that reference. Like, for instance, from a CellTable. Now, when I'm editing one of those contacts, I invoke request.edit() so that the changes are tracked in the context of the current request, and finally .fire(). The remote service method gets called and everything works fine. The moment after doing so, I notice that I must refresh somehow ModelLocator.contacts because it points to an element that now is stale, it didn't get noticed about the edition. In an ideal world, I'd like to think of the original RequestFactory pretty much like a Hibernate session and merge the successful save() request into the original getContacts() request, so that the original proxies get updated and finally have just one copy of the data. But as far as I've seen RequestContexts objects have a rather short lifecycle. So, I think most people using RF should have faced the same situation, what is the best possible solution to this? Thanks a lot, and I'd greatly appreciate your help J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at
Re: A newbie's question on the bufferedImage
GWT only emulates a subset of the JRE. AWT is not part of that subset. http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html -Ben -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kcBL5vw4VgQJ. 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: Drop file from the OS into a GWT application
Have a look at http://code.google.com/p/gwt-fileapi/ . J.Ganesan www.DataStoreGwt.com On Jun 26, 11:11 pm, John Maitland jfgmaitl...@googlemail.com wrote: Have a look at this session from Google I/O 2011 on HTML 5: http://www.google.com/events/io/2011/sessions/html5-showcase-for-web-... I'm not sure if this has native supported in GWT, but if not look at JSNI. John -- 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: A newbie's question on the bufferedImage
You may try gwt.g2d.client.graphics.canvas.ImageData from http://gwt-g2d.appspot.com/doc/index.html J.Ganesan www.DataStoreGwt.com On Jun 29, 8:59 pm, Ben Imp benlee...@gmail.com wrote: GWT only emulates a subset of the JRE. AWT is not part of that subset. http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html -Ben -- 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: Drop file from the OS into a GWT application
http://code.google.com/p/gwt-fileapi/ . seems to be dead. 2011/6/29 J.Ganesan j.gane...@datastoregwt.com Have a look at http://code.google.com/p/gwt-fileapi/ . J.Ganesan www.DataStoreGwt.com On Jun 26, 11:11 pm, John Maitland jfgmaitl...@googlemail.com wrote: Have a look at this session from Google I/O 2011 on HTML 5: http://www.google.com/events/io/2011/sessions/html5-showcase-for-web-... I'm not sure if this has native supported in GWT, but if not look at JSNI. John -- 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. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- 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: Drop file from the OS into a GWT application
It was updated in May, 2010. I guess the code is alright. J.Ganesan www.DataStoreGwt.com On Jun 29, 9:18 pm, Alain Ekambi jazzmatad...@googlemail.com wrote: http://code.google.com/p/gwt-fileapi/. seems to be dead. 2011/6/29 J.Ganesan j.gane...@datastoregwt.com Have a look athttp://code.google.com/p/gwt-fileapi/. J.Ganesan www.DataStoreGwt.com On Jun 26, 11:11 pm, John Maitland jfgmaitl...@googlemail.com wrote: Have a look at this session from Google I/O 2011 on HTML 5: http://www.google.com/events/io/2011/sessions/html5-showcase-for-web-... I'm not sure if this has native supported in GWT, but if not look at JSNI. John -- 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. -- GWT API for non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to socialize GWT application
While connecting to external js libs in gwt you must usually check load order. On Jun 29, 3:33 pm, Ahmed ahmed.zar...@gmail.com wrote: Hello, My GWT application should allow sharing content to social network like twitter, linkedIn,facebook,.. Google search give me 3 framework based on javascript that facilitate content sharing:Gigya,sharethis,addthis i have tried the last two by appending jascript code to Document object..., but nothing is displayed!!! is there someone who did something like this to give me ideas ,propose framework or widget that are the most appropriate for GWT. Thanks in advance for yoour help. Any help is appreciated :) Note: im using GWT 2.3 -- 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: Fill a grid from my database
GWT 2.4 or gwt-incubator project had something called PagedDataGrid or similar. In 2.3 gwt is Editor framework suitable for your requirements too. On Jun 29, 10:21 am, Khadija FERJANI ferjani.khad...@gmail.com wrote: Good morning everybody, I wonder if someone could help me to fill my Grid from a database. My result have to be like this examplehttp://www.sencha.com/examples/pages/grid/widgetrenderer.html Thanks. -- Cordialement, Khadija FERJANI Élève ingénieur à la faculté des sciences de Tunis. -- 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: Drop file from the OS into a GWT application
Hi, You can look at this project, it implements the feature you need: http://www.vectomatic.org/lib-gwt-file http://code.google.com/p/lib-gwt-file/ Lukas On Jun 29, 6:28 pm, J.Ganesan j.gane...@datastoregwt.com wrote: It was updated in May, 2010. I guess the code is alright. J.Ganesanwww.DataStoreGwt.com On Jun 29, 9:18 pm, Alain Ekambi jazzmatad...@googlemail.com wrote: http://code.google.com/p/gwt-fileapi/. seems to be dead. 2011/6/29 J.Ganesan j.gane...@datastoregwt.com Have a look athttp://code.google.com/p/gwt-fileapi/. J.Ganesan www.DataStoreGwt.com On Jun 26, 11:11 pm, John Maitland jfgmaitl...@googlemail.com wrote: Have a look at this session from Google I/O 2011 on HTML 5: http://www.google.com/events/io/2011/sessions/html5-showcase-for-web-... I'm not sure if this has native supported in GWT, but if not look at JSNI. John -- 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. -- GWT API for non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- 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.
How to redirect HTML inside a dialogbox
Hi all, I'm new at GWT and I'm trying to create a dialogbox that shows a website from an external URL. I would also like that when the user clicks a link, the content generated appears inside the same dialogbox. Right now when the user clicks on a link it redirects to a whole new page as the user clicks to an HTML link. I would like to do this without having to have access to the HTML code from the server side. Is it 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-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: Drop file from the OS into a GWT application
It looks like IE is not supported ? 2011/6/29 Lukas Laag laa...@gmail.com Hi, You can look at this project, it implements the feature you need: http://www.vectomatic.org/lib-gwt-file http://code.google.com/p/lib-gwt-file/ Lukas On Jun 29, 6:28 pm, J.Ganesan j.gane...@datastoregwt.com wrote: It was updated in May, 2010. I guess the code is alright. J.Ganesanwww.DataStoreGwt.com On Jun 29, 9:18 pm, Alain Ekambi jazzmatad...@googlemail.com wrote: http://code.google.com/p/gwt-fileapi/. seems to be dead. 2011/6/29 J.Ganesan j.gane...@datastoregwt.com Have a look athttp://code.google.com/p/gwt-fileapi/. J.Ganesan www.DataStoreGwt.com On Jun 26, 11:11 pm, John Maitland jfgmaitl...@googlemail.com wrote: Have a look at this session from Google I/O 2011 on HTML 5: http://www.google.com/events/io/2011/sessions/html5-showcase-for-web-... I'm not sure if this has native supported in GWT, but if not look at JSNI. John -- 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. -- GWT API for non Java based platformshttp:// code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- 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. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- 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: ActionCells within a CompositeCell not receiving onBrowserEvent()
Here's the link to the example code, http://pastebin.com/GbCRiZzu If anyone has a working example of how to get ActionCells to work within a CompositeCell posting it would be much appreciated. Thanks On Tue, Jun 28, 2011 at 9:24 PM, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: Are you following the exact sample? or are you using the CompositeCell in your own project? Can you paste the code where you are associating your CompositeCell with a table or CellList ~Ashwin On Wed, Jun 29, 2011 at 9:42 AM, Daniel Johnston affablebl...@gmail.comwrote: Thanks for the help Ashwin, but I checked the import, com.google.gwt.dom.client.Element, and its correct, however the ActionCells within the CompositeCell are still not receiving the onBrowserEvent() . On Tue, Jun 28, 2011 at 6:58 PM, Ashwin Desikan ashwin.desi...@gmail.com wrote: Daniel, Check your import statement for the Element class. Thus should be using the .dom.Element package and not .client Most probably that would be the issue for onbrowserEvent not getting invoked Thanks Ashwin Sent from my iPhone On Jun 28, 2011, at 10:46 PM, Daniel Johnston affablebl...@gmail.com wrote: The ActionCell's onBrowserEvent() methods are not called. Is there something I need to override in the CompositeCell or ConsumedEvents to make this work? Below my example code, based on the Sample http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree // Construct a composite cell for actions ListHasCellItem, ? hasCells = new ArrayListHasCellItem, ?(); hasCells.add(new HasCellItem, Item() { private ActionCellItem cell = new ActionCellItem( SafeHtmlUtils .fromTrustedString(Utils.makeImage(deleteIcon)), new ActionCell.DelegateItem() { @Override public void execute(Item item) { listener.onDeleteClicked(item); } }); public CellItem getCell() { return cell; } public FieldUpdaterItem, Item getFieldUpdater() { return null; } public Item getValue(Item item) { return item; } }); hasCells.add(new HasCellItem, Item() { private ActionCellItem cell = new ActionCellItem( SafeHtmlUtils.fromTrustedString(Utils.makeImage(editIcon)), new ActionCell.DelegateItem() { @Override public void execute(Item item) { listener.onEditClicked(item); } }); public CellItem getCell() { return cell; } public FieldUpdaterItem, Item getFieldUpdater() { return null; } public Item getValue(Item item) { return item; } }); CompositeCellItem actionsCell = new CompositeCellItem( hasCells) { @Override public void render(Context context, Item value, SafeHtmlBuilder sb) { sb.appendHtmlConstant(tabletbodytr); super.render(context, value, sb); sb.appendHtmlConstant(/tr/tbody/table); } @Override protected Element getContainerElement(Element parent) { // Return the first TR element in the table. return parent.getFirstChildElement().getFirstChildElement() .getFirstChildElement(); } @Override protected X void render(Context context, Item value, SafeHtmlBuilder sb, HasCellItem, X hasCell) { CellX cell = hasCell.getCell(); sb.appendHtmlConstant(td); cell.render(context, hasCell.getValue(value), sb); sb.appendHtmlConstant(/td); } }; Thanks in advance --- -Daniel Johnston -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Daniel Johnston -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Daniel Johnston -- You received this message because
Re: gwt-servlet.jar size 200KB to 4MB?
Good point, Thomas. Agreed, the POMs should be part of the open source project, and community participation is welcome. I'll work on getting them checked in. As for the group/artifact IDs, I expect we'll want to use groupId com.google.web.bindery with artifacts requestfactory-server and requestfactory-client. I'll double-check to make sure there are no GWT references in the jars, but I'm sure that was the intent of moving to com.google.web.bindery. Does this make sense? /dmc On Wed, Jun 29, 2011 at 10:25 AM, Thomas Broyer t.bro...@gmail.com wrote: As you're talking about it: is it planned to publish it as a Maven artifact along with GWT 2.4? And if so, do you know already which groupId and artifactId it will use? (and talking about Maven, I suppose you have scripts to prepare the deployments, and pom.xml files; what's the reason for them not being in the source repository? it would make life a bit easier to us, people building from source) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JYFY_7Nqp-0J. 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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: Error when run in Eclipse in Mac
Hi Gal!! Thanks for your time: I paste the XML file, but the error is a classpath issue. This error had when compile with maven and fix when add xercesImpl 2.9.1 as dependency in project (with scope provided) and in the plugin gwt-maven-plugin. If I can pass xercesImpl 2.9.1 to the plugin I will fix this problem. En español. Teniamos este error y lo solucionamos agregando xercesImpl como dependencia en el proyecto y en el plugin. Pero el tema es como hacemos para pasarle xerces al plugin de eclipse. Es como que toma un parseador SAX viejo y no funciona, pero si tomara xerces funciona. ?xml version=1.0 encoding=UTF-8? module rename-to='embalajeApp' !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User' / inherits name=com.google.gwt.i18n.I18N / inherits name='com.google.gwt.user.theme.standard.Standard' / !-- Other module inherits -- inherits name=com.google.gwt.activity.Activity / inherits name=com.google.gwt.place.Place / !-- GIN: DI para JavaScript -- inherits name=com.google.gwt.inject.Inject / !-- Gwt dispatch -- inherits name='net.customware.gwt.dispatch.Dispatch' / !-- javax.inject -- inherits name='javax.JSR330' / !-- validation framework -- inherits name='eu.maydu.gwt.validation.ValidationLibrary' / !-- Specify the app entry point class. -- entry-point class='...' / !-- Specify the paths for translatable code -- source path='client' / source path='shared' / !-- Spanish language, independent of country -- extend-property name=locale values=es_AR/ set-property name=locale value=es_AR / !-- THIS LINE IS ADDED FOR DEBUGGING PURPOSE -- set-configuration-property name=CssResource.style value=pretty/ /module 2011/6/29 Gal Dolber gal.dol...@gmail.com Can you copypaste the gwt module file that its failing? It should be gov.senasa.embalajemadera.EmbalajeMadera.gwt.xml On Wed, Jun 29, 2011 at 12:24 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Any ideas? 2011/6/29 Juan Pablo Gardella gardellajuanpa...@gmail.com Hi folks, When run in Eclipse an GWT application show me an error (only in a Mac). This error I can fix in maven when add xercesImpl 2.9.1 as depedency in the project and in the plugins. But in eclipse I don't know how resolve. Enviroment: Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300) Java version: 1.6.0_24 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: mac os x version: 10.6.8 arch: i386 Family: mac Error: 2011-06-29 00:04:22.908 java[20592:903] [Java CocoaComponent compatibility mode]: Enabled 2011-06-29 00:04:22.912 java[20592:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 [WARN] Unable to process 'file:/Users//WEB-INF/web.xml' for servlet validation org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:188) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:172) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:426) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) Loading modules gov.senasa.embalajemadera.EmbalajeMadera [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:324) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:280) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:192) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:308) at
Re: ActionCells within a CompositeCell not receiving onBrowserEvent()
You're not sinking any events in your constructor. If you look at ActionCell you'll see public ActionCell(SafeHtml message, DelegateC delegate) { super(click, keydown); } You will at the very least need to call super(click, keydown) inside public ItemCellTableComposite() -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K4rxXQ9TrcEJ. 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: Intercept basic authentication popup
I'm not an expert in this by any means (and certainly don't know your requirements), but it seems like basic auth is fundamentally incompatible with a GWT app (or at least the portion you describe). I think a more compatible model would be to rely on something like cookies, have a particular service that does not require authentication, and then check the response to that to see if the user is authenticated. Then you can put access control on all your other services to ensure authenticated access. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HrYT7hSLoX0J. 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.
RequestFactory - persist method that returns the saved Entity.
So, still trying to fully understand the RequestFactory, I made myself a small app to test having my persistence code in the entity itself. (I have been previously working off the TurboManage objectify+requestfactory sample, thanks David, its been very useful!) I have an Entity called Parent, which has this method: public Parent persistAndReturn() { ObjectifyDao dao = new ObjectifyDao(); this.aBool = true; KeyParent key = dao.ofy().put(this); return dao.ofy().get(key); } In my App's RequestFactory interface, I have this: @Service(Parent.class) interface ParentRequestContext extends RequestContext { InstanceRequestParentProxy, Void persist(); InstanceRequestParentProxy, ParentProxy persistAndReturn(); } ParentRequestContext getParentRC(); Then when I want to create and persist a new Parent object, I do this... ParentRequestContext rc = rf.getParentRC(); ParentProxy proxyObj = rc.create(ParentProxy.class); (.. set some properties.. ) RequestParentProxy fetchRequest = rc.persistAndReturn().using(proxyObj); fetchRequest.to(new ReceiverParentProxy(){ (... onSuccess Handler.. ) }); fetchRequest.fire(); However I get the 'autobean has been frozen' error (stack trace: http://pastebin.com/NZ7280B9 ) Its clear from the stacktrace and other debug messages that the object is persisted, but returning it fails. So... Is this possible? Is it desirable? Also, if we look at the last line, fetchRequest.fire(), we could also do rc.fire() instead of it, and get the same result.. Are we doing the exact same operation when we call either 'fire' method? Thanks, Aidan. -- 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.
DocLayouttPanel IE8 Drop Shadows
Hi Everyone, I have a north, south, east, center layout design and want each area to have a boxed window with a drop shadow. All seems to work great with firefox and ie9 using the CSS box-shadow. I want this effect in ie8 so i add the css property -ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#00'); It appears in the GWT design window properly but when i view it in the browser nothing appears. Here is an example of the css code i am using in the ui xml file: .toppanel{ background-color: #DD; border-left: 1px solid #77; border-right: 1px solid #77; border-bottom: 1px solid #77; margin-bottom: 4px; margin-left: 7px; margin-right: 7px; -moz-box-shadow: 2px 2px 2px #444; -webkit-box-shadow: 2px 2px 2px #444; box-shadow: 2px 2px 2px #444; -ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#00'); /* For IE 5.5 - 7 */ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#00'); } The style is applied using the following: g:north size='60' h:TopPanel ui:field='topPanel' styleName='{style.toppanel}' / /g:north Any suggestions? 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-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: DocLayouttPanel IE8 Drop Shadows
Check out css3pie http://css3pie.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yvwJycqFVhcJ. 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: RequestFactory - persist method that returns the saved Entity.
Hi Aidan, I also see the AutoBeanFrozen error with persistAndReturn in GWT 2.3.0 and am looking into it. GWT 2.2.0 did not exhibit this behavior. And yes, Request.fire() just calls RequestContext.fire(), so the effect is identical. /dmc On Wed, Jun 29, 2011 at 1:55 PM, Aidan O'Kelly aida...@gmail.com wrote: So, still trying to fully understand the RequestFactory, I made myself a small app to test having my persistence code in the entity itself. (I have been previously working off the TurboManage objectify+requestfactory sample, thanks David, its been very useful!) I have an Entity called Parent, which has this method: public Parent persistAndReturn() { ObjectifyDao dao = new ObjectifyDao(); this.aBool = true; KeyParent key = dao.ofy().put(this); return dao.ofy().get(key); } In my App's RequestFactory interface, I have this: @Service(Parent.class) interface ParentRequestContext extends RequestContext { InstanceRequestParentProxy, Void persist(); InstanceRequestParentProxy, ParentProxy persistAndReturn(); } ParentRequestContext getParentRC(); Then when I want to create and persist a new Parent object, I do this... ParentRequestContext rc = rf.getParentRC(); ParentProxy proxyObj = rc.create(ParentProxy.class); (.. set some properties.. ) RequestParentProxy fetchRequest = rc.persistAndReturn().using(proxyObj); fetchRequest.to(new ReceiverParentProxy(){ (... onSuccess Handler.. ) }); fetchRequest.fire(); However I get the 'autobean has been frozen' error (stack trace: http://pastebin.com/NZ7280B9 ) Its clear from the stacktrace and other debug messages that the object is persisted, but returning it fails. So... Is this possible? Is it desirable? Also, if we look at the last line, fetchRequest.fire(), we could also do rc.fire() instead of it, and get the same result.. Are we doing the exact same operation when we call either 'fire' method? Thanks, Aidan. -- 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
Problem with MySQL connection
Hi everyone, I've got again a problem where I don't know how to proceed. I've got a Hibernate configuration that is perfectly working on a normal Java application. I've copied everything (config, classes, libs) to a GWT application (libs also to WEB-INF/lib) and since then there is no connection to the database server possible. I get an exception when I try to open a transaction: org.hibernate.exception.JDBCConnectionException: Cannot open connection ... Caused by: java.sql.SQLException: URL is not in the correct format: jdbc:mysql://127.0.0.1:3306/sample The format is correct because it is perfectly working in the local application. The curious thing is that everything is running fine if I deploy my application to a Tomcat server. What do I have to configure in order to run it in my Eclipse with Jetty of the GWT SDK? Thanks in advanced for help! devel -- 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: RequestFactory and populate form field with dynamic data
i believe to treat rf api , is to first think about how would do it with normal java dao, and persistence api, then begin to translate them to rf api's becouse that's basically what it tries to do. by persistence api, i mainly thinkking about DAO's classes, where each DAO usually revolves around a single entity and all of them extend one single Abstract class which usually has single entity FUD api's (Find,Update,Delete). On Wed, Jun 29, 2011 at 5:27 PM, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, June 29, 2011 3:44:21 PM UTC+2, ungarida wrote: Hi all, I'm studying new RequestFactory framework and I have a big doubt. If the RequestFactory is stricly associated with a single Entity, which is the best way transmit dynamic data to populate form fields with default values? For example I want to fill a drop down list, I can not use RequestFactory to load all data. Yes you can, what makes you think it's not possible? You must be misunderstanding something, but it's hard to tell what exactly. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/H13wStc3Z2kJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re : Problem with MySQL connection
Hi Does your project use Google App Engine? Cause GAE plugin works as a sandbox and doesn't allow to make arbitrary network connections ( http://code.google.com/intl/fr-FR/appengine/docs/java/overview.html) Cordially Jeanpylone -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ylGhd8WeNBYJ. 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: Version dates
Thanks! On 22 јун, 21:47, Jim Douglas jdou...@basis.com wrote: http://en.wikipedia.org/wiki/Google_Web_Toolkit#History On Jun 22, 11:40 am,Salethrowt...@gmail.com wrote: Can someone please sent me a list of all GWT versions with the DATES when they became available? I need it for a research on Java Web Frameworks and their comparision. I've chosse GWT among others and this data is needed for calculating some factors needed for comparision. These data aren't available on this website. sencearly, Sale- Сакриј наведени текст - - Прикажи текст између наводника - -- 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: gwt-servlet.jar size 200KB to 4MB?
On Wednesday, June 29, 2011 7:36:56 PM UTC+2, David Chandler (Google) wrote: Good point, Thomas. Agreed, the POMs should be part of the open source project, and community participation is welcome. I'll work on getting them checked in. Great! As for the group/artifact IDs, I expect we'll want to use groupId com.google.web.bindery with artifacts requestfactory-server and requestfactory-client. I'll double-check to make sure there are no GWT references in the jars, but I'm sure that was the intent of moving to com.google.web.bindery. Does this make sense? Yep, either that, or com.google.web.bindery.requestfactory if you expect non-requestfactory things to come in later in the bindery namespace. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2j8qFVTHmfIJ. 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.
Kiss Gergely csevegni szeretne
--- Kiss Gergely hatékonyabban szeretne kommunikálni Önnel a Google néhány remek szolgáltatásával. Ha már használja a Gmail alkalmazást vagy a Google Csevegőt, kattintson ide: http://mail.google.com/mail/b-ef657bb7bb-620168f51f-9JWi-rv0ufJkkSuocwRAjwBrUgI Kövesse ezt a linket, ha csevegni szeretne Kiss Gergely ismerősével. Ha használni szeretné a Gmail alkalmazást - a Google ingyenes e-mail fiókját, amelyhez több mint 2800 MB tárhely tartozik -, és csevegni szeretne Kiss Gergely ismerősével, kattintson ide: http://mail.google.com/mail/a-ef657bb7bb-620168f51f-9JWi-rv0ufJkkSuocwRAjwBrUgI Amit a Gmail kínál: - Csevegés közvetlenül a Gmail alkalmazásban - Hatékony védelem a spam ellen - Beépített kereső az üzenetek megtalálásához és hasznos lehetőség az e-mailek beszélgetésekbe rendezéséhez - Nincsenek előugró hirdetések és célzatlan szalaghirdetések - csak üzenetekhez kapcsolódó szöveges hirdetések és információk Mindez nem kerül semmibe. Várjon csak, ez még nem minden! Ha nyit egy Gmail-fiókot, a Google Csevegőhöz, a Google csevegőszolgáltatásához is hozzáférhet: http://www.google.com/talk/ Amit a Google Csevegő kínál: - Internetalapú csevegő, amely bárhol, külön szoftver letöltése nélkül használható - Címtár, amelyet a rendszer szinkronizál a Gmail-fiókkal - Ingyenes, kiváló minőségű, számítógépek közötti audiohívások a Google Csevegő ügyfélprogram letöltésével Folyamatosan dolgozunk azon, hogy új funkciókat építsünk be és továbbfejlesszük a meglévőket, ezért időről időre az Ön véleményét és javaslatait is kikérhetjük. Nagyra értékeljük segítségét, amelyet termékeink fejlesztéséhez nyújt! Köszönettel: a Google csapata Ha többet szeretne tudni a Gmail és a Google Csevegő működéséről, kattintson ide: http://mail.google.com/mail/help/intl/hu/about.html http://www.google.com/talk/about.html (Ha erre az URL-címre kattintva nem nyílik meg a megfelelő oldal, másolja az URL-t a vágólapra, és illessze be a böngésző címsávjába). -- 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: Where is downloadable GWT docs?
Thank you, David, but what program runs that command? Browser - no. Command prompt - no. On Jun 27, 10:29 am, David Chandler drfibona...@google.com wrote: Hi Eric, We don't publish the GWT docs for offline browsing, but instead of manual copying, you can use wget -r -p -np -khttp://code.google.com/webtoolkit/doc/latest/DevGuide.html That will pull all the developer guides for the latest release, and you can further check out the javadocs from svn athttp://google-web-toolkit.googlecode.com/svn/javadoc/latest HTH, /dmc On Sat, Jun 25, 2011 at 5:44 PM, Eric Atkinson eric.atkin...@strategicinternationalsystems.com wrote: I have been able to download to docs for the Google App Engine (because I am not always online when coding and testing); however, I can't seem to find a way to download the docs for GWT (for the same reason). Is there a link to down the GWT docs, such as: http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... . Otherwise, I'll have to go through every page of the GWT Dev Guide and copy them manually -- ugh. 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-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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w:http://code.google.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
Page Icon
Hi, with Window.setTitle() ist is possible to set the Title of the page in the JAVA-code. Is it possible to set the icon of the page (which is displayed in the navigation bar or the tab in the browser) in the JAVA-Code or must it be set in the HTML-Page? Kind regards, -- 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.
Open a local file with JNSI
Dear all, with help of JNSI, i'm trying to open a local file from a client GWT. Here is my code: open(file:///D:/www/index.htm); // to call the native function I tried as well open(D:/www/index.htm) or open(file:///D:\\www\ \index.htm) without success. /* the JNSI function */ public static native void open(String file) /*-{ $wnd.open(file); }-*/; I presumably did not find the right combination because it's still not working. Have you got an idea ? Thank you for your help. Best Regards, -- 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: Error when run in Eclipse in Mac
mmm, perdon, esta fuera de mi entendimiento :)... me suena que es un problema del orden del classpath, algo parecido pasaba con los jars de appengine, pero noestoy seguro On Wednesday, June 29, 2011, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Hi Gal!! Thanks for your time: I paste the XML file, but the error is a classpath issue. This error had when compile with maven and fix when addxercesImpl 2.9.1 as dependency in project (with scope provided) and in the plugin gwt-maven-plugin. If I can pass xercesImpl 2.9.1 to the plugin I will fix this problem. En español. Teniamos este error y lo solucionamos agregando xercesImpl como dependencia en el proyecto y en el plugin. Pero el tema es como hacemos para pasarle xerces al plugin de eclipse. Es como que toma un parseador SAX viejo y no funciona, pero si tomara xerces funciona. ?xml version=1.0 encoding=UTF-8?module rename-to='embalajeApp' !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User' /inherits name=com.google.gwt.i18n.I18N / inherits name='com.google.gwt.user.theme.standard.Standard' / !-- Other module inherits -- inherits name=com.google.gwt.activity.Activity /inherits name=com.google.gwt.place.Place / !-- GIN: DI para JavaScript --inherits name=com.google.gwt.inject.Inject / !-- Gwt dispatch -- inherits name='net.customware.gwt.dispatch.Dispatch' / !-- javax.inject -- inherits name='javax.JSR330' / !-- validation framework -- inherits name='eu.maydu.gwt.validation.ValidationLibrary' / !-- Specify the app entry point class. -- entry-point class='...' / !-- Specify the paths for translatable code -- source path='client' /source path='shared' / !-- Spanish language, independent of country -- extend-property name=locale values=es_AR/ set-property name=locale value=es_AR / !-- THIS LINE IS ADDED FOR DEBUGGING PURPOSE -- set-configuration-property name=CssResource.style value=pretty/ /module 2011/6/29 Gal Dolber gal.dol...@gmail.com Can you copypaste the gwt module file that its failing? It should be gov.senasa.embalajemadera.EmbalajeMadera.gwt.xml On Wed, Jun 29, 2011 at 12:24 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Any ideas? 2011/6/29 Juan Pablo Gardella gardellajuanpa...@gmail.com Hi folks, When run in Eclipse an GWT application show me an error (only in a Mac). This error I can fix in maven when add xercesImpl 2.9.1 as depedency in the project and in the plugins. But in eclipse I don't know how resolve. Enviroment:Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300) Java version: 1.6.0_24 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: mac os x version: 10.6.8 arch: i386 Family: mac Error: 2011-06-29 00:04:22.908 java[20592:903] [Java CocoaComponent compatibility mode]: Enabled 2011-06-29 00:04:22.912 java[20592:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 [WARN] Unable to process 'file:/Users//WEB-INF/web.xml' for servlet validation org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:188) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:172) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:426) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1045) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) Loading modules gov.senasa.embalajemadera.EmbalajeMadera [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd at org.gjt.xpp.sax2.Driver.setFeature(Driver.java:178) at org.gjt.xpp.jaxp11.SAXParserImpl.setFeatures(SAXParserImpl.java:149) at org.gjt.xpp.jaxp11.SAXParserImpl.init(SAXParserImpl.java:132) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:114) at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:142) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:324) at
Re: Drop file from the OS into a GWT application
I do not believe IE9 supports the W3C File API, so IE (event IE9) is not supported at the moment Lukas On Jun 29, 7:19 pm, Alain Ekambi jazzmatad...@googlemail.com wrote: It looks like IE is not supported ? 2011/6/29 Lukas Laag laa...@gmail.com Hi, You can look at this project, it implements the feature you need: http://www.vectomatic.org/lib-gwt-file http://code.google.com/p/lib-gwt-file/ Lukas On Jun 29, 6:28 pm, J.Ganesan j.gane...@datastoregwt.com wrote: It was updated in May, 2010. I guess the code is alright. J.Ganesanwww.DataStoreGwt.com On Jun 29, 9:18 pm, Alain Ekambi jazzmatad...@googlemail.com wrote: http://code.google.com/p/gwt-fileapi/. seems to be dead. 2011/6/29 J.Ganesan j.gane...@datastoregwt.com Have a look athttp://code.google.com/p/gwt-fileapi/. J.Ganesan www.DataStoreGwt.com On Jun 26, 11:11 pm, John Maitland jfgmaitl...@googlemail.com wrote: Have a look at this session from Google I/O 2011 on HTML 5: http://www.google.com/events/io/2011/sessions/html5-showcase-for-web-... I'm not sure if this has native supported in GWT, but if not look at JSNI. John -- 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. -- GWT API for non Java based platformshttp:// code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- 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. -- GWT API for non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- 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: RequestFactory - persist method that returns the saved Entity.
Ok thanks for the clarification. A bit more messing around (probably should've tried this first) and changing the persistAndReturn method to simply 'return this' actually works, with the returned proxy having the newly generated ID and any server side changes that were made. public Parent persistAndReturn() { ObjectifyDao dao = new ObjectifyDao(); this.aBool = true; dao.ofy().put(this); return this; } On Wed, Jun 29, 2011 at 7:18 PM, David Chandler drfibona...@google.com wrote: Hi Aidan, I also see the AutoBeanFrozen error with persistAndReturn in GWT 2.3.0 and am looking into it. GWT 2.2.0 did not exhibit this behavior. And yes, Request.fire() just calls RequestContext.fire(), so the effect is identical. /dmc On Wed, Jun 29, 2011 at 1:55 PM, Aidan O'Kelly aida...@gmail.com wrote: So, still trying to fully understand the RequestFactory, I made myself a small app to test having my persistence code in the entity itself. (I have been previously working off the TurboManage objectify+requestfactory sample, thanks David, its been very useful!) I have an Entity called Parent, which has this method: public Parent persistAndReturn() { ObjectifyDao dao = new ObjectifyDao(); this.aBool = true; KeyParent key = dao.ofy().put(this); return dao.ofy().get(key); } In my App's RequestFactory interface, I have this: @Service(Parent.class) interface ParentRequestContext extends RequestContext { InstanceRequestParentProxy, Void persist(); InstanceRequestParentProxy, ParentProxy persistAndReturn(); } ParentRequestContext getParentRC(); Then when I want to create and persist a new Parent object, I do this... ParentRequestContext rc = rf.getParentRC(); ParentProxy proxyObj = rc.create(ParentProxy.class); (.. set some properties.. ) RequestParentProxy fetchRequest = rc.persistAndReturn().using(proxyObj); fetchRequest.to(new ReceiverParentProxy(){ (... onSuccess Handler.. ) }); fetchRequest.fire(); However I get the 'autobean has been frozen' error (stack trace: http://pastebin.com/NZ7280B9 ) Its clear from the stacktrace and other debug messages that the object is persisted, but returning it fails. So... Is this possible? Is it desirable? Also, if we look at the last line, fetchRequest.fire(), we could also do rc.fire() instead of it, and get the same result.. Are we doing the exact same operation when we call either 'fire' method? Thanks, Aidan. -- 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DocLayouttPanel IE8 Drop Shadows
That worked! Thanks for the suggestion. On Jun 29, 11:05 am, Jeff Larsen larse...@gmail.com wrote: Check out css3piehttp://css3pie.com/ -- 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.
TabLayoutPanel in ie7 does not resize
I have a TabLayoutPanel in ie7. All ancestors of the TabLayoutPanel are layout panels. It has the correct doctype. Initially the content of the first tab is collapsed to about 32px by 32px. When I navigate to the second panel the layout is correct. When I navigate back to the first tab the layout is correct. The conclusion I have come to is that the content of the tabs only resize when the tabs change. If I try to resize the window, the content size stays the same until I change the tab. It sounds similar to 4596 http://code.google.com/p/google-web-toolkit/issues/detail?id=4596issue, but this only happens in ie7 and it is the first panel that does not work and it only resizes on tab change. Ie8 and chrome work fine. Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/75Xr8GEyK0kJ. 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: DocLayouttPanel IE8 Drop Shadows
It works but when i resize the window a javascript error happens and the panels will not resize anymore. Any other suggestions? On Jun 29, 3:16 pm, Mark Wengranowski m...@greatlittlebox.com wrote: That worked! Thanks for the suggestion. On Jun 29, 11:05 am, Jeff Larsen larse...@gmail.com wrote: Check out css3piehttp://css3pie.com/- Hide quoted text - - Show quoted text - -- 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: ActionCells within a CompositeCell not receiving onBrowserEvent()
I found a solution. If you remove the table from the example and return the parent element from CompositeCell.getContainerElement() it seems to delegate the onBrowserEvents to the correct Element. CompositeCellODataEntityItem actionsCell = newCompositeCellODataEntityItem( hasCells) { @Override public void render(Context context, ODataEntityItem value, SafeHtmlBuilder sb) { //sb.appendHtmlConstant(tabletbodytr); super.render(context, value, sb); //sb.appendHtmlConstant(/tr/tbody/table); } @Override protected Element getContainerElement(Element parent) { // Return the first TR element in the table. //return parent.getFirstChildElement().getFirstChildElement() // .getFirstChildElement(); return parent; } @Override protected X void render(Context context, ODataEntityItem value, SafeHtmlBuilder sb, HasCellODataEntityItem, X hasCell) { CellX cell = hasCell.getCell(); //sb.appendHtmlConstant(td); cell.render(context, hasCell.getValue(value), sb); //sb.appendHtmlConstant(/td); } }; On Wed, Jun 29, 2011 at 10:46 AM, Jeff Larsen larse...@gmail.com wrote: You're not sinking any events in your constructor. If you look at ActionCell you'll see public ActionCell(SafeHtml message, DelegateC delegate) { super(click, keydown); } You will at the very least need to call super(click, keydown) inside public ItemCellTableComposite() -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K4rxXQ9TrcEJ. 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. -- -Daniel Johnston -- 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.
Hibernate Reverse Engineering + GWT RequestFactory
I'm a total noob in RequestFactory and Hibernate, so bare with me a little :) Any help or pointer is much appreciated. I'd like to know if it's possible to integrate the Hibernate Reverse Engineer generated files with GWT's RequestFactory. If it is, does anyone have any example project that they can show me? I reverse engineered a db table and included in the server package of the project. I can reverse engineer a db table and instantiate the DAO object to get data and output in a normal java project. However, when I tried to instantiate the DAO object on the server in a gwt project, I get the following exception... [WARN] Server class 'org.hibernate.criterion.Criterion' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/ 448321/Start%20Menu/Programs/MyEclipse/MyEclipse%209/configuration/ org.eclipse.osgi/bundles/90/1/.cp/myeclipse-data/3.3/lib/ hibernate3.jar' to the web app classpath for this session For additional info see: file:/C:/Documents%20and%20Settings/448321/ Start%20Menu/Programs/MyEclipse/Common/plugins/ com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201105191508/gwt-2.3.0/doc/ helpInfo/webAppClassPath.html Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.dtv.hibernate.client.GreetingService.greetServer(java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at com.dtv.hibernate.server.ReplayRulesDAO.clinit(ReplayRulesDAO.java: 25) at com.dtv.hibernate.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java: 32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at com.google.gwt.dev.shell.jetty.JettyLauncher $WebAppContextWithReload $WebAppClassLoaderExtension.findClass(JettyLauncher.java:367) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 366) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java: 337) at
Re: Where is downloadable GWT docs?
Tried Google lately? ;-) /dmc On Wed, Jun 29, 2011 at 3:56 PM, Eric Atkinson eric.atkin...@strategicinternationalsystems.com wrote: Thank you, David, but what program runs that command? Browser - no. Command prompt - no. On Jun 27, 10:29 am, David Chandler drfibona...@google.com wrote: Hi Eric, We don't publish the GWT docs for offline browsing, but instead of manual copying, you can use wget -r -p -np -khttp:// code.google.com/webtoolkit/doc/latest/DevGuide.html That will pull all the developer guides for the latest release, and you can further check out the javadocs from svn athttp:// google-web-toolkit.googlecode.com/svn/javadoc/latest HTH, /dmc On Sat, Jun 25, 2011 at 5:44 PM, Eric Atkinson eric.atkin...@strategicinternationalsystems.com wrote: I have been able to download to docs for the Google App Engine (because I am not always online when coding and testing); however, I can't seem to find a way to download the docs for GWT (for the same reason). Is there a link to down the GWT docs, such as: http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat. .. . Otherwise, I'll have to go through every page of the GWT Dev Guide and copy them manually -- ugh. 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-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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w:http://code.google.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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: RequestFactory - persist method that returns the saved Entity.
Aidan, thanks so much for sharing your success! This was failing: KeyNamedList key = this.put(list); return this.get(key); but this works: KeyNamedList key = this.put(list); return list; I'll have to look closer at what changed between 2.2 and 2.3 that might be causing this. /dmc On Wed, Jun 29, 2011 at 5:44 PM, Aidan O'Kelly aida...@gmail.com wrote: Ok thanks for the clarification. A bit more messing around (probably should've tried this first) and changing the persistAndReturn method to simply 'return this' actually works, with the returned proxy having the newly generated ID and any server side changes that were made. public Parent persistAndReturn() { ObjectifyDao dao = new ObjectifyDao(); this.aBool = true; dao.ofy().put(this); return this; } On Wed, Jun 29, 2011 at 7:18 PM, David Chandler drfibona...@google.com wrote: Hi Aidan, I also see the AutoBeanFrozen error with persistAndReturn in GWT 2.3.0 and am looking into it. GWT 2.2.0 did not exhibit this behavior. And yes, Request.fire() just calls RequestContext.fire(), so the effect is identical. /dmc On Wed, Jun 29, 2011 at 1:55 PM, Aidan O'Kelly aida...@gmail.com wrote: So, still trying to fully understand the RequestFactory, I made myself a small app to test having my persistence code in the entity itself. (I have been previously working off the TurboManage objectify+requestfactory sample, thanks David, its been very useful!) I have an Entity called Parent, which has this method: public Parent persistAndReturn() { ObjectifyDao dao = new ObjectifyDao(); this.aBool = true; KeyParent key = dao.ofy().put(this); return dao.ofy().get(key); } In my App's RequestFactory interface, I have this: @Service(Parent.class) interface ParentRequestContext extends RequestContext { InstanceRequestParentProxy, Void persist(); InstanceRequestParentProxy, ParentProxy persistAndReturn(); } ParentRequestContext getParentRC(); Then when I want to create and persist a new Parent object, I do this... ParentRequestContext rc = rf.getParentRC(); ParentProxy proxyObj = rc.create(ParentProxy.class); (.. set some properties.. ) RequestParentProxy fetchRequest = rc.persistAndReturn().using(proxyObj); fetchRequest.to(new ReceiverParentProxy(){ (... onSuccess Handler.. ) }); fetchRequest.fire(); However I get the 'autobean has been frozen' error (stack trace: http://pastebin.com/NZ7280B9 ) Its clear from the stacktrace and other debug messages that the object is persisted, but returning it fails. So... Is this possible? Is it desirable? Also, if we look at the last line, fetchRequest.fire(), we could also do rc.fire() instead of it, and get the same result.. Are we doing the exact same operation when we call either 'fire' method? Thanks, Aidan. -- 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
CellBrowser RF The requested entity is not available on the server
I have a CellBrowser with RF to fetch the data. I have 3 levels (A, B, C), when selecting a value in the A list, the correct B list shows correctly. Then when selecting a value in the B list, I got this exception: Caused by: java.lang.RuntimeException: Server Error: The requested entity is not available on the server at com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.java:36) @Override protected void onRangeChanged(HasDataCProxy display) { final Range range = display.getVisibleRange(); // b is the selected value from the B list of type BProxy cRequestProvider.get().fetchRange(range.getStart(), range.getLength(), b).fire(...); I tried to do the same request but without the b parameter, and I don't have the exception anymore. So I guess it's coming from the b proxy. Do you have any idea? @Override protected void onRangeChanged(HasDataCProxy display) { final Range range = display.getVisibleRange(); cRequestProvider.get().fetchRange1(range.getStart(), range.getLength()).fire(...); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kuaIKcnRuE4J. 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: RequestFactory and populate form field with dynamic data
You are right, there is a misunderstanding. I try to complete my question with an example. My problem is when you want to do a drop down list of cities for a form of a person entity. I mean, the problem is not about how to dynamically update a form, it is about where have I to put data that is not strictly part of an entity and how have I to get this data to populate the form? On Jun 29, 4:27 pm, Thomas Broyer t.bro...@gmail.com wrote:e On Wednesday, June 29, 2011 3:44:21 PM UTC+2, ungarida wrote: Hi all, I'm studying new RequestFactory framework and I have a big doubt. If the RequestFactory is stricly associated with a single Entity, which is the best way transmit dynamic data to populate form fields with default values? For example I want to fill a drop down list, I can not use RequestFactory to load all data. Yes you can, what makes you think it's not possible? You must be misunderstanding something, but it's hard to tell what exactly. -- 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.
[gwt-contrib] Re: Fix ArrayStoreException in assignments to an element of an array of a single jso interface type. (issue1470801)
HI'm not sure we always know at compile time, how an array was created (they can be passed around and cast to different types, etc.). Did you check out my latest patch set, I came up with a scheme to use negative queryId's to indicate that it's a dual impl interface. It seems to be passing all my new tests, etc. On 2011/06/29 01:44:27, cromwellian wrote: Looking at Array.setCheck() it seems this was never supported. What we can do is create a Array.setCheckAllowJso() method, and then insert a call to either setCheck or setCheckAllowJso depending on whether or not the array element type is a single JSO impl. setCheckAllowJso would be identical to setCheck except you'd add an || Cast.isJavaScriptObject() to the expression. -Ray On Tue, Jun 28, 2011 at 6:00 PM, mailto:jbrosenb...@google.com wrote: I can verify that my new tests for dualImpls fail going way back, at least until last August. nbsp;The other tests all passed, up until the Overlay overhaul release this last March. http://gwt-code-reviews.appspot.com/1470801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors http://gwt-code-reviews.appspot.com/1470801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix ArrayStoreException in assignments to an element of an array of a single jso interface type. (issue1470801)
LGTM. You're right, you can't do it statically because the array type can be from a cast. http://gwt-code-reviews.appspot.com/1470801/diff/1003/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java File dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java (right): http://gwt-code-reviews.appspot.com/1470801/diff/1003/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java#newcode220 dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java:220: !Cast.canCastUnsafe(value, -array.queryId)) { This looks like a good trick. I'm a little uneasy about the amount of magic constants throughout the GWT compiler surrounding queryId 0 and 1 (not really specific to your patch). Some time in the future, we perhaps should look at refactoring all these magic constant dependencies. http://gwt-code-reviews.appspot.com/1470801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RFC: ElementBuilder API (issue1455802)
committed as r10412 http://gwt-code-reviews.appspot.com/1455802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add RequestFactory validator implemented as an annotation processor. (issue1467804)
Still having stackoverflows when enabling the annotation processor in Eclipse. The error I got the last time I tried had a very similar stacktrace (see below). Running the tool from the Maven build gives a lot of warnings like those: Cannot validate this method because the domain mapping for the return type (xxx.xxx.Xxx) could not be resolved to a domain type\n\nAdd @SuppressWarnings(requestfactory) to dismiss. without pointing at the method. Fortunately, I know from my model that this is all due to a single method in a base-interface inherited by almost all our proxies. The few other warnings/errors are legitimate. java.lang.StackOverflowError at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.getUpperBound(TypeVariableImpl.java:66) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:36) at org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74) at com.google.web.bindery.requestfactory.apt.TransportableTypeVisitor.visitTypeVariable(TransportableTypeVisitor.java:98) at
[gwt-contrib] Re: Add RequestFactory validator implemented as an annotation processor. (issue1467804)
On Wed, Jun 29, 2011 at 8:46 AM, t.bro...@gmail.com wrote: Still having stackoverflows when enabling the annotation processor in Eclipse. The error I got the last time I tried had a very similar stacktrace (see below). Do you have any self-parameterized types? FooQ extends FooQ kind of things going on? I'd assumed from your original report of stack exhaustion that it was the eager examination of types. This looks like a standard recursion break-condition bug. Running the tool from the Maven build gives a lot of warnings like those: Cannot validate this method because the domain mapping for the return type (xxx.xxx.Xxx) could not be resolved to a domain type\n\nAdd @SuppressWarnings(requestfactory) to dismiss. without pointing at the method. Ok, I'll tweak the error message to include the proxy/context type being scanned and the method signature. Fortunately, I know from my model that this is all due to a single method in a base-interface inherited by almost all our proxies. The few other warnings/errors are legitimate. Excellent. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix ArrayStoreException in assignments to an element of an array of a single jso interface type. (issue1470801)
Agreed On Wed, Jun 29, 2011 at 4:01 AM, cromwell...@google.com wrote: LGTM. You're right, you can't do it statically because the array type can be from a cast. http://gwt-code-reviews.appspot.com/1470801/diff/1003/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java File dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java (right): http://gwt-code-reviews.appspot.com/1470801/diff/1003/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java#newcode220 dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java:220: !Cast.canCastUnsafe(value, -array.queryId)) { This looks like a good trick. I'm a little uneasy about the amount of magic constants throughout the GWT compiler surrounding queryId 0 and 1 (not really specific to your patch). Some time in the future, we perhaps should look at refactoring all these magic constant dependencies. http://gwt-code-reviews.appspot.com/1470801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Adding explicit casts to the return value of certain methods to help the javac compiler. Some c... (issue1463810)
Reviewers: robertvawter, Description: Adding explicit casts to the return value of certain methods to help the javac compiler. Some compilers require the explicit cast. Please review this at http://gwt-code-reviews.appspot.com/1463810/ Affected files: M user/src/com/google/gwt/dom/builder/client/DomElementBuilderBase.java M user/src/com/google/gwt/dom/builder/shared/HtmlElementBuilderBase.java Index: user/src/com/google/gwt/dom/builder/client/DomElementBuilderBase.java === --- user/src/com/google/gwt/dom/builder/client/DomElementBuilderBase.java (revision 10412) +++ user/src/com/google/gwt/dom/builder/client/DomElementBuilderBase.java (working copy) @@ -82,6 +82,7 @@ @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B end() { +// An explicit cast is required to satisfy some javac compilers. return (B) delegate.end(); } @@ -91,19 +92,22 @@ return (B) delegate.end(tagName); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endDiv() { -return end(div); - } - +return (B) end(div); + } + + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endOption() { -return end(option); - } - +return (B) end(option); + } + + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endSelect() { -return end(select); +return (B) end(select); } @Override @@ -178,7 +182,11 @@ * @return the element on which the attribute can be set */ protected E assertCanAddAttribute() { -return delegate.assertCanAddAttribute().cast(); +/* + * An explicit parameterized return type on cast() is required by some javac + * compilers. + */ +return delegate.assertCanAddAttribute().E cast(); } /** Index: user/src/com/google/gwt/dom/builder/shared/HtmlElementBuilderBase.java === --- user/src/com/google/gwt/dom/builder/shared/HtmlElementBuilderBase.java (revision 10412) +++ user/src/com/google/gwt/dom/builder/shared/HtmlElementBuilderBase.java (working copy) @@ -84,6 +84,7 @@ @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B end() { +// An explicit cast is required to satisfy some javac compilers. return (B) delegate.end(); } @@ -93,19 +94,22 @@ return (B) delegate.end(tagName); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endDiv() { -return end(div); +return (B) end(div); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endOption() { -return end(option); +return (B) end(option); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endSelect() { -return end(select); +return (B) end(select); } @Override -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add RequestFactory validator implemented as an annotation processor. (issue1467804)
On Wed, Jun 29, 2011 at 2:58 PM, BobV b...@google.com wrote: On Wed, Jun 29, 2011 at 8:46 AM, t.bro...@gmail.com wrote: Still having stackoverflows when enabling the annotation processor in Eclipse. The error I got the last time I tried had a very similar stacktrace (see below). Do you have any self-parameterized types? FooQ extends FooQ kind of things going on? I'd assumed from your original report of stack exhaustion that it was the eager examination of types. This looks like a standard recursion break-condition bug. I rebuilt the requestfactory-apt.jar with some logging in the TransportableTypeVisitor#visitTypeVariable and it gave me the culprit: interface BreadCrumbItemProxyT extends EnumT FieldEnumT My logging code was: state.messager.printMessage(javax.tools.Diagnostic.Kind.NOTE, String.format(Scanning TypeVariable %s (%s; upper bound: %s), t, ((javax.lang.model.element.TypeParameterElement) t.asElement()).getGenericElement(), t.getUpperBound())); and printed tons of: Scanning typeVariable T (xxx.xxx.BreadCrumbItemProxy; upper bound: T) in the error log before giving up (a bit while later) with the StackOverflowException. The same pattern is used in a few other places in our app, and fixing one made the other fail the build similarly. In all cases, these are base interfaces (that are never directly used anywhere in services or proxy properties) so I changed them slightly: either made them no longer extend ValueProxy, pushing this down to the subinterfaces (note that the methods making use of the 'T' type are all overridden in subinterfaces with the specific enum type, this is required IIRC for the deferred-binding generator), or simply removed the generics (at least as a temporary measure). Running 'apt' with the same patched requestfactory-apt.jar shows only a few: Scanning typeVariable T (xxx.xxx.BreadCrumbItemProxy; upper bound: java.lang.Enumxxx.xxx.FieldEnum) which would explain why it doesn't fail. I still don't understand the stacktrace though, because the code I read for Eclipe's TypeVariableImpl was always creating a new type, and in this case would have (a priori) created a new DeclaredType, so calling visit() on it should have called visitDeclared(), not visitTypeVariable. And even though it clearly looks like a bug in Eclipse JDT/APT (can't find anything in their bugzilla though), it should be easy to workaround: in this case, t.equals(t.getUpperBound()) is true. -- Thomas Broyer /tɔ.ma.bʁwa.je/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Follow up to r10350. Allow collapse-all-properties in .gwt.xml module files (issue1463806)
ping http://gwt-code-reviews.appspot.com/1463806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update XML doc to make it clearer that 'compiler.emulatedStack' should no longer be used. (issue1462804)
ping http://gwt-code-reviews.appspot.com/1462804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update XML doc to make it clearer that 'compiler.emulatedStack' should no longer be used. (issue1462804)
LGTM http://gwt-code-reviews.appspot.com/1462804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Updates the module name validation check for using CompileModule on a project. (issue1467810)
Reviewers: tobyr, jbrosenberg, Description: Updates the module name validation check for using CompileModule on a project. 1) Loosen the requirement that the last part of the module name be a Java identifier. Users were creating modules with non-java identifer names but since they weren't top level modules, they were never checked. Those modules were then disallowed when presented to the compiler as top level modules for CompileModule. 2) Perform the loosened name validation check on all modules. Adds some unit tests on the module naming. Please review this at http://gwt-code-reviews.appspot.com/1467810/ Affected files: M dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java M dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java M dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java M dev/core/test/com/google/gwt/dev/cfg/ModuleDefTest.java A dev/core/test/com/google/gwt/dev/cfg/testdata/naming/7Foo.gwt.xml A dev/core/test/com/google/gwt/dev/cfg/testdata/naming/Foo-test.gwt.xml A dev/core/test/com/google/gwt/dev/cfg/testdata/naming/Invalid..Foo.gwt.xml A dev/core/test/com/google/gwt/dev/cfg/testdata/naming/Nested7Foo.gwt.xml A dev/core/test/com/google/gwt/dev/cfg/testdata/naming/NestedInvalid.gwt.xml A dev/core/test/com/google/gwt/dev/cfg/testdata/naming/client/Mock.java M dev/core/test/com/google/gwt/dev/util/UnitTestTreeLogger.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10413 committed - Adding explicit casts to the return value of certain methods to help t...
Revision: 10413 Author: jlaba...@google.com Date: Wed Jun 29 05:16:14 2011 Log: Adding explicit casts to the return value of certain methods to help the javac compiler. Some compilers require the explicit cast. Review at http://gwt-code-reviews.appspot.com/1463810 Review by: robertvaw...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10413 Modified: /trunk/user/src/com/google/gwt/dom/builder/client/DomElementBuilderBase.java /trunk/user/src/com/google/gwt/dom/builder/shared/HtmlElementBuilderBase.java === --- /trunk/user/src/com/google/gwt/dom/builder/client/DomElementBuilderBase.java Tue Jun 28 15:49:07 2011 +++ /trunk/user/src/com/google/gwt/dom/builder/client/DomElementBuilderBase.java Wed Jun 29 05:16:14 2011 @@ -82,6 +82,7 @@ @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B end() { +// An explicit cast is required to satisfy some javac compilers. return (B) delegate.end(); } @@ -91,19 +92,22 @@ return (B) delegate.end(tagName); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endDiv() { -return end(div); +return (B) end(div); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endOption() { -return end(option); +return (B) end(option); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endSelect() { -return end(select); +return (B) end(select); } @Override @@ -178,7 +182,11 @@ * @return the element on which the attribute can be set */ protected E assertCanAddAttribute() { -return delegate.assertCanAddAttribute().cast(); +/* + * An explicit parameterized return type on cast() is required by some javac + * compilers. + */ +return delegate.assertCanAddAttribute().E cast(); } /** === --- /trunk/user/src/com/google/gwt/dom/builder/shared/HtmlElementBuilderBase.java Tue Jun 28 15:49:07 2011 +++ /trunk/user/src/com/google/gwt/dom/builder/shared/HtmlElementBuilderBase.java Wed Jun 29 05:16:14 2011 @@ -84,6 +84,7 @@ @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B end() { +// An explicit cast is required to satisfy some javac compilers. return (B) delegate.end(); } @@ -93,19 +94,22 @@ return (B) delegate.end(tagName); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endDiv() { -return end(div); +return (B) end(div); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endOption() { -return end(option); +return (B) end(option); } + @SuppressWarnings(unchecked) @Override public B extends ElementBuilderBase? B endSelect() { -return end(select); +return (B) end(select); } @Override -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updates the module name validation check for using CompileModule on a project. (issue1467810)
http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java File dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java (right): http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java#newcode80 dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java:80: public static boolean isValidModuleName(String moduleName) { Will this cause previously building modules to now have errors? http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java#newcode87 dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java:87: for (int i = 0; i parts.length - 1; i++) { Should we issues a warning about a bad identifier on the last part of the module name? Maybe enforce it in the future? Or not? http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java File dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java (left): http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java#oldcode310 dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java:310: throws UnableToCompleteException { so, this validation is needed only on nested modules, but not top-level ones? http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java File dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java (right): http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java#newcode66 dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java:66: com.google.gwt.dev.cfg.testdata.naming.NestedInvalid, false); Maybe add a comment here, since this identifier looks ok, but the error is that this module inherits from a malformed module identifier (was confusing to me at first). http://gwt-code-reviews.appspot.com/1467810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10414 committed - Fix ArrayStoreException in assignments to an element of an array of a ...
Revision: 10414 Author: gwt.mirror...@gmail.com Date: Wed Jun 29 11:56:33 2011 Log: Fix ArrayStoreException in assignments to an element of an array of a single jso interface type. Addresses issue 6448 Review at http://gwt-code-reviews.appspot.com/1470801 http://code.google.com/p/google-web-toolkit/source/detail?r=10414 Modified: /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/ArrayNormalizer.java /trunk/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java /trunk/user/test/com/google/gwt/dev/jjs/test/SingleJsoImplTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/ArrayNormalizer.java Tue May 17 07:35:44 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/ArrayNormalizer.java Wed Jun 29 07:02:56 2011 @@ -104,7 +104,21 @@ if (elementType instanceof JReferenceType) { JReferenceType elementRefType = (JReferenceType) elementType; elementType = elementRefType.getUnderlyingType(); +if (program.typeOracle.isEffectivelyJavaScriptObject(elementRefType)) { + /* + * treat types that are effectively JSO's as JSO's, for the purpose of + * castability checking + */ + elementRefType = program.getJavaScriptObject(); +} elementQueryId = program.getQueryId(elementRefType); +if (program.typeOracle.isDualJsoInterface(elementRefType)) { + /* + * invert the queryId, to indicate dual castability for JSO's and the + * Java type represented by the inverse of the queryId + */ + elementQueryId *= -1; +} } return new JsQueryType(sourceInfo, elementType, elementQueryId); } === --- /trunk/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java Tue May 24 14:39:31 2011 +++ /trunk/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java Wed Jun 29 07:02:56 2011 @@ -180,15 +180,47 @@ } /** - * Performs an array assignment, checking for valid index and type. + * Performs an array assignment, after validating the type of the value being + * stored. The form of the type check depends on the value of queryId, as + * follows: + * p + * If the queryId is 0, this indicates a normal cast check should be + * performed, using the queryId as the cast destination type. + * JavaScriptObjects cannot be stored in this case. + * p + * If the queryId == 0, this is the cast target for the Object type, in which + * case all types can be stored, including JavaScriptObject. + * p + * If the queryId == -1, this indicates that only JavaScriptObjects can be + * stored (-1 is the cast target for JavaScriptObject, by convention). + * p + * If the queryId is -1, this indicates that both JavaScriptObjects, and + * Java types can be stored. In the case of Java types, the inverse of the + * queryId is used for castability testing. This case is provided to support + * arrays declared with an interface type, which has dual implementations + * (i.e. interface types which have both Java and JavaScriptObject + * implementations). + * p + * Note, by convention, a queryId of 1 is reserved for String, which is a + * final class, and can't implement an interface, and thus, it's inverse, -1, + * can safely be interpreted as a special case, as stated above. + * p + * Attempting to store an object that cannot satisfy the castability check + * throws an {@link ArrayStoreException}. */ public static Object setCheck(Array array, int index, Object value) { if (value != null) { if (array.queryId 0 !Cast.canCastUnsafe(value, array.queryId)) { +// value must be castable to queryId throw new ArrayStoreException(); - } - if (array.queryId 0 Cast.isJavaObject(value)) { + } else if (array.queryId == -1 Cast.isJavaObject(value)) { +// value must be a JavaScriptObject throw new ArrayStoreException(); + } else if (array.queryId -1 !Cast.isJavaScriptObject(value) + !Cast.canCastUnsafe(value, -array.queryId)) { +// value must be a JavaScriptObject, or else castable to the inverse of +// queryId +throw new ArrayStoreException(); } } return set(array, index, value); @@ -283,9 +315,10 @@ protected Class? arrayClass = null; /** - * The necessary cast target for objects stored into this array. Attempting to - * store an object that cannot satisfy the query id throws and - * {@link ArrayStoreException}. + * A representation of the necessary cast target for objects stored into this + * array. + * + * @see #setCheck */ protected int queryId = 0; } === --- /trunk/user/test/com/google/gwt/dev/jjs/test/SingleJsoImplTest.java Tue Jun
[gwt-contrib] Re: Updates the module name validation check for using CompileModule on a project. (issue1467810)
http://gwt-code-reviews.appspot.com/1467810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updates the module name validation check for using CompileModule on a project. (issue1467810)
http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java File dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java (right): http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java#newcode80 dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java:80: public static boolean isValidModuleName(String moduleName) { On 2011/06/29 18:56:00, jbrosenberg wrote: Will this cause previously building modules to now have errors? It was a part of the original top level module check, I'm just expressing it in a different way to make sure we catch .. on the end of the string. It's an odd enough case that I don't think it will cause a problem. http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java#newcode87 dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java:87: for (int i = 0; i parts.length - 1; i++) { On 2011/06/29 18:56:00, jbrosenberg wrote: Should we issues a warning about a bad identifier on the last part of the module name? Maybe enforce it in the future? Or not? There is a prudent reason to make the package java idents - they correspond to Java package names. But the last part of the module name doesn't have a Java analog. Since we didn't enforce it before, and there is no functional reason to require it to be a Java identifier, I'm not sure its worth the disruption. http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java File dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java (left): http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java#oldcode310 dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java:310: throws UnableToCompleteException { On 2011/06/29 18:56:00, jbrosenberg wrote: so, this validation is needed only on nested modules, but not top-level ones? The top level module gets fed into nestedLoad() (that's why the Invalid..Foo.gwt.xml throws an exception. http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java File dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java (right): http://gwt-code-reviews.appspot.com/1467810/diff/1/dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java#newcode66 dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java:66: com.google.gwt.dev.cfg.testdata.naming.NestedInvalid, false); On 2011/06/29 18:56:00, jbrosenberg wrote: Maybe add a comment here, since this identifier looks ok, but the error is that this module inherits from a malformed module identifier (was confusing to me at first). Done. http://gwt-code-reviews.appspot.com/1467810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updates the module name validation check for using CompileModule on a project. (issue1467810)
lgtm http://gwt-code-reviews.appspot.com/1467810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding explicit casts to the return value of certain methods to help the javac compiler. Some c... (issue1463810)
committed as r10413 I don't have the version readily available, but I'll take a look in the build logs. On 2011/06/29 15:32:51, robertvawter wrote: LGTM It's helpful to add the output from javac -version if it's available so future code maintainers can know whether or not new code performing the same function would need to add the extra casts. -- Bob Vawter Google Web Toolkit Team http://gwt-code-reviews.appspot.com/1463810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix bug in UnifyAst where non-null array types failed to canonicalize. (issue1469802)
Reviewers: jbrosenberg, Please review this at http://gwt-code-reviews.appspot.com/1469802/ Affected files: M dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java Index: dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java b/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java index f1a4246b0258268125fe40c8ed522a6e9d753da8..65c896ba90083752f6e960bfc6bfd74f3d38eb6a 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java +++ b/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java @@ -1070,19 +1070,24 @@ public class UnifyAst { } private JReferenceType translate(JReferenceType type) { +if (type instanceof JNonNullType) { + return translate(type.getUnderlyingType()).getNonNull(); +} + if (type instanceof JArrayType) { JArrayType arrayType = (JArrayType) type; - type = program.getTypeArray(translate(arrayType.getElementType())); -} else if (type.isExternal()) { + return program.getTypeArray(translate(arrayType.getElementType())); +} + +if (type.isExternal()) { if (type instanceof JDeclaredType) { type = translate((JDeclaredType) type); - } else if (type instanceof JNonNullType) { -type = translate(type.getUnderlyingType()).getNonNull(); } else { assert false : Unknown external type; } + assert !type.isExternal(); } -assert !type.isExternal(); + return type; } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix bug in UnifyAst where non-null array types failed to canonicalize. (issue1469802)
LGTM http://gwt-code-reviews.appspot.com/1469802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: This patch substantially reduces the overhead of Java types in the output by minimizing vtable s... (issue1447821)
http://gwt-code-reviews.appspot.com/1447821/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: This patch substantially reduces the overhead of Java types in the output by minimizing vtable s... (issue1447821)
http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java File dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java (right): http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#newcode312 dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java:312: // prune all Object.getClass() overrides and replace with inline field ref On 2011/06/10 14:54:40, jbrosenberg wrote: It's a shame this can't be called earlier on, so that optimizers can take advantage of the loss of polymorphism with getClass()... The Replace pass essentially does what the optimizers would do anyway, which is inline the reference, but yeah, it would be nice. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java File dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java (right): http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode937 dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:937: } On 2011/06/10 14:54:40, jbrosenberg wrote: whitespace Done. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java File dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java (right): http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java#newcode246 dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java:246: assert jsprogram.getFragmentCount() == 1; On 2011/06/13 19:35:25, jbrosenberg wrote: extra indentation, here and several places below in this method Done. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java#newcode261 dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java:261: stat = result; On 2011/06/13 19:35:25, jbrosenberg wrote: this assignment is redundant, we have the same assignment below under the if (keepIt) block below. Done. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java#newcode345 dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java:345: */ On 2011/06/13 19:35:25, jbrosenberg wrote: It looks like all this does is maybe remove some ctors (and if any ctors remain, set a flag). Would a better name be maybeRemoveCtorsFromDefineSeedStmt()? Done. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java#newcode357 dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java:357: JConstructor ctor = (JConstructor) maybeCtor; On 2011/06/13 19:35:25, jbrosenberg wrote: how can ctor be null here? Done. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java#newcode504 dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java:504: JsNameRef lhs = (JsNameRef) binExpr.getArg1(); Not sure actually, I think this change came originally from scott a long time ago who had merged something into my patch. On 2011/06/13 19:35:25, jbrosenberg wrote: Is there a reason for the change in the way of testing that we are using the _ tempVar. E.g. why no longer do: if (!lhs.getName().getShortIdent().equals(_)) Is it just for brevity? Or is there a requirement that the underBar be existing at this point (and is this a new requirement?). http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java (left): http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java#oldcode1255 dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:1255: On 2011/06/13 19:35:25, jbrosenberg wrote: why get rid of this comment? Done. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java (right): http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java#newcode610 dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:610: On 2011/06/13 19:35:25, jbrosenberg wrote: white space Done. http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java#newcode724 dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:724: Yes, because immortal types are hoisted to the top, and have no clinits called. If not for the early exit, the rest of the method would add a clinit call for to setup fields what have JSO