JsInterop Maven fail

2015-11-21 Thread Adolfo Panizo Touzon
Hi all,

today when I tried to do a mvn clean install I notice some errors in my
build related with JsInterop classes..

So, I created a project from scratch using the Maven Archetype:

mvn archetype:generate \
   -DarchetypeGroupId=org.codehaus.mojo \
   -DarchetypeArtifactId=gwt-maven-plugin \
   -DarchetypeVersion=2.8.0-SNAPSHOT

And I receive the next error (whole stack trace attached):


*[ERROR] Non-resolvable import POM: Failure to find
com.google.jsinterop:jsinterop:pom:1.0.0-SNAPSHOT in
https://oss.sonatype.org/content/repositories/google-snapshots
 was cached
in the local repository, resolution will not be reattempted until the
update interval of snapshots-repo has elapsed or updates are forced @
com.google.gwt:gwt:2.8.0-SNAPSHOT,
/Users/foo/.m2/repository/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-SNAPSHOT.pom,
line 57, column 25 -> [Help 2]*


After taking a quick look I realised that inside of the gwt-user.jar the
jsinterop folder has been removed in the last snapshot (on the 19th of
November it was still there).

So, I think that is some kind of sonatype/maven error updating libraries
and should be fixed soon. If not, do you know any workaround?

Thanks for your time,

Adolfo.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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.
For more options, visit https://groups.google.com/d/optout.
[INFO] Scanning for projects...

Downloading: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/maven-metadata.xml

Downloaded: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/maven-metadata.xml
 (355 B at 0.2 KB/sec)

Downloading: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-20151121.054735-100.pom

Downloaded: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-20151121.054735-100.pom
 (0 B at 0.0 KB/sec)

Downloading: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/maven-metadata.xml

Downloaded: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/maven-metadata.xml
 (374 B at 1.3 KB/sec)

Downloading: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/requestfactory-2.8.0-20151121.054813-100.pom

Downloaded: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/requestfactory-2.8.0-20151121.054813-100.pom
 (0 B at 0.0 KB/sec)

Downloading: 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/jsinterop/jsinterop/1.0.0-SNAPSHOT/maven-metadata.xml

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]   

[ERROR]   The project com.example:moe:1.0-SNAPSHOT 
(/Users/my/git/location/projectname/pom.xml) has 4 errors

[ERROR] Non-resolvable import POM: Failure to find 
com.google.jsinterop:jsinterop:pom:1.0.0-SNAPSHOT in 
https://oss.sonatype.org/content/repositories/google-snapshots was cached in 
the local repository, resolution will not be reattempted until the update 
interval of snapshots-repo has elapsed or updates are forced @ 
com.google.gwt:gwt:2.8.0-SNAPSHOT, 
/Users/foo/.m2/repository/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-SNAPSHOT.pom,
 line 57, column 25 -> [Help 2]

[ERROR] 'dependencies.dependency.version' for 
com.google.gwt:gwt-servlet:jar is missing. @ line 38, column 17

[ERROR] 'dependencies.dependency.version' for com.google.gwt:gwt-user:jar 
is missing. @ line 43, column 17

[ERROR] 'dependencies.dependency.version' for com.google.gwt:gwt-dev:jar is 
missing. @ line 48, column 17

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please 
read the following articles:

[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Re: GWT DevMode latest version (1.25 ?) crashes FireFox 24 ESR

2013-11-07 Thread Adolfo Panizo Touzon
In Ubuntu is working without any problem since the first day. :D.


On Thu, Nov 7, 2013 at 1:52 PM, MCMicS mcmic...@gmail.com wrote:

 @Brian. The 1.24 plugin not work for latest ESR Release (24.1.0) because
 the xpi manifest contains version check for FF 24.0.*.

 Cheers

 --
 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.
 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [gwt-contrib] Work to do for bug 3042

2013-06-11 Thread Adolfo Panizo Touzon
Thanks James!

But I have done those steps yet (*indeed I read in that link I should ask
here first :D*) . When I said the necessary work I meant the steps for
develop the RichTextArea according to the GWT steering committee (for this
issue I think Daniel is responsible) so I need to wait for his opinion.

Thanks anyway for your quick response.

Adolfo.


On Mon, Jun 10, 2013 at 1:02 PM, James Horsley james.hors...@gmail.comwrote:

 Adolfo,

 To get the source checked out and compiling follow:
 http://www.gwtproject.org/makinggwtbetter.html#workingoncode

 To submit the patch use:
 http://www.gwtproject.org/makinggwtbetter.html#submittingpatches

 I recently had to move an old svn patch into gerrit and the following gave
 a very simple way to apply it
 http://stackoverflow.com/questions/659467/how-to-apply-svn-diff-to-gitjust 
 remember to clean up any leftover .orij and .rej files.

 Cheers,
 James


 On 10 June 2013 10:01, Adolfo Panizo adolfo.pan...@gmail.com wrote:

 Hi,

 as I wrote in the 
 issuehttps://code.google.com/p/google-web-toolkit/issues/detail?can=2start=0num=100q=colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Starsgroupby=sort=id=3042,
 I am able to do the necessary work for solving it.  So, can you guide me
 about the steps that I need to follow in order to create a patch properly?

 Would you like to reuse some code of the old 
 patchhttp://gwt-code-reviews.appspot.com/1388802/
 ?

 I am going to contact the creator of it because maybe he continues
 interested on fixing the issue and rebase the patch with the last code.

 Of course if there are other issues related to RichTextArea I can solve
 as well.

 Thanks in advance,

 Adolfo.


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




  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 ---
 You received this message because you are subscribed to the Google Groups
 GWT Contributors group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 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

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




Re: [gwt-contrib] Work to do for bug 3042

2013-06-11 Thread Adolfo Panizo Touzon
Oh! Sorry I saw you were the owner and I thought you had plenty of
responsability.

Thanks, but everything is fine, the installation process is quite
simple/clear, so, all is up  and running. :D.

Keep an eye into the Issue
1127https://code.google.com/p/google-web-toolkit/issues/detail?id=1127
because
maybe you are interested in giving instructions related to both issues.

Thanks,

Adolfo.


On Tue, Jun 11, 2013 at 10:28 AM, Daniel Kurka danku...@google.com wrote:

 Hi Adolfo,

 this is not my issue and I am not solely responsible for it.

 We should see wait and see if anybody opposes to adding this to GWT,
 before you actually start working on it, so that your time will not be
 wasted.
 On the other hand you can already setup your IDE and tools to be able to
 start. James pointed out the resources. If there is anything wrong /
 unclear in those resources please let us know. Or you could even send a
 patch for the homepage to be updated.

 - Daniel


 On Mon, Jun 10, 2013 at 8:07 PM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Thanks James!

 But I have done those steps yet (*indeed I read in that link I should
 ask here first :D*) . When I said the necessary work I meant the steps
 for develop the RichTextArea according to the GWT steering committee (for
 this issue I think Daniel is responsible) so I need to wait for his opinion.

 Thanks anyway for your quick response.

 Adolfo.


 On Mon, Jun 10, 2013 at 1:02 PM, James Horsley 
 james.hors...@gmail.comwrote:

 Adolfo,

 To get the source checked out and compiling follow:
 http://www.gwtproject.org/makinggwtbetter.html#workingoncode

 To submit the patch use:
 http://www.gwtproject.org/makinggwtbetter.html#submittingpatches

 I recently had to move an old svn patch into gerrit and the following
 gave a very simple way to apply it
 http://stackoverflow.com/questions/659467/how-to-apply-svn-diff-to-gitjust 
 remember to clean up any leftover .orij and .rej files.

 Cheers,
 James


 On 10 June 2013 10:01, Adolfo Panizo adolfo.pan...@gmail.com wrote:

 Hi,

 as I wrote in the 
 issuehttps://code.google.com/p/google-web-toolkit/issues/detail?can=2start=0num=100q=colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Starsgroupby=sort=id=3042,
 I am able to do the necessary work for solving it.  So, can you guide me
 about the steps that I need to follow in order to create a patch properly?

 Would you like to reuse some code of the old 
 patchhttp://gwt-code-reviews.appspot.com/1388802/
 ?

 I am going to contact the creator of it because maybe he continues
 interested on fixing the issue and rebase the patch with the last code.

 Of course if there are other issues related to RichTextArea I can solve
 as well.

 Thanks in advance,

 Adolfo.


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




  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 ---
 You received this message because you are subscribed to the Google
 Groups GWT Contributors group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com
 .
 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

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






 --
 Google Germany GmbH
 *Dienerstr. 12*
 *80331 München*

 Registergericht und -nummer: Hamburg, HRB 86891
 Sitz der Gesellschaft: Hamburg
 Geschäftsführer: Graham Law, Katherine Stephens

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 ---
 You received this message because you are subscribed to the Google Groups
 GWT Contributors group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 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

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com

Re: CellTable disapears when a row click occurs and a RichTextArea widget is present

2013-06-07 Thread Adolfo Panizo Touzon
It looks fine to me, can you send the code where you play with the cellList
and the RichTextArea?



On Fri, Jun 7, 2013 at 12:03 AM, Luis Costa luferco...@gmail.com wrote:

 Here it is a simple case (see attachment)

 Quinta-feira, 6 de Junho de 2013 19:58:56 UTC+1, Luis Costa escreveu:

 Hi all,

 I'm using GWT 2.5.1 and GWTP.

 Something very strange is happening, I've a RichTextArea widget and a
 cellTable.


 If I try to select a row all cellTable disappears!



 But if I remove RichTextArea widget or replace the cellTable for a
 DataGrid and select a row (clicking in the cellTable/ DataGrid row) it
 works fine;



 Is this a known problem?



 Many thanks,



 Luis Costa

  --
 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: Fast implementation of Design displays with GWT?

2013-06-07 Thread Adolfo Panizo Touzon
Agree with Thomas.

You can use the UiBinder stuff as well. Saying to your designer Implements
the style tag of the files which end in ui.xml :D. If you designer knows
something about programming, he/she can do the resources as well, and let
the rest to the programmers.

Also other option is integrate a powerful CMS such us Magnolia with your
GWT app. I have done a couple of simple examples and it works really well.

My 2 cents,

Adolfo.


On Fri, Jun 7, 2013 at 4:31 PM, Thomas Broyer t.bro...@gmail.com wrote:

 Have you looked at Errai UI? http://vimeo.com/44141164
 (I just watched the video, never tried it; but if you want something fast,
 it's looks impressive).
 As many things from Errai though (correct me if I'm wrong), it seems
 mostly designed towards developer productivity rather not application
 performance (how is the CSS shared? is it minified? optimized?)


 On Friday, June 7, 2013 3:39:58 PM UTC+2, Ed wrote:

 I like to know how people realize the design (Photoshop or other files)
 in GWT and what would be the best way?

 I still find it take too long to implement styles and stuff like that
 (not only a GWT issue), so I like to optimize this
 implementation/realization process: from the moment you receive the design
 till GWT realization.

 Thinks going through my mind: how to set up the GWT dev environment to
 let others concern about css issues?... But how ?..  Maybe do some
 templating stuff ?
 Or receive html/css snippets from the design party and implement them in
 GWT, but how ??.

 Note: I make fully use of ClientBundles and CssResources (with @Import)...

 PS: this is one of these things that I would love to see gwt dev team
 member blogging about ;)..

  --
 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: can't launch via servlet

2013-06-06 Thread Adolfo Panizo Touzon
If you see the Network console on the Developers Tools (in chrome F12) what
are you seeing? Any 404?

Can give us more information about your WebContent folder?

I have just created an example and is working fine for me.


On Thu, Jun 6, 2013 at 10:19 AM, Hélène Czaja helene.catr...@gmail.comwrote:

 Hi,

 i'm not a beginner but i can't solve this problem :

 I have a jsp which include my gwt script :
 meta name='gwt:module'
 content='org.yournamehere.Main=org.yournamehere.Main'
 titleJSP Page/title
 script type=text/javascript
  src=org.yournamehere.Main/org.yournamehere.Main.nocache.js/script


 When i launch the jsp via a welcome-filemyjsp.jsp/welcome-file in
 web.xml it's OK :


 But when i declare a servlet in web.xml to launch the jsp, the jsp is
 launched but the gwt part is empty.

 Could you help me? I google my issue and doesn't find anything...

  --
 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: can't launch via servlet

2013-06-06 Thread Adolfo Panizo Touzon
Happy to help!


On Thu, Jun 6, 2013 at 12:03 PM, Hélène Czaja helene.catr...@gmail.comwrote:

 I've find a solution : i declare a jsp in the web.xml which redirect me
 toward the home servlet of my website, so no servlet is declared with /
 mapping.

 So i can use normally my GWT script...

 Thanks for your response..

 Le jeudi 6 juin 2013 11:21:03 UTC+2, apanizo a écrit :

 If you see the Network console on the Developers Tools (in chrome F12)
 what are you seeing? Any 404?

 Can give us more information about your WebContent folder?

 I have just created an example and is working fine for me.


 On Thu, Jun 6, 2013 at 10:19 AM, Hélène Czaja helene@gmail.comwrote:

 Hi,

 i'm not a beginner but i can't solve this problem :

 I have a jsp which include my gwt script :
 meta name='gwt:module' content='org.yournamehere.**
 Main=org.yournamehere.Main'
 titleJSP Page/title
 script type=text/javascript  src=org.yournamehere.Main/**
 org.yournamehere.Main.nocache.**js/script


 When i launch the jsp via a welcome-filemyjsp.jsp/**welcome-file in
 web.xml it's OK :


 But when i declare a servlet in web.xml to launch the jsp, the jsp is
 launched but the gwt part is empty.

 Could you help me? I google my issue and doesn't find anything...

  --
 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=enhttp://groups.google.com/group/google-web-toolkit?hl=en
 **.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://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.






-- 
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: Printing the entire content of a DataGrid or a CellTable ?

2013-06-06 Thread Adolfo Panizo Touzon
I understand your are adding your DataGrid to some kind of DataProvider in
order to inject the data into the DataGrid.

Si if this your case, the only thing that you need to do is get the list of
data from your data provider and iterate over it printing wherever you want.

I am speaking based on my memory, so if I am not right just let us know.

Happy coding!




On Thu, Jun 6, 2013 at 3:41 PM, Celinio cel...@gmail.com wrote:

 Hi,
 I need to print all the rows that are returned in my DataGrid, not just
 the rows that are visible on a page (according to the pager size).

 How do i do that ?
 The trick with JSNI and the JavaScript print() function will not work in
 that case.

 Thanks in advance for helping.

 --
 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: CellTable disapears when a row click occurs and a RichTextArea widget is present

2013-06-06 Thread Adolfo Panizo Touzon
Can you post some code? Or error information?


On Thu, Jun 6, 2013 at 8:58 PM, Luis Costa luferco...@gmail.com wrote:

 Hi all,

 I'm using GWT 2.5.1 and GWTP.

 Something very strange is happening, I've a RichTextArea widget and a
 cellTable.


 If I try to select a row all cellTable disappears!

 ** **

 But if I remove RichTextArea widget or replace the cellTable for a
 DataGrid and select a row (clicking in the cellTable/ DataGrid row) it
 works fine;

 ** **

 Is this a known problem?

 ** **

 Many thanks,



 Luis Costa

 --
 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: 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 robert.schmidt...@gmail.com 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.

form action=
https://www.paypal.com/webapps/adaptivepayment/flow/pay;
target=PPDGFrame
input id=type type=hidden name=expType value=light
input id=paykey type=hidden name=paykey value=*AP-...*   
 input id=preapprovalkey  type=hidden 
 name=preapprovalkey value=*PA-...*   input type=submit 
 id=submitBtn value=Pay with PayPal/form

*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-paymentpaykey=... to
https://www.paypal.com/webapps/adaptivepayment/flow/pay? paykey=... after
obtaining the pay key.
2. Include the PayPal JavaScript functions from dg.js.

script src=https://www.paypalobjects.com/js/external/dg.js;
/script

3. Create an embedded flow object and associate it with your payment
form or button.

script
var dgFlow = new PAYPAL.apps.DGFlow({ trigger: 'submitBtn' });
/script




 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 script src=https://www.paypalobjects.com/js/external/dg.js; 
 /script
 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: IE9 problem with GWT

2013-05-24 Thread Adolfo Panizo Touzon
Have played with the z-index property?


On Tue, May 21, 2013 at 4:00 PM, Honza Rames rame...@gmail.com wrote:

 If you display the message in DialogBox (or PopupPanel), are you
 displaying glass to darken the window? If so doesn't the glass overlap your
 message? It could be a problem of layouting, are you using multiple
 z-orders in your app? These issues should be easy to figure out in
 developer tools that are present in IE9.

 Honza


 On Tuesday, May 21, 2013 12:48:41 PM UTC+2, Mike wrote:

 GWT Release: 2.5.0

 Browser: IE9
 Our clients have a problem using our web application because, on IE9, when 
 the application shows a message (i.e., to confirm if a file is uploaded or 
 not), the focus
 remains behind the message shown and it is impossible to interact with the 
 message, so you can't close it and you can't work with the application 
 either.
 It is not a problem of the application code, it is a problem of the version 
 9 of IE, it does not happen with IE 10.
 The message shown is modal.

 I know it is an alternative using Mozilla or Google Chrome, but our client 
 is a little bit special, so he does not want to use other web browsers.

 Any idea? Has this problem happened to someone else?

 P.D.: Sorry if there is any mistake in the grammar or in some word.

  --
 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.




About Magnolia and GWT

2012-12-12 Thread Adolfo Panizo Touzon
Hi all,

I know this forum is not the best place for asking about the integration of
Magnolia and GWT when the problem is related to Magnolia, but maybe someone
has had my problem before.

Could you take a look into...


http://forum.magnolia-cms.com/forum/thread.html?threadId=5a7c5315-ec82-412c-bd21-43608d47forumId=caf52257-62a1-40c4-8da7-cefb66785062


If you know something just say it.

All comments are welcome, even if they are only conjectures.

Thanks in advance,

Adolfo.
-- 
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 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: About Magnolia and GWT

2012-12-12 Thread Adolfo Panizo Touzon
Never mind. It's working. I've done it in other way.

Anyway, comments are welcome (curious why it didn't work).

Thanks.


2012/12/12 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Hi all,

 I know this forum is not the best place for asking about the integration
 of Magnolia and GWT when the problem is related to Magnolia, but maybe
 someone has had my problem before.

 Could you take a look into...


 http://forum.magnolia-cms.com/forum/thread.html?threadId=5a7c5315-ec82-412c-bd21-43608d47forumId=caf52257-62a1-40c4-8da7-cefb66785062


 If you know something just say it.

 All comments are welcome, even if they are only conjectures.

 Thanks in advance,

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




-- 
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 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.



Absolute paths for ui:image in UiBinder

2012-11-06 Thread Adolfo Panizo Touzon
Hi all,

I've seen there is a solution for ui:style
herehttp://code.google.com/p/google-web-toolkit/issues/detail?id=7230;,
but does someone know if there is a solution for ui:image, at least
planned??

Thanks,

Adolfo.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT MVP Architecture

2012-09-18 Thread Adolfo Panizo Touzon
I don't know if i am missing something, but, why yo don't create a
clientFactory in order to get the View?

In that way you only create the view once and you avoid the problem of
having multiple handlers attached.

2012/9/14 Aryan saurabh.bl...@gmail.com







 On 14 Sep, 14:21, stuckagain david.no...@gmail.com wrote:
  Why does the view need to be a singleton ?

 I guess why I am having view as singleton is having better performance
 as I see views are expensive to create.
 Not creating em everytime saves operation deep down like
 Document.create - appendChild. and so the DOM manipulation
 that saves time.

 
  Anyway, when you are done with the presenter, then you need to tell it
 so.
  In that case it can unregister any installed handlers.
 
  David
 
 
 
  On Thursday, September 13, 2012 8:09:30 PM UTC+2, Aryan wrote:
   Hi all,
 
   lets look at the code:
 
   public class MyView implements IMyView {
 
   Button click;
   .
   public HasClickHandlers getClick(){
 return click;
}
 
   }
 
   public class MyPresenter {
 
  public interface IMyView {
 public HasClickHandlers getClick();
   }
 
   private IMyView view;
 
   public MyPresenter(IMyView view){
 this.view = view;
 bind();
   }
 
   private void bind(){
  view.addClickHandler(new ClickHandler(){
   public void onClick(ClickEvent e){
   Window.alert(heeo);
 
   }
   }//binds end
 
}// class ends
 
   //(We are not using Activities or any MVP framework)
 
   ok tats it. Now in applicaton the view is singleton. but the presenter
 are
   not, so they are made as and when needed like :
 
   MyPresenter p = new MyPresenter(view); //view is singleton throughout
 the
   application; assume getting it by some factory
 
   Now suppose after a while if I have created *10 MyPresenter *instance
   that will add *10 clickHandler *to button c*lick . So one click event
   will be handled 10 times by 10 different handlers.*
   **
   I can see here it as happening when click the button I get 10 times
 alert
   window.
 
   So where I misunderstood the MVP architecture, what I am missing.
   please help
   **
   Thanks in advance.- Hide quoted text -
 
  - Show quoted text -

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




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Compilation Time Performance Improvement

2012-09-06 Thread Adolfo Panizo Touzon
I don't know if I am missing something, but, have you tried to upgrade to
GWT 2.5 and use SuperDevMode? In my case I was needing 2 minutes each time
that I made any change and now 15 seconds(or less).

Maybe for your developers is worth to try it.

My 2 cents,

Adolfo.

2012/9/6 Paul Robinson ukcue...@gmail.com

  Maybe you should get more RAM...4GB isn't a lot when running all the
 things you need for GWT development. Alternatively, run some (or even all)
 of the required processes on another computer.

 Paul


 On 06/09/12 05:33, Niraj Salot wrote:

 Hi Members,

  Thanks for all your suggestion/comments.

  We have already tried below mentioned options to improve the compilation
 time overall.


1. Memory Settings. -Xmx and Xms
2. localWorkers
 3. DraftCompile

 The question could arise to members mind that why we need to compile a lot
 but the thing is :- while doing the development work If we use the
 development mode provided by GWT , sometimes happens that the end output in
 production mode is diff. then development mode. So we can not trust that
 what is shown in development mode will be same in production mode. Hence
 developers compile their code on their machine and test it before putting
 something on main server. The issue is developers machine have overall RAM
 of 4 GB only. And when Jboss , Eclipse and Compilation of GWT runs , It is
 very very slow. So for even the small changes , developers needs to compile
 , build the WAR and then deploy to check that his code is working ok or not.

  I am looking for some option which could allow me to pre-compile GWT
 modules. So that If some GWT module is not changed and when I compile the
 main module , that GWT module should not compile as it is not changed at
 all.

  I am not still not getting how to use the concept of *.gwtar files
 which is mentioned in our discussion. Would appreciate if someone can
 provide more details on the same.

  Thanks,Niraj.

  On Tuesday, 4 September 2012 11:40:19 UTC+5:30, Niraj Salot wrote:

 Hi Members,

 We are using GWT Version 2.4 in our current project. On server side, we
 are using Spring  Custom JDBC framework.

 We are using Maven as our Build Tool. The application is getting deployed
 on JBOSS 7 Server.

 Currently we have everything in one single Eclipse Project. Means one
 Application.gwt.xml file and one ApplicationContext.xml for spring. We have
 around 2000 Java files out of which around 1500 are for GWT related source
 files.

 The project is still growing with more source files.

 We are fine with timings of Java to Javac [class file] Compilation time.
 But when It comes to Java to JavaScript , It is a issue.

 We have used all hacks mentioned in the GWT Forum.

 Like.

1. Compiling for only one Local
2. Compiling for only one Browser

 But still the compilation is taking 4-6 minutes.. OR even 7 minutes some
 times.

 With this question, I would like to know the options available to improve
 the same.

 We are thinking to Split the Project like this WAY:

- Module 1 (JAR Build)
- Module 2 (JAR Build)
- Module Main (WAR Build). This would contain Application.gwt.xml
file which would inherit Module 1  Module 2.

 Now Question comes:

 *1) Will this help us in Improving the compilation time?*

 *2) IF we change only Module 2 and then compile Module Main, will GWT
 still compile Module 1 as it is inherited by Module Main?*

 Please share your views on above scenario. We have even tried out GWT 2.5
 option but no help in performance improvements.

 Thanks, Niraj Salot.

  --
 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/-/xXHXkkCzV4oJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.5 and IBM JVM problems

2012-08-29 Thread Adolfo Panizo Touzon
I am really impressed about your comments. Really smart people.

Keep doing in that way.

I've tried both ways to solve the problem, and the first one (including the
serialVersionUID), I had some problems (maybe I made some mistakes).

*But with the second solution, compiling gwt with IBM's JVM is working! :)*

I have to do more tests, but right know all looks fine.

For people that are having these problem just tell one thing, you should
use the jdk that is included in RAD (I've tried to download manually from
the web page and for Windows the latest version is 1.4 :O ).

Really thanks,

Adolfo.

2012/8/28 Brian Slesinsky skybr...@google.com



 On Tuesday, August 28, 2012 1:45:42 PM UTC-7, Thomas Broyer wrote:



 On Tuesday, August 28, 2012 10:17:41 PM UTC+2, Daniel Kurka wrote:

 I still don`t really get the issue since this is only an issue while
 developing GWT (am I right?)

 As far as I know the jars we are packing (gwt-servlet,...) do not depend
 on a certain JVM.
 Can people who need an IBM JVM running for their servers not simply use
 the -noserver option with an Oracle JDK?


 No, it's an issue when compiling with the GWT Compiler while processing
 the gwtar files packaged in the gwt-user.jar (see issue 7530).
 And the Oracle JDK is apparently not an option on some OSes (see the
 thread in gwt-steering)
 Moreover, the fix seems to be rather simple: follow java.io.Serializable
 contract and provide an explicit serialVersionUID (and make sure we change
 it whenever we modify the classes)


 I talked to Ray a bit about this. We'd like to avoid setting
 serialVersionUID manually since it's another maintenance chore and we're
 sure to forget. We aren't doing long-term persistence, so the default way
 that serialVersionUID works should ensure that we rebuild gwttar whenever
 necessary. But perhaps this needs to be rebuilt when using IBM's JDK?

 I also don't understand why removing the gwtar file doesn't solve the
 problem. Something else is going on.

 - Brian

  --
 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/-/mL20gbO7f2AJ.

 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.5 and IBM JVM problems

2012-08-29 Thread Adolfo Panizo Touzon
I can confirm that there is no problem.

All is working fine.

If someone wants the compiled code, just send me an email.

Regards,

Adolfo.

2012/8/29 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 I am really impressed about your comments. Really smart people.

 Keep doing in that way.

 I've tried both ways to solve the problem, and the first one (including
 the serialVersionUID), I had some problems (maybe I made some mistakes).

 *But with the second solution, compiling gwt with IBM's JVM is working! :)
 *

 I have to do more tests, but right know all looks fine.

 For people that are having these problem just tell one thing, you should
 use the jdk that is included in RAD (I've tried to download manually from
 the web page and for Windows the latest version is 1.4 :O ).

 Really thanks,

 Adolfo.


 2012/8/28 Brian Slesinsky skybr...@google.com



 On Tuesday, August 28, 2012 1:45:42 PM UTC-7, Thomas Broyer wrote:



 On Tuesday, August 28, 2012 10:17:41 PM UTC+2, Daniel Kurka wrote:

 I still don`t really get the issue since this is only an issue while
 developing GWT (am I right?)

 As far as I know the jars we are packing (gwt-servlet,...) do not
 depend on a certain JVM.
 Can people who need an IBM JVM running for their servers not simply use
 the -noserver option with an Oracle JDK?


 No, it's an issue when compiling with the GWT Compiler while processing
 the gwtar files packaged in the gwt-user.jar (see issue 7530).
 And the Oracle JDK is apparently not an option on some OSes (see the
 thread in gwt-steering)
 Moreover, the fix seems to be rather simple: follow java.io.Serializable
 contract and provide an explicit serialVersionUID (and make sure we change
 it whenever we modify the classes)


 I talked to Ray a bit about this. We'd like to avoid setting
 serialVersionUID manually since it's another maintenance chore and we're
 sure to forget. We aren't doing long-term persistence, so the default way
 that serialVersionUID works should ensure that we rebuild gwttar whenever
 necessary. But perhaps this needs to be rebuilt when using IBM's JDK?

 I also don't understand why removing the gwtar file doesn't solve the
 problem. Something else is going on.

 - Brian

  --
 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/-/mL20gbO7f2AJ.

 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.




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




-- 
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 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 2.5 and IBM JVM problems

2012-08-28 Thread Adolfo Panizo Touzon
Hi all,

Someone can update us about the problems with GWT 2.5 and IBM JVM??

Related posts:

https://groups.google.com/forum/#!msg/gwt-steering/WGs-uiyHQA8/Te0hEfj5miEJ
http://code.google.com/p/google-web-toolkit/issues/detail?id=7530


Any news are very welcome...

Thanks in advance,

Adolfo.
-- 
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 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.



SuperDevoMode and Source Maps

2012-08-08 Thread Adolfo Panizo Touzon
Hi all,

I am trying to user SuperDevMode with SourceMaps but I think I am doing
something wrong.

I succeeded running the code server as a Java process (I have the bookmarks
Dev mode on and Dev mode off in my browser's tab), also I have running
the app without problems and even if I make click on Dev mode on tab, the
app's compilation works perfect.

But it's impossible for me find the .java files in the Developer Tools's
Scripts. In the classpath's tab I've added the src folder of my app (when I
created the Java app in order to serve to the browser the non optimized JS).

Further info: If I go to localhost:9087/myApp, I can see the nomal files
that you obtain when you compile the app (many files XXX.gwt.rpc and the
common myapp.noche.js, myap.devmode.js), and this files also appear in
the Developer Tools's Scripts instead of the .java files.

So, what I am missing?

Thank you in advance.

Adolfo.




-- 
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 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: SuperDevoMode and Source Maps

2012-08-08 Thread Adolfo Panizo Touzon
Hi Paul,

thank you for answering.

Yes, I had the source maps enabled, and I did the compilation with the
developers Tools open and it's the same.

I can see the myapp.devmode.js and the myapp.nocache.js, but not the code.

It's strange because in the work dir ( -workDir The root of the directory
tree where the code server will write compiler output. If not supplied, a
temporary directory will be used.), I can see the java files.

It could be something related with the -src flag when I am launching the
Java app?? (*I am using  -src C:\myWorkSpace\myWebApp\src\myapp\client*)

Thanks in advance,

Adolfo.




2012/8/8 Paul Robinson ukcue...@gmail.com

 Have you enabled source map support in chrome? Click the settings
 cog/wheel thing in the bottom-right corner, and tick Enable source maps.

 Also, you must compile while the developer tools tab is open, or else it
 won't show the java source code.

 HTH
 Paul

 On 08/08/12 08:42, Adolfo Panizo Touzon wrote:
  Hi all,
 
  I am trying to user SuperDevMode with SourceMaps but I think I am doing
 something wrong.
 
  I succeeded running the code server as a Java process (I have the
 bookmarks Dev mode on and Dev mode off in my browser's tab), also I
 have running the app without problems and even if I make click on Dev mode
 on tab, the app's compilation works perfect.
 
  But it's impossible for me find the .java files in the Developer Tools's
 Scripts. In the classpath's tab I've added the src folder of my app (when I
 created the Java app in order to serve to the browser the non optimized JS).
 
  Further info: If I go to localhost:9087/myApp, I can see the nomal files
 that you obtain when you compile the app (many files XXX.gwt.rpc and the
 common myapp.noche.js, myap.devmode.js), and this files also appear in the
 Developer Tools's Scripts instead of the .java files.
 
  So, what I am missing?
 
  Thank you in advance.
 
  Adolfo.
 
 
 
 
  --
  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 post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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




-- 
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 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: SuperDevoMode and Source Maps

2012-08-08 Thread Adolfo Panizo Touzon
Thomas, you are right! Now I can see all the code, but I am receiving
SOP problems.

I've read in other posts that if I copy/paste all the *.gwt.rpc files into
my war folder, I can avoid that problems... is that correct?

But... when I am trying to compile the app I receive this error:

Compiling module uk.co.myApp.appName
 *  [WARN] Unable to read:
jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/user/User.gwtar.
Skipping: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
*   [WARN] Unable to read:
jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/core/Core.gwtar.
Skipping: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
*   [WARN] Unable to read:
jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/logging/Logging.gwtar.
Skipping: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
*   [ERROR] An internal compiler exception occurred*
*com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during
visit.*
**
**
*Caused by: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
* at java.io.InvalidClassException.init(InvalidClassException.java:62)*
*...*

I've seen here
http://code.google.com/p/google-web-toolkit/issues/detail?id=7530
that
maybe is a bug (I am using RAD and WebSphere from IBM).

Any ideas?

Thank you in advance.

Adolfo.

2012/8/8 Thomas Broyer t.bro...@gmail.com

 I might be wrong (this is from memory) but myapp.devmode.is rings a bell:
 are you by any mean running in DevMode? I.e. do you have ?gwt.codesvr= in
 your URL?

 --
 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/-/-L36TqToFQEJ.
 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.




-- 
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 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: Installing gwt on RAD 7.5

2012-04-30 Thread Adolfo Panizo Touzon
Yes, it's possible. I had problems too.

I've solved by going to *windowsPreferencesInstall/UpdateAvailable
Software Sites* and clicking in *Eclipse Helios 3.6* and *Helios Milestone
Repository*.

The exactly path that you have to use is:
http://dl.google.com/eclipse/plugin/3.6

PD. The rest of my team had to add more software sites, so..., play and
try.

Regards,

Adolfo.

2012/4/30 kmspnr p.oz...@gmail.com


 Hi All,
 I am new joined to this group,
 I need to install GWT plugin on rad 7.5 but getting error for mylyn
 plugin requirement message.
 So, as explained here i am adding this link to find and install--
 software remote site
 http://download.eclipse.org/releases/helios;

 but it cannot import the site pakages,
 I want to ask if installing gwt on rad 7.5 is possible?
 if possible what is the path that i need to follow?

 Thanks in advance.

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




-- 
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 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: Couple CSS questions

2012-04-24 Thread Adolfo Panizo Touzon
Hi Mike,

I had a similar problem long time ago, I'm not sure, but I think you have
two options to solve this:


   - One is adding* !important* (in order to overwrite the custom css for
   the datePicker) to your css rules.
   - The other one is create your custom * DatePickerStyle.css  *and add it
   to your DatePicker class*.*

My 2 cents,

Adolfo.

2012/4/24 Mike Dee mdichiapp...@gmail.com

 How is this for a strategy of tweaking the look of many of the GWT widgets
 across an entire app?  Copy standard.css into the project and name it
 MyApp.css.  Reference MyApp.css in the ClientBundle, like this:

 public interface MyAppResources extends ClientBundle
 {
 ...
 @Source( com/myapp/client/resources/MyApp.css )
 @CssResource.NotStrict
 public MyAppStyles css();
 ...
 }

 And then just tweak the CSS in MyApp.css?

 That leads to the second question.  So far, this strategy seems to work
 fine.  However, I'm having trouble with the DateBox.  I simply want the
 input area associated with the DateBox to have a smaller font size.  So I
 change this:

 .gwt-DateBox input {
   width: 8em;
 }

 to this:

 .gwt-DateBox input {
   width: 8em;
   font-size: 8pt;
 }

 Seems to have no effect (see attached screenshot).  Looking at the CSS in
 Chrome (inspect element), the input item is definitely tagged as
 .gwt-DateBox.  Any ideas?

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/2p7A3bJjRHsJ.
 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.




-- 
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 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: Couple CSS questions

2012-04-24 Thread Adolfo Panizo Touzon
I agree, my first solution is quicker and easier but less efficient. My
second solution is the same as Patrick said, but Patrick has explained much
more better.

It's up to you.

Thx @Patrick for the clarification.

2012/4/24 Patrick Tucker tucker...@gmail.com

 I generally copy the whole theme and make my changes to the css files.
 Then in the module inherit my copied theme instead of the GWT theme.

 This way the user does not  have to load 2 different copies of any
 modified CSS rules.

 On Monday, April 23, 2012 9:03:15 PM UTC-4, Mike Dee wrote:

 How is this for a strategy of tweaking the look of many of the GWT
 widgets across an entire app?  Copy standard.css into the project and name
 it MyApp.css.  Reference MyApp.css in the ClientBundle, like this:

 public interface MyAppResources extends ClientBundle
 {
 ...
 @Source( com/myapp/client/resources/**MyApp.css )
 @CssResource.NotStrict
 public MyAppStyles css();
 ...
 }

 And then just tweak the CSS in MyApp.css?

 That leads to the second question.  So far, this strategy seems to work
 fine.  However, I'm having trouble with the DateBox.  I simply want the
 input area associated with the DateBox to have a smaller font size.  So I
 change this:

 .gwt-DateBox input {
   width: 8em;
 }

 to this:

 .gwt-DateBox input {
   width: 8em;
   font-size: 8pt;
 }

 Seems to have no effect (see attached screenshot).  Looking at the CSS in
 Chrome (inspect element), the input item is definitely tagged as
 .gwt-DateBox.  Any ideas?

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/I79A5aBoOcEJ.

 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT - Adding modules from 2.4 to 2.1

2012-03-31 Thread Adolfo Panizo Touzon
Hi Joseph,

thank you for your answer.

Finally I used other framework that works on 2.1 but I´m still interested
for the future.

If I understood you correctly you mean that  I must download the code of
gwt 2.1, add the code of the validation module, and then, compile it using
ant. Is that correct?

The only thing that I don´t understand when you said facets. Did you mean
thishttp://www.eclipse.org/articles/Article-BuildingProjectFacets/tutorial.html
?

Thank you in advance,

Adolfo.

2012/3/30 Joseph Lust lifeofl...@gmail.com

 Do the projects you want to include depend on facets of GWT 2.4? Can you
 just download the src and build them using GWT 2.1, and then include that
 in your GWT 2.1 project?

 Sincerely,
 Joe

 --
 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/-/0-HBORAXV8sJ.
 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.




-- 
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 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 - Adding modules from 2.4 to 2.1

2012-03-30 Thread Adolfo Panizo Touzon
Hi all,

is it possible compile, or include or do something in order to include
projects from gwt 2.4, such as Validation.gwt.xml, in a GWT project built
with the 2.1 version?

I don't know if it's possible. Any pointer?

Regards,

Thanks in advance.

Adolfo.
-- 
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 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: Loading of Javascript file

2012-03-29 Thread Adolfo Panizo Touzon
I've seen in the keyboards.js

VKI_attach = function(elem) { .. }

try to change the name of the function to something like *function
myKeyBoard(elem){...}*

Then, in your gwt  java class, after the code is injected, call to the
method myMethodCall.

public final native void myMethodCall(Elem oneElem) /*-{

$wnd.myKeyBoard(oneElem);
}-*/;

My 2 cents,

Adolfo



2012/3/20 dvarrin daniel.var...@gmail.com

 How can I do the call to the VKI_attach(elem) function with JSNI?

 I tried to write $wnd.VKI_attach(name), but I'm getting an error
 message telling that VKI_attach is not a function.

 On Mar 20, 5:46 pm, Thomas Broyer t.bro...@gmail.com wrote:
  On Tuesday, March 20, 2012 5:41:19 PM UTC+1, dvarrin wrote:
 
   Hi,
 
   I want to use a virtual keyboard for some input fields on a web page
   of my GWT website. In a normal HTML page, I would need to do the
   following:
 
   html
 head
   script type=text/javascript src=keyboard.js charset=UTF-8/
   script
   link rel=stylesheet type=text/css href=keyboard.css
 /head
 
 body
   input type=text value= class=keyboardInput
 /body
 
   (required files are available here:
  http://www.greywyvern.com/code/javascript/keyboard)
 
   There is a javascript file and style sheet to include on the page, and
   then all the input fields on which I want a virtual keyboard to be
   assgned, I've to set their class to keyboardInput.
 
   I've added the keyboard.js and keyboard.css to the html page in my
   application and then in the class creating the view I'm using:
 
   nameOfField.setStyleName(keyboardInput);
 
   Then the script should add the virtual keyboard image next to each
   field of the class keyboardInput.
 
   when I check the result page, the field has is of the correct class,
   and I've added an alert in the keyboard.js script and it is executed,
   but no virtual keyboard image is displayed next to the field.
 
   Any idea?
 
  See Advanced Stuff on the page you linked to: the script runs at
  window.onload, and GWT code can run past this event. You'd have to call
 the
  VTI_attach() function via JSNI, passing myWidget.getElement() as the
  argument.

 --
 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.




-- 
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 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: celltable - howto use an image as background of the entire table or at least for some rows

2012-03-16 Thread Adolfo Panizo Touzon
I'm sure that isn't an elegant solution, but you can try this:

*
yourTable.getElement.getParentElement().getStyle.setBackgroundImage(yourImageValue);
*


You must stop to call getParentElement(), when you be in the top of the
table.

Regards,

Adolfo.

2012/3/16 JoseM jose.a.marti...@gmail.com

 You can try a hack like this, although maybe the syntax would be a little
 different for you.

  static {

  StyleInjector.injectAtEnd(.+tableResources
 .cellTableStyle().cellTableHoveredRow()+ tr {background-image:
 url(image.jpg);});

 }

 On Thursday, March 15, 2012 12:04:24 AM UTC-4, David Gonzalez wrote:

 Hi,

 I need to use an image as table background (as entire row background will
 works).
 I tried this:

 .cellTableOddRow {
 background-image: url(image.jpg);
 background-repeat: repeat-y;
 width: 300px;
 }


 but it puts the image in each cell.
 Is this possible?

 Thx a lot!

  --
 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/-/Keyy0fssIaUJ.

 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.




-- 
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 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: Activity Places | Nested activities

2012-03-11 Thread Adolfo Panizo Touzon
Thank you both for your answer, I´ll keep in mind.

I´m going to develop one simple app with Activity  Places and then, I´ll
see what is my best option (create my own Presenters, introduce gwtp, play
with the workflow of the screen...).

Regards,

Adolfo.

2012/3/10 Brandon Donnelson branflake2...@gmail.com

 Activities and Places is great for getting form one place to another in an
 application which I enjoy very much. But you would have to build your own
 MVP layer and could use Activities and Places as a navigation system for
 it. GWTP has a places navigation which is similar.

 If you like MVP, using GWTP might be a better choice because it has
 everything setup and ready to go for MVP. Although, it layers in presenter
 widgets which had a different method of attachment and a little knowledge
 overhead consuming library, but works perfect for MVP and nested
 presenters. I'm enjoying using Activities and Places in my projects but I
 don't follow MVP either :)

 Brandon
 http://c.gwt-examples.com

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/5qpkm4NjYjIJ.

 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.




-- 
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 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.



Activity Places | Nested activities

2012-03-08 Thread Adolfo Panizo Touzon
Hi all,

I'm going to start a new app and I'm interested in using activities and
places.

I've read the articles of the official page of gwt devguide, the Thomas
Broyer's posts, some questions in Stack Overflow, and I think I have a
general idea.

I'm sure when I start to coding I'll understand better/completely all the
concepts, but before to start I think is better to ask some questions that
I don't understand enough well.

In the last apps that I've worked we were using the GWTP plugin, and now is
difficult to me understand one architecture that doesn't have presenters
that contains others presenters (activities that contains other activities).

For example, in my app I'll have two regions that need all the screen
(general section and blog section). Each section has different regions and
different behaviour in  each region. With gwtp I should create a
GeneralPresenter (with the generalFoo1PresenterWidget,
generalFoo2PResenterWidget inside) and BlogPresenter  (with other
Presenters and PresentersWidgets Inside), but with Activities is
different...

Any ideas or comments? I think there are some solutions, but I don't know
what the best way to solve this.

Thank you in advance.

Adolfo.

-- 
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 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.



Using validation api

2012-03-07 Thread Adolfo Panizo Touzon
Hi all,

In my last projects I've used without any problems the validation api,
because I've been using the 2.4 gwt sdk version.

Now, I am working in a project that uses the 2.1 version. I've tried to
extract the validation classes (from the 2.4 version) and compile
them myself, but the project doesn't work.

Is it possible use the validation api in the 2.1 version of gwt?... how?

Any ideas?

Pd: I know there are other libraries of validation, but I need to use the
gwt validation api.

Regards,

Adolfo.
-- 
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 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: User visible urls

2012-02-28 Thread Adolfo Panizo Touzon
Hi all,

In the next weeks I'm going to start a new app, and I am really interested
in this question.

The solution that @Thomas has proposed is really interested. But I don't
know exactly how it works.

The question is, could you provide me an simple simple example? Or link?

Thank you,

Adolfo.

2012/2/27 Carlos Aguayo carlos.agu...@gmail.com

 works like a sharm! thanks buddy!


 On Wednesday, February 22, 2012 5:08:23 AM UTC-5, Thomas Broyer wrote:

 On Tuesday, February 21, 2012 6:04:55 PM UTC+1, Carlos Aguayo wrote:

 Hi Thomas, could you share the one that you wrote to use pushState?
 Thanks!


 Here's a skeleton implementation: 
 https://gist.**github.com/1883821https://gist.github.com/1883821

  --
 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/-/OjZDD6XpY5gJ.

 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.




-- 
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 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.



Framework app mobile

2012-02-13 Thread Adolfo Panizo Touzon
Hi all,

I have developed a GWT app. Now, we are planning to create the same app to
mobile devices (Android, Android Tablet, Iphone, Ipad, Blackberry...).

After a fast google search, I have seen that the are some frameworks that
allow write once, run everywhere like mgwthttp://code.google.com/p/mgwt/
, PhoneGap http://phonegap.com/,
gwt4timobilehttp://www.emitrom.com/gwt4timobile
.

The questions is that I don't what is the best, and if there are others.

Also I don't know if there is a good decision work with these frameworks
instead of develop in each platform the app.

Any idea, or user experience are welcome.

I don't know if there is useful but the app that we are planning to
transform is easy, it does not need the latest versions of each OS.

Regards and thanks in advance,

Adolfo.

-- 
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 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: Framework app mobile

2012-02-13 Thread Adolfo Panizo Touzon
Hi Alain,

Thank you for the info.

We are interested in Native solutions.

Basically, if I'm correct the best frameworks in order to have one app for
each platform (from the same initial GWT app) are *Gwt4Ti* *Mobile *and *
phoneGAP*.

Alain, in the last mail explains that Gwt4Ti Mobile would be helpful.

Does someone works with these frameworks? Are there others?

Thank you in advance,

Adolfo.

PD. I post this mail here because I'm interested (if is it possible) in
create the initial app in GWT and then transform to native platforms.

2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 Hi Adolfo,

 Like always it depends.
 Should your mobile app be web based or native ?

 If you are are looking for a webbased solution i d recommend :

 Web :
 1) Gwt4Touch (www.emitrom.com/gwt4touch). Not only because we created it,
 but also because it leverages Sencha Touch, which to me
 is the best mobile HTML5 framework on the market. We also added PhoneGap
 support if you want to add some native capabilities.

 2)i also like mgwt a lot. (The Gwt PhoneGap API is from the same author).
 But i think Gwt4Touch looks a bit better :)

 Native :
 On the other end Gwt4Ti Mobile will help you build native mobile apps by
 leveraging the Titanium runtime.
 So if you want to go native while leveraging GWT(specially all your back
 end code) Gwt4Ti mobile should help.



 If you have any question feel free to ping us on the forum

 www.emitrom.com/forum

 Cheers,

 Alain

 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Hi all,

 I have developed a GWT app. Now, we are planning to create the same app
 to mobile devices (Android, Android Tablet, Iphone, Ipad, Blackberry...).

 After a fast google search, I have seen that the are some frameworks that
 allow write once, run everywhere like mgwthttp://code.google.com/p/mgwt/
 , PhoneGap http://phonegap.com/, 
 gwt4timobilehttp://www.emitrom.com/gwt4timobile
 .

 The questions is that I don't what is the best, and if there are others.

 Also I don't know if there is a good decision work with these frameworks
 instead of develop in each platform the app.

 Any idea, or user experience are welcome.

 I don't know if there is useful but the app that we are planning to
 transform is easy, it does not need the latest versions of each OS.

 Regards and thanks in advance,

 Adolfo.

 --
 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 post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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




-- 
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 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: Framework app mobile

2012-02-13 Thread Adolfo Panizo Touzon
I am more lost than I tought. Thank you for your patient :)

I have one big, and complex GWT app.

Now I'm interested in create other GWT app similar but more simple oriented
only to our clients (and avoid all the developers part).

The idea is to create this simple GWT app (this GWT app will include some
native capabilites ) and then, transform it into native platforms
(Android, Iphone, Blackberry...),

I asked at the beginning of this email if there was any framework that
allows it.

Now, thank you to your last answer I know that with phone gap is impossible
because this framework only creates web solutions (if I'm incorrect please,
let me know)

So, the only option that is correct is Gwt4Ti Mobile. Good.

While you were answering me I spent time reading  on the internet about
these problems, and I have more questions:

*How much does it cost *Gwt4Ti Mobile to develop an non open source app
(the simple GWT app)??* (I mean, I saw that I'll need the Appcelerator
Titanium Studio IDE, it costs an extra money)** Is there other option? Is
it possible to use others IDE, like eclipse?  *
*
*
*Are there other things that I must know?*

Excuse me for all this questions, but I need to send an inform to my bosses
:)

Thank you for all. If you don't understand anything, let me know, please
(I'm not good enough in English) .

Adolfo.

2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 Note that PhoneGap will not turn you web based app into a native app. It
 will give it some native capabilities.
 So your application will still be a web app but with a native shell  given
 you access to the device api.

 Concerning Gwt4Ti Mobile we have some pretty happy customers at the
 moment. But  maybe some one using it will like to share his experience.

 If  i m correct you have a Desktop GWT app that you want to turn into a
 mobile app with some native capabilities.
 Assuming you UI is mobile optimized  PhoneGap could be the way to go.
 Because you could reuse most of your UI code and have some native access
 through PhoneGap.

 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Hi Alain,

 Thank you for the info.

 We are interested in Native solutions.

 Basically, if I'm correct the best frameworks in order to have one app
 for each platform (from the same initial GWT app) are *Gwt4Ti* *Mobile *and
 *phoneGAP*.

 Alain, in the last mail explains that Gwt4Ti Mobile would be helpful.

 Does someone works with these frameworks? Are there others?

 Thank you in advance,

 Adolfo.

 PD. I post this mail here because I'm interested (if is it possible) in
 create the initial app in GWT and then transform to native platforms.


 2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 Hi Adolfo,

 Like always it depends.
 Should your mobile app be web based or native ?

 If you are are looking for a webbased solution i d recommend :

 Web :
 1) Gwt4Touch (www.emitrom.com/gwt4touch). Not only because we created
 it, but also because it leverages Sencha Touch, which to me
 is the best mobile HTML5 framework on the market. We also added PhoneGap
 support if you want to add some native capabilities.

 2)i also like mgwt a lot. (The Gwt PhoneGap API is from the same
 author). But i think Gwt4Touch looks a bit better :)

 Native :
 On the other end Gwt4Ti Mobile will help you build native mobile apps by
 leveraging the Titanium runtime.
 So if you want to go native while leveraging GWT(specially all your back
 end code) Gwt4Ti mobile should help.



 If you have any question feel free to ping us on the forum

 www.emitrom.com/forum

 Cheers,

 Alain

 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Hi all,

 I have developed a GWT app. Now, we are planning to create the same app
 to mobile devices (Android, Android Tablet, Iphone, Ipad, Blackberry...).

 After a fast google search, I have seen that the are some frameworks
 that allow write once, run everywhere like 
 mgwthttp://code.google.com/p/mgwt/
 , PhoneGap http://phonegap.com/, 
 gwt4timobilehttp://www.emitrom.com/gwt4timobile
 .

 The questions is that I don't what is the best, and if there are others.

 Also I don't know if there is a good decision work with these
 frameworks instead of develop in each platform the app.

 Any idea, or user experience are welcome.

 I don't know if there is useful but the app that we are planning to
 transform is easy, it does not need the latest versions of each OS.

 Regards and thanks in advance,

 Adolfo.

 --
 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 post to this group, send email to
 google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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

Re: Framework app mobile

2012-02-13 Thread Adolfo Panizo Touzon
If I understand I can develop a web app with *GWT*, in this app If I use
the *mgwt *framework, my *GWT *app looks like and mobile app.

Then, when I finish, with/using *gwt-phonegap* I can transform it into
native apps that I can hung up in the App Store (Iphone), Market
Place(Android)...

All of this in Eclipse.

Am I correct?

Really thanks,

Adolfo.

2012/2/13 Daniel Kurka kurka.dan...@googlemail.com

 If you built an html5 app and wrap it with phonegap you will end up with
 an app that is not distinguishable from an native app. Phonegap exposes
 all native capabilities through a javascript API.

 The rest is simply UI. There are lots of good mobile UIs out there. The
 one I would pledge for (because I am the author) is mgwt
 http://www.m-gwt.com . If you combine it with gwt phonegap you got a
 great framework for writing cross platform mobile apps...

 - Daniel



 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 I am more lost than I tought. Thank you for your patient :)

 I have one big, and complex GWT app.

 Now I'm interested in create other GWT app similar but more simple
 oriented only to our clients (and avoid all the developers part).

 The idea is to create this simple GWT app (this GWT app will include some
 native capabilites ) and then, transform it into native platforms
 (Android, Iphone, Blackberry...),

  I asked at the beginning of this email if there was any framework that
 allows it.

 Now, thank you to your last answer I know that with phone gap is
 impossible because this framework only creates web solutions (if I'm
 incorrect please, let me know)

 So, the only option that is correct is Gwt4Ti Mobile. Good.

 While you were answering me I spent time reading  on the internet about
 these problems, and I have more questions:

 *How much does it cost *Gwt4Ti Mobile to develop an non open source app
 (the simple GWT app)??* (I mean, I saw that I'll need the Appcelerator
 Titanium Studio IDE, it costs an extra money)** Is there other option?
 Is it possible to use others IDE, like eclipse?  *
 *
 *
 *Are there other things that I must know?*

 Excuse me for all this questions, but I need to send an inform to my
 bosses :)

 Thank you for all. If you don't understand anything, let me know, please
 (I'm not good enough in English) .

 Adolfo.

 2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 Note that PhoneGap will not turn you web based app into a native app. It
 will give it some native capabilities.
 So your application will still be a web app but with a native shell
  given you access to the device api.

 Concerning Gwt4Ti Mobile we have some pretty happy customers at the
 moment. But  maybe some one using it will like to share his experience.

 If  i m correct you have a Desktop GWT app that you want to turn into a
 mobile app with some native capabilities.
 Assuming you UI is mobile optimized  PhoneGap could be the way to go.
 Because you could reuse most of your UI code and have some native access
 through PhoneGap.

 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Hi Alain,

 Thank you for the info.

 We are interested in Native solutions.

 Basically, if I'm correct the best frameworks in order to have one app
 for each platform (from the same initial GWT app) are *Gwt4Ti* *Mobile
 *and *phoneGAP*.

 Alain, in the last mail explains that Gwt4Ti Mobile would be helpful.

 Does someone works with these frameworks? Are there others?

 Thank you in advance,

 Adolfo.

 PD. I post this mail here because I'm interested (if is it possible) in
 create the initial app in GWT and then transform to native platforms.


 2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 Hi Adolfo,

 Like always it depends.
 Should your mobile app be web based or native ?

 If you are are looking for a webbased solution i d recommend :

 Web :
 1) Gwt4Touch (www.emitrom.com/gwt4touch). Not only because we created
 it, but also because it leverages Sencha Touch, which to me
 is the best mobile HTML5 framework on the market. We also added
 PhoneGap support if you want to add some native capabilities.

 2)i also like mgwt a lot. (The Gwt PhoneGap API is from the same
 author). But i think Gwt4Touch looks a bit better :)

 Native :
 On the other end Gwt4Ti Mobile will help you build native mobile apps
 by leveraging the Titanium runtime.
 So if you want to go native while leveraging GWT(specially all your
 back end code) Gwt4Ti mobile should help.



 If you have any question feel free to ping us on the forum

 www.emitrom.com/forum

 Cheers,

 Alain

 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Hi all,

 I have developed a GWT app. Now, we are planning to create the same
 app to mobile devices (Android, Android Tablet, Iphone, Ipad,
 Blackberry...).

 After a fast google search, I have seen that the are some frameworks
 that allow write once, run everywhere like 
 mgwthttp://code.google.com/p/mgwt/
 , PhoneGap http://phonegap.com/, 
 gwt4timobilehttp://www.emitrom.com

Re: Framework app mobile

2012-02-13 Thread Adolfo Panizo Touzon
@Alain,

I'm sorry for the misunderstanding. Now I think I solve my doubts. At the
beginning I thought that each platform only can understand its UI Widgets.

So, if I want native app, with their native UI Widgets  I must use
Gwt4Titanium.
But I can use HTML5(JS/HTML/CSS) widgets to create the UI and then upload
the app to the Market place, App store, etc...

In my case my app will be very simple, so, it's interesting for me,  use
the HTML5(JS/HTML/CSS) widgets to create the UI (and the app).

So, basically both methods are valid for me.

Now I'm going to take a look in which method are more easy, cheap and
better.

Again, suggestions and comments are welcome (@toEveryBody).

Really thanks,

Adolfo.


2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 @Kira

 GWT generates  JavaScript. And  that JS can run either as a regular Webapp
 (+ eventual PhoneGap)   or as a native App (through Titanium).

 2012/2/13 Raphael André Bauer raphael.andre.ba...@gmail.com

 On Mon, Feb 13, 2012 at 2:40 PM, Kira Qian kiraq...@me.com wrote:
  AFAIK, only native app developed via cocoa framework is allowed to run
 on
  iOS. iPhone doesn't support to run java or other code. So i don't think
 it
  is possible to run your GWT on iPhone.

 That's plain wrong... We got GWT Apps in Apple's Store...

 Best,

 Raphael
 
  Sincerely,
  Light Qian
  -
  Sent from iCloud (Mac OSX Lion mail client)
 
  On Feb 13, 2012, at 9:27 PM, Adolfo Panizo Touzon wrote:
 
  If I understand I can develop a web app with GWT, in this app If I use
 the
  mgwt framework, my GWT app looks like and mobile app.
 
  Then, when I finish, with/using gwt-phonegap I can transform it into
 native
  apps that I can hung up in the App Store (Iphone), Market
 Place(Android)...
 
  All of this in Eclipse.
 
  Am I correct?
 
  Really thanks,
 
  Adolfo.
 
  2012/2/13 Daniel Kurka kurka.dan...@googlemail.com
 
  If you built an html5 app and wrap it with phonegap you will end up
 with
  an app that is not distinguishable from an native app. Phonegap
 exposes
  all native capabilities through a javascript API.
 
  The rest is simply UI. There are lots of good mobile UIs out there. The
  one I would pledge for (because I am the author) is mgwt
   http://www.m-gwt.com . If you combine it with gwt phonegap you got a
 great
  framework for writing cross platform mobile apps...
 
  - Daniel
 
 
 
  2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
  I am more lost than I tought. Thank you for your patient :)
 
  I have one big, and complex GWT app.
 
  Now I'm interested in create other GWT app similar but more simple
  oriented only to our clients (and avoid all the developers part).
 
  The idea is to create this simple GWT app (this GWT app will include
 some
  native capabilites ) and then, transform it into native platforms
  (Android, Iphone, Blackberry...),
 
  I asked at the beginning of this email if there was any framework that
  allows it.
 
  Now, thank you to your last answer I know that with phone gap is
  impossible because this framework only creates web solutions (if I'm
  incorrect please, let me know)
 
  So, the only option that is correct is Gwt4Ti Mobile. Good.
 
  While you were answering me I spent time reading  on the internet
 about
  these problems, and I have more questions:
 
  How much does it cost Gwt4Ti Mobile to develop an non open source app
  (the simple GWT app)?? (I mean, I saw that I'll need the Appcelerator
  Titanium Studio IDE, it costs an extra money) Is there other option?
 Is it
  possible to use others IDE, like eclipse?
 
  Are there other things that I must know?
 
  Excuse me for all this questions, but I need to send an inform to my
  bosses :)
 
  Thank you for all. If you don't understand anything, let me know,
 please
  (I'm not good enough in English) .
 
  Adolfo.
 
  2012/2/13 Alain Ekambi jazzmatad...@googlemail.com
 
  Note that PhoneGap will not turn you web based app into a native
 app. It
  will give it some native capabilities.
  So your application will still be a web app but with a native shell
   given you access to the device api.
 
  Concerning Gwt4Ti Mobile we have some pretty happy customers at the
  moment. But  maybe some one using it will like to share his
 experience.
 
  If  i m correct you have a Desktop GWT app that you want to turn
 into a
  mobile app with some native capabilities.
  Assuming you UI is mobile optimized  PhoneGap could be the way to go.
  Because you could reuse most of your UI code and have some native
 access
  through PhoneGap.
 
  2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
  Hi Alain,
 
  Thank you for the info.
 
  We are interested in Native solutions.
 
  Basically, if I'm correct the best frameworks in order to have one
 app
  for each platform (from the same initial GWT app) are Gwt4Ti Mobile
 and
  phoneGAP.
 
  Alain, in the last mail explains that Gwt4Ti Mobile would be
 helpful.
 
  Does someone works with these frameworks? Are there others

Re: Preload web pages

2012-01-06 Thread Adolfo Panizo Touzon
Yes, it looks fine, but... Is it possible use it inside the GWT app??

I've seen fast, but I think the basic use of this framework is to generate
the pdf/img in the cmd and then include this img/pdf inside your app... In
my case this task is so heavy because I have a big DB...

Any ideas?

Thank you so much for your response.

Adolfo.

2012/1/6 Gal Dolber gal.dol...@gmail.com

 You could use this project http://code.google.com/p/wkhtmltopdf/

 It uses webkit to render a site as pdf or as an image.
 I have never used the image part but the pdf rending is great

 On Fri, Jan 6, 2012 at 12:23 PM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 I want to create and event that when I do mouseover into a widget a popup
 displays a preload of a web page.

 The behaviour is similar than in Google (see the attached image).

 Is there any widget or Framework? Any ideas?

 Thank you so much.

 Adolfo.

 --
 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 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.




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




  --
 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.




-- 
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 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: Preload web pages

2012-01-06 Thread Adolfo Panizo Touzon
Thanks! I'll try on Monday. Have a nice weekend.
On Jan 6, 2012 5:09 PM, Gal Dolber gal.dol...@gmail.com wrote:

 Yes, that one is for server usage, to render a website on the client you
 could try http://html2canvas.hertzen.com/

 On Fri, Jan 6, 2012 at 1:35 PM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Yes, it looks fine, but... Is it possible use it inside the GWT app??

 I've seen fast, but I think the basic use of this framework is to
 generate the pdf/img in the cmd and then include this img/pdf inside your
 app... In my case this task is so heavy because I have a big DB...

 Any ideas?

 Thank you so much for your response.

 Adolfo.

 2012/1/6 Gal Dolber gal.dol...@gmail.com

 You could use this project http://code.google.com/p/wkhtmltopdf/

 It uses webkit to render a site as pdf or as an image.
 I have never used the image part but the pdf rending is great

 On Fri, Jan 6, 2012 at 12:23 PM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 I want to create and event that when I do mouseover into a widget a
 popup displays a preload of a web page.

 The behaviour is similar than in Google (see the attached image).

 Is there any widget or Framework? Any ideas?

 Thank you so much.

 Adolfo.

 --
 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 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.




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt
 applications.

 http://code.google.com/p/guit/




  --
 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.




 --
 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 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.




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




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


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



Automatic compiling in Hosted Mode

2012-01-04 Thread Adolfo Panizo Touzon
Hi everybody,

I succeeded the step deploy my GWT app to an external server (in my case
WebSphere). This step is easy
(herehttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's
).

Now, I'm trying to compile automatically the app (on fly)  to avoid the
slow process of compilation (because now when I made a change in my app, my
WebSphere Server restart it automatically).

The basic idea, is that I want to start the GWT Development Mode (like
thishttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#dev_mode)
and work from here, but I don't how can I do.

Any ideas or comments would be appreciated.

Regards.

Adolfo.

-- 
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 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: One type for all

2011-12-12 Thread Adolfo Panizo Touzon
Thank you so much for all the information it was very useful.

In the future we are going to migrate to RequestFactory with AutoBeans (it
allowed all the types that we are using)

Really thanks.

Adolfo.

2011/12/12 Steve Moyer smoye...@gmail.com

 RequestFactory is nice if you have access to the backend

 I'm using AutoBeans (which were designed for RequestFactory) to
 marshall and unmarshall my model classes on the client side without
 having access to the server side.  I don't have a JEE server or even a
 servlet container as I'm using CouchDB.  My models are interfaces
 annotated as EJB3 POJOs but also annotated with validations.  And I'm
 exporting them from CouchDB to an RDBMS using Hibernate.  So I have
 models that are used for the client side, a NoSQL and an RDBMS.

 Think it through ... you'll get there too!

 smoyer

 On Dec 11, 6:23 am, Ed post2edb...@gmail.com wrote:
  I don't think there is a perfect solution currently.
  It all depends on your situation.
 
  The RequestFactory is nice if you have access to the backend, as this
  mechanism requires a further integration between the backend and
  frontend. But not everybody has access to this part of the backend but
  merely the web layer backend on top of the backend that handles all
  the front-end communication.
  However RequestFactory is very efficient.
 
  If you only want parts of the domain object (DO) to be transfered to
  the front-end (like in my case), you need to create DTO and convert
  DTO - DO which costs time to fine tune all and is fragile (make sure
  you test it well). I use Dozer, but had to make my own dozer branch
  due to bugs and extra requirements.
 
  I understood that Java 7 would offer extra DTO functionality, no idea
  what the current status of this is.
 
  - Ed
 
  On Dec 10, 2:50 pm, Thomas Broyer t.bro...@gmail.com wrote:
 
 
 
 
 
 
 
   This is (partly) what RequestFactory tries to solve (vs. GWT-RPC): you
 no
   longer use your server-side classes on the client-side, so you don't
 have
   the issues of your entities having to be translatable by the GWT
 compiler.
 
   If you work with JSON (using things like Jackson or GSON on the
   server-side), you can use AutoBeans on the client-side (you can also
 use
   them on the server-side, btw) to easily parse and manipulate the
 objects
   (at least a bit more easily than with JsonUtils.safeEval() and JS
 Overlay
   Types).
 
   But if you only add annotations to your classes, there's no reason you
   couldn't use them on the client-side too; you just have to make sure
 you
   have the source code for the annotations on the classpath too.
 
   Just a suggestion; AutoBean and RequestFactory are not a
 silver-bullet, and
   JSOs and GWT-RPC are still viable choices (FYI, Google Groups uses
 GWT-RPC).

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




-- 
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 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.



One type for all

2011-12-10 Thread Adolfo Panizo Touzon
Hi,

The last two years I have worked with GWT and other technologies (REST,
JPA, Validation (JSR 303 )). In all projects that I developed I found
always a commom problem.

The compatibility of the data.

For example, If I use some annotatons in the Entity to allow the REST
functions I can´t instantiate these Entity in the client side of GWT
(problems with the compiling to JS), or I found problems to transport the
object to the database in an automatic way, or if I use JSON to transport
the data I must create extra class to manage the native information, or if
i use a commom mechanism to transport it (RPC) the work becomes very
heavy

I don´t know if I have explained enough well, but, the question is, what do
you do to avoid these problems??

There is a commom way that we can follow??

Any suggestion or comment are welcome.

Thank you so much.

Adolfo.

-- 
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 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: JUnit testing with GWT

2011-08-18 Thread Adolfo Panizo Touzon
Hi,

take a look 
here.http://code.google.com/webtoolkit/doc/latest/tutorial/JUnit.html

For a interesting example take a look to the included file
(ValidationTest.java).

Regards.

2011/8/18 Raja grsvarma...@gmail.com

 Hi,

 Can someone please guide me in writing GWT Junit test cases?
 I'm new to Junit too.

 what files are involved and what to mention in which file?etc?

 Thanks,
 Raja

 --
 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.




-- 
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 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.



ValidationTest.java
Description: Binary data


Acces to annotations in deferred binding

2011-08-18 Thread Adolfo Panizo Touzon
Hi everybody,

I have this class:

*class Person{*

*@Caption(name=Name)*

*String name;*

*}*

How can acces to this annotation in deferred binding?.

When I access to the JField that represents the field name, the method
*nameJField.getDeclaredAnnotations()
*or *nameJField.getAnnotation(Caption.class)* or any related method not find
that Annotation.

It's a bit strange because the class is responsible for performing the
deferred binding has other Annotations that I can access.

The response to this fact I think it is because I have no GeneratorContext
about the Person class but, someone have an idea?

One of the restrictions I have is that the Person class I can not change.

Thanks.


-- 
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 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: Acces to annotations in deferred binding

2011-08-18 Thread Adolfo Panizo Touzon
O...It works! Thanks.

2011/8/18 Gal Dolber gal.dol...@gmail.com

 Make sure the annotation has rentention(runtime):

 @Retention(RUNTIME)
 public @interface Caption { ...

 On Thu, Aug 18, 2011 at 8:21 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi everybody,

 I have this class:

 *class Person{*

 *@Caption(name=Name)*

 *String name;*

 *}*

 How can acces to this annotation in deferred binding?.

 When I access to the JField that represents the field name, the method 
 *nameJField.getDeclaredAnnotations()
 *or *nameJField.getAnnotation(Caption.class)* or any related method not
 find that Annotation.

 It's a bit strange because the class is responsible for performing the
 deferred binding has other Annotations that I can access.

 The response to this fact I think it is because I have no GeneratorContext
 about the Person class but, someone have an idea?

 One of the restrictions I have is that the Person class I can not change.

 Thanks.


 --
 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 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.




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




  --
 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.




-- 
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 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: JUnit test and deferred binding.

2011-08-16 Thread Adolfo Panizo Touzon
Hello community,

Obviously having no opinion or answer, I see that I have not explained well
enough. I'll try XD.

I'm trying to design a basic test for the api I'm developing.

This API is based on that during compile time using deferred binding, uses a
variety of classes, but that such classes can not be called from other
sitesbecause I need references to objects that only I can get the famous
methodgenerate:

At first one of the main method is responsible for creating a tree of
informationand then perform other functions (next method):

public void createTreeNode() throws UnableToCompleteException{
for (Class? gvgClass : this*.gvgAnnotation*.value()){
GvgGeneratorNodeClass nodeClass = new GvgGeneratorNodeClass();
nodeClass.setNameClassSimple(gvgClass.getSimpleName());
nodeClass.setNameClass(gvgClass.getName());
nodeClass.setNameTable(GvgCellWidgetInfo.createNameTable(nodeClass.getNameClassSimple()));
try{
*JClassType* type = *typeOracle*.findType(gvgClass.getName());
ArrayListGvgGeneratorNodeField nodeFields =
GvgGeneratorNodeClass.createNodeFields(type);
 nodeClass.setFields(nodeFields);
this.nodeClasses.add(nodeClass);
}catch(Exception e){
this.logger.log(TreeLogger.ERROR, e.getMessage(), new
UnableToCompleteException());
}
}
}

And, as you can see I need TypeOracle classes, and annotation JClassTypethat
the only way to get them is by deferred binding.

The deduction from this is that if I can do a test of these methods, neither
of which I can do because you can not come after passing the necessary
objects.

Also another problem occurs, if you try to make a GWT.create JUnit fails.

So the question is  How I can make some fairly decent test?

Thanks.

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



JUnit test and deferred binding.

2011-08-15 Thread Adolfo Panizo Touzon
Hi,

One question. How can I get the GeneratorContext when I´m using deferred
binding for make a JUnit test ??

something like:



*testXXXGenerator (GeneratorContext context){*

*.*

*}*


Any example?

Thanks for your time.
-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT with Oracle

2011-08-10 Thread Adolfo Panizo Touzon
This is the official forum of GWT, so if we talk around here, let's do it in
English (even using the google translator xD).

In addition, here are people you can not imagine what they can get to know,
and if we talk in Spanish as well as to delete your thread (the official
specification of the forum has been marked the official language is
English), we eliminated a lot of people maybe we can help.

Your problem is simple, although it is true that the boot can be confusing
gwt. If you look, GWT is a framework that allows you to program in Java but
then compiled to JavaScript, so depending on what part of your application
programs can not use all the features of java as you wish.

On the server you can set as the hell you want you will not have a problem
(because it is pure Java), while the server is not so, hence you have the
problem.

I suggest you divide your application into the part you want to work on the
server and the part you want to work on the client, and once done that make
your RPC or RequestFactory and are the ones who transmitted from client to
server yourintentacion touching the DB and it is the latter which makes the
corresponding CRUD operation.

The GWT tutorials that come are really good, really.

On the other hand, if you want a more precious help, write less text and put
the specific failure you've had, here people are very, very good and knows
that nothing goes wrong but see the error.

PD. I'm stuck here because I am developing an API for automatic code
generation that validates and displays content from simple Java classes
(POJO's classes). Later this month I hung up the project at Google Code.

A greeting!.

Adolfo.

El 10 de agosto de 2011 09:13, Gema matesanz gema.mates...@gmail.comescribió:

 Hombre Adolfo!!! ktl?? jajaja si tio estoy metido por estos lares, xk estoy
 haciendo ya el proyecto de fin de carrera y estoy hasta los cojones de no
 conseguir que me funcione esto y luego resultara que es una tonteria. Pos mi
 problema es eso que no consigo conectar mi base oracle con gwt, porque si lo
 hago con TomCat y Servelt como lo haciamos en Redes II me funciona
 perfectamente, cuando puse en lib el jar de oracle pero esto da igual donde
 ponga el jar que sigue diciendo que esta restringida la clase...

 Tu sabrías solucionarlo Vamos me das la vida jajajaja

 Por cierto y tu que haces por aqui??



 Un saludo
 -
 Gema Matesanz

  --
 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.




-- 
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 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: HOWTO change the value of a cell in a celltable

2011-08-10 Thread Adolfo Panizo Touzon
If I understand, when you
sethttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/FieldUpdater.htmlthe
new value you must call to 
*yourTable.redraw();*

Regards.

2011/8/10 Jeff Chimene jchim...@gmail.com

 Hi:

 I have an EditTextCell whose value must be edited after the user presses
 Enter. The edited value must be redisplayed in the Cell.

 For example, if the value is 1,2,3, then the value must be edited to
 be 1,2 and that new value must be displayed in the cell table.

 I almost have this solved. The problem is that the new value does not
 display until the next round of the cell refresh, which occurs when I
 focus on the cell, then press enter.

 --
 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.




-- 
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 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: HOWTO change the value of a cell in a celltable

2011-08-10 Thread Adolfo Panizo Touzon
Hi,
maybe another solution is use the TextInputCell, have you tried ??


2011/8/10 Jeff Chimene jchim...@gmail.com

 On 08/10/2011 04:36 AM, Adolfo Panizo Touzon wrote:
  If I understand, when you set
  
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/FieldUpdater.html
 
  the new value you must call to /yourTable.redraw();/

 Exactly. However, the new value isn't displaying until the next
 focus/blur cycle.

 I have other cells in the cell table whose values are updated. This is
 the only cell whose value is read, then written.

 It has something to do with the EditTextCell edit cycle. It seems like
 whoever wrote this widget did not consider the case where there would be
 additional edits after the user pressed enter to commit the value.

 --
 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.




-- 
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 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: HOWTO change the value of a cell in a celltable

2011-08-10 Thread Adolfo Panizo Touzon
:)

2011/8/10 Jeff Chimene jchim...@gmail.com

 On 08/10/2011 04:59 AM, Jeff Chimene wrote:
  On 08/10/2011 04:56 AM, Adolfo Panizo Touzon wrote:
  Hi,
  maybe another solution is use the TextInputCell, have you tried ??
 
  No, I really need EditTextCell, as it has the UI stuff that I need for
  this particular cell.
 
  I'm on the track of instantiating an EditTextCell (rather than use
  ColumnC,V(new EditTextCell())
  , then using the ClearViewData method to reset it while still in the
  edit loop.
 
  I'll post back w/ results.

 Yeah, that was it:

 Instantiate the EditTextCell in a separate class, so that there exists
 an instance with which to call ClearViewData inside the FieldUpdate method.

 There is a reference to this in the example set of CellTable.

 The other trick is to call the editor outside the EditTextCell edit
 loop, so that there is no simultaneous modification of the list data. viz:

 predecessorColumn.setFieldUpdater(new FieldUpdaterActivity, String()
 {
@Override
public void update(final int index, final Activity activity, final
 String value) {
predecessorCell.clearViewData(activity);

  com.google.gwt.core.client.Scheduler.get().scheduleDeferred(new
 ScheduledCommand() {
@Override
public void execute() {
getUiHandlers().onPredecessorChange(activity, value);
cellTable.redraw();
}
});
}
 });

 
 
 
 
  2011/8/10 Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com
 
  On 08/10/2011 04:36 AM, Adolfo Panizo Touzon wrote:
   If I understand, when you set
  
  
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/FieldUpdater.html
 
   the new value you must call to /yourTable.redraw();/
 
  Exactly. However, the new value isn't displaying until the next
  focus/blur cycle.
 
  I have other cells in the cell table whose values are updated. This
 is
  the only cell whose value is read, then written.
 
  It has something to do with the EditTextCell edit cycle. It seems
 like
  whoever wrote this widget did not consider the case where there
 would be
  additional edits after the user pressed enter to commit the value.
 
  --
  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
  mailto:google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com
  mailto:google-web-toolkit%2bunsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
 
 
 
  --
  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 post to this group, send email to
 google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 

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




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT with Oracle

2011-08-09 Thread Adolfo Panizo Touzon
Gema, que haces por estos lares? No sabia que trabajases con GWT.

Jaja, you are welcome!.

Did you solved the problem?


2011/8/9 Gema matesanz gema.mates...@gmail.com


 .
 Hello, yes I've read the GAE Developer's Guide a few times and have not
 found solution to my problem, say it's library but I make the
 corresponding changes but still not working, you are kind enough to help



 Un saludo
 -
 Gema Matesanz

  --
 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT CELLTABLE How to restore old value in cell if validation fails

2011-08-02 Thread Adolfo Panizo Touzon
Dis you try: *object.setValue(object.getValue()); *??

2011/8/2 vaibhav bhalke bhalke.vaib...@gmail.com

 Hi all,

 PFA WebEx recording for Issue.

 I want to used editableNumbercell like intger,decimal etc.. But there is no
 such gwt widget present so I am using editable text cell and using
 validation for numbers when user update value in cell.

 How to avoid cell editing when validation fails.

 if validation fail then editable-text cell value restored to old value.How
 to do that?

 intgerColumn.setFieldUpdater(new FieldUpdaterRecordInfo, String() {

 public void update(int index, RecordInfo object, String value) {

 // Called when the user changes the value.
 if(value.matches((-)?(\\d){1,8})){

 object.setColumnInRecordEdited(true);
 object.setValue(value);

 RecordData.get().refreshDisplays();

 }else{
 Window.alert(Specify valid integer value for parameter);

 // How to rest old value here? currently update value set to 
 cell

 }

 }

 });

 Any help or guidance in this matter would be appreciated.


 --
 Best Regards,
 Vaibhav Bhalke
 About me : http://about.me/vaibhavbhalke

 http://about.me/vaibhavbhalke



  --
 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT CELLTABLE How to restore old value in cell if validation fails

2011-08-02 Thread Adolfo Panizo Touzon
Thanks!. It´s usefull for me.

2011/8/2 Ioan Agopian ioan.agop...@gmail.com

 Hi Vaibhav,

 You can do it like this:
 // clear incorrect data
 cell.clearViewData(KEY_PROVIDER.getKey(object));
 cellTable.redraw();

 Where cell is the TextEditCell that you're using for that column.

 Regards,
 Ioan


 On Aug 2, 12:59 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:
  Hi all,
 
  PFA WebEx recording for Issue.
 
  I want to used editableNumbercell like intger,decimal etc.. But there is
 no
  such gwt widget present so I am using editable text cell and using
  validation for numbers when user update value in cell.
 
  How to avoid cell editing when validation fails.
 
  if validation fail then editable-text cell value restored to old
 value.How
  to do that?
 
  intgerColumn.setFieldUpdater(new FieldUpdaterRecordInfo, String() {
  public void update(int index, RecordInfo object, String value) {
  // Called when the user changes the value.
  if(value.matches((-)?(\\d){1,8})){
  object.setColumnInRecordEdited(true);
  object.setValue(value);
  RecordData.get().refreshDisplays();
  }else{
  Window.alert(Specify valid integer value for
 parameter);
  // How to rest old value here? currently update value
  set to cell
 
  }
 
  }
  });
 
  Any help or guidance in this matter would be appreciated.
 
  --
  Best Regards,
  Vaibhav Bhalke
  About me :http://about.me/vaibhavbhalke
 
  http://about.me/vaibhavbhalke
 
   Issue1-How to restore old value in cell (if validation fails).wrf
  203KViewDownload

 --
 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.




-- 
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 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: Question about the API of Validation

2011-07-27 Thread Adolfo Panizo Touzon
Ok. Thanks for the info.

Regards.

2011/7/26 Nick Chalko ncha...@google.com

 Remember
 @Valid
 Foo foo.

 Just recurses into foo calling the Validator on it.

 @Valid
 Integer int.
 at best will do nothing because the Integer class has no constraints.

 @Valid is made for your classes that you have put constraints on.

  --
 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.




-- 
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 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: Question about the API of Validation

2011-07-26 Thread Adolfo Panizo Touzon
Solved.

The problem is in the @Valid constraint (the validator of that constraint
doesn´t allow parameterizeds types belonging to the package java.util).

I use @Size and works perfectly.

Thanks.

2011/7/22 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Ok.
 I have two simple class: Person and Email.

 Also I´m  using the api of validation that includes in the gwt-2.4.0, and
 the configuration of the module is correct (because if I comment the @Valid
 contraints the code works well).

 The Person class class has some fields that belong to the java package 
 java.util
 and are annotated with the @Valid constraint.

 *class Person{*
 *
 *

 *//Works fine*

 *
 @Valid
 private HashMapString, Email codigos;

 //Not work.
 @Valid
 private HashMapInteger, HashMapString,Email movidas;

 //Works fine
 @Valid
 private ArrayListEmail mails;
 *

 *}*

 Finally the code that raise the exception are:

 *public class GenValGui implements EntryPoint {*
 * public void onModuleLoad() {*
  Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator();
 ErrMessagePanel emp =new ErrMessagePanel();
  Person p = new Person(..);
  *validator.validate(p, Default.class);*
 *}*
 *}*

 The deduction of this behavior is logic, the validation api does not allow
  validate nested java.util fields like *ArrayList**ArrayListString.*

 My question is that if in the future will be allowed or a restriction that
  must always be so.

 Thank you very much for answering and if I have not explained well or you
 need more information, let me know.

 Thanks.

 Adolfo.

 2011/7/22 Nick Chalko ncha...@google.com



 On Thu, Jul 21, 2011 at 2:45 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 As I said in another email I'm working with gwt api validation.

 Now I'm doing some tests, it is still not allowed the validation of
 fields belonging to the package java.util with @Valid constraint.


 Can you show the code you have that fails.

 You might also try the GWT 2.4 beta it includes Validation see
 http://code.google.com/p/google-web-toolkit/wiki/BeanValidation.

 --
 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.




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




-- 
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 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: Question about the API of Validation

2011-07-22 Thread Adolfo Panizo Touzon
Ok.
I have two simple class: Person and Email.

Also I´m  using the api of validation that includes in the gwt-2.4.0, and
the configuration of the module is correct (because if I comment the @Valid
contraints the code works well).

The Person class class has some fields that belong to the java package
java.util
and are annotated with the @Valid constraint.

*class Person{*
*
*

*//Works fine*

*
@Valid
private HashMapString, Email codigos;

//Not work.
@Valid
private HashMapInteger, HashMapString,Email movidas;

//Works fine
@Valid
private ArrayListEmail mails;
*

*}*

Finally the code that raise the exception are:

*public class GenValGui implements EntryPoint {*
* public void onModuleLoad() {*
Validator validator =
Validation.buildDefaultValidatorFactory().getValidator();
ErrMessagePanel emp =new ErrMessagePanel();
 Person p = new Person(..);
 *validator.validate(p, Default.class);*
*}*
*}*

The deduction of this behavior is logic, the validation api does not allow
validate nested java.util fields like *ArrayList**ArrayListString.*

My question is that if in the future will be allowed or a restriction that must
always be so.

Thank you very much for answering and if I have not explained well or you
need more information, let me know.

Thanks.

Adolfo.

2011/7/22 Nick Chalko ncha...@google.com



 On Thu, Jul 21, 2011 at 2:45 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 As I said in another email I'm working with gwt api validation.

 Now I'm doing some tests, it is still not allowed the validation of
 fields belonging to the package java.util with @Valid constraint.


 Can you show the code you have that fails.

 You might also try the GWT 2.4 beta it includes Validation see
 http://code.google.com/p/google-web-toolkit/wiki/BeanValidation.

 --
 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.




-- 
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 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: Validation java.util fields

2011-07-21 Thread Adolfo Panizo Touzon
As pointed out in the mail, create the annotation I figured that way was the
solution.

In addition to confirming ... you put the code!.

XD. So glad.

Thank you very much both for answering.

Continuous working.

2011/7/19 Kevin Jordan ke...@kjordan.net

 You can do a custom constraint.

 @Constraint(validatedBy = StringCollectionValidatorImpl.class)
 @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD,
 ElementType.CONSTRUCTOR, ElementType.PARAMETER })
 @Retention(RetentionPolicy.RUNTIME)
 public @interface StringCollectionValidator {
boolean notNull() default true;
int minSize() default -1;
int maxSize() default -1;
 }

 import javax.validation.ConstraintValidator;
 import javax.validation.ConstraintValidatorContext;

 public class ReservationDateRangeImpl implements
 ConstraintValidatorStringCollectionValidator, CollectionString {

boolean notNull;
int minSize;
int maxSize;
public void initialize(StringCollectionValidator anno) {
   notNull = anno.notNull();
   minSize = anno.minSize();
   maxSize = anno.maxSize();
}

public boolean isValid(CollectionString stringCol,
 ConstraintValidatorContext constraintValidatorContext) {
if (stringCol != null) {
   for (String stringVal : stringCol) {
  if (stringVal == null  notNull) {
 return false;
  }
  int size = stringVal.size();
  if ((minSize != -1  size  minSize) || (maxSize != -1
  size  maxSize)) {
 return false;
  }
   }
} else {
return !notNull;
}
return true;
}
 }

 That should get you what you mostly want.

 On Jul 19, 11:03 am, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  Hello,
  I have a question for the community.
  I am developing an API that uses Validation.
 
  After reading this
  articlehttp://people.redhat.com/~ebernard/validation/#d0e991
  , came to the conclusion that the standard JSR-303 allowsthe validation
 of
  fields belonging to the package java.util, but in a peculiar way.
  For example if I have a field like this:
  *
  *
  *class Person {
  *
 
  *@Valid*
 
  *ArrayListArrayListAdress address;*
 
  *}*
 
  No problem, we find that all Address objects are correct. But if I have a
  field like this:
 
  *class Person {
  *
 
  *@ Valid*
 
  *ArrayListArrayListString address;*
 
  *}*
 
  and I want to check the different Strings meet the @NotNull or @Size
  constraint *(I think) **is impossible*.
 
  If someone finds that I am in error or have a idea, please indicate as I
 could
  do (yes, that I can create my own constraint  and manually check that the
  Strings are not null or have a certain size).
 
  Thank you very much everybody.
 
  Adolfo.
 
  --
  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 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.




-- 
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 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.



Question about the API of Validation

2011-07-21 Thread Adolfo Panizo Touzon
As I said in another email I'm working with gwt api validation.

Now I'm doing some tests, it is still not allowed the validation of fields
belonging to the package java.util with @Valid constraint.

Associate the exception:
Caused by: java.lang.SecurityException: Prohibited package name: java.util
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1078)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
com.google.genvalgui.client.GwtValidatorImpl.validate(GwtValidatorImpl.java:224)

*For when** will be available? Does anyone have some information?*

Thanks!.


-- 
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 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.



Validation java.util fields

2011-07-19 Thread Adolfo Panizo Touzon
Hello,
I have a question for the community.
I am developing an API that uses Validation.

After reading this
articlehttp://people.redhat.com/~ebernard/validation/#d0e991
, came to the conclusion that the standard JSR-303 allowsthe validation of
fields belonging to the package java.util, but in a peculiar way.
For example if I have a field like this:
*
*
*class Person {
*

*@Valid*

*ArrayListArrayListAdress address;*

*}*

No problem, we find that all Address objects are correct. But if I have a
field like this:

*class Person {
*

*@ Valid*

*ArrayListArrayListString address;*

*}*

and I want to check the different Strings meet the @NotNull or @Size
constraint *(I think) **is impossible*.

If someone finds that I am in error or have a idea, please indicate as I could
do (yes, that I can create my own constraint  and manually check that the
Strings are not null or have a certain size).

Thank you very much everybody.

Adolfo.

-- 
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 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: Re: Which version of javax.validation.validation-api?

2011-07-13 Thread Adolfo Panizo Touzon
Hi everybody,

I can confirm that I am using this API without using the RequestFactory.

If you have any questions, write them!

Regards.

2011/7/13 Jens jens.nehlme...@gmail.com

 I think you can use it without RequestFactory. You just have to start the
 validation process yourself before doing your server request.

 --
 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/-/CmxXol13244J.

 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Timer..

2011-07-12 Thread Adolfo Panizo Touzon
Hi,
look at this link,
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Timer.html


2011/7/12 sanjay kanwar sanj.kan...@gmail.com

 Hi There,


 I need to set up a timer of 2minutes and along with the need to show a
 Battery with a percentage value.\
 I hav to write the client side code for this task. Any help would be
 appreciated. thanks in Advance

 --
 Regards

 Sanjay Kanwar

  --
 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: A gwt-sample. Integrate Spring, JPA2.

2011-07-12 Thread Adolfo Panizo Touzon
Interesting! Thanks!.

2011/7/12 Juan Pablo Gardella gardellajuanpa...@gmail.com

 Hi folks,

 I update the sample. I add an Hibernate Filter, an alternative to DTOs
 or Gilead to the solve the problem of serialization in GWT-RPC
 comunication. See
 http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html.

 With this filter, proxys are put to null and initialize collection
 convert to java collections frameworks implementation. For example
 PersistenSet to HashSet. With this filter can solve LIE.

 Is an alternative to Gilead or DTOs. Other alternatives, I think are
 intrusive (Gilead) or generate a lot of duplicate code (DTOs). Is
 tested with GWT 2.3.0. Or more complicate as RF. RF is better I
 suppose, but to me, more complicated.

 Best regards,
 Juan

 On May 27, 4:06 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  Hi folks,
 
  I wanna contribute to the communitiy with a little sample. I put
 inhttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home
 
  Features:
 
 - JPA 2.
 - gin.
 - gwt-dispatch. Handlers are spring managed beans.
 - jsr-330 in client and server side.
 - Spring.
 - Spring Security.
 - H2 database.
 - Build by maven.
 - Runnable by jetty (mvn jetty:deploy-war).
 - Autogenerate database by reading domain classes.
 
  Use activity and places.
 
  Regards,
  Juan

 --
 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How do I align a GWT application to the center?

2011-07-07 Thread Adolfo Panizo Touzon
Amigo, en el html donde tienes el id flexTable, mete css.

2011/7/6 Xavier xrobl...@gmail.com

 I have an html5 canvas element within a flextable and that flextable
 is in the root panel. I would like to align the application so it is
 displayed in the center of the page both vertically and horizontally.
 Currently it is displayed in the upper left hand corner.

 code:
 Document document = Document.get();
 Canvas canvasElement = (Canvas) document.getElementById(canvas);
 final MyFocusWidget webGLCanvas = new MyFocusWidget((Element)
 canvasElement);
 flexT.setWidget(0, 0, webGLCanvas);
 RootPanel.get(flexTable).add(flexT);


 Any help is appreciated.

 --
 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How do I align a GWT application to the center?

2011-07-07 Thread Adolfo Panizo Touzon
O mejor aun mete una hoja de estilo en el widget que quieres que salga
centrado.


2011/7/7 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Amigo, en el html donde tienes el id flexTable, mete css.


 2011/7/6 Xavier xrobl...@gmail.com

 I have an html5 canvas element within a flextable and that flextable
 is in the root panel. I would like to align the application so it is
 displayed in the center of the page both vertically and horizontally.
 Currently it is displayed in the upper left hand corner.

 code:
 Document document = Document.get();
 Canvas canvasElement = (Canvas) document.getElementById(canvas);
 final MyFocusWidget webGLCanvas = new MyFocusWidget((Element)
 canvasElement);
 flexT.setWidget(0, 0, webGLCanvas);
 RootPanel.get(flexTable).add(flexT);


 Any help is appreciated.

 --
 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.




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




-- 
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 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: CellTable updating individual/non-consecutive rows

2011-07-06 Thread Adolfo Panizo Touzon
If I understand you, when you create the CellTable you can add a
setFieldUpdater. With this way you have control to update the rows like you
want (you have a int index).

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/CellTable.html


See you.


2011/7/5 Rike255 rgro...@gmail.com

 I can't figure out a good way to update a single row of data after
 using setRowData() to populate a CellTable.

 Specifically, I have an ArrayList of objects that represent rows that
 need to be updated, but they are not consecutive.  Is there a way to
 update one (or multiple non-consecutive) rows in a celltable without
 refreshing the whole thing (or from an index to the end)?

 Thanks!

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




-- 
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 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: LoginManager tutorial does not work.

2011-06-20 Thread Adolfo Panizo Touzon
Are you running the project LoginManager or you create a new project that
uses de LoginManager??

If you are in the second option check the xxx.gwt.xml of your entryPoint to
make sure de path of LoginManager.gwt.xml is correct.

Regards.


2011/6/18 freetocho...@hotmail.com freetocho...@hotmail.com

 Hi:

 I am new to GWT and am trying to learn it through the first tutorial
 you posted, LoginManager. After  I created the project and everything,
 and try to switch to the design mode with LoginManager.java, it says
 that GWT designer
 was not able to show the GUI.
 This log has the following error messages:


 [ERROR] Unable to find 'com/ftc/loginmanager/LoginManager.gwt.xml' on
 your classpath; could be a typo, or maybe you forgot to include a
 classpath entry for source?

 But the file com/ftc/loginmanager/LoginManager.gwt.xml is definitely
 there. I can see it just through Windows explorer.
 And I went to the Build Path of the project, it shows LoginManager is
 in the build path.
 I thought it perhaps needs src in it because LoginManager.gwt.xml is
 actually under
 LoginManager/src/com/ftc/loginmanager/LoginManager.gwt.xml
 So I changed the build path to LoginManager/src and it still gives me
 the same error message.

 I am using the latest Eclipse and installed gwt designer and
 everything throught the update site yesterday.
 I also use windowbuilder and it works on my other projects.

 Any idea?
 I am also running this on Windows 7 and the latest java.

 ftc

 --
 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.




-- 
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 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: JClassType source and isGenericType()

2011-06-15 Thread Adolfo Panizo Touzon
JClassType[] typeArgs =

 type.getImplementedInterfaces()[0].isParameterized().getTypeArgs();

JClassType elementType = typeArgs[0];


Did you try with getTypeArgs(); 


2011/6/14 pansen andi.ba...@googlemail.com

 hi,

 assuming i'm in a generator and receive a ``JClassType source`` which
 is in that case a ``org.test.FooBar``.

 then ``souce.isGenericType()`` returns ``null``
 but ``source.getParameterizedQualifiedSourceName()`` returns
 org.test.FooBar.
 whereas ``source.getSimpleSourceName()`` only returns Foo

 ...which is a problem for me.

 what can i call to see this is a specialization of a generic? e.g.
 something like ``source.base().isGenericType()``.

 what can i call to see the specialization of this class - in this case
 i want the result of Bar.

 thx a lot, andi

 --
 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.




-- 
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 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.



Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Hi Magno, thank you very much foir your answer.

So, ohter quickly question.

Do you (or anybody) know any form to use generics in deferred binding?

Thanks.

2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it is
 always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with the name
 of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass and
 override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on a
 Generator?

 Thanks!

 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




-- 
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 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: Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Before you ask a question.
If you don´t mind, show me a class that implements the interface Columns,
and the corresponding call GWT.create (class that implements Columns);

My specific question is I don´t know the form to assign the genereic type to
the interface [interface columsT]

How can I specify that T is Car.class or Bus.car (for example)??.

Thanks!

2011/6/7 Magno Machado magn...@gmail.com

 Check out what I did here

 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java


 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
 think what you want is lines 43/44


 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it is
 always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with
 the name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass
 and override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on a
 Generator?

 Thanks!

 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send

Re: Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Ok. I understand.

But when you said *declare a sub-interface that binds the type parameters
*.

Can you show me a simple example?? I don´t know the way to create a one
generic sub-interface (create one interface for each type is simple, but one
generic interface to bind all the types...¿?).

Thanks a lot.

2011/6/7 Magno Machado magn...@gmail.com

 Here's an exemple:
 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumns

 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumnsHowever, as
 Thomas already said, you can't inspect the generic arguments passed directly
 into GWT.create(). That is, given:
 GWT.create(FooBar.class), you can't see Bar. You can, however, inspect
 the generic arguments passed on the superclass or implemented interfaces


 On Tue, Jun 7, 2011 at 8:31 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Before you ask a question.
 If you don´t mind, show me a class that implements the interface Columns,
  and the corresponding call GWT.create (class that implements Columns);

 My specific question is I don´t know the form to assign the genereic type
 to the interface [interface columsT]

 How can I specify that T is Car.class or Bus.car (for example)??.

 Thanks!


 2011/6/7 Magno Machado magn...@gmail.com

 Check out what I did here

 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java


 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
 think what you want is lines 43/44


 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it
 is always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with
 the name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass
 and override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on
 a Generator?

 Thanks!

 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




 --
 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 post to this group, send email to
 google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr

Re: Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Hello,
I think what you wanted to explain is this:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b43716c6b0cb2d62?pli=1
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b43716c6b0cb2d62?pli=1
From what I see, is about building a sub-interface for each class who wants
access togeneric, isn´t it??

Do you know any way to use T and T can take several values ​​(car.class,
bus.class for example(which is what I can not understand))?

2011/6/7 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Ok. I understand.

 But when you said *declare a sub-interface that binds the type
 parameters*.

 Can you show me a simple example?? I don´t know the way to create a one
 generic sub-interface (create one interface for each type is simple, but one
 generic interface to bind all the types...¿?).

 Thanks a lot.

 2011/6/7 Magno Machado magn...@gmail.com

 Here's an exemple:
 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumns

 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumnsHowever, as
 Thomas already said, you can't inspect the generic arguments passed directly
 into GWT.create(). That is, given:
 GWT.create(FooBar.class), you can't see Bar. You can, however, inspect
 the generic arguments passed on the superclass or implemented interfaces


 On Tue, Jun 7, 2011 at 8:31 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Before you ask a question.
 If you don´t mind, show me a class that implements the interface Columns
 , and the corresponding call GWT.create (class that implements Columns
 );

 My specific question is I don´t know the form to assign the genereic
 type to the interface [interface columsT]

 How can I specify that T is Car.class or Bus.car (for example)??.

 Thanks!


 2011/6/7 Magno Machado magn...@gmail.com

 Check out what I did here

 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java


 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
 think what you want is lines 43/44


 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it
 is always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with
 the name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass
 and override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on
  a Generator?

 Thanks!

 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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

Generator || Deferred binding

2011-06-06 Thread Adolfo Panizo Touzon
Hi,

there any way to add code to an existing class when I'm working on a
Generator?

Thanks!

-- 
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 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: Generator || Deferred binding

2011-06-06 Thread Adolfo Panizo Touzon
Hi Magno,

but,  that subclass I must have created previously, no?
That is, in my project I have to have one *nameOfSubClass*.java with the name
of this subclass, no?



2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass and
 override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on a
 Generator?

 Thanks!

 --
 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 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.




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 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.




-- 
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 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: Ignoring unresolvable annotation type

2011-06-02 Thread Adolfo Panizo Touzon
with this libray you solve this problem, in my POJO´s i put some annotations
(for other reasons) and I haven´t problems.

Try it, and tell us.

Greetings.

2011/6/1 randasin r4nd7...@gmail.com

 I don't plan to use or check the annotation in GWT context so I am ok
 if GWT ignores it.  MyObject is still compiled and I can use it in
 Async requests, right?

 The reason I have the annotation is the classes are also used in
 another web service project, which utilizes the annotation.

 Just wondered if there is way to get rid of the warning.


 On Jun 1, 4:24 pm, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  As you know, GWT is not pure Java, so you can´t use some things.
 
  One way to solve these problem is including a library for reflection (see
  gwt-ent in google).
 
  2011/6/1 randasin r4nd7...@gmail.com
 
 
 
 
 
 
 
 
 
   I have one annotation and one object.
 
   com.example.model.shared.MyAnnotation
   com.example.model.shared.MyObject
 
   MyObject is declared with MyAnnotation:
 
   @MyAnnotation
   public class MyObject {
   ...
   }
 
   When I compile, I am getting this warning
 
   [java]Resolving com.example.model.shared.MyObject
   [java]   Found type 'com.example.model.shared.MyObject'
   [java]  [WARN] Ignoring unresolvable annotation type
   com.example.model.shared.MyAnnotation
 
   The compilation still succeeded, but I wonder what side effects are
   there?  How do I resolve this warning?
 
   --
   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.
 
  --
  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 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.




-- 
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 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: Reflection Class Generator

2011-06-02 Thread Adolfo Panizo Touzon
http://code.google.com/p/gwt-ent/

http://code.google.com/p/gwt-ent/Maybe it can help.

2011/6/2 Juan Pablo Gardella gardellajuanpa...@gmail.com

 +1 to share :)


 2011/6/2 Nagin Kothari naginkoth...@gmail.com

 I am very interessed on it. May you send the project to do a look to the
 code?

 regards

 Nagin Kothari

 On Wed, Jun 1, 2011 at 8:10 PM, Honza Rames rame...@gmail.com wrote:

 Hi, from what I can tell GWT doesn't support reflection at all in
 client side (JS translatable) code. Just a few simple features like
 getting class name (but I can't really call that reflection can
 I ;-) ). I have been experimenting with reflection in client side code
 though, and with a lot of success I must say :-). I'm planning to
 share the code on Google Code when I feel its ready, I'm currently
 testing it on business application I'm working on and then we'll see.
 If you (or anybody else) would like to give it a try, I might be able
 to create some package and share this with you (or maybe create the
 Google Code project right away). There is similar framework (don't
 remember the name but can be found by Google ;-) ), which didn't
 really didn't do the job for me because it was pretty difficult to
 generate the reflection information that is needed (please correct me
 if I got that wrong). My approach uses GWT generators and annotations
 to specify which packages and which classes should participate in
 reflection information generation. I'm supporting similar
 functionality that java Class gives you with some modifications, but
 you can obtain annotations, get/set fields and even call public
 methods and create new instance in reflective way (but you need to be
 careful on what info you add because it could greatly enlarge your
 resulting JS code). I also have unit tests (of course) for bunch of
 stuff but it would require a lot of cleanup I guess.

 So if anyone is interested just leave a message ;-)

 --
 Honza Rames

 On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  Can somebody the function about de class Generator and all the similar
  classes which is contained int he packpage com.google.gwt.core.ext,
 it´s
  used for deferred binding?
 
  Maybe if I want use reflection in my app, I must use these classes??
 
  --
  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 post to this group, send email to google-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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


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




-- 
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 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: Ignoring unresolvable annotation type

2011-06-01 Thread Adolfo Panizo Touzon
As you know, GWT is not pure Java, so you can´t use some things.

One way to solve these problem is including a library for reflection (see
gwt-ent in google).

2011/6/1 randasin r4nd7...@gmail.com

 I have one annotation and one object.

 com.example.model.shared.MyAnnotation
 com.example.model.shared.MyObject

 MyObject is declared with MyAnnotation:

 @MyAnnotation
 public class MyObject {
 ...
 }

 When I compile, I am getting this warning

 [java]Resolving com.example.model.shared.MyObject
 [java]   Found type 'com.example.model.shared.MyObject'
 [java]  [WARN] Ignoring unresolvable annotation type
 com.example.model.shared.MyAnnotation

 The compilation still succeeded, but I wonder what side effects are
 there?  How do I resolve this warning?

 --
 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.




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: gwt servlet thread, timer,reload

2011-05-31 Thread Adolfo Panizo Touzon
Hi Arno,

I have relatively little experience in this, but if you want some action
program for xtime, gwt offers mechanisms for such coordination.

I would recommend that you take a look at
Timerhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Timer.html
.

My philosophy is that if there is already a thing made ​​by Google, no one will
do better than them.

I hope it's what you want.

2011/5/31 khiem nguyen khi...@googlemail.com

 you  can start  your timer-process from something which starts with your
 webapp, for example in a ServletContextListener-implementations init method

 HTH



 On Tue, May 31, 2011 at 10:43 AM, ArnoNyhm 
 etechniker@googlemail.comwrote:

 Thx.
 i have created my timertask class, but where in the servlet i make the
 call?


 On 31 Mai, 07:41, J.Ganesan j.gane...@datastoregwt.com wrote:
  Since the servlet runs under J2SE, you can go for java.util.Timer  and
  java.util.TimerTask.
 
  J.Ganesanwww.DataStoreGwt.com
 
  On May 31, 5:08 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
 
   See Quartz http://www.quartz-scheduler.org/
 
   2011/5/30 ArnoNyhm etechniker@googlemail.com
 
Hi,
 
my gwt servlet loads data from a database, handle it and store it in
an embedded apche derby database. what i want is, that this process
 is
repeated every 45min automatically.
i don´t know how to do this?
 
regards arno
 
--
You received this message because you are subscribed to the Google
 Groups
Google Web Toolkit group.
To post to this group, send email to
 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

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


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




-- 
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 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: Canvas dimensions

2011-05-31 Thread Adolfo Panizo Touzon
Hi Cheers,

I read long ago according to where the application runs for certain
parameterschanged the settings.

GetOffsetWidth I think is one of them.

Can it be?

2011/5/31 Thomas Lefort lefortho...@gmail.com

 Hi,

 I have a canvas in a hidden panel. It is created before the panel is
 made visible. The problem I'd like to set its DOM width to 100% but I
 have a problem with the setCoordinateSpaceWidth then as I cannot get
 the canvas dimension via getOffsetWidth as the canvas is not visible.
 I don't even think I can add a resizeevent to Canvas nor is there a
 VisibleEvent. Would appreciate if anybody had an idea as to how to
 circumvent the problem?

 Cheers,

 Thomas

 --
 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.




-- 
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 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: Overriding a css style loclly

2011-05-31 Thread Adolfo Panizo Touzon
Hi lalit, try it with this

 ui:style field='reportStyle'
 @external gwt-Label;
   .gwt-Label{ color: #000 !Important; }
 /ui:style

I founded it 
herehttp://stackoverflow.com/questions/2322779/gwt-theme-style-overrides-my-css-style

http://stackoverflow.com/questions/2322779/gwt-theme-style-overrides-my-css-style
2011/5/30 lalit lalit.bh...@gmail.com

 I have a lot of labels in my application.I have overriding the style
 as most of the place, I need the new style and it works fines. the
 overridden style is

 .gwt-Label {
font-size: 15px;
font-weight: bold;
color: #fff;
float: inherit;
 }

 However at one particular place I need the color of label to be black,
 so I was trying to override the style in that ui.xml locally like

 ui:style field='reportStyle'
  @external gwt-Label;
.gwt-Label{ color: #000; }
  /ui:style

 However this impacts the style of label at other places also. Is there
 a way to override the standard style in a ui.xm so that it impacts the
 widgets of only in that ui binder.

 thanks in advance,

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




-- 
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 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: Big Daddy example problems

2011-05-31 Thread Adolfo Panizo Touzon
Can the application runs in other port??

2011/5/30 Zachariah Young zpyo...@gmail.com

 @bbgott

 I'm getting the same issue also on Ubuntu.  The solutions work just fine on
 Windows.  Could it be that Ubuntu has the  port blocked or something?

 Also what did u hard code to get the Android application to work.

 --
 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.




-- 
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 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.



Reflection Class Generator

2011-05-31 Thread Adolfo Panizo Touzon
Can somebody the function about de class Generator and all the similar
classes which is contained int he packpage com.google.gwt.core.ext, it´s
used for deferred binding?

Maybe if I want use reflection in my app, I must use these classes??

-- 
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 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: Delete Annotatona in client side

2011-05-29 Thread Adolfo Panizo Touzon
Hi Damien,
for a complete understanding, your in the project configuration file
xxx.gwt.xml what you put to good use for these objects on the client?

Simply by copy / paste is enough.

Thank you very much!.

2011/5/29 Damien Picard picard.dam...@gmail.com

 In my case, I have had to do the same with JAX XML annotations; I've done
 it by super-sourcing these annotations :

 http://code.google.com/intl/fr/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules
 (chapter overriding one package implementation with another)


 2011/5/28 Juan Pablo Gardella gardellajuanpa...@gmail.com

 I use JPA annotation without problem since GWT 2.0. What version of GWT
 are you using?


 2011/5/28 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 If I have a POJO class with JPA annotations (for example), anyone know
 how to remove the annotations to instantiate an object on the client
 side??

 Anyone know how to remove the annotations to instantiate an object on the
 client side

 So far I have used the library of gwt-ent but I guess that gwt must
 provide somemechanism to do so.

 Thanks in advance.

 Adolfo Panizo.

 --
 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 post to this group, send email to google-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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




 --
 Damien Picard
 Axeiya Services : http://axeiya.com/
 gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/
 Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html


  --
 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.




-- 
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 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: Delete Annotatona in client side

2011-05-29 Thread Adolfo Panizo Touzon
Hi Juan Pablo,
Just put the example of the JPA annotations because they are the most use. If
I'mhonest, as at the time long ago I solved the problem in my way, I did not
bother to check whether the new versions of gwt one could safely use these
annotations.

The question the way I wanted to make generic, as you know some annotations
gwtnot let them use on the customer and wanted to know if the gwt
itself provides
amechanism to fix.

According to Damien seems so, but I fail to understand, to see if it gives
an example.

Thanks anyway for answering.

2011/5/28 Juan Pablo Gardella gardellajuanpa...@gmail.com

 I use JPA annotation without problem since GWT 2.0. What version of GWT are
 you using?

 2011/5/28 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 If I have a POJO class with JPA annotations (for example), anyone know
 how to remove the annotations to instantiate an object on the client
 side??

 Anyone know how to remove the annotations to instantiate an object on the
 client side

 So far I have used the library of gwt-ent but I guess that gwt must
 provide somemechanism to do so.

 Thanks in advance.

 Adolfo Panizo.

 --
 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 post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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




-- 
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 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.



Delete Annotatona in client side

2011-05-28 Thread Adolfo Panizo Touzon
If I have a POJO class with JPA annotations (for example), anyone know how to
remove the annotations to instantiate an object on the client side??

Anyone know how to remove the annotations to instantiate an object on the
client side

So far I have used the library of gwt-ent but I guess that gwt must provide
somemechanism to do so.

Thanks in advance.

Adolfo Panizo.

-- 
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 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: Validation-api-1.0.0, Doesn't work

2011-05-26 Thread Adolfo Panizo Touzon
Maybe it can help you
http://stackoverflow.com/questions/2116583/gwt-java-security-accesscontrolexception-access-denied-for-serializer-in-ubunt
http://stackoverflow.com/questions/2116583/gwt-java-security-accesscontrolexception-access-denied-for-serializer-in-ubuntrevise,
maybe that this exception can not serialize.

Also revise the configuration of the server.
2011/5/26 MaximeMularz max...@mularz.fr

 Hi,

 I have a new error :

 [ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 java.lang.ExceptionInInitializerError
at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160)
at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
 169)
at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
 233)
at

 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
 35)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 58)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
 94)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:351)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)
 Caused by: java.lang.RuntimeException: Unable to get Unsafe instance
at

 com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java:
 457)
... 35 more
 Caused by: java.security.AccessControlException: access denied
 (java.lang.RuntimePermission accessClassInPackage.sun.misc)
at java.security.AccessControlContext.checkPermission(Unknown
 Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at com.google.appengine.tools.development.DevAppServerFactory
 $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
at java.lang.ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(Unknown Source)
at

 com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java:
 444)
... 35 more
  What's wrong ?


 On 25 mai, 22:14, MaximeMularz max...@mularz.fr wrote:
  Sorry, I don't 

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
 $ApiProxyHandler.handle(JettyContainerService.java:351)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)

 Thanks for your help

 Maxime

 On 23 mai, 18:34, Nick Chalko ncha...@google.com wrote:
  Glad you got it working.
 
  On Mon, May 23, 2011 at 9:31 AM, Adolfo Panizo Touzon 
 
  adolfo.pan...@gmail.com wrote:
   Hi Maxim!!!
 
   It works!!!
 
   I have made a very simple example based on Google (because if you have
 a
   problemthat I do not solve, sure there are people that if you could
 lend a
hand.)
   The steps you follow are the following:
 
   -Add the project (which I attached) to your workspace.
   -Select your gwt sdk 0.0.0.0
   -Add the libraries to your classpath you in the picture attached.
   -Run it.
 
   If you have any questions or comment on it is a problem here that I
 miss
   you a hand with any thing.
 
   Greetings!
 
   Now I work as an example to finally understand itself completely.
 
   Adolfo Panizo.
 
   2011/5/23 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
   You've read the email you send to another address? Is there a problem
 that
   prevents theapplication run.
   I need all the sdk result of the compilation not only gwt-user.
 
   I copied the email you send:
 
   *Listen*, now there is another problem, when I substitute the
 gwt-user
   original, foryours in the GWT SDK and run the project. There's
 something
   I do not like eclipse.
   *[*I have no choice but to do this because if I include your lib in
 the
   classpath when the module of my project runs collides thw sdk of
 google
   and your library compiled]
   *I enclose* a picture.
   *
   *
   *Would you know* how to fix? I believe that through a compilation
 entire
   google sdk(which if you look very similar to what you've done just
 that by
   running the ant.xmlgeneral) would end the problems.
 
   2011/5/23 MaximeMularz max...@mularz.fr
 
   Hi,
 
   I'm waiting your sample because, I don't know how to play with !!!
 
   Maxime
 
   On 23 mai, 14:17, Adolfo Panizo Touzon adolfo.pan...@gmail.com
   wrote:
Hi,
 
[I feel like a complete idiot right now. XD. There is a tutorial on
   google!]
 
Ok. I'm putting to work to try to compile everything on my own in
 the
meantime, if youmanage what you put in the mail to compile all the
 SDK
   and
get it, accelerate the whole process and so I can create the
 complete
   sample
 validation .
 
We are in touch, thank you very much for everything.
 
2011/5/23 MaximeMularz max...@mularz.fr
 
 Hi,
 
 1/ I did  the tuto :

 http://code.google.com/webtoolkit/makinggwtbetter.html#workingoncode.
 2/ I visited this page 
 http://subversion.apache.org/packages.html;
 3/ I downloaded and Installed : Win32Svn (32-bit client, server
 and
 bindings, MSI and ZIPs; maintained by David Darj)
 4/ I added SVN.exe to the PATH
 5/ and the command ant !!!
 
 Regards
 
 Maxime
 
 On 23 mai, 10:56, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  Another thing I forgot, you could specify the steps you have
 done
   to
 compile
   the gwt-user project?
 
  Thanks in advance.
 
  2011/5/23 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
   Try it with:
   Validator validator = GWT.create(SampleValidator.class);
 
   Other thing, send us the modules that you are inhertir in
 your
   project.
 
   If you use your form, you must specify in your xxx.gwt.xml
 the
   change
 of
   the class (remember, you must use the gwt class and not the
   standar
 class),
   like this:
 
 generate-with class=
   com.google.gwt.validation.rebind.ValidatorGenerator
when-type-assignable class=javax.validation.Validator
 /
  /generate-with
 
   Please, send me the jar that you are compiled at
 adolfo.pan...@gmail.com?? If I have the gwt-user.jar that
 includes
   all the
 packages of validation y
   can do it an example and I can solve your problems.
 
   Thank you very much.
 
   2011/5/23 MaximeMularz max...@mularz.fr
 
   Hi,
 
   I compiled the sources but when I'm using Validator
 validator =
   Validation.buildDefaultValidatorFactory().getValidator(),
 
   these are the errors :
 
   * Deferred binding result type

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
I don´t understand. ¿What´s the problem?

Maybe you can declarate HashMap in the client side and can´t transport by
rpc.

I´m not sure, but, what´s the problem?

2011/5/25 MaximeMularz max...@mularz.fr

 The implementation (http://code.google.com/p/google-web-toolkit/source/
 browse/trunk/samples/validation/src/com/google/gwt/sample/validation):

 public class GreetingServiceImpl extends RpcServlet implements
GreetingService {

  private final Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator();

  public SafeHtml greetServer(Person person) throws
 IllegalArgumentException,
  ConstraintViolationException {
// Verify that the input is valid.
SetConstraintViolationPerson violations =
 validator.validate(person,
Default.class, ServerGroup.class);
if (!violations.isEmpty()) {
  SetConstraintViolation? temp = new
 HashSetConstraintViolation?(
  violations);
  throw new ConstraintViolationException(temp);
}

String serverInfo = getServletContext().getServerInfo();
String userAgent = getThreadLocalRequest().getHeader(User-
 Agent);

// Escape data from the client to avoid cross-site script
 vulnerabilities.
SafeHtmlBuilder builder = new SafeHtmlBuilder();

SafeHtml safeHtml = builder//
.appendEscapedLines(Hello,  + person.getName() + !)//
.appendHtmlConstant(br)//
.appendEscaped(I am running  + serverInfo + .)//
.appendHtmlConstant(brbr)//
.appendEscaped(It looks like you are using: )//
.appendEscaped(userAgent)//
.toSafeHtml();
return safeHtml;
  }

 On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  You can save the errors strings in an arrayListString and transpor by
 rpc
  to the client side.
 
  2011/5/25 MaximeMularz max...@mularz.fr
 
   Hi,
 
   Client Side no probem it works, but ServerSide I can't catch the
   excepetion becasue HashSet is not supported by RPCService :
 
   [ERROR] javax.servlet.ServletContext log: Exception while dispatching
   incoming RPC call
   com.google.gwt.user.client.rpc.SerializationException: Type
   'java.util.HashSet' was not included in the set of types which can be
   serialized by this SerializationPolicy or its Class object could not
   be loaded. For security purposes, this type will not be serialized.:
   instance =
  
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
   propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
   messageTemplate='{custom.name.size.message}'}]
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   619)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
   49)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   72)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   28)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
   740)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   621)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
   $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
   539)
  at
 com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
  at
   com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
   390)
  at
   com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
   588)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
   208)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
   248)
  at
 
  
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
   62)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at
   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
   511)
  at org.mortbay.jetty.servlet.ServletHandler

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunication.html#DevGuideSerializableTypes

2011/5/25 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 I don´t understand. ¿What´s the problem?

 Maybe you can declarate HashMap in the client side and can´t transport by
 rpc.

 I´m not sure, but, what´s the problem?

 2011/5/25 MaximeMularz max...@mularz.fr

 The implementation (http://code.google.com/p/google-web-toolkit/source/
 browse/trunk/samples/validation/src/com/google/gwt/sample/validationhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/com/google/gwt/sample/validation
 ):

 public class GreetingServiceImpl extends RpcServlet implements
GreetingService {

  private final Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator();

  public SafeHtml greetServer(Person person) throws
 IllegalArgumentException,
  ConstraintViolationException {
// Verify that the input is valid.
SetConstraintViolationPerson violations =
 validator.validate(person,
Default.class, ServerGroup.class);
if (!violations.isEmpty()) {
  SetConstraintViolation? temp = new
 HashSetConstraintViolation?(
  violations);
  throw new ConstraintViolationException(temp);
}

String serverInfo = getServletContext().getServerInfo();
String userAgent = getThreadLocalRequest().getHeader(User-
 Agent);

// Escape data from the client to avoid cross-site script
 vulnerabilities.
SafeHtmlBuilder builder = new SafeHtmlBuilder();

SafeHtml safeHtml = builder//
.appendEscapedLines(Hello,  + person.getName() + !)//
.appendHtmlConstant(br)//
.appendEscaped(I am running  + serverInfo + .)//
.appendHtmlConstant(brbr)//
.appendEscaped(It looks like you are using: )//
.appendEscaped(userAgent)//
.toSafeHtml();
return safeHtml;
  }

 On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  You can save the errors strings in an arrayListString and transpor by
 rpc
  to the client side.
 
  2011/5/25 MaximeMularz max...@mularz.fr
 
   Hi,
 
   Client Side no probem it works, but ServerSide I can't catch the
   excepetion becasue HashSet is not supported by RPCService :
 
   [ERROR] javax.servlet.ServletContext log: Exception while dispatching
   incoming RPC call
   com.google.gwt.user.client.rpc.SerializationException: Type
   'java.util.HashSet' was not included in the set of types which can be
   serialized by this SerializationPolicy or its Class object could not
   be loaded. For security purposes, this type will not be serialized.:
   instance =
  
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
   propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
   messageTemplate='{custom.name.size.message}'}]
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   619)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
   49)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   72)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   28)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
   740)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   621)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
   $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
   539)
  at
 com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
  at
   com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
   390)
  at
   com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
   588)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
   208)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
   248)
  at
 
  
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
   62

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
user/javax and user/org/hibernate files ???
The libraries?

2011/5/25 MaximeMularz max...@mularz.fr

 I want use the Validation API,
 http://gwt-code-reviews.appspot.com/1040802/show
 but I don't where add the user/javax and user/org/hibernate files


 On 25 mai, 17:00, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunicati...
 
  2011/5/25 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
   I don´t understand. ¿What´s the problem?
 
   Maybe you can declarate HashMap in the client side and can´t transport
 by
   rpc.
 
   I´m not sure, but, what´s the problem?
 
   2011/5/25 MaximeMularz max...@mularz.fr
 
   The implementation (
 http://code.google.com/p/google-web-toolkit/source/
   browse/trunk/samples/validation/src/com/google/gwt/sample/validation
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...
   ):
 
   public class GreetingServiceImpl extends RpcServlet implements
  GreetingService {
 
private final Validator validator =
   Validation.buildDefaultValidatorFactory().getValidator();
 
public SafeHtml greetServer(Person person) throws
   IllegalArgumentException,
ConstraintViolationException {
  // Verify that the input is valid.
  SetConstraintViolationPerson violations =
   validator.validate(person,
  Default.class, ServerGroup.class);
  if (!violations.isEmpty()) {
SetConstraintViolation? temp = new
   HashSetConstraintViolation?(
violations);
throw new ConstraintViolationException(temp);
  }
 
  String serverInfo = getServletContext().getServerInfo();
  String userAgent = getThreadLocalRequest().getHeader(User-
   Agent);
 
  // Escape data from the client to avoid cross-site script
   vulnerabilities.
  SafeHtmlBuilder builder = new SafeHtmlBuilder();
 
  SafeHtml safeHtml = builder//
  .appendEscapedLines(Hello,  + person.getName() + !)//
  .appendHtmlConstant(br)//
  .appendEscaped(I am running  + serverInfo + .)//
  .appendHtmlConstant(brbr)//
  .appendEscaped(It looks like you are using: )//
  .appendEscaped(userAgent)//
  .toSafeHtml();
  return safeHtml;
}
 
   On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
   wrote:
You can save the errors strings in an arrayListString and transpor
 by
   rpc
to the client side.
 
2011/5/25 MaximeMularz max...@mularz.fr
 
 Hi,
 
 Client Side no probem it works, but ServerSide I can't catch the
 excepetion becasue HashSet is not supported by RPCService :
 
 [ERROR] javax.servlet.ServletContext log: Exception while
 dispatching
 incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'java.util.HashSet' was not included in the set of types which can
 be
 serialized by this SerializationPolicy or its Class object could
 not
 be loaded. For security purposes, this type will not be
 serialized.:
 instance =
 
  
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
 propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
 messageTemplate='{custom.name.size.message}'}]
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 619)
at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
 49)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 72)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 28)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
 740)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 621)
at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
 539)
at
   com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
at

 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 390

Re: Validation-api-1.0.0, Doesn't work

2011-05-23 Thread Adolfo Panizo Touzon
Try it with:
Validator validator = GWT.create(SampleValidator.class);

Other thing, send us the modules that you are inhertir in your project.

If you use your form, you must specify in your xxx.gwt.xml the change of the
class (remember, you must use the gwt class and not the standar class), like
this:

generate-with class=com.google.gwt.validation.rebind.ValidatorGenerator
when-type-assignable class=javax.validation.Validator /
  /generate-with

Please, send me the jar that you are compiled at adolfo.pan...@gmail.com ??
If I have the gwt-user.jar that includes all the packages of validation y
can do it an example and I can solve your problems.

Thank you very much.


2011/5/23 MaximeMularz max...@mularz.fr

 Hi,

 I compiled the sources but when I'm using Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator(),

 these are the errors :

 * Deferred binding result type 'javax.validation.ValidatorFactory'
 should not be abstract
 * Unable to load modumle entry point class validation.client :
 10:17:54.989 [ERROR] [validation] Unable to load module entry point
 class validation.client.Entry (see associated exception for details)


 java.lang.RuntimeException: Deferred binding failed for
 'javax.validation.ValidatorFactory' (did you forget to inherit a
 required module?)

 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
 53)

 at com.google.gwt.core.client.GWT.create(GWT.java:98)

 at

 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
 39)

 at

 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
 55)

 at

 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
 228)

 at validation.client.Entry.onModuleLoad(Entry.java:48)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

 at

 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 200)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 523)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 362)

 at java.lang.Thread.run(Unknown Source)
 Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
 previous log entries)

 at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 503)

 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
 49)

 at com.google.gwt.core.client.GWT.create(GWT.java:98)

 at

 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
 39)

 at

 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
 55)

 at

 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
 228)

 at validation.client.Entry.onModuleLoad(Entry.java:48)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

 at

 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 200)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 523)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 362)

 at java.lang.Thread.run(Unknown Source)


 Maxime




 On 22 mai, 21:37, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  *Hi,*
  *First, I recommend that you download the repository gwt development [**
 http://google-web-toolkit.googlecode.com/svn/trunk/
  **
  ].
  *
  *
  *
  *The project amountsto eclipse gwt-user and the project sample /
 validation.
 
  Once you do that look in src/com.google.validation (here there is the GWT
  class validation) and src/org.hibernate.validation.
 
  Those are the two main projects of validation for google. In addition to
 the
   standardbase classes Bean Validation JSR-303 (coming in the package
  javax.validation).
 
  Once you've done this, you must import your project in the gwt-user and
 use
  in your***. gwt.xml one similar to that comes in the sample project.
 
  Now I'm at that point, when you add the gwt-user project to my main
  project,something
  is wrong.
 
  A possible hand solicion would compile the gwt-user project and use the
  classes ofthe packages described above (these classes do not appear in
 the
  distribution of theSDK provided by Google). This step I am not able to do
 so
   because as I can

Re: Validation-api-1.0.0, Doesn't work

2011-05-23 Thread Adolfo Panizo Touzon
Another thing I forgot, you could specify the steps you have done to compile
 the gwt-user project?

Thanks in advance.


2011/5/23 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Try it with:
 Validator validator = GWT.create(SampleValidator.class);

 Other thing, send us the modules that you are inhertir in your project.

 If you use your form, you must specify in your xxx.gwt.xml the change of
 the class (remember, you must use the gwt class and not the standar class),
 like this:

   generate-with class=
 com.google.gwt.validation.rebind.ValidatorGenerator
  when-type-assignable class=javax.validation.Validator /
/generate-with

 Please, send me the jar that you are compiled at adolfo.pan...@gmail.com?? If 
 I have the gwt-user.jar that includes all the packages of validation y
 can do it an example and I can solve your problems.

 Thank you very much.


 2011/5/23 MaximeMularz max...@mularz.fr

 Hi,

 I compiled the sources but when I'm using Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator(),

 these are the errors :

 * Deferred binding result type 'javax.validation.ValidatorFactory'
 should not be abstract
 * Unable to load modumle entry point class validation.client :
 10:17:54.989 [ERROR] [validation] Unable to load module entry point
 class validation.client.Entry (see associated exception for details)


 java.lang.RuntimeException: Deferred binding failed for
 'javax.validation.ValidatorFactory' (did you forget to inherit a
 required module?)

 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
 53)

 at com.google.gwt.core.client.GWT.create(GWT.java:98)

 at

 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
 39)

 at

 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
 55)

 at

 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
 228)

 at validation.client.Entry.onModuleLoad(Entry.java:48)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

 at

 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 200)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 523)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 362)

 at java.lang.Thread.run(Unknown Source)
 Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
 previous log entries)

 at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 503)

 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
 49)

 at com.google.gwt.core.client.GWT.create(GWT.java:98)

 at

 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
 39)

 at

 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
 55)

 at

 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
 228)

 at validation.client.Entry.onModuleLoad(Entry.java:48)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

 at

 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 200)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 523)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 362)

 at java.lang.Thread.run(Unknown Source)


 Maxime




 On 22 mai, 21:37, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  *Hi,*
  *First, I recommend that you download the repository gwt development [**
 http://google-web-toolkit.googlecode.com/svn/trunk/
  **
  ].
  *
  *
  *
  *The project amountsto eclipse gwt-user and the project sample /
 validation.
 
  Once you do that look in src/com.google.validation (here there is the
 GWT
  class validation) and src/org.hibernate.validation.
 
  Those are the two main projects of validation for google. In addition to
 the
   standardbase classes Bean Validation JSR-303 (coming in the package
  javax.validation).
 
  Once you've done this, you must import your project in the gwt-user and
 use
  in your***. gwt.xml one similar to that comes in the sample project.
 
  Now I'm at that point, when you add the gwt-user project to my main
  project,something
  is wrong.
 
  A possible hand solicion would compile the gwt-user

Re: Validation-api-1.0.0, Doesn't work

2011-05-23 Thread Adolfo Panizo Touzon
Hi Maxime,
I answered for you in the mail from which you sent me the link.

While I wait your answer I am working to see if I can fix it.

Thank you very much for everything.

2011/5/23 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Another thing I forgot, you could specify the steps you have done to
 compile the gwt-user project?

 Thanks in advance.


 2011/5/23 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Try it with:
 Validator validator = GWT.create(SampleValidator.class);

 Other thing, send us the modules that you are inhertir in your project.

 If you use your form, you must specify in your xxx.gwt.xml the change of
 the class (remember, you must use the gwt class and not the standar class),
 like this:

   generate-with class=
 com.google.gwt.validation.rebind.ValidatorGenerator
  when-type-assignable class=javax.validation.Validator /
/generate-with

 Please, send me the jar that you are compiled at adolfo.pan...@gmail.com?? 
 If I have the gwt-user.jar that includes all the packages of validation y
 can do it an example and I can solve your problems.

 Thank you very much.


 2011/5/23 MaximeMularz max...@mularz.fr

 Hi,

 I compiled the sources but when I'm using Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator(),

 these are the errors :

 * Deferred binding result type 'javax.validation.ValidatorFactory'
 should not be abstract
 * Unable to load modumle entry point class validation.client :
 10:17:54.989 [ERROR] [validation] Unable to load module entry point
 class validation.client.Entry (see associated exception for details)


 java.lang.RuntimeException: Deferred binding failed for
 'javax.validation.ValidatorFactory' (did you forget to inherit a
 required module?)

 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
 53)

 at com.google.gwt.core.client.GWT.create(GWT.java:98)

 at

 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
 39)

 at

 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
 55)

 at

 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
 228)

 at validation.client.Entry.onModuleLoad(Entry.java:48)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

 at

 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 200)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 523)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 362)

 at java.lang.Thread.run(Unknown Source)
 Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
 previous log entries)

 at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 503)

 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
 49)

 at com.google.gwt.core.client.GWT.create(GWT.java:98)

 at

 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
 39)

 at

 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
 55)

 at

 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
 228)

 at validation.client.Entry.onModuleLoad(Entry.java:48)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

 at

 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 200)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 523)

 at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 362)

 at java.lang.Thread.run(Unknown Source)


 Maxime




 On 22 mai, 21:37, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  *Hi,*
  *First, I recommend that you download the repository gwt development
 [**http://google-web-toolkit.googlecode.com/svn/trunk/
  **
  ].
  *
  *
  *
  *The project amountsto eclipse gwt-user and the project sample /
 validation.
 
  Once you do that look in src/com.google.validation (here there is the
 GWT
  class validation) and src/org.hibernate.validation.
 
  Those are the two main projects of validation for google. In addition
 to the
   standardbase classes Bean Validation JSR-303 (coming in the package
  javax.validation).
 
  Once you've done this, you must import your project in the gwt-user and
 use

Re: Validation-api-1.0.0, Doesn't work

2011-05-23 Thread Adolfo Panizo Touzon
Hi,

[I feel like a complete idiot right now. XD. There is a tutorial on google!]

Ok. I'm putting to work to try to compile everything on my own in the
meantime, if youmanage what you put in the mail to compile all the SDK and
get it, accelerate the whole process and so I can create the complete sample
 validation .

We are in touch, thank you very much for everything.

2011/5/23 MaximeMularz max...@mularz.fr

 Hi,

 1/ I did  the tuto :
 http://code.google.com/webtoolkit/makinggwtbetter.html#workingoncode.
 2/ I visited this page http://subversion.apache.org/packages.html;
 3/ I downloaded and Installed : Win32Svn (32-bit client, server and
 bindings, MSI and ZIPs; maintained by David Darj)
 4/ I added SVN.exe to the PATH
 5/ and the command ant !!!

 Regards

 Maxime

 On 23 mai, 10:56, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  Another thing I forgot, you could specify the steps you have done to
 compile
   the gwt-user project?
 
  Thanks in advance.
 
  2011/5/23 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
 
 
   Try it with:
   Validator validator = GWT.create(SampleValidator.class);
 
   Other thing, send us the modules that you are inhertir in your project.
 
   If you use your form, you must specify in your xxx.gwt.xml the change
 of
   the class (remember, you must use the gwt class and not the standar
 class),
   like this:
 
 generate-with class=
   com.google.gwt.validation.rebind.ValidatorGenerator
when-type-assignable class=javax.validation.Validator /
  /generate-with
 
   Please, send me the jar that you are compiled at
 adolfo.pan...@gmail.com?? If I have the gwt-user.jar that includes all the
 packages of validation y
   can do it an example and I can solve your problems.
 
   Thank you very much.
 
   2011/5/23 MaximeMularz max...@mularz.fr
 
   Hi,
 
   I compiled the sources but when I'm using Validator validator =
   Validation.buildDefaultValidatorFactory().getValidator(),
 
   these are the errors :
 
   * Deferred binding result type 'javax.validation.ValidatorFactory'
   should not be abstract
   * Unable to load modumle entry point class validation.client :
   10:17:54.989 [ERROR] [validation] Unable to load module entry point
   class validation.client.Entry (see associated exception for details)
 
   java.lang.RuntimeException: Deferred binding failed for
   'javax.validation.ValidatorFactory' (did you forget to inherit a
   required module?)
 
   at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
   53)
 
   at com.google.gwt.core.client.GWT.create(GWT.java:98)
 
   at
 
  
 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
   39)
 
   at
 
  
 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
   55)
 
   at
 
  
 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
   228)
 
   at validation.client.Entry.onModuleLoad(Entry.java:48)
 
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 
   at java.lang.reflect.Method.invoke(Unknown Source)
 
   at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
 
   at
 
  
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
   200)
 
   at
 
  
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
   523)
 
   at
 
  
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
   362)
 
   at java.lang.Thread.run(Unknown Source)
   Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
   previous log entries)
 
   at
   com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
   503)
 
   at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
   49)
 
   at com.google.gwt.core.client.GWT.create(GWT.java:98)
 
   at
 
  
 com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
   39)
 
   at
 
  
 com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
   55)
 
   at
 
  
 com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
   228)
 
   at validation.client.Entry.onModuleLoad(Entry.java:48)
 
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 
   at java.lang.reflect.Method.invoke(Unknown Source)
 
   at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
 
   at
 
  
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
   200)
 
   at
 
  
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection

Re: Validation-api-1.0.0, Doesn't work

2011-05-22 Thread Adolfo Panizo Touzon
Hi Maxime,

I also am trying to test the validation api.

The fact that no work for you is normal, generic classes are calling facto
standard.
You should call the classes implemented by google.
Before you continue writing, you could say that you imported libraries
anddependencies
on other projects are you working?

A greeting.

2011/5/21 MaximeMularz max...@mularz.fr

 Hi,

 I tried to use Validation-api-1.0.0 with GWT 2.3 but it didn't
 work !!!

 My Code :
 Line 32. : Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator();

 The Error :
 09:18:57.323 [ERROR] [validation] Line 32 The method
 buildDefaultValidatorFactory() is undefined for the type Validation


 Thanks for your help

 Maxime

 --
 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.




-- 
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 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: Validation-api-1.0.0, Doesn't work

2011-05-22 Thread Adolfo Panizo Touzon
*Hi,*
*First, I recommend that you download the repository gwt development [**
http://google-web-toolkit.googlecode.com/svn/trunk/
**
].
*
*
*
*The project amountsto eclipse gwt-user and the project sample / validation.

Once you do that look in src/com.google.validation (here there is the GWT
class validation) and src/org.hibernate.validation.

Those are the two main projects of validation for google. In addition to the
 standardbase classes Bean Validation JSR-303 (coming in the package
javax.validation).

Once you've done this, you must import your project in the gwt-user and use
in your***. gwt.xml one similar to that comes in the sample project.

Now I'm at that point, when you add the gwt-user project to my main
project,something
is wrong.

A possible hand solicion would compile the gwt-user project and use the
classes ofthe packages described above (these classes do not appear in the
distribution of theSDK provided by Google). This step I am not able to do so
 because as I can compilewith ant. If you are able to do it yourself, then
you explain step by step how to run thevalidation api.

Greetings!.*



2011/5/22 MaximeMularz max...@mularz.fr

 Hi Adolfo,

 I added in web-inf/lib Validation-api-1.0.0.GA and Validation-
 api-1.0.0.GA-sources, What are the classes implemented by google ?

 Maxime

 On May 22, 3:54 pm, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  Hi Maxime,
 
  I also am trying to test the validation api.
 
  The fact that no work for you is normal, generic classes are calling
 facto
  standard.
  You should call the classes implemented by google.
  Before you continue writing, you could say that you imported libraries
  anddependencies
  on other projects are you working?
 
  A greeting.
 
  2011/5/21 MaximeMularz max...@mularz.fr
 
 
 
 
 
 
 
 
 
   Hi,
 
   I tried to use Validation-api-1.0.0 with GWT 2.3 but it didn't
   work !!!
 
   My Code :
   Line 32. : Validator validator =
   Validation.buildDefaultValidatorFactory().getValidator();
 
   The Error :
   09:18:57.323 [ERROR] [validation] Line 32 The method
   buildDefaultValidatorFactory() is undefined for the type Validation
 
   Thanks for your help
 
   Maxime
 
   --
   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.
 
  --
  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 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.




-- 
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 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.