Re: Declared compileSourcesArtifact was not found in project dependencies

2013-03-24 Thread Björn Moritz
Hi Kris, compileSourceArtifacts are related to maven artifacts, not to GWT modules; so the format for the artifact name needs to be groupId:artifactId. See also http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#compileSourcesArtifacts Regards, Björn On Sunday, March 24, 2013 2:07:1

Re: JSONParser.parseStrict() with \"

2013-03-24 Thread rkulisas
Before calling parseStrict(): {"name":"item_name","index":0,*"text":"Kindle Fire HD 8.9\"..."*} After parseStrict(): {"name":"item_name", "index":0, *"text":"Kindle Fire HD 8.9" ..."*} On Sunday, March 24, 2013 3:14:50 AM UTC-7, Thomas Broyer wrote: > > Could you show your code? (JSON string I

Re: java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)

2013-03-24 Thread Thomas Broyer
On Monday, March 25, 2013 1:25:29 AM UTC+1, Kris wrote: > > GWT 2.5.1 > Maven 3.0.4 > > Hi, suddenly I get this error, and I google it for a while now, and can > see others had the problem. > But no solution... > > * java.lang.NullPointerException* > *[ERROR] at > com.google.gwt.dev.util.Disk

Re: momentgwt - a GWT wrapper library for momentjs.com

2013-03-24 Thread Mohammad Al-Quraian
I think the module org.sgx.jsutil.JsUtil is required. On Sunday, March 24, 2013 9:43:10 PM UTC+3, Mohammad Al-Quraian wrote: > > When I tried to use the example: > Moment.moment().add(2, "days").format(" Do , h:mm:ss a") > > After inheriting the required module and including the jar, it gi

Re: momentgwt - a GWT wrapper library for momentjs.com

2013-03-24 Thread Mohammad Al-Quraian
When I tried to use the example: Moment.moment().add(2, "days").format(" Do , h:mm:ss a") After inheriting the required module and including the jar, it gives me this error: The type org.sgx.jsutil.client.JsObject cannot be resolved. It is indirectly referenced from required .class files

Re: How to mock static client side DOM calls with PowerMock?

2013-03-24 Thread Jens
The DOM class contains a static class variable "impl" that is instantiated using GWT.create(). I don't think you can workaround this fact using PowerMockito. What you can do is to refactor your code slightly. Instead of public Foo() { id = DOM.createUniqueId(); } you would refactor it to pu

Re: Receiver method onConstraintViolation not called

2013-03-24 Thread Thomas Broyer
On Sunday, March 24, 2013 2:50:59 PM UTC+1, Nils wrote: > > Hi, > thanks for your reply. > All my session beans are stateless and i'm using a persistence unit with > jta-transaction and hibernatePersistence provider. > I didn't change the transaction attribute, so it should be 'required' by >

Re: Receiver method onConstraintViolation not called

2013-03-24 Thread Nils
Hi, thanks for your reply. All my session beans are stateless and i'm using a persistence unit with jta-transaction and hibernatePersistence provider. I didn't change the transaction attribute, so it should be 'required' by default. I also don't call transaction methods explicit. Please correct

How to mock static client side DOM calls with PowerMock?

2013-03-24 Thread membersound
Hi, I have a class Bar that extends Foo. In Foo there is a DOM.createUniqueId()that I want to mock. What am I missing in the following code? Foo { String id; public Foo() { String id = DOM.createUniqueId(); } } Bar extends Foo { public Bar() { super();

Re: Declared compileSourcesArtifact was not found in project dependencies

2013-03-24 Thread Thomas Broyer
Note: for help with the org.codehaus.mojo:gwt-maven-plugin, please use the dedicated list at https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users Replies inlined below: On Sunday, March 24, 2013 2:07:14 AM UTC+1, Kris wrote: > > Hi, I have a maven project with several modules.

Re: Receiver method onConstraintViolation not called

2013-03-24 Thread Thomas Broyer
See https://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts#Flow for the flow on the server-side. Notably, validation shouldn't happen in a transaction. How are managing your sessions/transactions? What are their respective lifetimes? On Saturday, March 23, 2013 7:38:15 PM

Re: JSONParser.parseStrict() with \"

2013-03-24 Thread Thomas Broyer
Could you show your code? (JSON string I mean) On Sunday, March 24, 2013 9:14:18 AM UTC+1, rkulisas wrote: > > Hi, > > I have JSON string that contains \". When I pass this to either > parseStrict() or parseLenient(), I get back string with " instead of \". I > tested this with JS eval() as wel

JSONParser.parseStrict() with \"

2013-03-24 Thread rkulisas
Hi, I have JSON string that contains \". When I pass this to either parseStrict() or parseLenient(), I get back string with " instead of \". I tested this with JS eval() as well. eval() returns string with \". Anyone know how to work around this? Thank you. -- You received this message beca