Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem

2013-06-05 Thread Thomas Broyer
You might be interested 
by https://code.google.com/p/google-web-toolkit/issues/detail?id=7661

On Wednesday, June 5, 2013 11:07:51 PM UTC+2, CM wrote:
>
> HI 
>
> thank you for your post, this fixed it for me.
>
> Cheers
>
> Chris
>
> On Tuesday, 20 December 2011 20:48:05 UTC, Jesus Urenda wrote:
>>
>> I was able to fix this issue in my environment but I'm not 100% sure
>> why.  Basically all I did was to remove the hibernate jar out of the
>> WEB-INF/lib but made sure it was still part of the projects build
>> path.
>>
>> Contents of WEB-INF/lib
>> appengine-api-1.0-sdk-1.6.0.jar
>> appengine-api-labs-1.6.0.jar
>> appengine-jsr107cache-1.6.0.jar
>> apps-marketplace.jar
>> datanucleus-appengine-1.0.10.final.jar
>> datanucleus-core-1.1.5.jar
>> datanucleus-jpa-1.1.5.jar
>> geronimo-jpa_3.0_spec-1.1.1.jar
>> geronimo-jta_1.1_spec-1.1.1.jar
>> gwt-servlet-deps.jar
>> gwt-servlet.jar
>> jdo2-api-2.3-eb.jar
>> jsr107cache-1.1.jar
>> objectify-3.1.jar
>> requestfactory-apt.jar
>> requestfactory-server.jar
>> slf4j-api-1.6.1.jar
>> slf4j-log4j12-1.6.1.jar
>> validation-api-1.0.0.GA.jar
>>
>> I hope this helps.
>>
>> On Dec 10, 9:39 am, Ruben Leal  wrote:
>> > Hello guys,
>> >
>> > I'm trying to test gwt2.4 RequestFactory technology with Hibernate
>> > validator 4.2. After adding libs to my WEB-INF/lib I have this exception
>> > when I try to call persist of a simple object in the client side.
>> >
>> > I have this exception executing in local mode:
>> >
>> > java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z
>> >
>> > Deploying to app engine servers I have this exception:
>> >
>> > java.lang.IllegalAccessError: tried to access field
>> > org.slf4j.impl.StaticLoggerBinder.SINGLETON from class
>> > org.slf4j.LoggerFactory
>> >
>> > I search on google about similar errors and people speak about slf4j
>> > library versions. I tried to use different old versions with same 
>> hibernate
>> > validator version and same errors.
>> >
>> > Please some solution to my problem?
>> >
>> > this is the list of files in my WEB-INF/lib folder:
>> >
>> > /identidad/war/WEB-INF/lib/appengine-api-1.0-sdk-1.6.0.jar
>> > /identidad/war/WEB-INF/lib/appengine-api-labs-1.6.0.jar
>> > /identidad/war/WEB-INF/lib/appengine-jsr107cache-1.6.0.jar
>> > /identidad/war/WEB-INF/lib/apps-marketplace.jar
>> > /identidad/war/WEB-INF/lib/datanucleus-appengine-1.0.10.final.jar
>> > /identidad/war/WEB-INF/lib/datanucleus-core-1.1.5.jar
>> > /identidad/war/WEB-INF/lib/datanucleus-jpa-1.1.5.jar
>> > /identidad/war/WEB-INF/lib/geronimo-jpa_3.0_spec-1.1.1.jar
>> > /identidad/war/WEB-INF/lib/geronimo-jta_1.1_spec-1.1.1.jar
>> > /identidad/war/WEB-INF/lib/gwt-servlet-deps.jar
>> > /identidad/war/WEB-INF/lib/gwt-servlet.jar
>> > /identidad/war/WEB-INF/lib/hibernate-validator-4.2.0.Final.jar
>> > /identidad/war/WEB-INF/lib/jdo2-api-2.3-eb.jar
>> > /identidad/war/WEB-INF/lib/joda-time-1.6.jar
>> > /identidad/war/WEB-INF/lib/jsoup-1.5.2.jar
>> > /identidad/war/WEB-INF/lib/jsr107cache-1.1.jar
>> > /identidad/war/WEB-INF/lib/log4j-1.2.16.jar
>> > /identidad/war/WEB-INF/lib/requestfactory-server.jar
>> > /identidad/war/WEB-INF/lib/slf4j-api-1.6.1.jar
>> > /identidad/war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar
>> > /identidad/war/WEB-INF/lib/validation-api-1.0.0.GA.jar
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Is it possible to debug GWT compiled code that is being executed in a standalone v8 engine?

2013-06-05 Thread xanatosdavid
Hello,

I'm using GWT to compile a rather large Java project to JavaScript and 
executing it in a standalone V8 engine, 
using the *SingleScriptLinker* I only need to change the header of the 
final JS file to make it run in a V8 engine without any browser specific 
objects in the global scope.

Now I'm wondering if it is some how possible, to debug the GWT project in 
the eclipse IDE while it runs in the standalone v8 engine instead of a 
browser?
I understand that browsers need a plug-in to make it work, so it wont be 
strait forward, but may be it would be possible, with not to much afford, 
to make such a plug-in for a standalone v8.

Also, it would be really cool to be able to compile a GWT project for 
node.js and debug it in the eclipse IDE.

Any advice would be very much appreciated.

Cheers
David 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Export Pie Chart to Excel

2013-06-05 Thread Siddharthan Ilangovan
Hi,
 
I am looking for an optoin to export Pie Chart to Excel. Am using 
com.googlecode.gwt.charts.client.corechart.PieChart to build my chart. 
Please guide and new to gwt development.
 
Thanks,
Sid

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT dev team members blogs and way-of-work (WOW) advice ?

2013-06-05 Thread Ed Bras
> just curious if there is a framework that you consider an exemplar in
this respect?
No, I haven't got the silver bullet around here ;)...

> I'm a huge proponent of building more popular support of GWT
Totally agree... And yes, a kickass app would be great, but let's not
forget the commercial side of the GWT framework like mentioned above, that
is: making a product/framework that is awesome, is nice, but making sure
people use it, is another thing... This is the risk of many technical
driven products/framework... Many products/frameworks died slowly because
of this...

Especially now that Google put GWT on it's "feet", how is this commercial
aspect filled in?

I think you have to target two type of persons:
1) The dev people: Kickass app would be a good start... but still, dev
people don't want to read these days and see something on their display
within seconds, so there must be "something" to do this. Maybe let the
kickass app contains severy modules that one can start with that has an
associated HOWTO/blog/doc
2) The decision makers. These are often the people that "hear" something
about a product/framework and push it to the dev people on the floor (even
if they don't like it, they must play/use it)... Let's not forget to get in
"touch" with these people as they are very important IMHO.



On Wed, Jun 5, 2013 at 10:45 PM, Joseph Lust  wrote:

> Ed,
>
> Just curious if there is a framework that you consider an exemplar in this
> respect? I've never seen that Hibernate blog in three years of doing
> Hibernate, and its CSS nearly made me cry. So curious what framework has a
> popular nexus of that sort that everyone rallies around.
>
> I'm a huge proponent of building more popular support of GWT, but I think
> the primary bulwark is that it is a complex framework not amicable to
> trivial script kiddie demos. Probably the best thing we can do is build a
> kickass GWT showcase site and just let people say "how'd you do that" and
> let them get piqued so they can dig deeper and learn how it's done.
>
> FWIW, every employer I've ever worked at blogs FB/G+/TW, so those
> community sites are not that usable by many enterprise devs.
>
>
> Sincerely,
> Joseph
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/wrgfnRDEAr8/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem

2013-06-05 Thread CM
HI 

thank you for your post, this fixed it for me.

Cheers

Chris

On Tuesday, 20 December 2011 20:48:05 UTC, Jesus Urenda wrote:
>
> I was able to fix this issue in my environment but I'm not 100% sure
> why.  Basically all I did was to remove the hibernate jar out of the
> WEB-INF/lib but made sure it was still part of the projects build
> path.
>
> Contents of WEB-INF/lib
> appengine-api-1.0-sdk-1.6.0.jar
> appengine-api-labs-1.6.0.jar
> appengine-jsr107cache-1.6.0.jar
> apps-marketplace.jar
> datanucleus-appengine-1.0.10.final.jar
> datanucleus-core-1.1.5.jar
> datanucleus-jpa-1.1.5.jar
> geronimo-jpa_3.0_spec-1.1.1.jar
> geronimo-jta_1.1_spec-1.1.1.jar
> gwt-servlet-deps.jar
> gwt-servlet.jar
> jdo2-api-2.3-eb.jar
> jsr107cache-1.1.jar
> objectify-3.1.jar
> requestfactory-apt.jar
> requestfactory-server.jar
> slf4j-api-1.6.1.jar
> slf4j-log4j12-1.6.1.jar
> validation-api-1.0.0.GA.jar
>
> I hope this helps.
>
> On Dec 10, 9:39 am, Ruben Leal  wrote:
> > Hello guys,
> >
> > I'm trying to test gwt2.4 RequestFactory technology with Hibernate
> > validator 4.2. After adding libs to my WEB-INF/lib I have this exception
> > when I try to call persist of a simple object in the client side.
> >
> > I have this exception executing in local mode:
> >
> > java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z
> >
> > Deploying to app engine servers I have this exception:
> >
> > java.lang.IllegalAccessError: tried to access field
> > org.slf4j.impl.StaticLoggerBinder.SINGLETON from class
> > org.slf4j.LoggerFactory
> >
> > I search on google about similar errors and people speak about slf4j
> > library versions. I tried to use different old versions with same 
> hibernate
> > validator version and same errors.
> >
> > Please some solution to my problem?
> >
> > this is the list of files in my WEB-INF/lib folder:
> >
> > /identidad/war/WEB-INF/lib/appengine-api-1.0-sdk-1.6.0.jar
> > /identidad/war/WEB-INF/lib/appengine-api-labs-1.6.0.jar
> > /identidad/war/WEB-INF/lib/appengine-jsr107cache-1.6.0.jar
> > /identidad/war/WEB-INF/lib/apps-marketplace.jar
> > /identidad/war/WEB-INF/lib/datanucleus-appengine-1.0.10.final.jar
> > /identidad/war/WEB-INF/lib/datanucleus-core-1.1.5.jar
> > /identidad/war/WEB-INF/lib/datanucleus-jpa-1.1.5.jar
> > /identidad/war/WEB-INF/lib/geronimo-jpa_3.0_spec-1.1.1.jar
> > /identidad/war/WEB-INF/lib/geronimo-jta_1.1_spec-1.1.1.jar
> > /identidad/war/WEB-INF/lib/gwt-servlet-deps.jar
> > /identidad/war/WEB-INF/lib/gwt-servlet.jar
> > /identidad/war/WEB-INF/lib/hibernate-validator-4.2.0.Final.jar
> > /identidad/war/WEB-INF/lib/jdo2-api-2.3-eb.jar
> > /identidad/war/WEB-INF/lib/joda-time-1.6.jar
> > /identidad/war/WEB-INF/lib/jsoup-1.5.2.jar
> > /identidad/war/WEB-INF/lib/jsr107cache-1.1.jar
> > /identidad/war/WEB-INF/lib/log4j-1.2.16.jar
> > /identidad/war/WEB-INF/lib/requestfactory-server.jar
> > /identidad/war/WEB-INF/lib/slf4j-api-1.6.1.jar
> > /identidad/war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar
> > /identidad/war/WEB-INF/lib/validation-api-1.0.0.GA.jar
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT dev team members blogs and way-of-work (WOW) advice ?

2013-06-05 Thread Joseph Lust
Ed,

Just curious if there is a framework that you consider an exemplar in this 
respect? I've never seen that Hibernate blog in three years of doing 
Hibernate, and its CSS nearly made me cry. So curious what framework has a 
popular nexus of that sort that everyone rallies around.

I'm a huge proponent of building more popular support of GWT, but I think 
the primary bulwark is that it is a complex framework not amicable to 
trivial script kiddie demos. Probably the best thing we can do is build a 
kickass GWT showcase site and just let people say "how'd you do that" and 
let them get piqued so they can dig deeper and learn how it's done.

FWIW, every employer I've ever worked at blogs FB/G+/TW, so those community 
sites are not that usable by many enterprise devs.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Get Data CellTable

2013-06-05 Thread kim young ill
does the fieldupdater doenst fit your need ?


On Wed, Jun 5, 2013 at 9:41 PM,  wrote:

> Nobody?
>
>
> Le mercredi 29 mai 2013 14:46:48 UTC-4, sebastie...@isen-lille.fr a
> écrit :
>
>> Hi everyone,
>> I have a simple CellTable with editable cells. I add a button "save"
>> outside of the table. So, I want to be able to save the change of the final
>> user.
>>
>> I want to do something like that:
>> If the button is cliked:
>> int i=0;
>> int j=0;
>> while(i> while(j> *myList = table.getCellText(i,j) ??? ( I don't know how to do that )** *
>> j=j+1;
>> }
>> i=i+1;
>> j=0;
>> }
>>
>> I don't know how to get a cell individually...
>>
>> Can you help me?
>>
>> Thanks.
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Get Data CellTable

2013-06-05 Thread Jens
Add a FieldUpdater to your column. It will be called when editing in a cell 
has occurred and allows you to update your data with the new edited value.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Get Data CellTable

2013-06-05 Thread sebastien . ribeil
Nobody?

Le mercredi 29 mai 2013 14:46:48 UTC-4, sebastie...@isen-lille.fr a écrit :
>
> Hi everyone,
> I have a simple CellTable with editable cells. I add a button "save" 
> outside of the table. So, I want to be able to save the change of the final 
> user.
>
> I want to do something like that:
> If the button is cliked:
> int i=0;
> int j=0;
> while(i while(j *myList = table.getCellText(i,j) ??? ( I don't know how to do that )** * 
> j=j+1;
> }
> i=i+1;
> j=0;
> }
>
> I don't know how to get a cell individually...
>
> Can you help me?
>
> Thanks.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [ANN] net.ltgt.gwt.maven:gwt-maven-plugin:1.0-alpha-1 released

2013-06-05 Thread Thomas Broyer
As the error says, gwt:compile needs the module name to be supplied,
and it obviously isn't on "EventBinder (Parent)" which has
packaging=pom.

Why are you calling gwt:compile directly? gwt:compile is bound to the
prepare-package phase of the gwt-app packaging so just use "mvn
package" (or "mvn prepare-package").

On Wed, Jun 5, 2013 at 6:32 PM, Lexis Nexis  wrote:
> I got the following error Once I run mvn -V gwt:compile for
> gwteventbinder-master. What am I missing?
>
> 
> C:\gwt\gwteventbinder-master>c:\apache\maven\3.0.5\bin\mvn -V gwt:compile
> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
> 08:51:28-0500)
> Maven home: c:\Apache\maven\3.0.5\bin\..
> Java version: 1.6.0_35, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_35\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] EventBinder (Parent)
> [INFO] EventBinder
> [INFO] EventBinder Sample Application
> [INFO]
> [INFO]
> 
> [INFO] Building EventBinder (Parent) 1.0.1-SNAPSHOT
> [INFO]
> 
> [INFO]
> [INFO] --- gwt-maven-plugin:1.0-alpha-2:compile (default-cli) @
> eventbinder-parent ---
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] EventBinder (Parent) .. FAILURE [0.213s]
> [INFO] EventBinder ... SKIPPED
> [INFO] EventBinder Sample Application  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2.130s
> [INFO] Finished at: Wed Jun 05 12:30:33 EDT 2013
> [INFO] Final Memory: 8M/151M
> [INFO]
> 
> [ERROR] Failed to execute goal
> net.ltgt.gwt.maven:gwt-maven-plugin:1.0-alpha-2:compile (default-cli) on
> project eventbinder-parent: The parameters 'mo
> duleName' for goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-alpha-2:compile
> are missing or invalid -> [Help 1]
>
> --
>
>
> On Wednesday, June 5, 2013 5:36:32 AM UTC-4, Thomas Broyer wrote:
>>
>>
>>
>> On Tuesday, June 4, 2013 8:24:53 PM UTC+2, Lexis Nexis wrote:
>>>
>>> I have the following two questions:
>>> 1. Can we have more sub source folders under src/main such as
>>> src/main/java, src/main/gwt for GWT, src/main/birt,for BIRT, src/main/config
>>> for Spring Java configuration.
>>
>>
>> gwt-lib and gwt-app packagings are for GWT code only (gwt-app will only
>> package the generated JS/HTML); you shouldn't mix client and server code in
>> the same Maven module (you can make a "shared" module, but then I think you
>> shouldn't bundle your gwt.xml, sources and super-sources within that JAR;
>> YMMV). Have a look at the e2e integration test for an example, and see
>> http://blog.ltgt.net/announcing-gwt-maven-archetypes-project/ for the
>> rationale (well, I think I explained it in this blog post).
>> Otherwise, well, they'll use all source roots and resources so you can
>> have as many as you want (e.g. some plugin that generates Java sources and
>> adds the folder as a source root; or using the build-helper-maven-plugin to
>> add a folder from src/main as a source root; it doesn't matter where the
>> source root comes from).
>>
>>>
>>> 2. I have a huge project (> 1000 database tables). I like to generate
>>> many gwtar files for my internal team in order to reduce gwt compilation
>>> time. How do I do it? Should I use CompileModule from prompt? I like to get
>>> one script how to generate a gwtar file?
>>
>>
>> I'd call CompileModule using the exec-maven-plugin then. At the
>> process-classes or prepare-package phases, everything (compiled classes and
>> their sources, and resources) should be in the
>> ${project.build.outputDirectory} so you shouldn't have to deal with the
>> classpath and can just use ${project.build.outputDirectory} as the -out
>> folder for CompileModule.
>>
>> I'm curious now: did you measure the gains? I've been told Google actually
>> doesn't use gwtar for their internal libs and given how their build system
>> works they can't take advantage of the PersistentUnitCache from previous
>> runs; admittedly they have huge build resources but we also know that speed
>> matters for them, so if they could save some time in downstream compilations
>

Re: [ANN] net.ltgt.gwt.maven:gwt-maven-plugin:1.0-alpha-1 released

2013-06-05 Thread Lexis Nexis
I got the following error Once I run mvn -V gwt:compile for 
gwteventbinder-master. What am I missing?


C:\gwt\gwteventbinder-master>c:\apache\maven\3.0.5\bin\mvn -V gwt:compile
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 
08:51:28-0500)
Maven home: c:\Apache\maven\3.0.5\bin\..
Java version: 1.6.0_35, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_35\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] Scanning for projects...
[INFO] 

[INFO] Reactor Build Order:
[INFO]
[INFO] EventBinder (Parent)
[INFO] EventBinder
[INFO] EventBinder Sample Application
[INFO]
[INFO] 

[INFO] Building EventBinder (Parent) 1.0.1-SNAPSHOT
[INFO] 

[INFO]
[INFO] --- gwt-maven-plugin:1.0-alpha-2:compile (default-cli) @ 
eventbinder-parent ---
[INFO] 

[INFO] Reactor Summary:
[INFO]
[INFO] EventBinder (Parent) .. FAILURE [0.213s]
[INFO] EventBinder ... SKIPPED
[INFO] EventBinder Sample Application  SKIPPED
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 2.130s
[INFO] Finished at: Wed Jun 05 12:30:33 EDT 2013
[INFO] Final Memory: 8M/151M
[INFO] 

[ERROR] Failed to execute goal 
net.ltgt.gwt.maven:gwt-maven-plugin:1.0-alpha-2:compile (default-cli) on 
project eventbinder-parent: The parameters 'mo
duleName' for goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-alpha-2:compile 
are missing or invalid -> [Help 1]

--

On Wednesday, June 5, 2013 5:36:32 AM UTC-4, Thomas Broyer wrote:
>
>
>
> On Tuesday, June 4, 2013 8:24:53 PM UTC+2, Lexis Nexis wrote:
>>
>> I have the following two questions:
>> 1. Can we have more sub source folders under src/main such as 
>> src/main/java, src/main/gwt for GWT, src/main/birt,for BIRT, 
>> src/main/config for Spring Java configuration.
>>
>
> gwt-lib and gwt-app packagings are for GWT code only (gwt-app will only 
> package the generated JS/HTML); you shouldn't mix client and server code in 
> the same Maven module (you can make a "shared" module, but then I think you 
> shouldn't bundle your gwt.xml, sources and super-sources within that JAR; 
> YMMV). Have a look at the e2e integration test for an example, and see 
> http://blog.ltgt.net/announcing-gwt-maven-archetypes-project/ for the 
> rationale (well, I think I explained it in this blog post).
> Otherwise, well, they'll use all source roots and resources so you can 
> have as many as you want (e.g. some plugin that generates Java sources and 
> adds the folder as a source root; or using the build-helper-maven-plugin to 
> add a folder from src/main as a source root; it doesn't matter where the 
> source root comes from).
>  
>
>> 2. I have a huge project (> 1000 database tables). I like to generate 
>> many gwtar files for my internal team in order to reduce gwt compilation 
>> time. How do I do it? Should I use CompileModule from prompt? I like to get 
>> one script how to generate a gwtar file?
>>
>
> I'd call CompileModule using the exec-maven-plugin then. At the 
> process-classes or prepare-package phases, everything (compiled classes and 
> their sources, and resources) should be in the 
> ${project.build.outputDirectory} so you shouldn't have to deal with the 
> classpath and can just use ${project.build.outputDirectory} as the -out 
> folder for CompileModule.
>
> I'm curious now: did you measure the gains? I've been told Google actually 
> doesn't use gwtar for their internal libs and given how their build system 
> works they can't take advantage of the PersistentUnitCache from previous 
> runs; admittedly they have huge build resources but we also know that speed 
> matters for them, so if they could save some time in downstream 
> compilations I'd think they'd use the existing tool (CompileModule) for 
> that?
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more opti

Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-06-05 Thread Nermin
Dear Juan,

thank you for a fast reply.
Yes I would like to use unidirectional mapping, but in combination with 
@PrePersist method at a child entity which changes one parameter value. 

Here is my code:

@Entity
public class CompanyUD {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@org.datanucleus.api.jpa.annotations.Extension(vendorName = 
"datanucleus", key = "gae.encoded-pk", value = "true")
private String id;

 @OneToOne(cascade=CascadeType.ALL)
 @JoinColumn(name="admin_user")
 TradesmanUD adminUser;

private String name;

.. get / Set
}

@Entity
public class TradesmanUD {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@org.datanucleus.api.jpa.annotations.Extension(vendorName = 
"datanucleus", key = "gae.encoded-pk", value = "true")
private String id;

private String name;

//@PrePersist
//public void myPrePers(){
//setName("Some different Name");
//}


.. get / set
}

// == My call:

private void testOneToOne() {
CompanyUD company = new CompanyUD();
company.setName("MyTest Company");

TradesmanUD user = new TradesmanUD();
user.setName("My test Admin");

company.setAdminUser(user);

EntityManager em = emfInstance.createEntityManager();
em.persist(company);
em.close();
}

The code above works fine without the @PrePersist method at TradesmanUD (UD 
stays for unidirectional)

With @PrePersist in place i get the following ERROR:

*Detected attempt to establish CompanyUD(no-id-yet) as the parent of 
TradesmanUD(52) but the entity identified by TradesmanUD(52) has already been 
persisted without a parent.  A parent cannot be established or changed once an 
object has been persisted.*



I am using JPA with DataNucleus on Google Appengine. 

Thank you for your help!

Nermin



Am Mittwoch, 5. Juni 2013 16:03:59 UTC+2 schrieb Juan Pablo Gardella:
>
> I've assumed you are trying to use unidirectional mapping. Check 
> http://uaihebert.com/?p=1674&page=19
>
>
>
> 2013/6/5 Nermin >
>
>> Dear Juan, Dear GWT Group
>>
>> thank you very much for your help. I fixed most of my problems by 
>> following your advice. All @OneToMany relations work fine after I made sure 
>> the @ManyToOne relation is populated manually as you suggested.
>>
>> Unfortunately I cannot get @OneToOne relation running wen @PrePerist is 
>> used on a child.
>>
>> My sample code is here:
>> https://dl.dropboxusercontent.com/u/2983671/JPA_Problem/JPA_Problem.zip
>>
>> Two Classes: CompanyX, TradesmanX
>> CompanyX stays in a OneToOne owned relation with TradesmanX
>> I use @PrePersist on TradesmanX in order to pre-set some fields before 
>> the Object gets persisted in the DB.
>>
>> @Entity
>> public class CompanyX {
>> ...
>> @OneToOne(cascade=CascadeType.ALL)
>> private TradesmanX adminUser;
>> }
>>
>>
>> @Entity
>> public class TradesmanX {
>> ...
>> @PrePersist
>> public void myMethod(){
>> System.out.println("Pre Persist");
>> this.setFirstName("USER_X");
>> }
>> ...
>> }
>>
>> //Here is how I persist them within my test servlet:
>>
>> private void testPersistenceTwo() {
>>
>> CompanyX company = new CompanyX();
>> company.setName("my Comp");
>>
>> TradesmanX user = new TradesmanX();
>> user.setFirstName("Test_FName");
>> user.setLastName("Test_Lname");
>>
>> company.setAdminUser(user);
>> company.persist();
>> }
>>
>>
>> I am getting a similar error to the previous one:
>> javax.persistence.PersistenceException: Detected attempt to establish 
>> CompanyX(no-id-yet) as the parent of TradesmanX(7) but the entity 
>> identified by TradesmanX(7) has already been persisted without a parent.  A 
>> parent cannot be established or changed once an object has been persisted.
>>
>> Is there a solution for this?
>> Would it be possible to provide some working example?
>>
>> Thank you in advance:
>>
>> Nermin
>>
>>
>>
>>
>>
>> Am Donnerstag, 23. Mai 2013 15:09:41 UTC+2 schrieb Nermin:
>>>
>>> When I try to do that, I get a following error:
>>>
>>> java.lang.NullPointerException
>>> at 
>>> com.google.appengine.**datanucleus.StoreFieldManager.**storeRelations(**StoreFieldManager.java:848)
>>> at 
>>> com.google.appengine.**datanucleus.**DatastorePersistenceHandler.**insertObjectsInternal(**DatastorePersistenceHandler.**java:367)
>>> at 
>>> com.google.appengine.**datanucleus.**DatastorePersistenceHandler.**insertObject(**DatastorePersistenceHandler.**java:218)
>>> at 
>>> org.datanucleus.state.**JDOStateManager.**internalMakePersistent(**JDOStateManager.java:2377)
>>> at 
>>> org.datanucleus.state.**JDOStateManager.flush(**JDOStateManager.java:3769)
>>> at 
>>> org.datanucleus.state.**JDOStateManager.**getExternalObjectId(**JDOStateManager.java:1088)
>>> at 
>>> org.datanucleus.state.**JDOStateManager.getO

Re: PayPal embedded: how to launch the lightbox from JavaScript

2013-06-05 Thread Adolfo Panizo Touzon
Hi Ronny,

It looks like to me like you are not getting the object PAYPAL in the right
way.

Have you checked if it is null?

Adolfo.


On Sat, Jun 1, 2013 at 11:39 PM, Ronny  wrote:

> Hey there,
>
> i'd like to integrate PayPal's DigitalGoods flow for my micropayments.
> I've already managed to integrate the standard flow for Adaptive Payments
> with opening a new window, but now I have to integrate the embedded flow
> using the lightbox.
> I haven't worked with JavaScript yet, so I have some troubles with it.
> Paypal integration guide says:
>
>
>1. Create your form or button.
>   - You must include the pay key and redirect to
>   https://www.paypal.com/webapps/adaptivepayment/flow/pay.
>   - Optionally, include a preapproval key if you want to enable the
>   selection of *Preapproval for future payments*
>   - Specify that a lightbox opens in the PayPal-created IFRAME,
>   PPDGFrame.
>   - Set the expType parameter to indicate your preference for the
>   context in which the PayPal payment flow is displayed. You must specify
>   light for lightbox.
>
>"https://www.paypal.com/webapps/adaptivepayment/flow/pay";
>target="PPDGFrame">
>
>   
>  name="preapprovalkey" value="*PA-...*">id="submitBtn" value="Pay with PayPal">
>
>*Note:* To modify an existing application to use the embedded payment
>flow, change the redirect from
>https://www.paypal.com/cgi-bin/webscr?cmd=_ap-payment&paykey=... to
>https://www.paypal.com/webapps/adaptivepayment/flow/pay? paykey=... after
>obtaining the pay key.
>2. Include the PayPal JavaScript functions from dg.js.
>
>https://www.paypalobjects.com/js/external/dg.js";>
>
>
>3. Create an embedded flow object and associate it with your payment
>form or button.
>
>
>var dgFlow = new PAYPAL.apps.DGFlow({ trigger: 'submitBtn' });
>
>
>
>
>
> I've done it that way:
> 1 created a FormPanel with two "Hidden" widgets and one SubmitButton
> public class PayPalLightbox extends FormPanel{
> VerticalPanel vert = new VerticalPanel();
>  public PayPalLightbox(String authUrl, String payKey){
> super("PPDGFrame");
> setAction(authUrl + "?paykey=" + payKey);
> setWidget(vert);
> Hidden expTypeField = new Hidden("expType", "light");
> vert.add(expTypeField);
> Hidden payKeyField = new Hidden("paykey", payKey);
> vert.add(payKeyField);
> SubmitButton submitBtn = new SubmitButton("submitBtn");
> submitBtn.setVisible(false);
> vert.add(submitBtn);
>
> }
>
> 2. Added https://www.paypalobjects.com/js/external/dg.js"; 
> 
> to my project.html
> 3. Created in PayPalLightbox class the method:  private native void
> showLightbox() /*-{
> var dgFlow = new $wnd.PAYPAL.apps.DGFlow({
> trigger: "submitBtn"
> });
>  }-*/;
>
> and called it:
> (...) ppLB= new PaypalLightBox(...)
> ppLB.showLightbox()
>
> that causes following error when calling showLightbox:
> com.google.gwt.core.client.JavaScriptException: (TypeError)
> @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript
> object(37782), JavaScript object(37674), JavaScript object(37785)]): Cannot
> read property 'apps' of undefined
>
> I've searched groups how to deal with it the whole day, but didn't found a
> soulution yet. Any help would be greatly appreciated.
>
> Thanks in advance!
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Still problems with com.google.gwt.core.client.GWTBridge

2013-06-05 Thread Thomas Broyer


On Wednesday, June 5, 2013 3:51:52 PM UTC+2, Andrei Costescu wrote:
>
> I see this happening in 2.5.1 as well.
> (I used the fix jar in 2.5.0  - I'll keep using it in 2.5.1)
>

Are you using any third-party GWT library on the server? Which class is 
trying to access com.google.gwt.core.client.GWT? (rather than 
com.google.gwt.core.shared.GWT) 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-06-05 Thread Juan Pablo Gardella
I've assumed you are trying to use unidirectional mapping. Check
http://uaihebert.com/?p=1674&page=19



2013/6/5 Nermin 

> Dear Juan, Dear GWT Group
>
> thank you very much for your help. I fixed most of my problems by
> following your advice. All @OneToMany relations work fine after I made sure
> the @ManyToOne relation is populated manually as you suggested.
>
> Unfortunately I cannot get @OneToOne relation running wen @PrePerist is
> used on a child.
>
> My sample code is here:
> https://dl.dropboxusercontent.com/u/2983671/JPA_Problem/JPA_Problem.zip
>
> Two Classes: CompanyX, TradesmanX
> CompanyX stays in a OneToOne owned relation with TradesmanX
> I use @PrePersist on TradesmanX in order to pre-set some fields before the
> Object gets persisted in the DB.
>
> @Entity
> public class CompanyX {
> ...
> @OneToOne(cascade=CascadeType.ALL)
> private TradesmanX adminUser;
> }
>
>
> @Entity
> public class TradesmanX {
> ...
> @PrePersist
> public void myMethod(){
> System.out.println("Pre Persist");
> this.setFirstName("USER_X");
> }
> ...
> }
>
> //Here is how I persist them within my test servlet:
>
> private void testPersistenceTwo() {
>
> CompanyX company = new CompanyX();
> company.setName("my Comp");
>
> TradesmanX user = new TradesmanX();
> user.setFirstName("Test_FName");
> user.setLastName("Test_Lname");
>
> company.setAdminUser(user);
> company.persist();
> }
>
>
> I am getting a similar error to the previous one:
> javax.persistence.PersistenceException: Detected attempt to establish
> CompanyX(no-id-yet) as the parent of TradesmanX(7) but the entity
> identified by TradesmanX(7) has already been persisted without a parent.  A
> parent cannot be established or changed once an object has been persisted.
>
> Is there a solution for this?
> Would it be possible to provide some working example?
>
> Thank you in advance:
>
> Nermin
>
>
>
>
>
> Am Donnerstag, 23. Mai 2013 15:09:41 UTC+2 schrieb Nermin:
>>
>> When I try to do that, I get a following error:
>>
>> java.lang.NullPointerException
>>  at 
>> com.google.appengine.**datanucleus.StoreFieldManager.**storeRelations(**StoreFieldManager.java:848)
>>  at 
>> com.google.appengine.**datanucleus.**DatastorePersistenceHandler.**insertObjectsInternal(**DatastorePersistenceHandler.**java:367)
>>  at 
>> com.google.appengine.**datanucleus.**DatastorePersistenceHandler.**insertObject(**DatastorePersistenceHandler.**java:218)
>>  at 
>> org.datanucleus.state.**JDOStateManager.**internalMakePersistent(**JDOStateManager.java:2377)
>>  at 
>> org.datanucleus.state.**JDOStateManager.flush(**JDOStateManager.java:3769)
>>  at 
>> org.datanucleus.state.**JDOStateManager.**getExternalObjectId(**JDOStateManager.java:1088)
>>  at 
>> org.datanucleus.state.**JDOStateManager.getObjectId(**JDOStateManager.java:958)
>>  at 
>> com.emajstor.server.**persistence.Company.**jdoGetObjectId(Company.java)
>>  at 
>> org.datanucleus.api.jpa.**JPAAdapter.getIdForObject(**JPAAdapter.java:272)
>>  at 
>> com.google.appengine.**datanucleus.EntityUtils.**getKeyForObject(EntityUtils.**java:245)
>>  at 
>> com.google.appengine.**datanucleus.EntityUtils.**getParentKey(EntityUtils.java:**853)
>>  at 
>> com.google.appengine.**datanucleus.StoreFieldManager.**establishEntityGroup(**StoreFieldManager.java:939)
>>  at 
>> com.google.appengine.**datanucleus.**DatastorePersistenceHandler.**insertObjectsInternal(**DatastorePersistenceHandler.**java:244)
>>  at 
>> com.google.appengine.**datanucleus.**DatastorePersistenceHandler.**insertObject(**DatastorePersistenceHandler.**java:218)
>>  at 
>> org.datanucleus.state.**JDOStateManager.**internalMakePersistent(**JDOStateManager.java:2377)
>>  at 
>> org.datanucleus.state.**JDOStateManager.flush(**JDOStateManager.java:3769)
>>  at 
>> org.datanucleus.**ObjectManagerImpl.**flushInternalWithOrdering(**ObjectManagerImpl.java:3884)
>>  at 
>> org.datanucleus.**ObjectManagerImpl.**flushInternal(**ObjectManagerImpl.java:3807)
>>  at 
>> org.datanucleus.**ObjectManagerImpl.flush(**ObjectManagerImpl.java:3747)
>>  at 
>> org.datanucleus.**ObjectManagerImpl.preCommit(**ObjectManagerImpl.java:4137)
>>  at 
>> org.datanucleus.**ObjectManagerImpl.**transactionPreCommit(**ObjectManagerImpl.java:428)
>>  at 
>> org.datanucleus.**TransactionImpl.**internalPreCommit(**TransactionImpl.java:400)
>>  at org.datanucleus.**TransactionImpl.commit(**TransactionImpl.java:288)
>>  at 
>> org.datanucleus.**ObjectManagerImpl.close(**ObjectManagerImpl.java:1090)
>>  at 
>> org.datanucleus.api.jpa.**JPAEntityManager.close(**JPAEntityManager.java:193)
>>  at com.emajstor.server.**persistence.Company.persist(**Company.java:110)
>>  at 
>> com.emajstor.server.test.**MyTestServlet.**testPersistenceOne(**MyTestServlet.java:74)
>>  at 
>> com.emajstor.server.test.**MyT

Re: Still problems with com.google.gwt.core.client.GWTBridge

2013-06-05 Thread Andrei Costescu
I see this happening in 2.5.1 as well.
(I used the fix jar in 2.5.0  - I'll keep using it in 2.5.1)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-06-05 Thread Nermin
Dear Juan, Dear GWT Group

thank you very much for your help. I fixed most of my problems by following 
your advice. All @OneToMany relations work fine after I made sure the 
@ManyToOne relation is populated manually as you suggested.

Unfortunately I cannot get @OneToOne relation running wen @PrePerist is 
used on a child.

My sample code is here:
https://dl.dropboxusercontent.com/u/2983671/JPA_Problem/JPA_Problem.zip

Two Classes: CompanyX, TradesmanX
CompanyX stays in a OneToOne owned relation with TradesmanX
I use @PrePersist on TradesmanX in order to pre-set some fields before the 
Object gets persisted in the DB.

@Entity
public class CompanyX {
...
@OneToOne(cascade=CascadeType.ALL)
private TradesmanX adminUser;
}


@Entity
public class TradesmanX {
...
@PrePersist
public void myMethod(){
System.out.println("Pre Persist");
this.setFirstName("USER_X");
}
...
}

//Here is how I persist them within my test servlet:

private void testPersistenceTwo() {

CompanyX company = new CompanyX();
company.setName("my Comp");

TradesmanX user = new TradesmanX();
user.setFirstName("Test_FName");
user.setLastName("Test_Lname");
   
company.setAdminUser(user);
company.persist();
}


I am getting a similar error to the previous one:
javax.persistence.PersistenceException: Detected attempt to establish 
CompanyX(no-id-yet) as the parent of TradesmanX(7) but the entity 
identified by TradesmanX(7) has already been persisted without a parent.  A 
parent cannot be established or changed once an object has been persisted.

Is there a solution for this?
Would it be possible to provide some working example?

Thank you in advance:

Nermin





Am Donnerstag, 23. Mai 2013 15:09:41 UTC+2 schrieb Nermin:
>
> When I try to do that, I get a following error:
>
> java.lang.NullPointerException
>   at 
> com.google.appengine.datanucleus.StoreFieldManager.storeRelations(StoreFieldManager.java:848)
>   at 
> com.google.appengine.datanucleus.DatastorePersistenceHandler.insertObjectsInternal(DatastorePersistenceHandler.java:367)
>   at 
> com.google.appengine.datanucleus.DatastorePersistenceHandler.insertObject(DatastorePersistenceHandler.java:218)
>   at 
> org.datanucleus.state.JDOStateManager.internalMakePersistent(JDOStateManager.java:2377)
>   at 
> org.datanucleus.state.JDOStateManager.flush(JDOStateManager.java:3769)
>   at 
> org.datanucleus.state.JDOStateManager.getExternalObjectId(JDOStateManager.java:1088)
>   at 
> org.datanucleus.state.JDOStateManager.getObjectId(JDOStateManager.java:958)
>   at com.emajstor.server.persistence.Company.jdoGetObjectId(Company.java)
>   at 
> org.datanucleus.api.jpa.JPAAdapter.getIdForObject(JPAAdapter.java:272)
>   at 
> com.google.appengine.datanucleus.EntityUtils.getKeyForObject(EntityUtils.java:245)
>   at 
> com.google.appengine.datanucleus.EntityUtils.getParentKey(EntityUtils.java:853)
>   at 
> com.google.appengine.datanucleus.StoreFieldManager.establishEntityGroup(StoreFieldManager.java:939)
>   at 
> com.google.appengine.datanucleus.DatastorePersistenceHandler.insertObjectsInternal(DatastorePersistenceHandler.java:244)
>   at 
> com.google.appengine.datanucleus.DatastorePersistenceHandler.insertObject(DatastorePersistenceHandler.java:218)
>   at 
> org.datanucleus.state.JDOStateManager.internalMakePersistent(JDOStateManager.java:2377)
>   at 
> org.datanucleus.state.JDOStateManager.flush(JDOStateManager.java:3769)
>   at 
> org.datanucleus.ObjectManagerImpl.flushInternalWithOrdering(ObjectManagerImpl.java:3884)
>   at 
> org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:3807)
>   at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:3747)
>   at 
> org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:4137)
>   at 
> org.datanucleus.ObjectManagerImpl.transactionPreCommit(ObjectManagerImpl.java:428)
>   at 
> org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:400)
>   at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:288)
>   at org.datanucleus.ObjectManagerImpl.close(ObjectManagerImpl.java:1090)
>   at 
> org.datanucleus.api.jpa.JPAEntityManager.close(JPAEntityManager.java:193)
>   at com.emajstor.server.persistence.Company.persist(Company.java:110)
>   at 
> com.emajstor.server.test.MyTestServlet.testPersistenceOne(MyTestServlet.java:74)
>   at com.emajstor.server.test.MyTestServlet.doGet(MyTestServlet.java:39)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>   at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>   at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
>   at 
> com.google.appengine.api.socket.dev.De

Re: Automatically generated GWT Wrapper

2013-06-05 Thread Thomas Broyer


On Wednesday, June 5, 2013 3:25:05 AM UTC+2, Martin Kimmel wrote:
>
> Hello,
>
> I just thought that it would be pretty cool to have a tool which analyses 
> JavaScript Libraries and automatically generates some Java/GWT Files as a 
> Wrapper (using JSNI, JavaScript Overlays, ...)
> Do you know if something like this already exists?
>

IIRC, Ray Cromwell said they have such a tool internally at Google (or at 
least in the works) and they'll open source it. This is on the road map for 
GWT at least.
 

> Else I would like to try programming such a tool.
> Do you have any input what things I have to consider when doing so?
>

A co-worker made one for OpenLayers on a project, based on JSDoc 
annotations. I have no idea how he made it though, and he had to tweak the 
generated code by hand (mostly because JSDoc annotations were incorrect)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: change in children not saved in GWT 2.5.1 after implement OSIV

2013-06-05 Thread Thomas Broyer


On Tuesday, June 4, 2013 6:37:45 PM UTC+2, Fernando Castro wrote:
>
> The only work around that i have found is to persist the entity child in a 
> diferent request.
>
> In my case i have a ParentEntity with a Set. When persisting 
> a new set, it work just fine, but when i try to update the values, the 
> modifications never reach the server.
>
> I tried to create a new Set to overwrite the old one, but no sucess in 
> this attempt;
>

Would you mind creating a small repro case and creating an issue in the 
tracker? (or maybe there's one already? though I doubt it has a repro case 
and that'd help; if you could use the proxies form the unit tests it'd be 
even better!)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [ANN] net.ltgt.gwt.maven:gwt-maven-plugin:1.0-alpha-1 released

2013-06-05 Thread Thomas Broyer


On Tuesday, June 4, 2013 8:24:53 PM UTC+2, Lexis Nexis wrote:
>
> I have the following two questions:
> 1. Can we have more sub source folders under src/main such as 
> src/main/java, src/main/gwt for GWT, src/main/birt,for BIRT, 
> src/main/config for Spring Java configuration.
>

gwt-lib and gwt-app packagings are for GWT code only (gwt-app will only 
package the generated JS/HTML); you shouldn't mix client and server code in 
the same Maven module (you can make a "shared" module, but then I think you 
shouldn't bundle your gwt.xml, sources and super-sources within that JAR; 
YMMV). Have a look at the e2e integration test for an example, and see 
http://blog.ltgt.net/announcing-gwt-maven-archetypes-project/ for the 
rationale (well, I think I explained it in this blog post).
Otherwise, well, they'll use all source roots and resources so you can have 
as many as you want (e.g. some plugin that generates Java sources and adds 
the folder as a source root; or using the build-helper-maven-plugin to add 
a folder from src/main as a source root; it doesn't matter where the source 
root comes from).
 

> 2. I have a huge project (> 1000 database tables). I like to generate many 
> gwtar files for my internal team in order to reduce gwt compilation time. 
> How do I do it? Should I use CompileModule from prompt? I like to get one 
> script how to generate a gwtar file?
>

I'd call CompileModule using the exec-maven-plugin then. At the 
process-classes or prepare-package phases, everything (compiled classes and 
their sources, and resources) should be in the 
${project.build.outputDirectory} so you shouldn't have to deal with the 
classpath and can just use ${project.build.outputDirectory} as the -out 
folder for CompileModule.

I'm curious now: did you measure the gains? I've been told Google actually 
doesn't use gwtar for their internal libs and given how their build system 
works they can't take advantage of the PersistentUnitCache from previous 
runs; admittedly they have huge build resources but we also know that speed 
matters for them, so if they could save some time in downstream 
compilations I'd think they'd use the existing tool (CompileModule) for 
that?

>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Export CellTable data to PDF and Excel Format using UIBinder

2013-06-05 Thread Shashank Beerla
hey i have to GWT in my project, have u ever used TableToExcelClient 
widget? I followed the same instructions as per the 
https://code.google.com/p/gwt-table-to-excel/wiki/Usage 

but i am not able to download the data

here is my code

*final CellTable table = new CellTable();*
* *
* table.setPageSize(3);*
*  *
* TextColumn nameColumn = new TextColumn() {*
*  @Override*
*  public String getValue(Contact object) {*
*return object.name;*
*  }*
*};*
*table.addColumn(nameColumn, "Name");*
**
*DateCell dateCell = new DateCell();*
*Column dateColumn = new Column(dateCell) 
{*
*  @Override*
*  public Date getValue(Contact object) {*
*return object.birthday;*
*  }*
*};*
*table.addColumn(dateColumn, "Birthday");*
*
*
*TextColumn addressColumn = new TextColumn() {*
*@Override*
*public String getValue(Contact object) {*
*  return object.address;*
*}*
*  };*
*  table.addColumn(addressColumn, "Address");*
*
*
*

final TableToExcelClient tableToExcelClient = new TableToExcelClient(table);
hPanel.add(tableToExcelClient.getExportWidget());

web.xml


http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
 version="2.5"
 xmlns="http://java.sun.com/xml/ns/javaee";>

  
  
  sampleServlet 
  
com.fedex.forecast.datamart.server.SampleServiceImpl
  
  
  
  
  gwtTableToExcelServlet
  
com.googlecode.gwtTableToExcel.server.TableToExcelServlet

  
  
  sampleServlet 
  /sample2/sampleservice 
  
  
  
gwtTableToExcelServlet
/sample2/excel

 
  
  
Sample2.html
  



gwt.xml



http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";>

  
  

  
  
  
  
  
  
  

  
  
  

  
  
 
  
  


  
  
  
 
  



but when i run the application i am not able to download excel and moreover 
i get an error (below message) - I have defined my url path in the web.xml 
as /sample/sampleservice/excel - I dont  know why it still takes it as 
sample/excel. When i changed it in the browser to 
/sample/sampleservice/excel and run it i get javanullpointerexception. Can 
you please let me know what could be the issue

HTTP ERROR: 404

NOT_FOUND

RequestURI=/sample2/excel

Powered by Jetty:// 


*

On Tuesday, June 4, 2013 11:07:47 AM UTC-5, Alain wrote:
>
> If you want to do it clientside  I could recomment using ClientIO
>
> http://emitrom.com/announcements/flash4j-3.1-ga
>
> See it in action here 
>
> http://eemi2010.github.io/ext4j/#!ClientIO
>
>
>
>
> 2013/6/4 Shashank Beerla >
>
>> hey can u send me a complete code for celltable export to excel
>>
>>
>> On Friday, May 25, 2012 9:21:38 AM UTC-5, Joseph Lust wrote:
>>>
>>> The gist is to:
>>>
>>>1. Get a list of all records you need to export from the celltable 
>>>on the client browser (and the sorting information).
>>>2. Return this to the server. 
>>>3. Fetch all the information from (1).
>>>4. Build into an Excel or CSV output using POI or similar.
>>>
>>> In reality it can be quite a pain. I implemented it in ExtJs grids using 
>>> POI and had to have columns in any order user had rearranged them to, 
>>> columns shown/hidden if user had changed them, numeric values as numeric 
>>> type in exported Excel file... etc. You probably want to try to use a 
>>> library to achieve this rather than write it yourself.
>>>
>>> I've not used this library, but it looks like a good start: 
>>> GWT-Table-To-Excel 
>>> http://**code.google.com/p/gwt-table-**to-excel/
>>> Note that the library uses HTML output, which is a hack (that even 
>>> ASP.Net recommends... LOL). You'll get a warning if you open a HTML table 
>>> in Excel that it is not the proper format, but then Excel will load it 
>>> anyway. If you need rich, native Excel exports, you'll probably need to 
>>> write your own POI framework.
>>>
>>> This topic was covered earlier here: https://groups.google.**
>>> com/forum/#!msg/google-web-**toolkit/I9VEaFlkA1I/pDXGBBD2g_**AJ
>>>
>>>
>>> Sincerely,
>>> Joseph
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>>
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Too

Automatically generated GWT Wrapper

2013-06-05 Thread Martin Kimmel
Hello,

I just thought that it would be pretty cool to have a tool which analyses 
JavaScript Libraries and automatically generates some Java/GWT Files as a 
Wrapper (using JSNI, JavaScript Overlays, ...)
Do you know if something like this already exists?

Else I would like to try programming such a tool.
Do you have any input what things I have to consider when doing so?

Best regards,
Martin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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

2013-06-05 Thread सौरभ भारती
Just like everyone else, I was stuck at this validation error.

Following 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation,
 I deleted the classes manually from WEB-INF folder and that did the job. 
Basically, obfuscator classes should appear in .apt_generated folder in 
home project directory. 

रविवार, 7 अप्रैल 2013 6:26:19 pm UTC+5:30 को, Aman Sharma ने लिखा:
>
> How to do the all of these steps if no IDE's including Eclipse.
>
> On Saturday, September 24, 2011 2:33:49 AM UTC+5:30, Jonas wrote:
>>
>> 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 verbose=false to "Annotation Processing". I thought 
>> this isn't necessary as they didn't mention it in the text. I was wrong.
>>
>> Jonas
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Search for a substring in a string ignoring accented characters

2013-06-05 Thread Eric Bouchut
Thanks Timothy

I will give this a spin.


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.