Re: Debugging in production mode

2011-09-23 Thread Thomas Broyer
On Thursday, September 22, 2011 8:51:10 PM UTC+2, Laura Bickle wrote: My app works in development mode, but does not work in production mode. How do I debug in production mode? I'm using the gwt plugin for eclipse. I tried googling debugging in production mode gwt, but I'm still lost.

Re: Debugging in production mode

2011-09-23 Thread Thomas Broyer
Hey, looks like they're adding the perfect tool for this kind of use cases: http://code.google.com/p/google-web-toolkit/wiki/SourceMaps (code is in review at: http://gwt-code-reviews.appspot.com/1558803/ ) -- You received this message because you are subscribed to the Google Groups Google Web

Re: How exclude attribute can resolve No source code is available issue?

2011-09-23 Thread Thomas Broyer
On Friday, September 23, 2011 12:38:36 AM UTC+2, Richard wrote: Thanks for the reply. I read the link but still do not get it. Does exclude attribute exclude files match the pattern or exclude the file from the compile list? What I want is to tell gwtc to *ignore* XmlAdapter or

Re: The import cannot be resolved

2011-09-23 Thread Boris Lenzinger
Hi, Do you use those classes on the client side ? If it the case, it cannot work since you probably don't have any *.gwt.xml in your jar since this code cannot be translated to javascript. Else it is a classpath problem of your running application. Can you describe please how you launch the

RequestFactoryInterfaceValidator removed from GWT 2.4

2011-09-23 Thread koma
Hi I noticed RequestFactoryInterfaceValidator disappeared from 2.4. Googling around I came across this : http://gwt-code-reviews.appspot.com/1503804/ From the comments I understand that I have to include requestfactory-apt.jar in my build path to get compile time errors on RF validation

Re: RequestFactoryInterfaceValidator removed from GWT 2.4

2011-09-23 Thread koma
Ok, got it http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: how create project from pom??

2011-09-23 Thread Rob
Hi, This post may help: - http://uptick.com.au/content/getting-started-gwt-maven-and-eclipse Cheers Rob http://code.google.com/p/gwt-cx/ On Sep 23, 6:48 am, cri chuck.irvine...@gmail.com wrote: I am no doubt revealing my lack of basic maven skills, but here goes anyway

Re: FileUpload

2011-09-23 Thread Rob
Hi, You might also consider Apache FileUpload: - http://uptick.com.au/content/taking-advantage-apache-fileupload-and-opencsv Cheers Rob http://code.google.com/p/gwt-cx/ On Sep 23, 5:31 am, Manuel Carrasco Moñino man...@apache.org wrote: Take a look to gwtupload you can use either all the

Re: The import cannot be resolved

2011-09-23 Thread Alexandre Dupriez
GPE development mode removes some jar from the classpath of Jetty based on the code actually used. Check your code refers to at least one class of the jar sqljdbc4.jar. If not, try to reference (e.g. instantiate) whathever class from this jar inside your GWT application (either on client or server

Re: How exclude attribute can resolve No source code is available issue?

2011-09-23 Thread Alexandre Dupriez
You cannot exclude XmlAdapter or Unmarshaller if they are transitively refereed to in your client code (ie, if a class in your client code depends on it), since, as you might guess, every classes in your graph hierarchy must be translatable in JavaScript on client side. However, to ignore a class

Re: GWT Developer Plugin for Firefox 6

2011-09-23 Thread Robert W
Tday I updated addon in ff6 :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/139QL7S55JMJ. To post to this group, send email to

Re: Change the fontsize, color of cellTable header ?

2011-09-23 Thread Sudhakar Abraham
To change the property of .cellTableHeader in CellTableStyle.css. To set font-size:14px, color:#4b4a4a. I send the code segment try the below code. //CellTableStyle.css .cellTableHeader { font-size: 12px; color: #4b4a4a; height: 35px; border-bottom: 2px solid #60a6bf;

is code using DateTimeFormat not testable?

2011-09-23 Thread Shawn Brown
I'm just trying to test my code that has DateTimeFormat in it. However I see ... java.lang.ExceptionInInitializerError at com.google.gwt.i18n.client.DateTimeFormat.getDefaultDateTimeFormatInfo(DateTimeFormat.java:808) at

Re: Error with Quartz

2011-09-23 Thread andre_guitar7
I found the solution here http://groups.google.com/group/google-web-toolkit/...thread/thread/f4972bee810b6e86 The problem is the same with GWT. If you create a project in Eclipse with AppEngine get an error. Solved my problem by creating the project again without the AppEngine.

Re: Error with Quartz

2011-09-23 Thread andre_guitar7
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f4972bee810b6e86 On 23 set, 08:50, andre_guitar7 andreg...@gmail.com wrote: I found the solution herehttp://groups.google.com/group/google-web-toolkit/...thread/thread/f4... The problem is the same with GWT. If you

install problem help me thanks

2011-09-23 Thread wisdom white
when I install gwt the eclipse shows me a error like: An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing:

Re: ie8 problem with gwt 2.4?

2011-09-23 Thread guillaume prime
I have the same problem, if I compil only for IE8 it work fine, but if I want to compil for IE6, IE8, FF and Chrome, I have an error on IE8 It work ONLY on IE8 : inherits name=com.google.gwt.user.UserAgent/ set-property name=user.agent values=ie8 / set-configuration-property

Re: GWT Developer Plugin for Firefox 6

2011-09-23 Thread Daniel Dunér
The new FF6 plugin seems to run much faster. In comparison, the Cromium plugin feels so slow it might as well be standing still. Is this a correct and generally true observation? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Optimization of the final field

2011-09-23 Thread Vitaly
If the value of the final field is constant, the compiler can compute the value of the conditions at compile time. This will cut off the dead code and increase the speed. public class A { final boolean flag; public A (boolean flag) { this.flag = flag; } public

too much code: GWT Development with Activities and Places

2011-09-23 Thread magnum
I am trying to understand and adopt the MVP good practices and UIBinder alongside Activities, Places, Hisotry, Views, Presenters What strikes me is there seems to be too much code that does nothing. Place is one example. In the MVP part 1 and part 2 examples we had browser History modelled

GWT Portlets within a Portlet

2011-09-23 Thread sf_g...@bellsouth.net
If this is not the correct forum to ask this question, please direct me to the proper location. I have a portlet that I need to display other portlets based on receipt of broadcasts of different events. So if the portlet receives a note event, I need this portlet to display the note detail

EntityProxy injection with Guice - Guice-persist

2011-09-23 Thread koma
Hi Starting up a new project using *RF* and *guice-persist* on the server-side to start JPA and provide transaction management. I have a couple of tests going to inject the EntityManager into the services via the ServiceLocator : public class *ApplicationServiceLocator* implements

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread wstrange
I have no answers, but I fully agree. GWT development is getting horrendously complex. I have been playing with the RequestFactory - and while I appreciate what it is trying to do, the number of interfaces and classes one has to deal with is staggering. Let's hope that Dart (or Dash, or

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Harpal Grover
I agree with you guys completely. Sometimes too strict of an OOP approach can lead to lots of over-engineering. I guess it's all about striking a fine balance and knowing when to pick the battles you want to win and knowing when to concede defeat. On Fri, Sep 23, 2011 at 11:26 AM, wstrange

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Alfredo Quiroga-Villamil
I have to agree about this here as well, the Request Factory implementation is something that requires a lot of boilerplate code. By the time one is done implementing all the stuff you forget you had to make a call to the server. Alfredo On Fri, Sep 23, 2011 at 11:26 AM, wstrange

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Jeff Larsen
I've solved a lot of the boilerplate issues by writing an annotation processor to create my Proxies. I'd open source it, but I did it on my companies dime and they arne't interested in opensourcing projects. It is DEFINITELY worth the effort to do it though. -- You received this message

rpc log files

2011-09-23 Thread Mike Dundee
Hello, I've found out that GWT 2.3 compiler does not generate rpc.log files any more. Version 2.1 generated these handy files (we could then trace why specific objects could not be serialized, why they are not reachable etc.) Is there any way to generate the rpc logs in GWT 2.3 ? (during both

Re: how create project from pom??

2011-09-23 Thread cri
The uptick post is very outdated. It will only confuse folks I'm afraid. A much better place to start is the link I posted. (http:// code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven). Developing GWT in conjunction with Maven has IMHO always been error prone and tricky. It does seem like

Re: GWT Developer Plugin for Firefox 6

2011-09-23 Thread snayrb99
Supposedly mozilla's jetpack SDK (https://wiki.mozilla.org/Labs/ Jetpack/Roadmap) will make it faster to develop and migrate add on's. At this point however it is unclear to me whether the jetpack API supports all API function calls required by the GWT developer plugin. So I guess my questions

Re: How exclude attribute can resolve No source code is available issue?

2011-09-23 Thread Richard
Yes, that is my workaround. :-) But it is a hack, we want to have a *proper* way to fix it. On Sep 23, 4:05 am, Thomas Broyer t.bro...@gmail.com wrote: On Friday, September 23, 2011 12:38:36 AM UTC+2, Richard wrote: Thanks for the reply. I read the link but still do not get it. Does

Re: How exclude attribute can resolve No source code is available issue?

2011-09-23 Thread Richard
Could you clarify your example? For example, Let's say I have com.test.gwt_client.Client.java which refers javax.xml.bind.Unmarshaller, but Unmarshaller is *NOT* really used - it only exists in method signature. What does XML look like? source path=bind   exclude name=Unmarshaller.java/

Re: how create project from pom??

2011-09-23 Thread Hilco Wijbenga
On 23 September 2011 09:53, cri chuck.irvine...@gmail.com wrote: The uptick post is very outdated. It will only confuse folks I'm afraid. A much better place to start is the link I posted. (http:// code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven). Developing GWT in conjunction with

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Jeff Larsen
A good place to get started would be http://code.google.com/p/acris/wiki/AnnotationProcessing_DebuggingEclipse -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Thomas Broyer
Did almost the same, but as a Maven plugin that scans the classpath for classes extending a few base classes. The only thing I regret: it's part of the build process, so proxies are recreated each time, and therefore cannot be tweaked; which means that if something needs to be tweaked, it has

Re: mailto: links in Google Chrome

2011-09-23 Thread melody
Does this pb happen in dev/test mode ? Or in deploiement mode ? In production mode. May be you can try to use a GWT link instead of hard coded HTML mailto link. Can you kindly provide an example of what you mean by GWT link instead of HTML link. Keep in mind that I chose the HTML link in

Re: mailto: links in Google Chrome

2011-09-23 Thread Jeff Chimene
On 09/23/2011 10:51 AM, melody wrote: Does this pb happen in dev/test mode ? Or in deploiement mode ? In production mode. May be you can try to use a GWT link instead of hard coded HTML mailto link. Can you kindly provide an example of what you mean by GWT link instead of HTML link.

Re: Optimization of the final field

2011-09-23 Thread TreKing
On Fri, Sep 23, 2011 at 7:33 AM, Vitaly vtl...@gmail.com wrote: Do you have any ideas? About what ... ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app

RequestFactory / collections

2011-09-23 Thread Magno Machado
I have an entity with an one-to-many relationship, and a single view on the app where such entities are created, populated and persisted (Using requestfactory). At first, I thought I should create the requestcontext and instantiate a new proxy of the entity when the view is started, like this:

Re: EntityProxy injection with Guice - Guice-persist

2011-09-23 Thread Magno Machado
*@Inject* *private EntityManager em;* Don't know how to answer your question, but here you should inject ProviderEntityManager instead of EntityManager. The reason is that service classes are stored like singletons, and hence you should inject a provider as explained here

Re: How exclude attribute can resolve No source code is available issue?

2011-09-23 Thread Alexandre Dupriez
See my last answer. If the class is in your method signature, and thus your code contains a reference to it, you cannot get rid of the class with an exclude. This directive works only if you want to ignore classes which are on the path of the client side of the application (ie translated in JS)

Re: How exclude attribute can resolve No source code is available issue?

2011-09-23 Thread Richard
Got it. Thanks very much! On Sep 23, 3:54 pm, Alexandre Dupriez alexandre.dupr...@gmail.com wrote: See my last answer. If the class is in your method signature, and thus your code contains a reference to it, you cannot get rid of the class with an exclude. This directive works only if you

Edit an object in a List without a ListEditor

2011-09-23 Thread Maiku
Is there a way to setup an editor so with a subeditor for one item within a list without having to setup a ListEditor? My example is: I have an ConfigProxy that contains a list of LanguageProxy's (which contain a language code and a boolean for whether it is the default language or not). When

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-23 Thread Jonas
Hi, this Wiki entry helped me to solve the problem: http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation Do exactly what is shown in the printscreens and it should work. I'm not an experienced Java programmer and it was very difficult for me to understand all the

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-23 Thread Jonas
Hi, this Wiki entry helped me to solve the problem: http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation Do exactly what is shown in the printscreens and it should work. If it's not working tell exactly what you did. I almost got crazy and did see that they added

Re: Setting a style for a single cell of a celltable

2011-09-23 Thread Rike255
So I have a skeleton that looks like this: TextColumnStatusRpcBean statusColumn = new TextColumnStatusRpcBean() { @Override public String getCellStyleNames(Context context, StatusRpcBean object) { return ???; } @Override public String getValue(StatusRpcBean object) { return

Re: RequestFactory / collections

2011-09-23 Thread Aidan O'Kelly
On Fri, Sep 23, 2011 at 8:40 PM, Magno Machado magn...@gmail.com wrote: And when the user press save, I would call a method on the service to persist the whole entity in a single step, that is: There will be only one service method call Is this the right way of working with requestfactory?

Edit an object in a List without a ListEditor

2011-09-23 Thread Thomas Broyer
You could edit and flush your subobject from the setValue and flush methods of a ValueAwareEditor. You're not forced to use subeditors foreach and every value. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the

Re: RequestFactory / collections

2011-09-23 Thread Thomas Broyer
Note that the. with() only applies to return values, not to arguments. I.e. from server to client only. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Alain Ekambi
In other words this requires some high level hacking just to bring Data form A to B. I miss the simplicity in all this. GWT is becoming to over engineered imho. 2011/9/23 Thomas Broyer t.bro...@gmail.com Did almost the same, but as a Maven plugin that scans the classpath for classes extending

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Thomas Broyer
Many people using JPA/JDO or similar on the server-side already have DTOs and copy things from their entities to/from DTOs to bridge GWT-RPC and JPA/JDO. RequestFactory is not much different, except it does the copying part for you, and it adds better performance (serialization/deserialization

Re: Setting filename to show when saving file

2011-09-23 Thread Iacopo
I found this to work res.addHeader(Content-Disposition, filename=+fileName +.+extension); thanks for the support! :) On Sep 22, 3:18 pm, Ed ej19...@gmail.com wrote: Here is what i have used: response.addHeader(Content-Disposition, attachment; filename=\ + session.getAttribute(REPORT) + \)

Re: RequestFactory / collections

2011-09-23 Thread Aidan O'Kelly
(not related to OP) Ah, good to know, so I'm guessing RequestFactory tracks which relationships you originally retrieved for a given proxy, and only send these back with subsequent requests.. ? On Fri, Sep 23, 2011 at 10:37 PM, Thomas Broyer t.bro...@gmail.com wrote: Note that the. with() only

RichTextArea Exception with IE9

2011-09-23 Thread drtman
I get the exception below any time I try to add a RichTextArea to a panel in IE9. The RichTextArea can be created, but the exception is thrown any time it is added to a panel. I've recreated this pretty easily - it will even happen if I just create a new GWT web application project in eclipse,

Re: RequestFactory / collections

2011-09-23 Thread Thomas Broyer
No, RF does a diff between the object you retrieved (unmodifiable, passed to context.edit(obj)) and the one you're editing (returned from context.edit(obj)) at the time you fire() your context, and sends that diff over the wire. If you didn't retrieve a property and fills it on the

Re: Edit an object in a List without a ListEditor

2011-09-23 Thread Maiku
Hello Thomas, Thanks for the suggestion. I do not quite understand the user of ValueAwareEditor though. I have checked the information at http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html#ValueAwareEditor and on your blog (http://tbroyer.posterous.com/gwt-21-editors), and the

Re: RequestFactory / collections

2011-09-23 Thread Magno Machado
Ok, so now I did this: on view start: bars = new ArrayListBarProxy(); foo = request.create(FooProxy.class); foo.setBars(bars); when adding one item: bar = request.create(BarProxy.class); bar.setXxx(...); bars.add(bar); when saving: request.persist(foo); request.fire(); But only foo got

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread Alain Ekambi
Well i agree with you that RF brings a lot of usefull features. I just wish this could be done in a more simpler way. Like magnum said it s just too much code. 2011/9/24 Thomas Broyer t.bro...@gmail.com Many people using JPA/JDO or similar on the server-side already have DTOs and copy things

Difference between DataGrid and Cell Table

2011-09-23 Thread gangurg gangurg
Guys whats the difference between DataGrid and Cell Table , other than Data Grid has fixed header and footer and just the content scrolls . I have this problem where I have almost given up on resizing Cell Table if window resizes . The problem here is I am not able to get cell Table height.I

Re: too much code: GWT Development with Activities and Places

2011-09-23 Thread -sowdri-
Once you know the stack, which might vary from company to company, one option is to write a Maven Archetype that generates the boilerplate required to get started. Which could well include your gwt-commons library, and a rich set of BaseClasses for places and activities.. which is what we are

Re: Edit an object in a List without a ListEditor

2011-09-23 Thread -sowdri-
Even I'm struggling with ValueAwareEditors! According to my understanding, onPropertyChange of Editors implementing ValueAwareEditors, must be called automatically, by the driver, but so far no success with it,, A simple sample wil be a great help! -- You received this message because you

Re: The import cannot be resolved

2011-09-23 Thread -sowdri-
Eclipse has 2 notions of classpath. 1. Classpath: Modify this in the Project properties BuildPath settings 2. Runtime classpath: Modify this in Project properties run/debug configuration settings Almost every Eclipse classpath (ClassNotFoundException could be solved this

[gwt-contrib] Re: Allow @defs with multiple values (issue1557803)

2011-09-23 Thread rjrjr
On 2011/09/22 23:35:21, unnurg wrote: LGTM encore http://gwt-code-reviews.appspot.com/1557803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Fix name clash between RequestContext and the FindRequest impl interface. (issue1559803)

2011-09-23 Thread rjrjr
Reviewers: cromwellian, Description: Fix name clash between RequestContext and the FindRequest impl interface. I think this was only able to compile due to a javac bug. When I reinstalled eclipse today (don't ask, just don't ask), this line started failng with: Name clash: The method

[gwt-contrib] Re: Fix name clash between RequestContext and the FindRequest impl interface. (issue1559803)

2011-09-23 Thread rjrjr
On 2011/09/23 20:00:59, rjrjr wrote: Review requested http://gwt-code-reviews.appspot.com/1559803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Fix name clash between RequestContext and the FindRequest impl interface. (issue1559803)

2011-09-23 Thread cromwellian
Bizarre. LGTM. http://gwt-code-reviews.appspot.com/1559803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add SourceMap support to GWT (issue1558803)

2011-09-23 Thread cromwellian
http://gwt-code-reviews.appspot.com/1558803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] [google-web-toolkit] r10671 committed - Fix name clash between RequestContext and the FindRequest impl interfa...

2011-09-23 Thread codesite-noreply
Revision: 10671 Author: gwt.mirror...@gmail.com Date: Fri Sep 23 15:47:50 2011 Log: Fix name clash between RequestContext and the FindRequest impl interface. I think this was only able to compile due to a javac bug. When I reinstalled eclipse today (don't ask, just don't ask), this