Re: Tell the GWT compile to not compile a certain method?
hi, i dont want to talk if the anemic is good or evil ;) anyway, your domain classes without any transformation logic should reside in the shared package, to be available to client and server. Then I would take this approach: you define interface to access the domain classes and put them in shared package, too. Then implement two different implementations, one for server (and put them into server package) and one for the client (put the implementation into client package). Since the implementations may overlap it makes sense to create a common class and put it into shared package too and derive specific client/server implementation from it in the GWT client code, you can now use that client specific implementation or make use of GWTs deferred binding. On 22 Feb., 10:08, hbf kaspar.fisc...@dreizak.com wrote: Dear everybody, I am often facing the problem that I need to duplicate my domain classes in order to use them on the client-side, essentially stripping out code that cannot be run on the client-side. In the end I have two classes (or even hierarchies) to maintain and my client-side code is rather anemic [1]. I some special cases it would be sufficient for me to just tell the GWT compiler don't compile these particular methods (as I won't be using them on the client-side). Is there a way to achieve this? (I know that I can control what the compiler includes an per-source code file level using source path=) Are there any general approaches to avoid having two class hierarchies/ an anemic client-side? Thanks, Kaspar [1]http://en.wikipedia.org/wiki/Anemic_Domain_Model -- 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: Tell the GWT compile to not compile a certain method?
...indeed its a good workaround to solve some issues, but there could be many nontransparent side-effects in web/dev mode etc and in serialization, furthermore it yields maintainance of many versions of same code. imho its better to respect the tiers in the software architecture On 22 Feb., 13:00, Thomas Broyer t.bro...@gmail.com wrote: If you're going to maintain 2 versions, then I'd rather put the GWT-specific one in the super-source path, so that GWT will use it while the server will use the other one; they both have the same name and package so your code that uses them is portable. (if you don't know what super-source is, it's what GWT uses to emulate classes from the Java Runtime, and you can take advantage of it too; seehttp://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec... ) -- 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] Linker in Dev Mode
hello, I have written a linker which shall post-process resources generated by a generator due to rebind-with rule. It works well during compilation process. But in dev mode I cannot get it running, i have hooked into relink() method which is documented to be called in dev mode and I also have overriden the supportsDevMode() returning true, but still no success, GWT logs me when my special classes are being rebound but no linker starts after it, what do I miss? thank you -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Getting absolute path of web app
you obtain it from your servlet context: i.e. getServletContext().getRealPath(/WEB-INF) from within your servlet On 21 Feb., 11:30, Jon Britton mankillseveryth...@googlemail.com wrote: Hi, When I was running on Windows, the ./ directory would be tomcat_home/webapps/my_app but now I'm running on ubuntu it just refers to my tomcat home directory. Is there a way of getting the absolute path of my web app so I can make it a bit more platform independant? Thanks, Jon -- 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: Getting absolute path of web app
*sry for doublepost* i.e. servletContext().getRealPath(/); from within your servlet On 21 Feb., 11:30, Jon Britton mankillseveryth...@googlemail.com wrote: Hi, When I was running on Windows, the ./ directory would be tomcat_home/webapps/my_app but now I'm running on ubuntu it just refers to my tomcat home directory. Is there a way of getting the absolute path of my web app so I can make it a bit more platform independant? Thanks, Jon -- 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: exception translation
GWT needs to wrap any exception to make it serializable and prevent the server from answering a 500 http status code. that is, GWT moves exception handling from HTTP layer to each own and the exception is handled on the client, which first tries to parse the exception and rethrows it, thats how RPC handles it. however, you can give your implementation of RemoteServiceServlet and handle, maybe some special exceptions, your way, and even return them to the client if you want without having RPC stack to handle them On 21 Feb., 12:37, klemensr klem...@reinthaler.info wrote: With concurrency I mean something like this:http://en.wikipedia.org/wiki/Optimistic_concurrency_control I am not setting the error code by myself. The thing is that GWT is shomewhere translating the original exception created through hibernate (concurrency detected) to the excetion postet above. In this step the error code is set automatically. Because of the fact that the ServletException is an unchecked exception GWT has to make a translation to a standard exception (in this case InvocationException/StatusCodeException). So I think I should modify this translation machanism - but does anybody know how to do this? Is there any better way of doing that? I really appreciate your help! On 17 Feb., 18:15, Thomas Broyer t.bro...@gmail.com wrote: I'm not sure what you mean by concurrency here, but how about returning a 409 (Conflict) status code instead of 500? http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10 500 means internal server error, i.e. something the client cannot do anything about. -- 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: replacement for String.format in GWT?
unfortunately, there is no formatter, I'd also would be happy if there was one. but you can make a helper function which formats numbers with padding zeros: String fn(int num, int pads) { if(num=10)return Integer.toString(num); char[] z; for(z= new char[pads], int i=0; iz.length; i++) z[i]='0'; return + new String(z) + Integer.toString(num); } and then: { String str = +fn(0,4)+ +fn(9,1) + + fn(12); //would result i n 09 12 } ok, its ugly, but does the job On 16 Feb., 05:43, Magnus alpineblas...@googlemail.com wrote: Hi, I have to explain my real problem with DateFormat: I need to represent a time span (the time elapsed during a chess move), not a real date, e. g.: -01-02 03:04:05 means: 0 years, 1 month, 2 days, 3 hours, 4 minutes and 5 seconds. Such a span is computed by subtracting a date from another date and stored as a date: Date d1,d2; .. long t1 = d1.getTime (); long t2 = d2.getTime (); long t = t2 - t1; Date d = new Date (t); I cannot format d it with DateFormat, since it is interpreted as an offset to 1970. If I could supress this interpretation, I would be glad. As a workaround, I extracted the date elements as integers and tried to format them with String.format. Magnus -- 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: Server logging on the client side?
yes, gwt 2.1 introduced JUL support, so you can either use the built- in java logging api or a 3rd party library like gwt-log, more doc to find at http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuide.html On 16 Feb., 11:12, Jon Britton mankillseveryth...@googlemail.com wrote: Hi, Is there any way to display server-side logs on the client side? Cheers, Jon -- 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: Server logging on the client side?
no this kind of feature is not available. but its pretty low effort to achieve this ( you have to write your own JUL appender to queue the logrecords in the server and aonther logger on the client which periodically pulls logrecords from the server via i.e. RPC mechanism) On 16 Feb., 14:50, Jon Britton mankillseveryth...@googlemail.com wrote: I am aware of the logging capabilities and have some client-side logging already (using Java logging). Unfortunately, the docs don't mention whether logging from the server side can be shown on the client side. Cheers, Jon On Feb 16, 11:51 am, ep eplisc...@googlemail.com wrote: yes, gwt 2.1 introduced JUL support, so you can either use the built- in java logging api or a 3rd party library like gwt-log, more doc to find athttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuide.html On 16 Feb., 11:12, Jon Britton mankillseveryth...@googlemail.com wrote: Hi, Is there any way to display server-side logs on the client side? Cheers, Jon -- 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 installing GWT 2.2 in eclipse 3.6
for sure they are! but probably due to this GWT 2.2 update they obviously dont have time to answer, seems like this recent update has broken a lot of things... so please be patient On 14 Feb., 13:19, alexoffspring alessales...@gmail.com wrote: I got the same error this morning. and i already wrote a post for this in the forum, but seems that nobody from google is interested in answering this point! On 14 Feb, 11:12, Andrew Scully andrewscu...@gmail.com wrote: Using the Add new software funtion in eclipse 3.6.0 (Build id: I20100608-0911), I attempted to install GWT 2.2 fromhttp://dl.google.com/eclipse/plugin/3.6 This operation failed, however, with the below errors. I have numerous previous versions of GWT installed, including the various milestones and RCs of 2.1. Is anyone else getting issues like this? If not, it could be a result of our corporate firewall. An error occurred while collecting items to be installed session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Artifact not found: osgi.bundle,com.google.gdt.eclipse.core, 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gwt.eclipse.core, 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips... Artifact not found: osgi.bundle,com.google.appengine.eclipse.sdkbundle. 1.4.2,1.4.2.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer, 2.2.0.r36x201102111505.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted. 1_6,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted. 2_0,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted. 2_0.webkit_win32,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips... Artifact not found: osgi.bundle,com.google.gwt.eclipse.sdkbundle. 2.2.0,2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips... Artifact not found: osgi.bundle,org.eclipse.wb.core, 0.9.0.r36x201102111430.http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core_0... Artifact not found: osgi.bundle,org.eclipse.wb.core.lib, 0.9.0.r36x201102111430.http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core.l... -- 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: To smart GWT or not
GWT is not designed to be a UI Framework, rather its a base for everything else. And this is good so. We're using ExtGWT as a UI Framework, we kicked SmartGWT because of their JS wraps (not a native GWT implementation) On 10 Feb., 11:11, jaga j.annes...@gmail.com wrote: One problem with GWT is it's lack of styling. The default style is un- styled and doesn't work for our application. SmartGWT on the other- hand provides an attractive uniform styling. The blocker for me is that now you are using another 3rd party library: you have to learn its ways, integrate with your existing framework, and deal with its bugs and idiosyncrasies. On Feb 10, 7:30 am, Nagin Kothari naginkoth...@gmail.com wrote: Sanjiv, I know I am reopening this thread, not to criticise Smart GWT, but want to give some feedback. First of all let me acknowledge that it is very good library with lot of cool and fantastic features. I experimented with it and liked it and planning to use it in one of my project.But I have some doubts and questions , which you I thought you will be best person to answer . Hence this mail. 1. I am using GWT and want to use some Smart GWT widgets in that application.But it looks like I have to include lot of Smart client JS file which size is about 2MB. Client need to download all these JS libs above our GWT compiled script. this become very huge download for client, Even I want to use Smart GWT's grid , I realized that I have to include almost everything except few small smart-client JS.So my question is why is so and what is work around for it? 2.Second, smart-client scripts are not in compressed format (like GWT is). it is like GWT pretty format. If it is compressed then size of all script files will be reduced. 3. My third question is - Why smart GWT is not written in GWT so that it can take advantage of GWT's optimised java script compiler.Smart GWT widget the can be extended by user to customize it. Right now Smart GWT widgets are just black box for developer. Theses are few question I had in mind., Over all features provided by smart GWT are great. Thank and regards, Nagin Kothari On Fri, Dec 3, 2010 at 9:24 PM, Sanjiv Jivan sanjiv.ji...@gmail.com wrote: Jaroslav, If you're happy with GWT that’s great but please do not make such vague and baseless claims about Smart GWT. Legitimate bugs reported are fixed really quickly and existing users can attest to this. Smart GWT currently has around 42 open defects with a majority of them being low priority, and 16 enhancement requests (http://code.google.com/p/smartgwt/issues/list). Considering the depth and breadth of features provided by the framework this is a pretty low number of defects. 3 of the 7 issues that you filed were invalid, and 2 defects that were fixed and the remaining 2 were marked WontFix since they were trivial pieces of functionality that the user could easily implement. http://code.google.com/p/smartgwt/issues/list?can=1q=reporter:jarosl... http://code.google.com/p/smartgwt/issues/list?can=1q=reporter:jarosl...And when you were advised how to implement a warning dialog before record deletion on this issue that you filed ( http://code.google.com/p/smartgwt/issues/detail?id=325), you responded by you are sad. Nice way to show your appreciation when using a free product. Sanjiv 2010/12/3 Jaroslav Záruba jaroslav.zar...@gmail.com ...until you run into some SmartGWT magic - like widgets not working without otherwise completely useless 'final' (have fun trying figure that out), newly spanned records not appearing in tree, styles not getting applied until mouseover, etc. What looks like polished set of awesome widgets might turn into nightmare which makes you throwing your deadlines out of the window. (Like I said before, this particular experience with SmartGWT is one year old.) With GWT the start might be slower but you can predict the deadlines + you're not working with 'black box'. On 3 pro, 00:00, ckendrick charles.kendr...@gmail.com wrote: Sorry that's quite absurd: SmartGWT is often introduced to solve performance problems, and it solves them. SmartGWT is intentionally designed to have a one-time-ever download of a feature rich runtime in exchange for reducing subsequent server requests. For example, Adaptive Filtering greatly reduces the costliest types of database hits: http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_fe... .. and allows you to introduce an extremely powerful data highlighting system with no server load at all: http://blog.isomorphic.com/?p=234 If your application is the kind we target - complex enterprise applications which are used repeatedly and for significant lengths of time - this provides a gigantic performance boost, and once-ever download of
[gwt-contrib] Re: Announcing GPE/GWT 2.2 RC1
in addition, in most cases it doesnt matter what java version to use for GWT code, if your environment still allows java1.4 and you want to integrate latest GWT into your project, it will do perfectly if you keep GWT out of serverside as GWT does not dictate to use RPC communications, or the recent RequestFactory and for any distributed applications nowadays, one anyway would prefer to use the most common interchange format... just imagine one server (GAE at best) serving many different clients, like android, iPhone, or GWT ... :o) ok, but thats another story... On 8 Feb., 08:47, stuckagain david.no...@gmail.com wrote: What features in Java 6 would be so fundamental to GWT that 1.5 becomes deprecated ? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Generator on server classes
thumb of rules for generator: 1) only possible when using deferred binding ( i.e.: Foo foo = GWT.create(Foo.class) ) 2) your generator runs in pure VM so you're free to do whatever you want BUT the code you generate has to be translateable to JS, while generating you can also create additional resources, which might be java code intended to be run on the server you can of course rebind classes which are also used for server, as long as you handle them as shared classes, so their base must be translatable to JS and also has to be on the source path (client or shared package, or customized in your .gwt.xml) On 8 Feb., 14:22, jeffma...@jeffmaury.com jeffma...@gmail.com wrote: Hello, I am quite new to the Generator concept. I am wondering if it is possible for the Generator to be invoked on a server only class ? The idea is to develop a Generator that will generate client classes derived from server classes ? Thanks Jeff MAURY -- 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.
i18n default locale fallback
in 2.1.0 I have the problem that I define my locales like so: extend-property name=locale values=en,de/ set-property-fallback name=locale value=en/ so actually the 'default' locale is excluded and can never happen that would be used. I dont provide any key for the default locale, neither in my Constants nor in appropriate .properties file. In dev mode it works like expected but I cannot compile, because the generator says that no resource was found for the key, as it tries to generate a class for the default locale and expects either @DefaultText or default properties file. Has someone a workaround? Maybe a patch? issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5769 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n default locale fallback
ok, got a workaound, see issue. On 16 Dez., 11:22, ep eplisc...@googlemail.com wrote: in 2.1.0 I have the problem that I define my locales like so: extend-property name=locale values=en,de/ set-property-fallback name=locale value=en/ so actually the 'default' locale is excluded and can never happen that would be used. I dont provide any key for the default locale, neither in my Constants nor in appropriate .properties file. In dev mode it works like expected but I cannot compile, because the generator says that no resource was found for the key, as it tries to generate a class for the default locale and expects either @DefaultText or default properties file. Has someone a workaround? Maybe a patch? issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=5769 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ClassT is not serializable ?
you dont need to, just put a fullyqualified classname on the wire and forName() it in the VM. you may also think about providing your custom field serializer for the class, but actually would be nonsense since you anyway cannot use it reasonably on the client On 14 Dez., 12:20, yves yves.ko...@gmail.com wrote: @Didier Of course MyType implements Serializable . It is just a typo in the example. Sorry. @Paul I didn't realized that Class is not GWT-serializable. Thanks for your remark. I lost pretty much time to find out why I get an exception during an RPC call It would have been nice if ClassT was serializable. I would have used it to select an appropriate handler at server-side. Anyway I use instead the canonical class name to map the handler, but the code is little bit more uggly :-) I noticed also the a call to class.hashCode() does not give the same value in the (gwt-compiled)-client and in the (JVM running)-server. In my attempts to workaround the unserializability of Class, I tried to use the hashCode() value, unsuccessfully... Regards Yves On 14 déc, 10:42, Paul Robinson ukcue...@gmail.com wrote: Class is not gwt-serializable. MyType has a non-final, non-transient field of type Class Therefore MyType is not serializable On 14/12/10 09:33, Didier Durand wrote: Hi, Serializable is an interface not a class. That's why it's not the list you mention. An interface has nothing to be serialized per se. You should let us know about your class MyType in order to better help. regards didier On Dec 14, 9:21 am, Paul Robinsonukcue...@gmail.com wrote: If you look at the Class.java that GWT uses to emulate the JVM's Class, you'll see that it does not implement Serializable. On 13/12/10 22:19, yves wrote: Hi, I have a class defined in a way similar to this: class MyTypeT extends MyGen extends Serializable { private ClassT aClass; public MyType() {} public void setClass(ClassT aClass) { this.aClass = aClass; } } where MyGen is also Serializable When I compile de project (I'am currently still using GWT 2.1.0 RC1), then I find the following : 1) the compiler (using the compiler options -extra, -work and -gen) does not generate the code MyType_FieldSerializer.java as it does for all other serializable classes. 2) In the extra / rpclog dir, the class MyType is flagged like this: Serialization status Not serializable 3) And when I run my app, I get an InvocationException : the client is unable to make an RPC call with a parameter of type MyType. Is it a bug in the compiler, or did I missed something about ClassT serializability ? Thanks for your help Yves -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Communicating between parent (non-GWT) window and GWT App
hi, everything's possible ;) there is no problem about that, you've just to keep in mind that you're not going to talk against the API you've coded in java. for those purposes you have ability of writing JSNI methods to communicate with JS world directly. If you want to call your GWT code from the JS world you can export your methods written in GWT, like so: //this method you want to call from your parent JS code... public void myGwtMethod() {...} //then you can export it to JS namespace public native void export_myGwtMethod() /*-{ $wnd._myGwtMethod = function() { return th...@youfullqualifiedclass::myGwtMethod(); } }-*/; and later you can just call it from your parent window: [gwtWindow]._myGwtMethod()(); btw: there is a GWT library which make exposing GWT api to js namespace easily, take a look at http://code.google.com/p/gwt-exporter/ On 1 Dez., 19:33, Ben ben.falc...@gmail.com wrote: Hi -- Anyone ever launched a GWT app from a regular HTML page (into a new browser window - e.g., window.open('welcomeGWT.html') ), then communicated with that same new window later from the launching parent window javascript? How would I send the GWT app page a message (e.g., to tell it to display something new)?.. and how would I implement a callback on the GWT side to act on the message, if this is truly possible? Thanks for URL's or any info.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to load data BEFORE showing view/presenter?
depends on the MVP framework you use - gwtp for instance, already supports it, if GWT MVP does not, then you can subclass presenter, call it IndicatingPresenter and add one more lifecycle state, because the presenter will be lazy loaded and shows a loading indicator until its data is not available... when ready re-render the view with data loaded. On 1 Dez., 19:01, Matt H matt2...@gmail.com wrote: Anyone? Surely it's simple enough to do? On Dec 1, 1:27 am, Matt H matt2...@gmail.com wrote: Hi. If you poke around some of Google's GWT apps, you'll find that when you click on anything which requires more data to be loaded, that a 'loading' sign is displayed at the top of the screen, and while loading, it stays on the current view, and then when the data for the next view has been downloaded, the loading sign is removed and the new view is shown. How can I implement this behavior? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do you use Custom Widgets (Composites) multiple times?
thats because the GWT Widget actually wraps a DOM Element, which is used to render to the browser. Consider simple plain HTML, where you want to render exactly same infoBox (let it be a divHello world/ div) twice, at the top and at the bottom of the page, you're really going to have two different instances of Elements (Nodes), you cannot attach the same Element twice to the DOM. Though, you can use the same instance if you dont want to render it simultaneously, you can just move that Element in the DOM hierarchy to make it appear once at top, next time at the bottom... that's why you allways will have to create a new instance of a composite for each visual rendering. another approach is not to wrap the DOM Element, but instead to offer an API to render the contents into, the way like ExtGWT works, then you may have only one instance of a Widget i.e. holding complex data, and when rendering you just provide that Widget two different instances of DOM Elements that Widget will use to render its contents into. treat your Widget as graphical only, so for rendering and keep your data model outside, then there is no problem with multiple widget creation, consider reading MVP topic On 27 Nov., 21:09, Paul daemo...@gmail.com wrote: I have added the new for each instance. I do not understand why I can not add a composite multiple times. Does anyone know of a way to mimic this behavior if this is not directly possible. If I need to have 50 identical things on the page, having to create 50 manually is ridiculous, I should be able to create one that I can use multiple times. On Nov 23, 10:43 am, ep eplisc...@googlemail.com wrote: what jhulford meant is that you really have to make a new on every widget class you add to any place. On 22 Nov., 06:00, Paul daemo...@gmail.com wrote: Sorry if this is somewhere else and I missed it, but I have aCustom Widget that I need to be able to addmultipletimesto anothercustom widget I am creating. I do not seem to understand something about this process and so I get the following errors: Different parents for double associations The other component is added to a parent component more than once. So basically, the first one gets nuked and only the second one shows up. What am I missing? Can someone please assist me in understanding what is wrong. Thank you so much in advance. Below is the code: public class FirstClass extends Composite { public FirstClass() { Image image = new Image(img/picture.png); AbsolutePanel element = new AbsolutePanel(); element.add(image, 0, 0); initWidget(element); } } public class SecondClass extends Composite { public SecondClass() { HorizontalPanel element = new HorizontalPanel(); VerticalPanel elementA = new VerticalPanel(); element.add(elementA); VerticalPanel elementB = new VerticalPanel(); element.add(elementB); elementA.add(new FirstClass()); elementB.add(new FirstClass()); initWidget(element); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Simple question about GWT.create() signature
Thomas, in fact it would be really nice if GWT.create() would not require literals, we wanted to use a template method throughout our framework to allow to declare the classes to instantiate, maybe you can provide the issue number so we can vote for it :-) But after a month I discovered that the compiler does not like it at all (it complains that GWT.create must be called only using class literals... could be nice if it could find that MY helper is called with only using literals... It's been requested several types in the past (including by people that now work at Google on GWT) but I guess it's either low priority or it would require too much re-work of the compiler's internals. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Place image in object, send object over rpc, use hibernate to update database
just wondering how u want to get image's raw data (binary) on the client...actually not possible before html5, you have to upload the image via browser form (and all the remnant data maybe as well to not work with separate transactions)... take a look at gwtupload On 29 Nov., 08:20, Noor baken...@gmail.com wrote: Thus,the object will contain an image -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Client File IO
as didier already mentioned you'll dont have to care about stuff not under governance of SoP, actually, the only work your rpc servlet will have to do is to rewrite the URLs, here you can develop a logic based on SoP: i.e. an iframe may reference foreign sites, img as well, script, too, etc. define the elements which are not under SoPolicy and you dont need to rewrite their urls. on the other hand, you way rewrite everything (except for absolute urls pointing to foreign hosts) and your additional servlet will just make a pass-through. but then you have to keep the state of base url, either in cookie or at the server, to track the original site. On 28 Nov., 21:50, khalid khalid@gmail.com wrote: Hello every one I am working on a web-based proxy using GWT (similar to php proxy) anyway , the idea is quite simple Get the URL from the user , make the server fetch it , change the HTML and send it back to the client Now I have encountered a problem which is how to send the images back to the client? I have thought of two possible ways: 1-Store them in the server and change their src to MyURL/img.xxx 2-Send them back to the client The first option will over load the server (I think?!) The second option is not possible because as far as I know it is not possible to do File IO in the client side , or is it? I need your help Thank you very much ps: I think I will get a similar problem with flash , (e.g. flash videos in youtube) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: onChange event fired twice
do you also add the current changehandler to the recently created listbox? I mean, while you add the new listbox to the container, this op fires the second change event, looks like you're nesting your listboxes, so any change on the child box will propagate to the parent resulting in second handler call... you can use the eclipse' debugger to track why the onChange() is called the second time (in dev mode) On 28 Nov., 15:08, Leung leung1_2...@yahoo.com wrote: Hi, I have a private inner class that implements ChangeHandler. This ChangeHander is applied to the listbox. Each click on the listbox will create another listbox and added to the container. The onChange event is fired twice for one click on the list box. Let say, I have 2 list box already added to the container. I expect only one onChange is triggered when I click the last listbox. But, now, twice is fired. How does that happen? How can I troubleshoot this problem? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What is 'final' keyword for?
I guess he got confused on variable name, as actually a final pageSizeChanged promotes that cannot get changed and therefore the latter check is needless if (pageSizeChanged) { pageSize = length; } I've had to look at it twice as well ;) On 29 Nov., 15:37, Paul Grenyer paul.gren...@gmail.com wrote: Hi On Mon, Nov 29, 2010 at 2:34 PM, ailinykh ailin...@gmail.com wrote: Hello, everybody! In HasDataPresenter.java I see code like this: // Update the page size. final boolean pageSizeChanged = (pageSize != length); if (pageSizeChanged) { pageSize = length; } and later if(pageSizeChanged) doSomething(); What a reason to use 'final' keyword here? Dos it help to produce better java script? No. It's a clear intent that pageSizeChanged should not be changed after it is set. If someone does change it the compiler will tell you. Final is very important in Java. Look it up! -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWTTest case mapping URI to file for testing
have you registered a servlet in your GWT module? servlet class=yourServletClass path=/test.json/ On 29 Nov., 14:54, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: Hi folks, I want to write a GWTTestcase that fetches a file from the server. My setup is maven + headless htmlunit for integration testing (target integration-test). Say I got a json file (named test.json I want to read from the server in directory root. Where do I have to put my json file in my test setup so that a GET at /test.json returns that file? I always get a Error 404 NOT_FOUND from my jetty in the testcase. Thanks, Raphael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using web.xml to automatically redirect to error page on any error
hi, u think the right way :-) how did you define your RemoteService methods? have you defined them to throw exceptions? GWT RPC works the way that it tries to forward (serialize) caught exception to the client, if it is able to. that means, that if you throw a NPE from your service implementation, you dont get 500 code from the server, rather it would be http 200 (ok) and the exception is serialized and streamed to the client, where RPC stack detects that this is an exception and propagates to the onFailure() callback of the Async implementation. So the servlet container never guess there went something wrong. On the other hand - I would not advise to break it, you dont need your custom error handling for RPC, since you never call them manually (i.e. by link) but rather over RPC, so a common error.jsp showing up some warning information to the user would never do its job here, since a user would never see that page. On 25 Nov., 06:30, Yaakov yaakov.chai...@gmail.com wrote: Hi, I thought I have done this before with GWT... I have an RPC call to some resource. If something unforeseen (untested bug) happens during the RPC call in the server-side processing, I want to use the regular error-page mechanism to automatically redirect the browser to some standard error page (where it would announce that we are finding whoever introduced that bug and firing them :-) ) I set this up in web.xml like this: error-page exception-typejava.lang.Exception/exception-type location/WEB-INF/pages/error.jsp/location /error-page For testing, I try throwing NullPointerException from within my server- side code. The exception seems to slip through the 'error-page' mechanism and still shows up in GWT, i.e., in the browser with this: com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server; see server log for details Is what I am trying to do not possible in GWT??? Frankly, and maybe because it's late :-), I don't understand why the 'error-page' mechanism doesn't kick in no matter what and return the contents of the error.jsp page at least. I.e., GWT should have no idea that an error even occurred because the 'error-page' mechanism should have caught it before the response goes back to the client. Any ideas anyone? Thanks, Yaakov. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Servlet Performance
no performance penalty, since all the requests are processed in parallel, by single instance though. On 24 Nov., 23:48, Ross McKinnon r.mckinno...@googlemail.com wrote: Hi there, Just a quick question regarding performance of Servlets... My App is database driven and was wondering if performance is affected if there are multiple servlets opposed to one single servlet to handle all requests? Thank you Ross -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get all events
hi, is this one you're looking for? http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/c5d8b0d04d3ab946# if so, maybe we can make an issue on that :) elsewise, maybe a workaround would help: write a JSNI method which takes generic eventhandler and a widget it shall bind it with, and attach your handler from within the javascript code (referring to widget's method via GWT's @class references, rather than raw JS code) On 24 Nov., 10:43, MAM mersni.am...@gmail.com wrote: please , need help!! thanks On 23 nov, 09:53, MAM mersni.am...@gmail.com wrote: thanks for the reply , i'm not trying to listen to native dom events . i give you an example to understand: - i have a button add with an addClickHandler - At runtime i'm trying to get all button's properties and events (in this case the addClickHandler) Thanks On 19 nov, 12:25, Jack mlsubscri...@gmail.com wrote: You mean something like: Event.addNativePreviewHandler(NativePreviewHandler handler) ? JavaDoc: Adds a NativePreviewHandler that will receive all events before they are fired to their handlers. Note that the handler will receive all native events, including those received due to bubbling, whereas normal event handlers only receive explicitly sunk events. On 19 Nov., 10:33, MAM mersni.am...@gmail.com wrote: i want to retrieve all events , previouslyadded to a Widget(button, Panel, TextFiled ...) , at runtime -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Giving focus to a node in a CellTree
what do you mean by node? you can only give a focus to HTML elements supporting it, i.e. an image cannot receive a focus but an anchor (a) so in this case you can wrap the image in an anchor making it focusable On 24 Nov., 06:49, David Pinn dp...@byandlarge.net wrote: The CellTree widget has a setFocus() method..cool; but I can't see how I can give keyboard focus to a specific node within the tree. Can someone help me with that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ACL in GWT
hi, you might want to take a look at http://code.google.com/p/gwt-security/ or http://code.google.com/p/acris/ On 24 Nov., 11:56, Baloe nielsba...@gmail.com wrote: Hi all, I wonder what is the best way to put ACL in our GWT project. Is there any mechanism in GWT build-in to grand users to specific RPC calls, or something similar? Our should we just insert Spring Security somewhere? Thanks for any hints! Niels -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: errors when testing GWT app. with IE6
please recompile your application with code-generation: detailed and run again, then you'll get at least meaningful stacktraces in your exceptions, what running application in dev mode? did you try to debug? On 24 Nov., 14:28, pepgrifell pepgrif...@gmail.com wrote: hi, we have an application developed with GWT2.0.3 and GXT2.1.3. It works perfectly with IE7 and IE8 but we have tried the application with IE6 and we are getting some errors. Does anyone know which could be the cause of these errors ? ** first error: 12030Unknown.fillInStackTrace(Unknown source:0)Unknown. $StatusCodeException(Unknown source:0)Unknown. $onResponseReceived(Unknown source:0)Unknwon. $fireOnResponseReceived(Unknown source: 0)Unknown.onReadyStateChange(Unknown source: 0)Unknown.anonymous(Unknown source:0)Unknown.entry0(Unknown source:0) I have found this post (http://groups.google.com/group/google-web- toolkit/browse_thread/thread/1fbcf344b6733c1d9), but we are using OC4J and JBoss without Apache. ** second error: com.google.gwt.core.client.JavascriptException:(TypeError): 'parent_0' is null or not an object. number: -2146823281 ** third error: when entering to app. browser asks if we want to see secure and nonsecure elements. After that IE crashes. ** Thanks ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Compile Error with Tomcat (apache.commons) libary
you might think about moving the GWT client code (which contains client and shared packages) into custom project to not mixup classpaths during compile and runtime, after all GWT produces piece of JS which is actually the one your project needs. so you dont need to recompile everytime, rather update the produced binaries everytime at GWT compilation cycle. On 23 Nov., 10:58, Sophia Shek sophia.liwei.s...@gmail.com wrote: More details: I am using eclipse(Galileo)+tomcat plugin+gwt plugin, The java build libraries’ order: JRE System libary GWT SDK - GWT2.1.0 Apache Tomcat Web App Libraries The project uses Spring MVC+ lots of JSP, only one part of the system using GWT. That is for menu items. At the moment, every single time I check out a project, I have to compile the GWT menu module which is kind of annoying. The problem is when I compile the GWT module, some source file got red lined of using apache.common. digester. It compiled OK without GWT. It is confused with the apache.common. digester and GWT digest Is this a known issue? I am new to GWT, help please? On Mon, Nov 22, 2010 at 5:06 PM, 7of9 sophia.liwei.s...@gmail.com wrote: When compile GWT,I receive the following error: [ERROR] Unexpected java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference I googled around and found the solution - Right-click the project Properties - Java Build Path Order and Export - Move the GWT SDK above the Server Library (like Apache Tomcat or SpringSource tc Server) This did solve the compile error. However the method used org.apache.commons.digester.Digester module are redlined. It tried to find the digest RuleSetBase interface in gwt-dev.jar. Has anyone came cross similar problem before? Help please!!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Compile Error with Tomcat (apache.commons) libary
I also read another guy's post. He put GWT in seperate project. So two projects, one for front end, one for back end. it is indeed very common to do it this way, maven could also help you here It will be ideal whenever eclipse rebuilds the project, it compiles GWT as you can do so, by creating your build.xml file and registering a custom builder in project properties, then eclipse will trigger the builder everytime it detects changes in the project space. well. Or GWT stop override tomcat libary at least! 7of9 pointed out how to prevent GWT from overriding other classes (put it at bottom of the classpath) still, as your GWT addon is not an application, but rather an addon^^ you can handle it that way, just make it pluggable. you can also connect the projects via eclipse project reference and configure the gwt compiler plugin to flush the output into your masterproject's war directory -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do you use Custom Widgets (Composites) multiple times?
what jhulford meant is that you really have to make a new on every widget class you add to any place. On 22 Nov., 06:00, Paul daemo...@gmail.com wrote: Sorry if this is somewhere else and I missed it, but I have a Custom Widget that I need to be able to add multiple times to another custom widget I am creating. I do not seem to understand something about this process and so I get the following errors: Different parents for double associations The other component is added to a parent component more than once. So basically, the first one gets nuked and only the second one shows up. What am I missing? Can someone please assist me in understanding what is wrong. Thank you so much in advance. Below is the code: public class FirstClass extends Composite { public FirstClass() { Image image = new Image(img/picture.png); AbsolutePanel element = new AbsolutePanel(); element.add(image, 0, 0); initWidget(element); } } public class SecondClass extends Composite { public SecondClass() { HorizontalPanel element = new HorizontalPanel(); VerticalPanel elementA = new VerticalPanel(); element.add(elementA); VerticalPanel elementB = new VerticalPanel(); element.add(elementB); elementA.add(new FirstClass()); elementB.add(new FirstClass()); initWidget(element); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Request order
well, actually, there is. you could subclass remoteServiceServlet and implement the marker interface SingleThreadModel (servlet API), then your container ensures to process only one request at a time by that servlet instance. yet, no one prevents client from sending request B before A even though you instructed so in your code. this is your business case - create a chain on the client to execute dispatched requests in sequential order On 21 Nov., 14:44, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Jeff, Here's what I'm still not sure of: are you looking to undo/redo at the attribute level, the entity level, transaction (multiple entities) level? I do no more looking for undo/redo, I solved it at the latter level. However, the reason for this thread was that I figured out, that nothing guaranties, that servlet requests are executed in the same order as they are send from browser. Meanwhile I did some locking/check to enforce the order. I had hoped that someone knows an easy solution, may be some configuration entry. However, topic solved. Stefan Bacherthttp://gwtworld.de On 20 Nov., 16:22, Jeff Chimene jchim...@gmail.com wrote: Hi Stefan: Perhaps we need a better functional requirement? From what I can tell, there is a requirement for transaction semantics; it's difficult to eliminate this requirement based on the conversation so far (In this thread you introduced the concept of interacting servers). Here's what I'm still not sure of: are you looking to undo/redo at the attribute level, the entity level, transaction (multiple entities) level? Perhaps there's some Java server-side technology that you can employ? On Sat, Nov 20, 2010 at 7:20 AM, Stefan Bachert stefanbach...@yahoo.dewrote: Hi, I had a look at gwt-dispatch. I do not see any logic which is able to avoid to execute requests on the server side in an other order than the client sends it. This situation may happens rarely but it is not impossible. An example. Client send three requests A,B,C. Servlet-Thread x get request A but stops/waits/slowdown for some reason very early, may be in the dispatcher itself. An other thread y get request B and thread z get request C. Request C may completes first, before B completes, before C completes. (Not likely, but not impossible) (Consider running a container on two cpus, too!) gwt-dispatch lacks other problems. It produces too much communication and latency. When the server is working with transactions, any action will require one transaction, which slows down the server performance, too. So gwt-dispatch is not a good choice for a high performance systems. Stefan Bachert http://gwtworld.de On 19 Nov., 14:56, ep eplisc...@googlemail.com wrote: actually, its concern of a client to chain the requests, as only it knows in which order the requests are initiated. actually, your user shall not be available to execute instructions in parallel, so your button has to be disabled until previous calculation (server response) has been returned. again, you may want to have a look at gwt-dispatch project. they implement Command Pattern with easy undo support, and chaining. the latter would help if you dont want to disable your button whilst processing results, so the requests are just queued in order they are requested and processed sequentially, each based on the result from the other... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Invalid version number 2.0 passed to external.gwtOnLoad(), expected 2.1
please clear cache of your browser and delete all the output dirs for modules (that named after your module found under war folder) On 17 Nov., 07:16, Hendrik Jan van Randen hjvanran...@gmail.com wrote: We're migrating our GWT 2.0.4 application to GWT 2.1.0. I've therefore upgraded my Google Plugin for Eclipse to GWT 2.1.0. When I try to run our application in the GWT debugger in Eclipse (Debug as web application, go to its URL in Firefox) I get the following message: Connection received from localhost:47526 [ERROR] Invalid version number 2.0 passed to external.gwtOnLoad(), expected 2.1; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app Recompiling doesn't resolve the problem. Also changing the version from 2.0 to 2.1 in the line var $hostedHtmlVersion=2.1; in the files hosted.html in the war directory doesn't resolve the problem. I cannot find any explicit instructions to migrate from GWT 2.0 to 2.1. My environment: Ubuntu 10.04 LTS Firefox 3.6.12 with Google Web Toolkit Developer Plugin for Firefox 1.0.7511 Eclipse Helios with Google Plugin for Eclipse with GWT version 2.1.0. Any suggestions how I can resolve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Java Exception lost in 2.1.0 works in 2.0.4
what about debugging? you can compile with no obfuscation (detailed level would be best) and use browser's debugger to get the place where the error arises, i.e. remove the throwable catch, compile detailed, enable debugger in IE (or install firebug in FF) and let the error appear. when clicking on that error the debugger brings you to the place where it happens. maybe you could post those JS fragment found. maybe CLBParse class is not 2.1 compatible On 17 Nov., 23:23, Rob Hennessy rob.henne...@gmail.com wrote: Hi All, I have a web app where I exposed a class's static method using JSNI, as in the JSNI example. I execute the method from the native event handler. Within the method, I try and catch, and return any exception's message as the method's return value. The method works properly in 2.0.4, but in 2.1.0 it only works in devmode In 2.1.0 production mode any exception I get returns Index:-1, Size: 0 and is always in the Throwable catch. With no Throwable catch, the browser states object error. public static String parse(String script) throws ParseException{ try { CLBParse parser = new CLBParse(new MyStringReader(script)); SimpleNode root = parser.Input(); return ; } catch (ParseException e) { return e.getMessage(); }catch( Throwable e) { GWT.log(something bad, e); return e.getMessage(); } return ; } public native void export() /*-{ $wnd.TryParse = $entry(@com.test.app.client.CalcScriptReformatter::parse(Ljava/lang/ String;)); }-*/; I've tried with and without the $entry wrapper. Is this a bug in 2.1.0, or should I be doing something different? Thanks, -Rob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Request order
actually, its concern of a client to chain the requests, as only it knows in which order the requests are initiated. actually, your user shall not be available to execute instructions in parallel, so your button has to be disabled until previous calculation (server response) has been returned. again, you may want to have a look at gwt-dispatch project. they implement Command Pattern with easy undo support, and chaining. the latter would help if you dont want to disable your button whilst processing results, so the requests are just queued in order they are requested and processed sequentially, each based on the result from the other... On 19 Nov., 14:36, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, for me undo is just a replay of the transitions in the opposite order. So in this context replay is just the direction independant term of undo/redo. Using a key logger is an other kind of replay which is not my case. Any transition runs in a transaction. SN alone is not sufficient. Consider the user clicks 2 buttons quickly. button a = method which add a number, say 4 button b = method which multiply a number, say 4. The order must preserved because the result depends on it. a,b : 0 + 4 = 4; 4*4 = 16; b,a : 0 * 4 = 0; 0 + 4 = 4; You could only hold undo/redo state in client in very simple cases. In common only the server side has enough access to the needed data. In addition security aspects forces the undo/redo sequence to be on the server side, Meanwhile I send an SN with any request and force the order the request. (Still wondering what will happen when the app needs to run on multiple servers, OK, not a GWT topic) Stefan Bacherthttp://gwtworld.de On 18 Nov., 17:34, Jeff Chimene jchim...@gmail.com wrote: On Thu, Nov 18, 2010 at 9:18 AM, Stefan Bachert stefanbach...@yahoo.dewrote: Hi, I am doing undo/redo. Therefore it is mandatory to handle all requests on the server in the same order to be able to replay it There are two issues here: undo/redo replay They are different. Setting aside transaction semantics (commit/rollback) since you're probably not interested in implementing that, undo/redo can be performed by attaching a sequence number per write to the server, keeping that SN in undo/redo stacks on the client, manipulating the stacks as appropriate. replay requires a keystroke logger. Do you really need to interact with the server for such a feature? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I truncate an image before upload
before HTML5 its not possible in javascript to transform images, but you can ask google, if found library you can simply use it within GWT. Elsewise, just get your image uploaded - and transform it on the server On 19 Nov., 15:35, Ice13ill andrei.fifi...@gmail.com wrote: Well, I was thinking about creating a temp copy of the image, scale it and upload the new image. But i don't want to use other technologies (Java applet or JavaFx). Other gwt libraries are ok. On Nov 19, 4:16 pm, Didier Durand durand.did...@gmail.com wrote: Hi, GWT translate Java to Javascript to run on the client side. This javascript is then in the usual sandbox preventing access to pc files: I would say that what you want to achieve is not possible because of this js architecture unless you go to very special tricks requiring additional component. Seehttp://www.baconbutty.com/blog-entry.php?id=29 didier On Nov 19, 3:07 pm, Ice13ill andrei.fifi...@gmail.com wrote: Is it possible to resize an image (thus creating an image with a smaller size) using GWT? Let's say i have a 5Mb picture, but before i upload it to the server i want to automatically resize it to be smaller that 1Mb How can i do that ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What should I learn , Google Web Toolkit or Jquery ?
i guess jquery would be best for drupal / wordpress to achieve web2.0 effects. I mean GWT can be used just as a cross compiler, i.e. if you want to build complex OOP driven masterpiece with no widgets and dont want to pseudo OOP on javascript. so its all about the problem to solve wud be good to know your intention? p.s. as for CMS you can also try vosao :) On 18 Nov., 18:48, kachaloo vishal.khial...@gmail.com wrote: Hi, I am currently deciding in which technology should I put more time in and learn . I have been working with drupal and wordpress since 4 months and I like the platforms. As for the browser side work I am a bit confused whether I should put more time in google web toolkit + drupal / word press or jquery + drupal / wordress Thank you in advance for sharing your views, Kachaloo -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What should I learn , Google Web Toolkit or Jquery ?
btw: how do you use jQuery's plugins with GQuery? I didnt found an API so had to integrate jQuery for its plugins, GQuery for better API on effects and wrapped the plugins via JSNI, but maybe GQuery is / going to support jQueries plugins? On 19 Nov., 16:41, Christian Goudreau goudreau.christ...@gmail.com wrote: Personally, I use both with a little distinction, I use GQuery instead of jQuery. GWT and jQuery are two different things to me and can be used in conjunction while making great web application. Cheers, On Fri, Nov 19, 2010 at 10:30 AM, Didier Durand durand.did...@gmail.comwrote: Hi, My 2 cents: a) learning curve for GWT higher than JQuery b) You can't work efficiently with GWT if you don't master html, http, javascript anyway... c) GWT is great because you come back to compile mode: your code is correct much faster and you don't have to write lots of unit test to confirm that nothing wrong happens at run time when you change your app in the more risk env of an interpreted language (js) d) GWT is also great because you can leverage the best equipped language in terms of tooling: Java for unit tests (Junit), quality measurement (findbugs, pmd), code coverage (cobertura), profiling, etc e) with GWT, you don't deal with the broswer type at all (at least in theory...) so you code faster f) if back-end is java also, you face a single technology for the client and the server side - more manageable and simpler to handle by a single person. But, I agree with what was said before: the ticket to entry is bigger. So, probably not suited to a small app. regards didier On Nov 19, 3:34 pm, massimo malvestio massimo.malves...@gmail.com wrote: In my opionion it depends on the complexity of your project. If you have to write a webapp / site with a complex interface that it has to be feeded with a large amount of data, or you want to reserve the capability to scale, and you have a couple of weeks to study gwt, choose gwt. If you have not time enough to learn gwt, or, you don't need to manage complex data exchange between client and server but you want an eye candy web gui, learn jquery, it's quite easy to learn and use and you got tons of plugins ready to be used. I use both of them anyway, because, in my opinion, they are complementary, use the weapon more suitable for the size of your target :-P -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreauwww.arcbees.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: GWT 2.1 Logging
ok, got it, thank you. one thing for clarification on logLevels and code permutations: I've used to live with gwt-log for some time, for every logLevel they do create a new code permutation which optimizes away code on any other levels, say: extend-property name=log_level values=info, warn/ would add two more permutations during compile, one for info the other for warn. during runtime then I can choose via log_level = info or warn with which loglevel I want to run my application, I cannot decide to use another loglevel though, unless previously defined in the module descriptor. So whilst runtime there is no code for log instructions other than requested via log_level property. I suppose it works dynamically in native gwt logging, so loglevel does not effect code permutation and one has to ensure his log statement is secured with isLoggable() check. On 17 Nov., 20:32, Unnur Gretarsdottir unn...@google.com wrote: Hi there - answers are inline... On Wed, Nov 17, 2010 at 4:56 AM, ep eplisc...@googlemail.com wrote: hello folks, whats the difference between the: set-property name=gwt.logging.logLevel value=OFF/ This will set the Level of the RootLogger to be OFF and set-property name=gwt.logging.enabled value=FALSE/ This will swap in Null Implementations for the logging related classes, which will compile out. ? I understand I can use LogConfiguration.loggingIsEnabled() to wrap the code I want to optimize away during compilation, but I could also do: if(java.util.logging.Logger.isLoggable(Level.INFO)) { logger.info(this code will be compiled out if logLevel is below requested? complex result: + doSomeComplexCalc()); } couldn't I? Yes - the LogConfiguration method is just something I added for convenience. or, I guess that gwt.logging.logLevel does not effect the compiler, so only gwt.logging.enabled will provide NULL implementation? Yes - exactly - see my response above what about the loglevels - is there new permutation per each or are logging instructions not inlined during compilation? ( like in gwt-log project ) Not sure exactly what you mean here are there more papers on new logging I can dive in? thank you. Not really, but you can look at the source code - it's actually more straightforward than you would think. Note that you'll want to look at the both the files in logging, as well as the emulation classes in supersource. However many of the emulated classes just punt out to Null or Regular Impl classes, which are in the logging directory. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: GWT RPC serialization between 2 servlets
not sure if this will work outofthe box, since in GWT RPC there is always a client which is initiating an RPC request first. so you have to do so in your server code, except for there is nor XHR on the server, the rest should work fine, especially serialization of the request command, which you would pass from one servlet to another using POST (not GET). do you have to use HTTP beyond or would be be ok to use just tcp or udp socket? I'd either go for RMI, binary serialization (no http) or JSONP / XML (http) which you can easily get started with, of course SOAPis the king^^ but I guess would be kinda overkill here. On 17 Nov., 14:55, Greg Dougherty dougherty.greg...@mayo.edu wrote: Use Java Serialization to send the the objects from one servlet to another. Make sure you have the Objects implement Serializable. :-) You can override doGet without damaging GWT RPC. One servlet does that, the other (the one driving the exchange) makes an HTTP call to it. They both use Object*Streams to send and receive the object(s). Greg On Nov 17, 6:52 am, Ice13ill andrei.fifi...@gmail.com wrote: Hello, I want to send objects between 2 servlets and i was wondering if the GWT RPC mechanism used for client - server communication can also be used to send data across two servlets that extend RemoteServiceServlet. Or maybe I can use the Java serialization to actually send bytes from one servlet to another ? Any ideas ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RPC serialization between 2 servlets
actually, if your beans implement the Seriliazable interface (not only IsSerializable) you can just use java's ObjectStream to get them on wire. (look for short demo at http://download.oracle.com/javase/tutorial/essential/io/examples/ObjectStreams.java ) so your servlets would communicate over POST together where you wrap the output/inputream (which you get from your HttpServletRequest / HttpServletResponse) into the object stream and exchange your POJOs, thats it. Note that you extend usual HttpServlet class rather than GWT's RemoteServiceServlet and do your magic in the doPost() methods. On 17 Nov., 16:31, Andrei Cosmin Fifiiţă andrei.fifi...@gmail.com wrote: Thx for the answers... I wanted to use serialization from the start but i really want to know how can i use JSON. BUT, i need to know if there is something simple that i can use (GWT, java, or other libs). For example, i have some java beans (with simple fields - string, integer, lists of those types...) and i want to serialize/deserialize them without modifying them. (widhtoug adding annotations, other methods, extending... or at least, very few modifications) On 17 November 2010 16:53, ep eplisc...@googlemail.com wrote: not sure if this will work outofthe box, since in GWT RPC there is always a client which is initiating an RPC request first. so you have to do so in your server code, except for there is nor XHR on the server, the rest should work fine, especially serialization of the request command, which you would pass from one servlet to another using POST (not GET). do you have to use HTTP beyond or would be be ok to use just tcp or udp socket? I'd either go for RMI, binary serialization (no http) or JSONP / XML (http) which you can easily get started with, of course SOAPis the king^^ but I guess would be kinda overkill here. On 17 Nov., 14:55, Greg Dougherty dougherty.greg...@mayo.edu wrote: Use Java Serialization to send the the objects from one servlet to another. Make sure you have the Objects implement Serializable. :-) You can override doGet without damaging GWT RPC. One servlet does that, the other (the one driving the exchange) makes an HTTP call to it. They both use Object*Streams to send and receive the object(s). Greg On Nov 17, 6:52 am, Ice13ill andrei.fifi...@gmail.com wrote: Hello, I want to send objects between 2 servlets and i was wondering if the GWT RPC mechanism used for client - server communication can also be used to send data across two servlets that extend RemoteServiceServlet. Or maybe I can use the Java serialization to actually send bytes from one servlet to another ? Any ideas ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Request order
batch them (the requests) from client and push them in same http request :) do you need them to execute also in the same order? meaning serially? so that requests actually cannot be processed in parallel anymore? then you may want to look at gwt-dispatch project, they recently have added support to queue the requests. otherwise you could queue the requests manually on the client and execute them one after another... but Jeff already asked a right question On 17 Nov., 12:07, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, I need to get any requests from my browser client in the same order on the server side. implementing SingleThreadModel would not solve this requirement. synchronizing HttpSession may fail on 3 or more requests. Any ideas how to achive this? Stefan Bacherthttp://gwtworld.de -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RPC serialization between 2 servlets
hm, not necessarily, you can also override doService() to hook in at lower level and delegate in there, but would be messy, though. maybe googles rpc servlets are just not intented to allow change on communucation protocol On 17 Nov., 17:01, Greg Dougherty dougherty.greg...@mayo.edu wrote: AbstractRemoteServiceServlet (which all GWT Servlets inherit from) declares public final void doPost. So regardless of what you SHOULD do, if you've got a GWT Servlet that you want to ALSO handle HTTP requests, then is HAS to do it through doGet. Unless you can point me to some hook in the processing chain I've missed? Greg On Nov 17, 8:53 am, ep eplisc...@googlemail.com wrote: not sure if this will work outofthe box, since in GWT RPC there is always a client which is initiating an RPC request first. so you have to do so in your server code, except for there is nor XHR on the server, the rest should work fine, especially serialization of the request command, which you would pass from one servlet to another using POST (not GET). do you have to use HTTP beyond or would be be ok to use just tcp or udp socket? I'd either go for RMI, binary serialization (no http) or JSONP / XML (http) which you can easily get started with, of course SOAPis the king^^ but I guess would be kinda overkill here. On 17 Nov., 14:55, Greg Dougherty dougherty.greg...@mayo.edu wrote: Use Java Serialization to send the the objects from one servlet to another. Make sure you have the Objects implement Serializable. :-) You can override doGet without damaging GWT RPC. One servlet does that, the other (the one driving the exchange) makes an HTTP call to it. They both use Object*Streams to send and receive the object(s). Greg On Nov 17, 6:52 am, Ice13ill andrei.fifi...@gmail.com wrote: Hello, I want to send objects between 2 servlets and i was wondering if the GWT RPC mechanism used for client - server communication can also be used to send data across two servlets that extend RemoteServiceServlet. Or maybe I can use the Java serialization to actually send bytes from one servlet to another ? Any ideas ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RPC serialization between 2 servlets
by the way, why I dont recommend to use GET is because this http method simply does not define to have body where you can put big amount of data, its all about the url and its params and some extra data like a header...no place for big payload On 17 Nov., 17:01, Greg Dougherty dougherty.greg...@mayo.edu wrote: AbstractRemoteServiceServlet (which all GWT Servlets inherit from) declares public final void doPost. So regardless of what you SHOULD do, if you've got a GWT Servlet that you want to ALSO handle HTTP requests, then is HAS to do it through doGet. Unless you can point me to some hook in the processing chain I've missed? Greg On Nov 17, 8:53 am, ep eplisc...@googlemail.com wrote: not sure if this will work outofthe box, since in GWT RPC there is always a client which is initiating an RPC request first. so you have to do so in your server code, except for there is nor XHR on the server, the rest should work fine, especially serialization of the request command, which you would pass from one servlet to another using POST (not GET). do you have to use HTTP beyond or would be be ok to use just tcp or udp socket? I'd either go for RMI, binary serialization (no http) or JSONP / XML (http) which you can easily get started with, of course SOAPis the king^^ but I guess would be kinda overkill here. On 17 Nov., 14:55, Greg Dougherty dougherty.greg...@mayo.edu wrote: Use Java Serialization to send the the objects from one servlet to another. Make sure you have the Objects implement Serializable. :-) You can override doGet without damaging GWT RPC. One servlet does that, the other (the one driving the exchange) makes an HTTP call to it. They both use Object*Streams to send and receive the object(s). Greg On Nov 17, 6:52 am, Ice13ill andrei.fifi...@gmail.com wrote: Hello, I want to send objects between 2 servlets and i was wondering if the GWT RPC mechanism used for client - server communication can also be used to send data across two servlets that extend RemoteServiceServlet. Or maybe I can use the Java serialization to actually send bytes from one servlet to another ? Any ideas ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ability to set element id trough UIBinder widget
from the one point of view, it would be good to pass over any DOM atts to its elements, maybe this could be accomplished by defining html namespace, so as html:id=foo or html:onclick=wtf() would be bound to the underlying element :) oh u see, it can get dirty. the most important question yet is, WHICH is the DOM element represented by i.e. g:FlowPanel? its hidden by implementation, so the only, maybe useful set of attributes is already definable, id is an exception though On 17 Nov., 19:56, Jeff Larsen larse...@gmail.com wrote: it would be really nice to be able to set generic HTML attributes on widgets and not just on html items. There are several use cases where it would be awesome to be able to do something like g:FlowPanel attribute=param, value ui:field=flowPanel/ which would output something like div param=value/ now there are plenty of edge cases that aren't covered in this example, but this would be really useful for me in my app and allow me to not have to extend every control where I need to add a HTML attribute. On Nov 16, 12:27 pm, Jason jaso...@gmail.com wrote: I believe you would do this with the debugId attribute as follows: g:TextBox ui:field=field debugId=usernameInput/ On Nov 15, 11:12 am, Janusz janusz.parfien...@gmail.com wrote: Hello, I've been looking for a way to set DOM element id trough UIBinder but I couldn't find any solution. Example of what I'd like to do: g:HTMLPanel label for=usernameInputSome label/label g:TextBox ui:field=field id=usernameInput/ /g:HTMLPanel Id like this to be rendered as: div label for=usernameInputSome label/label input type=text id=usernameInput / /div Sadly this doesn't work the way I wanted it to. As far as I can understand id attribute in UIBinder is treated as an id for XML element that is being parsed by UIBinder processor. I've tried things like JSP/JSF syntax: g:TextBox ui:field=field element.id=usernameInput/ but this doesn't work either. Does anyone know if it is possible in UIBinder to set an id for resulting DOM element? Currently to achieve this one has to go to java code and use field.getElement().setId(). Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] GWT 2.1 Logging
hello folks, whats the difference between the: set-property name=gwt.logging.logLevel value=OFF/ and set-property name=gwt.logging.enabled value=FALSE/ ? I understand I can use LogConfiguration.loggingIsEnabled() to wrap the code I want to optimize away during compilation, but I could also do: if(java.util.logging.Logger.isLoggable(Level.INFO)) { logger.info(this code will be compiled out if logLevel is below requested? complex result: + doSomeComplexCalc()); } couldn't I? or, I guess that gwt.logging.logLevel does not effect the compiler, so only gwt.logging.enabled will provide NULL implementation? what about the loglevels - is there new permutation per each or are logging instructions not inlined during compilation? ( like in gwt-log project ) are there more papers on new logging I can dive in? thank you. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Question that i don't found in yours FAQ's
you could compile your CLIENT classes with whatever java version you want, at the end javascript comes out. for the server part you have to compile binaries compatible to your server environment, you'd better write compilation script in ant so you can choose different targets for compilation processes, both running on java 6 watchout for generics and java 5 features like for loop, varargs etc, which are not supported java 5, you may not use them in your server code, especially when working with GWT RPC, where u usually use a lot of generics. On 26 Okt., 11:00, Thomas Broyer t.bro...@gmail.com wrote: On 26 oct, 07:37, Daniel Kurka kurka.dan...@googlemail.com wrote: If you have some restrictions on your code on the server side (beeing able to run in a 1.4 java enviroment) you can still use java 6 to run gwt. (and you should) just make sure to set your javac to compile with java 1.4 as target... True in theory, but wouldn't you have to recompile the GWT server classes (RemoteServiceServlet et al.) with java 1.4 target as well? (fortunately something easy to do) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I send program generated Images to my users?
if your servlet generates an image, why do you want to get it saved on the disk? I'd also do it the way Daniel suggested, so just keep your image generating servlet as standalone, better yet allow extensions so you can inquire an image not only like /imageGenerator but / imageGenerator.jpg, then you also dont need to explicitely generate mime header. so in web.xml you map your generator: servlet-mapping .. url-pattern/imageGenerator/*/url-pattern /servlet-mapping and later, if telling the url of the image in the GWT module, you dont build the url with getModuleBaseUrl(), but rather use host-relative url, like new Image(/imageGenerator/whatever.jpg) you can pass the values to your generator either via url params (/ imageGenerator/image.jpg?name=star) or via pathInfo (/imageGenerator/ image/name/star.jpg) On 25 Okt., 22:36, Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi all, My servlet is creating images that I need to send to the client. My first thought was save the image to a file, then send the path to that image to the client, which can then call new Image (GWT.getModuleBaseURL () + imagePath); This worked just fine in the development environment. But when I deploy to Tomcat, if I try to use a relative path, it does it from where Tomcat was started, rather than from my module's base. For obvious reasons, I'd prefer not to try to save images to a hard-coded path (makes it a bit difficult to move the app around). Is there a clean way to get my module's base path, so I can save the images relative to that? If not, what IS the approved way to pass program generated images to the client? TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox with huge amount of records
why cant u use it? SuggestOracle allows async fetching of data, please read java doc on this interface com.google.gwt.user.client.ui.SuggestOracle.Suggestion On 21 Okt., 09:09, Florian Rhomberg florian.rhomb...@nettania.at wrote: Hello! I need to implement a suggest box. Therefor I found a possibility to create that on this page:http://www.gwtapps.com/doc/html/com.google.gwt.user.client.ui.Suggest... But however I cannot use this code with the oracle because I have more than 7 datas. Therefore I want to realise this in that way: After each character the system should send an rpc call to the server where the server makes a database query and returns the result which is afterwards displayed beneath the textfield. Can someone help how such a code would look like in gwt? Thanks, Florian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Creating a JSON object in GWT
XMLSerializer is for serializing into XML format... if you want to JSONize your object you can use overlay types in conjunction with com.google.gwt.json.client.JSONObject On 21 Okt., 09:49, Vibhuti Gupta guptavibh...@gmail.com wrote: Hello I need to create a json object in GWT. I was trying to create a JSON object using XMLSerializer but it does not work in GWT. Any ideas on this... Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to develop a modular enterprise application using just GWT
hi, there is already a similiar topic, read ideas on it http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e73ced6ba51c3def# On 21 Okt., 11:22, Heidarzadeh heidarzad...@gmail.com wrote: Thanks for your response. But I think they can! I want to deploy BOTH server and client side code together, independently for each module, not just client side code, or server side code, for each module. If I know how to compile one part(module) of my GWT application and get the java script output one of the problems will be solved!! I think one of My main problems is in the client side and compiling GWT application partially and gathering those parts in one context. If i have a context that can manage dependencies and showing of these modules my main problem will be solved. On Oct 21, 11:41 am, dmen dmenou...@gmail.com wrote: How GWT and OSGi can be integrated? I don't think they can. GWT binaries run in the browser, not in a JVM. This also means that, as long your changes do not affect server side code, you can redeploy the client GWT code without having to stop the server. On Oct 21, 9:19 am, Heidarzadeh heidarzad...@gmail.com wrote: Hi I want to design and develop a big enterprise application using just GWT in client side. I want to break this enterprise application into parts and I call each of them a module (or bundle or portlet or whatever!) . These modules might have relation with each other and might call some services that exists in other modules (in both client and server side) . The problem is, These modules must be Designed , Developed, Compiled and Deployed Independently and Dynamically and they will be placed and shown together in one context on the client and the dependencies between modules should be manageable (in both client and server side). What can I do? What kind of technologies I can use to build an enterprise application like this? When you develop an application that is not divided into parts (In the way that i mentioned) you can easily deploy your application after building your project, but when you change just one form in your application you have to build the entire application again, and deploy the entire application. In this application I cannot stop the server to deploy the application again, I want to change and deploy that part of application that is needed to be changed not the entire application!!! Of course I have searched about the way that I can solve my problem!!! I have found that I can use OSGI on server side because it provides modularity at software construction level and helps me to manage life cycle of modules and many other benefits that you know! And I have found that I can use Gadgets on client side. What do you think? Are they good choices? If they are good choices, how can I start? I know that we have different kinds of implementations of OSGi, like Apache Felix, Eclipse Equinox and Knopflerfish. Which one is good for this choice? How GWT and OSGi can be integrated? How can they interact with each other? To do this a gadget container is needed on client side!!! I should develop it myself or I can use other technologies? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Help !!!
YES, with some workarounds due to XSS On 21 Okt., 05:42, alexissua alesca...@gmail.com wrote: Hello, Friends. Im developing a web application, and i need access to the information INSIDE a Web Site that it came as a result of a google search (this information could be for example a text field, or a name, or a price of some product inside this page) to save it, or manipulate it, later. So, my question is: will i be able to do this with Google Web Toolkit?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.lang.ClassCastException .. but why?
since MyMenuBar is-a MenuBar there is an implicit typecast, so you can do MenuBar myBar = new MyMenuBar(..) you can of course downcast the MenuBar to MyMenuBar, if you're sure it is a MyMenuBar @alexoffspring i'm wondering how you initialize the *root* with your MyMenuBar, if doing this way: MenuBar root = new MenuItem(MyMenuBar, new MyMenuBar(false)); MyMenuBar myMenuBar = (MyMenubar)root.getSubMenu(); then the cast shall be working like a charm On 20 Okt., 03:31, Prashant nextprash...@gmail.com wrote: you can typecast *MyMenuBar *to *MenuBar *but not the other way round. Here you are trying to typecast *MenuBar* to *MyMenuBar*. On 19 October 2010 21:28, alexoffspring alessales...@gmail.com wrote: Thanks guys. Ok, i got the error in the constructor. Now it sounds like this: public class MyMenuBar extends MenuBar { // super constructor public MyMenuBar(boolean bool) { super(bool); } ; But still i got the same ClassCastException. root is a MenuItem and root.getSubMenu() return a MenuBar object. On 19 Ott, 17:39, ep eplisc...@googlemail.com wrote: where do you make new MyMenuBar() and how do you provide it to the root member? and what type is root actually? On 19 Okt., 17:14, alexoffspring alessales...@gmail.com wrote: I created a public class MyMenuBar just to use the getItems() method, which is protected in MenuBar: public class MyMenuBar extends MenuBar { // super constructor public MyMenuBar(boolean bool) { new MenuBar(bool); } // the super.getItems() is protected public ListMenuItem getItems() { return super.getItems(); } }; I don't understand why a get a java.lang.ClassCastException when i try to cast a MenuBar into a MyMenuBar: . MenuBar menuBar = root.getSubMenu(); local_mmb = ((MyMenuBar) menuBar).getItems(); Where am i wrong?- Nascondi testo citato - Mostra testo citato - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Prashantwww.claymus.com code.google.com/p/claymus/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: communication between two frames
oh yes, I forgot to mention that innerframes behave like window and have own javascript namespace so if you're using the default GWT linker, which loads the application in innerframes and your hosted page provides your sharedCodeBase.js file, then you should interop via the top window which initially loaded the hosted page, you can reach the top window via $wnd.top ( to get the parent of the innerframe you can also do $wnd.parent ) //register moduleA as listener $wnd.top.myBus.addListener(SOME_GLOBAL_EVENT, this) //register moduleB as listener $wnd.top.myBus.addListener(USER_LOGIN_EVENT, this) //fire a LOGIN EVENT from moduleA and moduleB will get notified $wnd.top.myBus.fire(USER_LOGIN_EVENT, this) btw: you have to operate on events described by STRINGs, so they sustain the obfuscation, therefore you cannot use the HandlerManager class from GWT as a bus, but rather write your own one, follow the Observer pattern...watchout further you have to interop via JSON messages rather than Java classes, remember any API is dead after obfuscation. but I would really advise you to give a try the code splitting feature also to minimize the code footprint, and I dont think that GWT is optimized for this binary deployment model where you can compile multiple stand-alone runnable modules and than just make them working together without a new recompilation! of course there're workaround like above, one can also implement message queue etc but I think you better should raise a feature request to development team and maybe they have (or gonna provide) a better solution, which also is optimized for performance On 19 Okt., 18:45, aditya sanas 007aditya.b...@gmail.com wrote: thanks for ur reply and kind help. i am still searching for the right solution. I have implemented what u have specified in the la st thread as - $wnd.myBus.fire(myModule,initState) this works fine when i m opening both the modules in different (seperate) windows of the same browser. but whenever i try this using inner frame it doesn't work as it should be. so for guiding purpose if you can share a code snippet that might help me for better understand. And yes,we had thought of code splitting but we couldn't implemented it. thanks. -- Aditya On Mon, Oct 18, 2010 at 5:28 PM, ep eplisc...@googlemail.com wrote: ah ok got your point, well, if you write: @com.verisona.bridge.client.CandidateMainView::alertWindow(); for the GWT compiler is pretty same as a pure Java call - because that code is not actually native where as $wnd.alert(foo) is a real native code which is not handled by GWT compiler. the first line would not work cross anonymous modules (such as those which are not compiled within same compilation process) since the obfuscator will rename all the types/method names. when I've written native i really meant pure Java-Code which is not compiled by GWT compiler, but rather is supplied from a separate codeBase.js (javascript) file. because that code you always can use cross-modules like $wnd.myBus.fire(myModule,initState). The issue is that you have to compile all available modules in same compile process to get them working with each other via compile time binding (such as calling ModuleA.refresh() from ModuleB), after compilation (with obfuscation) there is no way to reach the code via API. Have you already tried code splitting feature to minimize the initial bootstrap? so that codebase from moduleX is loaded on demand? On 18 Okt., 12:25, aditya sanas 007aditya.b...@gmail.com wrote: yeah you are right my each of the module is compilable each is having entryPoint class associated with it but this is how we use to design a GWT module or is it possible to have GWT module without EntryPoint class associated with it...? actually we were having a single enrty point class for this module before but it was making page very heavy.And it was taking more than 10seconds each time to load when we deploy project online. So for this we had decided to split modules and each page will have different module associate with it. but still we are not able find a solution for communication between two modules. and i didn't get your last line. I m trying this as following method is from master class as CandidateMainView.java implements EntryPoint //... public static native void alertWindow()/*-{ $wnd.alert('hello there i m in main...'); }-*/; and i m trying to access this method from some other class which is getting loaded into the inner frame. CandidateAccountSetting.java implements EntryPoint //.. private native void registerAFunction() /*-{ @com.verisona.bridge.client.CandidateMainView::alertWindow(); }-*/; this should give an alert but it doesn't work. is this what u r suggesting ? -- Aditya On Mon, Oct 18, 2010 at 3:26 PM, ep eplisc...@googlemail.com wrote: actually, you
Re: Avoid Use of Browser Detect
look for BrowserInfo.java in google, the top second entry (BrowserInfo.java - google-web-toolkit.googlecode.com) or find the class in repository: com.google.gwt.dev.util.BrowserInfo, that is under apache 2.0 license, I guess you can modify it to get it working for detection On 19 Okt., 22:08, Fredsome aaron@gmail.com wrote: After readinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa..., I understand that the Browser Detect code is output into the JavaScript code GWT compiles for you. Unfortunately, Browser Detect's license is not acceptable for the application that I am working on (http://code.google.com/webtoolkit/terms.html#licenses). Is there any way to avoid the output of Browser Detect code, so that any product we create with GWT will only be affected by the Apache License, v. 2.0? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Simulate low bandwith
you can also implement a special servlet which derives from RemoteServiceSevlet and delays execution, it would be pretty easy for high latency simulation but a bit tricky for lowering bandwith On 20 Okt., 00:11, Fernando Barbat fbar...@gmail.com wrote: Are there any tools which allow us to test our GWT application in low bandwith or high latency environments? I've read this post:http://stackoverflow.com/questions/473465/firefox-plugin-to-simulate-... Anyway, I want to know if there is any tool or methodology which works with GWT apps nicely, having in mind the code server and other GWT stuff. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Supported browser statement
the com.google.gwt.dom.client.Document class provides low level DOM access, it returns an Element which corresponds to a DOM element, if its not low-level enough you can also write native methods and access DOM directly On 19 Okt., 17:21, Dan ddum...@gmail.com wrote: Does GWT have a supported browser statement? One that would reflect the core javascript/DOM compat and not anything widgets specifically might do. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.lang.ClassCastException .. but why?
where do you make new MyMenuBar() and how do you provide it to the root member? and what type is root actually? On 19 Okt., 17:14, alexoffspring alessales...@gmail.com wrote: I created a public class MyMenuBar just to use the getItems() method, which is protected in MenuBar: public class MyMenuBar extends MenuBar { // super constructor public MyMenuBar(boolean bool) { new MenuBar(bool); } // the super.getItems() is protected public ListMenuItem getItems() { return super.getItems(); } }; I don't understand why a get a java.lang.ClassCastException when i try to cast a MenuBar into a MyMenuBar: . MenuBar menuBar = root.getSubMenu(); local_mmb = ((MyMenuBar) menuBar).getItems(); Where am i wrong? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: communication between two frames
hi, a small question, do you open contents from same host (as parent window) within your innerframe? On 18 Okt., 09:26, Aditya 007aditya.b...@gmail.com wrote: Hello Guys, I am designing a web application using GWT which has one inner frame which loads different modules whenever user selects any menu from TOP frame that is from a main window. The problem where i have stuck now is whenever there is some error occurred inside a frame which contains a different module then that should notify main window about it. So I can handle all failure messages in my main module. If anyone has implemented it before or has some threads that u have gone thr' then please do reply. I had referred thishttp://gwt-ext.com/forum/viewtopic.php?f=2t=2459 this works fine as it is opening a new window but i want to open a frame inside a same window which sends messages to parent window containing it. -- Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: communication between two frames
actually, you could be using HandlerManager as an event bus between all your modules, but I guess you trying to treat each of your modules as separate gwt applications, each having an entry point and also each independently compilable / runnable? therefore you cannot just reference classes cross-wise? in this case you could create a small API allowing message interchange or you follow observer pattern and the host page (being a master) can provide the implementation as a native JS code. On 18 Okt., 11:20, aditya sanas 007aditya.b...@gmail.com wrote: yes those are from same host in the same window. I have somewhere about 10 modules in my project out of which 1 is main modules which contains a Frame(GWT). and in this frame i m loading other 9 modules in the same window. So i want main window and frame should communicate with each other. that is there is should be some kind of message passing between these two modules but i m finding it little difficult to do it as both are from different modules and so the objects in one module is not accessible to the other. -- Aditya On Mon, Oct 18, 2010 at 2:03 PM, ep eplisc...@googlemail.com wrote: hi, a small question, do you open contents from same host (as parent window) within your innerframe? On 18 Okt., 09:26, Aditya 007aditya.b...@gmail.com wrote: Hello Guys, I am designing a web application using GWT which has one inner frame which loads different modules whenever user selects any menu from TOP frame that is from a main window. The problem where i have stuck now is whenever there is some error occurred inside a frame which contains a different module then that should notify main window about it. So I can handle all failure messages in my main module. If anyone has implemented it before or has some threads that u have gone thr' then please do reply. I had referred thishttp://gwt-ext.com/forum/viewtopic.php?f=2t=2459 this works fine as it is opening a new window but i want to open a frame inside a same window which sends messages to parent window containing it. -- Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: communication between two frames
ah ok got your point, well, if you write: @com.verisona.bridge.client.CandidateMainView::alertWindow(); for the GWT compiler is pretty same as a pure Java call - because that code is not actually native where as $wnd.alert(foo) is a real native code which is not handled by GWT compiler. the first line would not work cross anonymous modules (such as those which are not compiled within same compilation process) since the obfuscator will rename all the types/method names. when I've written native i really meant pure Java-Code which is not compiled by GWT compiler, but rather is supplied from a separate codeBase.js (javascript) file. because that code you always can use cross-modules like $wnd.myBus.fire(myModule,initState). The issue is that you have to compile all available modules in same compile process to get them working with each other via compile time binding (such as calling ModuleA.refresh() from ModuleB), after compilation (with obfuscation) there is no way to reach the code via API. Have you already tried code splitting feature to minimize the initial bootstrap? so that codebase from moduleX is loaded on demand? On 18 Okt., 12:25, aditya sanas 007aditya.b...@gmail.com wrote: yeah you are right my each of the module is compilable each is having entryPoint class associated with it but this is how we use to design a GWT module or is it possible to have GWT module without EntryPoint class associated with it...? actually we were having a single enrty point class for this module before but it was making page very heavy.And it was taking more than 10seconds each time to load when we deploy project online. So for this we had decided to split modules and each page will have different module associate with it. but still we are not able find a solution for communication between two modules. and i didn't get your last line. I m trying this as following method is from master class as CandidateMainView.java implements EntryPoint //... public static native void alertWindow()/*-{ $wnd.alert('hello there i m in main...'); }-*/; and i m trying to access this method from some other class which is getting loaded into the inner frame. CandidateAccountSetting.java implements EntryPoint //.. private native void registerAFunction() /*-{ @com.verisona.bridge.client.CandidateMainView::alertWindow(); }-*/; this should give an alert but it doesn't work. is this what u r suggesting ? -- Aditya On Mon, Oct 18, 2010 at 3:26 PM, ep eplisc...@googlemail.com wrote: actually, you could be using HandlerManager as an event bus between all your modules, but I guess you trying to treat each of your modules as separate gwt applications, each having an entry point and also each independently compilable / runnable? therefore you cannot just reference classes cross-wise? in this case you could create a small API allowing message interchange or you follow observer pattern and the host page (being a master) can provide the implementation as a native JS code. On 18 Okt., 11:20, aditya sanas 007aditya.b...@gmail.com wrote: yes those are from same host in the same window. I have somewhere about 10 modules in my project out of which 1 is main modules which contains a Frame(GWT). and in this frame i m loading other 9 modules in the same window. So i want main window and frame should communicate with each other. that is there is should be some kind of message passing between these two modules but i m finding it little difficult to do it as both are from different modules and so the objects in one module is not accessible to the other. -- Aditya On Mon, Oct 18, 2010 at 2:03 PM, ep eplisc...@googlemail.com wrote: hi, a small question, do you open contents from same host (as parent window) within your innerframe? On 18 Okt., 09:26, Aditya 007aditya.b...@gmail.com wrote: Hello Guys, I am designing a web application using GWT which has one inner frame which loads different modules whenever user selects any menu from TOP frame that is from a main window. The problem where i have stuck now is whenever there is some error occurred inside a frame which contains a different module then that should notify main window about it. So I can handle all failure messages in my main module. If anyone has implemented it before or has some threads that u have gone thr' then please do reply. I had referred thishttp://gwt-ext.com/forum/viewtopic.php?f=2t=2459 this works fine as it is opening a new window but i want to open a frame inside a same window which sends messages to parent window containing it. -- Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send
i18n catalog file
hi its possible to tell the generator to create a destination catalog file via @Generate, WHY its not possible to hint the generator to load catalog file from custom location? I have a use-case where the catalog file reside under different path is it not possible without patching the LocalizableGenerator class? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n catalog file
SOLVED there is a patch on task 3540 On Oct 14, 11:36 am, ep eplisc...@googlemail.com wrote: hi its possible to tell the generator to create a destination catalog file via @Generate, WHY its not possible to hint the generator to load catalog file from custom location? I have a use-case where the catalog file reside under different path is it not possible without patching the LocalizableGenerator class? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.