Multi-Slider widget

2010-08-09 Thread gopal bhalala
Hi to all,

how to make multislider widget?

multi slider widget like price-range or time-duration select

e.g. if user select price range 200 to 500 than user saw inventory item
which price is between 200 to 500 range


Best Regards  Thanking you,
Gopal Dhanjibhai Bhalala

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread Anita
Please, could anyone help me??
Thanks a lot!

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread Anita
Please, could anyone help me??
Thanks a lot!

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread abhiram wuntakal
Hi,

  I am really not sure if this might be totally wrong. But u can take this
as a suggestion from where you can start the solution. Embed the JSP code in
html and make that part of a html widget. You can place this html widget in
one of the panels. Then u can build any other GWT sub application in the
other sub-panels.

  Not sure if this is exactly right, but I think this shud work..

HTH,
Abhiram


On Mon, Aug 9, 2010 at 12:51 PM, Anita anapont...@gmail.com wrote:

 Please, could anyone help me??
 Thanks a lot!

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



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



Re: deserialization error when DTO is nested

2010-08-09 Thread George Georgovassilis
I'd normally ask you to the DTO code, but you really should check that
your deployment worked alright. So please check that:

1. your projects is refreshed after the build
2. old deployment is wiped and overwritten with the new one
3. logging is enabled
4. no errors about serialization policy are displayed in the logs

Hope that helps,
G.

On Aug 9, 7:57 am, bhomass bhom...@gmail.com wrote:
 I have a composite pattern DTO, where an DTO instance may contain a
 child list of the same type.

 first this app runs fine when in hosted mode, but get deserialization
 error when in deployed mode using tomcat.

 I can leave the nested structure in the DTO class as long as I don't
 actually populate the child list. but as soon as I populate the child
 list the deserialization error shows up.

 again, works find in hosted mode, fails in deployed mode if child list
 is populated. I did a thorough search on the web, no one reported a
 similar problem. and I made absolutely sure I have a zero argument
 constructor.

 any ideas from any one?

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread Anita
Please, could anyone help me??
Thanks a lot!

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread Anita
Please, could anyone help me??
Thanks a lot!

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



Re: Please help - GWT application will not load in IE!

2010-08-09 Thread Manuel Carrasco Moñino
On Fri, Aug 6, 2010 at 4:40 PM, Xandel xandelf...@gmail.com wrote:
 Hey guys,

 Thanks for your feedback. Trevor, trying the Window.alert() to see if
 even that gets fired off. When I say the app doesn't load up at all I
 mean literally nothing from my application loads up. When I initially
 had it running from withing a div tag deep in the documents body, the
 surrounding images and text etc would load up but my app wouldn't.
 There would just be a white space where the application should be...
 Now that I am literally attaching it to the root panel (directly to
 the body) the site comes up, the title is there but there is just
 white. Looking at the source doesn't show anything resembling my code.

 On that point tho - I would like to note that the html does have some
 extra stuff added in there that I obviously didn't put myself:

 Before the body tag within two script tags is

 function SymError()

 {

  return true;

 }



 window.onerror = SymError;



 var SymRealWinOpen = window.open;



 function SymWinOpen(url, name, attributes)

 {

  return (new Object());

 }



 window.open = SymWinOpen;

 And within the body tag also between two script tags is:

 var SymRealOnLoad;

 var SymRealOnUnload;



 function SymOnUnload()

 {

  window.open = SymWinOpen;

  if(SymRealOnUnload != null)

     SymRealOnUnload();

 }



 function SymOnLoad()

 {

  if(SymRealOnLoad != null)

     SymRealOnLoad();

  window.open = SymRealWinOpen;

  SymRealOnUnload = window.onunload;

  window.onunload = SymOnUnload;

 }



 SymRealOnLoad = window.onload;

 window.onload = SymOnLoad;

 I'm not sure if this helps... This is taking me a while to get right,
 because I am developing on Linux, the process of testing each change
 (as it works perfectly everytime in firefox) is literally - Make the
 change -  Upload the war to my server - Open on my windows box -
 Find the Exception Not Caught cache.html file line number - Add the
 catch block on my linux machine in that file - upload the file -
 Check again on my windows box.

Developing with GWT in linux and debuging in windows is not a pain since 2.0.x.
I use VirtualBox to start many windows machines with different
browsers. Then, I run the app in linux using the google eclipse plugin
and I can debug simultaneously with different version of browsers just
in seconds. You only need to be aware of two things, run the app with
the -bindAddress 0.0.0.0 parameter and know which is the IP of your
linux box.
GWT helps to develop JS apps fast, but you need to setup the
environment correctly to save time, if not you would hate it.

Cheers
-Manolo


 That syntax error is still there - I thought it had gone away but that
 was a caching refreshing mistake on my side. I need to literally
 change the line:

 function Vn(a,b,c){var d;d=Qn++==0;try{return a.apply(b,c)}
 finally{dio((fo(),eo));--Qn}}

 to

 function Vn(a,b,c){var d;d=Qn++==0;try{return a.apply(b,c)}catch(a){}
 finally{dio((fo(),eo));--Qn}}

 to satisfy IE. Once again, if anyone has any ideas on that error I've
 put more details on StackOverflow (the -PRETTY version of the code),
 the link is in the previous messages.

 Sigh, will come back to you regarding the Window.alert() idea to see
 how much of the code is loading. And to spierce7, I think you're right
 - thats the best idea to find the problem, will try that after a few
 attempts at minor changes ;)

 Thanks guys,

 Xandel

 On Aug 6, 4:22 pm, Trevor Skaife tska...@gmail.com wrote:
 And when you say the site doesn't load up at all do you mean you just
 don't see it? Or that you put a Window.alert() in the onModuleLoad and
 you even that doesn't work? If it's the first where for whatever
 reason IE is having issues rendering the page I would suggest using
 the developer tools in IE8 and see if there is a problem with your css
 and the way you create the page. I'm guessing it's your css thats
 thats causing issues. When I have issues where things don't look right
 in IE I usually just play around with the styles using the developer
 tools in IE8 until it looks right.

 On Aug 6, 8:17 am, spierce7 spier...@gmail.com wrote:

  I hate issues like this. Unfortunately, particularly since GWT is
  young, I've gotten something working in one browser, only to find it
  doesn't work in another browser. Typically I just find a more common
  way of going through something.

  What I'd recommend is (although it's time consuming), is to comment
  out the method that builds your entry GUI, and start adding stuff back
  slowly until you get the issue. Try to get it down and figure out
  exactly what isn't able to load in I.E. The fact that nothing is
  loading makes me think it might be one of the outside layers, perhaps
  try some inner layers of the GUI and see what works and what doesn't.

  If I got your code, that's what I'd end up doing any ways. Errors like
  this can just happen for random reasons, and to my knowledge there
  isn't a well this works in all the other browsers, 

Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread Anita
Hi Abhiram,

Thank you very much for your answering!!! but i'm not sure that i
understand your suggestion :(
The application that already exists has a client side(js) and a server
side(java servlets)... So you're suggesting that i should embed the
client(js) part in html and make a html widget?

Thank you very much!
An


On 9 ago, 09:25, abhiram wuntakal abhir...@gmail.com wrote:
 Hi,

   I am really not sure if this might be totally wrong. But u can take this
 as a suggestion from where you can start the solution. Embed the JSP code in
 html and make that part of a html widget. You can place this html widget in
 one of the panels. Then u can build any other GWT sub application in the
 other sub-panels.

   Not sure if this is exactly right, but I think this shud work..

 HTH,
 Abhiram

 On Mon, Aug 9, 2010 at 12:51 PM, Anita anapont...@gmail.com wrote:
  Please, could anyone help me??
  Thanks a lot!

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

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread Anita
Hi Abhiram,

Thank you very much for your answering!!! but i'm not sure that i
understand your suggestion :(
The application that already exists has a client side(js) and a server
side(java servlets)... So you're suggesting that i should embed the
client(js) part in html and make a html widget?

Thank you very much!
An


On 9 ago, 09:25, abhiram wuntakal abhir...@gmail.com wrote:
 Hi,

   I am really not sure if this might be totally wrong. But u can take this
 as a suggestion from where you can start the solution. Embed the JSP code in
 html and make that part of a html widget. You can place this html widget in
 one of the panels. Then u can build any other GWT sub application in the
 other sub-panels.

   Not sure if this is exactly right, but I think this shud work..

 HTH,
 Abhiram

 On Mon, Aug 9, 2010 at 12:51 PM, Anita anapont...@gmail.com wrote:
  Please, could anyone help me??
  Thanks a lot!

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

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread Anita
Hi Abhiram,

Thank you very much for your answering!!! but i'm not sure that i
understand your suggestion :(
The application that already exists has a client side(js) and a server
side(java servlets)... So you're suggesting that i should embed the
client(js) part in html and make a html widget?

Thank you very much!
An


On 9 ago, 09:25, abhiram wuntakal abhir...@gmail.com wrote:
 Hi,

   I am really not sure if this might be totally wrong. But u can take this
 as a suggestion from where you can start the solution. Embed the JSP code in
 html and make that part of a html widget. You can place this html widget in
 one of the panels. Then u can build any other GWT sub application in the
 other sub-panels.

   Not sure if this is exactly right, but I think this shud work..

 HTH,
 Abhiram

 On Mon, Aug 9, 2010 at 12:51 PM, Anita anapont...@gmail.com wrote:
  Please, could anyone help me??
  Thanks a lot!

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

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



Re: Making GWT look good...

2010-08-09 Thread Olivier
Hi Chris,

Here's a few that I really like :

- ActiveCollab
http://www.activecollab.com

- WordPress Admin
http://wordpress.org

- Vaadin widget library
http://demo.vaadin.com/sampler


Cheers
Olivier

On 6 Aug 2010, at 14:44, Chris Ramsdale wrote:

 Hey GWT(ers),
 
 I've heard from many of you that GWT apps simply don't look that good out of 
 the box, and styling the default app would go a long way. We couldn't agree 
 more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) will 
 generate a full-fledged scaffolding app that users can then go customize, and 
 build on top of. The current incarnation looks like this:
 
 http://gwt-bikeshed.appspot.com/Scaffold.html
 
 And while it's a start, it's long from being...well...good looking. I'm 
 working with some UI/UX people back at Google, but in the spirit of openness 
 I wanted to get feedback from the real users -- you. Specifically we're 
 looking for business apps that are a good example of UI and/or UX. Apps 
 that allow you to track tasks, expenses, travel, projects, etc. 
 
 If you have ideas, simply post a link in a follow-up to this thread.
 
 Cheers,
 -- Chris
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.


---
Olivier
Digiworks

Política de Protección de Datos de Carácter Personal
En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre,  sobre 
protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a 
los usuarios de que:

Los Datos de Carácter Personal que recoge son objeto de tratamiento 
automatizado y se incorporan en los ficheros correspondientes,  debidamente 
registrados en la Agencia Española de Protección de Datos. El usuario podrá,  
en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, 
rectificación, cancelación y oposición. El ejercicio de estos derechos puede 
realizarlo el propio usuario mediante comunicación escrita en la siguiente 
dirección postal:

DIGIWORKS SPAIN, S.L.
AVDA SAN RAFAEL, 11, LOCAL 2
03580 ALFAZ DEL PI
ALICANTE

También pueden ejercitar estos derechos en los términos que la normativa 
aplicable establece y que puede consultar en www.agpd.es.

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



GWT Widget Query

2010-08-09 Thread gopal bhalala
Hi to all,

how to make multislider widget?

multi slider widget like price-range or time-duration select
e.g. if user select price range 200 to 500 than user saw inventory item
which price is between 200 to 500 range

Best Regards  Thanking you,
Gopal Dhanjibhai Bhalala

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



Re: Making GWT look good...

2010-08-09 Thread Frederic Conrotte
I'm glad to see the GWT Team taking more care of styling. Styling is
one of the reasons why we are currently using an external library like
GXT from Sencha to build our entreprise apps. I think GXT did a pretty
good job there.

On Aug 9, 10:17 am, Olivier oliv...@digiworks.es wrote:
 Hi Chris,

 Here's a few that I really like :

 - ActiveCollabhttp://www.activecollab.com

 - WordPress Adminhttp://wordpress.org

 - Vaadin widget libraryhttp://demo.vaadin.com/sampler

 Cheers
 Olivier

 On 6 Aug 2010, at 14:44, Chris Ramsdale wrote:



  Hey GWT(ers),

  I've heard from many of you that GWT apps simply don't look that good out 
  of the box, and styling the default app would go a long way. We couldn't 
  agree more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) 
  will generate a full-fledged scaffolding app that users can then go 
  customize, and build on top of. The current incarnation looks like this:

 http://gwt-bikeshed.appspot.com/Scaffold.html

  And while it's a start, it's long from being...well...good looking. I'm 
  working with some UI/UX people back at Google, but in the spirit of 
  openness I wanted to get feedback from the real users -- you. Specifically 
  we're looking for business apps that are a good example of UI and/or UX. 
  Apps that allow you to track tasks, expenses, travel, projects, etc.

  If you have ideas, simply post a link in a follow-up to this thread.

  Cheers,
  -- Chris

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

 ---
 Olivier
 Digiworks

 Política de Protección de Datos de Carácter Personal
 En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre,  sobre 
 protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa 
 a los usuarios de que:

 Los Datos de Carácter Personal que recoge son objeto de tratamiento 
 automatizado y se incorporan en los ficheros correspondientes,  debidamente 
 registrados en la Agencia Española de Protección de Datos. El usuario podrá,  
 en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, 
 rectificación, cancelación y oposición. El ejercicio de estos derechos puede 
 realizarlo el propio usuario mediante comunicación escrita en la siguiente 
 dirección postal:

 DIGIWORKS SPAIN, S.L.
 AVDA SAN RAFAEL, 11, LOCAL 2
 03580 ALFAZ DEL PI
 ALICANTE

 También pueden ejercitar estos derechos en los términos que la normativa 
 aplicable establece y que puede consultar enwww.agpd.es.

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



Re: Date Serialization issues

2010-08-09 Thread Ameya Kulkarni
We are sending date objects from server. It works for all dates except
the older ones. We cannot change the implementation to send strings
now.

How do we set time zone in the application ?

On Aug 6, 11:26 am, Muhammad bilal_hobn...@yahoo.com wrote:
 Dear ,

 Please set time zone in your application.
 then you may get exact date you want.

 Muhammad Bilal Ilyas
 Software Engineer

 
 From: Ameya Kulkarni amey...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Fri, August 6, 2010 11:09:46 AM
 Subject: Date Serialization issues

 Hi

 We are sending java.util.Date objects from the server. On the client
 side these date values are not correct.

 Examples:
 14-Jul-1000 (on server) is shown as 20-Jul-1000 (on browser)
 14-Jul-0100 (on server) is shown as 13-Jul-0100 (on browser)

 We are using GWT 2.0. Has anyone faced such issues ?

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

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



Canvas object needed - Which library should be used?

2010-08-09 Thread Magnus
Hi,

I would like to do something with canvases, but I found that there
exist different solutions, e. g. GWTCanvas (also in different variants
and names), GWT-Graphics, and so on.

These different approaches with partly unclear progresses prevented me
to start playing around with canvases at all.

Can you recommend me a library that has some chances to continue for a
longer time?

Thank you
Magnus

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



Incubator - GWTCanvas problems with image loading

2010-08-09 Thread kstokes
  I'm using Eclipse on Windows.

  I have added a GWTCanvas to the demo app and am trying to load an
image and display it with code which is
omething like this:

http://code.google.com/p/google-web-toolkit-incubator/wiki/ImageLoader


My problem is that the image only loads and displays if I have a
complete URL like


//  String[] imageUrls = new String[] 
{http://www.knivesplus.com/
media/SC-104OT.jpg};  /* This works fine */
String[] imageUrls = new String[] 
{images/GoogleCode.png};  /*
This does not work. */

However, I have created an 'images' folder in my  war folder in
Eclipse, and the following image in the HTML displays just fine:
   img src=images/GoogleCode.pngimg


  I don't understand why the app has no problem reading the image from
the relative path when displaying the HTML, but cannot find the image
using the ImageLoader class.

  What can I do so that I can add images to my eclipse project which I
can then use with GWTCanvas?

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



Re: Incubator - GWTCanvas problems with image loading

2010-08-09 Thread aditya sanas
do you get any error message while doing this...?
probably that might help you to track exactly where it is searching
for googlecode.png.


--
Aditya


On Mon, Aug 9, 2010 at 2:44 PM, kstokes dada...@gmail.com wrote:

  I'm using Eclipse on Windows.

  I have added a GWTCanvas to the demo app and am trying to load an
 image and display it with code which is
 omething like this:

 http://code.google.com/p/google-web-toolkit-incubator/wiki/ImageLoader


 My problem is that the image only loads and displays if I have a
 complete URL like


 //  String[] imageUrls = new String[] {
 http://www.knivesplus.com/
 media/SC-104OT.jpg};  /* This works fine */
String[] imageUrls = new String[]
 {images/GoogleCode.png};  /*
 This does not work. */

 However, I have created an 'images' folder in my  war folder in
 Eclipse, and the following image in the HTML displays just fine:
   img src=images/GoogleCode.pngimg


  I don't understand why the app has no problem reading the image from
 the relative path when displaying the HTML, but cannot find the image
 using the ImageLoader class.

  What can I do so that I can add images to my eclipse project which I
 can then use with GWTCanvas?

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



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



Re: How to build a rules-based form controller for a dyn. form in GWT

2010-08-09 Thread salk31
Hmmm. The Tohu thing any use? Sounds like they are taking a sensible
approach...

Incase not:
 Before GWT consideration, the plan was to store the custom form specs
 in XML or JSON. Now, with GWT-RPC there would be a 3rd option,
 (de)serialized JS objects, right??? -- But XML or the less-verbose
 JSON would also be good for me, e.g. to remain GWT-independent.
 Which serialization tech would you choose for this?
I don't think GWT-RPC would/should change how you transport the data.
XML has better tool support but JSON is very convenient with GWT
(overlay types) and makes
testing easy. Your Java/GWT objects could then be for the client only
so have some behaviour
inside them (good OO?)

 There should be *no* external tools in place; instead, a usual online
This seems like the scary time consuming bit. Any idea of time budget?
How
many man months to get something out?

 Eclipse Workbench, for GWT???
Nothing FOSS that I know of. This the closest I've seen:
http://gwtgallery.appspot.com/about_app?app_id=158001
but closed source, commerical...

I think there are some client side HTML WYSIWYG editors. Be a bit
messy
but you would get drag and drop form construction in the browser.
A lot of them have plugin hooks.

Not sure if you have six man months or sixty to play with

 The metawidget (1) dynamically instantiates all field widgets and
 places them on the layout, (2) instantiates for each field the
 described validation rules and registers them with the corresp. field
 widget (alt.: client-side validation event bus?), (3) instantiates
 the presentation rules and registers them to a client-side
 presentation event bus. Each widget always reports state changes to
 this event bus; there the state change event selects all event-
 matching, registered presentation rules and triggers their action(s)
 section which again results in *state change(s)* on the available
 form widgets, and which by themselves may again trigger more
 presentation rules, and so on...
This sounds like a sensible approach. I think the big choice is if you
have
lots of classes like EmptyValidator or a XPath or JavaScript based
language.
Same for logic about when a field is shown...
e.g. formItem name=willNotEat
showIf=implicitFormObject.hasAllergies.checked /

 Briefly, what arch would you put in place???  Especially for the
 client-side???
I think what you describe sounds about right for the end user code and
should be doable.
The form designer seems like the complicated bit. Is this for end
users too? You doing
something like a SaaS form designer? So the form designers are end
user/customers too?

 I sincerely hope you've already made some experiences with such a
 scenario and can help me further outlining a practical architecture.
 As stated above, the main problems are (a) the client-side form logic
 instantiation, and (b) how to provide an edit-and-preview mode ui
 for admins (the preview result is the one later recycled/presented
 to the non-admin endusers (customers)). What would an arch for this
 look like???
I have done this before, and at current day job. If you are careful
then the end user part is not too
bad, I think the worry is the admin CRUD. A rough idea of how many man
months you have
to do this would help. Is a big job, so even more reason to look at
tohu.

Cheers

Sam

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



Access WebClient object in GWT unit tests

2010-08-09 Thread snorbi
Hello!

The documentation of HtmlUnit says: The class
com.gargoylesoftware.htmlunit.WebClient is the main starting point.

How can I access it in a GwtTestCase-based test?

Thanks:
Norbi

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



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread aditya sanas
hello,

@anita : plz be specific with your requirement first of all and give some
more information that which type of web app that you wished to integrate
with GWT

it is possible ofcourse but without giving complete information it is hard
to explain wht you want...


--
Aditya


On Mon, Aug 9, 2010 at 1:41 PM, Anita anapont...@gmail.com wrote:

 Hi Abhiram,

 Thank you very much for your answering!!! but i'm not sure that i
 understand your suggestion :(
 The application that already exists has a client side(js) and a server
 side(java servlets)... So you're suggesting that i should embed the
 client(js) part in html and make a html widget?

 Thank you very much!
 An


 On 9 ago, 09:25, abhiram wuntakal abhir...@gmail.com wrote:
  Hi,
 
I am really not sure if this might be totally wrong. But u can take
 this
  as a suggestion from where you can start the solution. Embed the JSP code
 in
  html and make that part of a html widget. You can place this html widget
 in
  one of the panels. Then u can build any other GWT sub application in the
  other sub-panels.
 
Not sure if this is exactly right, but I think this shud work..
 
  HTH,
  Abhiram
 
  On Mon, Aug 9, 2010 at 12:51 PM, Anita anapont...@gmail.com wrote:
   Please, could anyone help me??
   Thanks a lot!
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: Date Serialization issues

2010-08-09 Thread Paul Robinson
You can't change the timezone. You can't even create a date on the
client and tell it what timezone it should be in - Javascript does not
provide a way to do this.

If you want dates on the client to appear to be the same time of day and
date as it is on the server, regardless of the client's timezone, and
you are using GWT serialization, then you have two options:
(1) Avoid Date objects in your DTOs, and use some encoding of your own
instead
(2) Modify GWT itself so that its custom serializers for java.util.Date,
java.sql.Date and java.sql.Timestamp serialize the
day/month/year/hour/minute separately instead of storing the time since
1970.

See here for more details:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/5c397f3ffc4e24fa/e6344c0dad5f37b3

Paul

Ameya Kulkarni wrote:
 We are sending date objects from server. It works for all dates except
 the older ones. We cannot change the implementation to send strings
 now.

 How do we set time zone in the application ?

 On Aug 6, 11:26 am, Muhammad bilal_hobn...@yahoo.com wrote:
   
 Dear ,

 Please set time zone in your application.
 then you may get exact date you want.

 Muhammad Bilal Ilyas
 Software Engineer

 
 From: Ameya Kulkarni amey...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Fri, August 6, 2010 11:09:46 AM
 Subject: Date Serialization issues

 Hi

 We are sending java.util.Date objects from the server. On the client
 side these date values are not correct.

 Examples:
 14-Jul-1000 (on server) is shown as 20-Jul-1000 (on browser)
 14-Jul-0100 (on server) is shown as 13-Jul-0100 (on browser)

 We are using GWT 2.0. Has anyone faced such issues ?

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

   

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



Re: uibinder and css

2010-08-09 Thread Nicolas ANTONIAZZI
You can use the external keyword to say gwt that the class should not be
obfuscated.

ui:style

@external myClass;

.myClass {
  /* Adds extra css here */
}

/ui:style

2010/8/9 Thomas Van Driessche thomas.van.driessch...@gmail.com

 Hi,

 I could use this: ui:style field='otherStyle'
 src=MyUiOtherStyle.css

 But the problem is that the css file is on another server...
 We deploy the gwt app on an OC4J server, but the javascript is called
 from another html page on another server...
 And that html page has a link to a css file that my gwt app should use
 to.

 So is this possible?

 kind regards

 On Aug 6, 3:54 pm, spierce7 spier...@gmail.com wrote:
  I hope this helps:
 
  http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#He...
 
  Look at the Hello Stylish World Example. Good luck!
 
  On Aug 6, 9:38 am, Thomas Van Driessche
 
  thomas.van.driessch...@gmail.com wrote:
   Hi,
 
   I have a question on using css in gwt.
 
   I know you can give the ui:style component a src to a css file.
   But what if you want to use the css that is linked in the html page
   from which the javascript from the gwt project is called?
 
   i tried this:
 
   g:Button addStyleNames=action ui:field=btnSearch/g:Button
 
   And in the css file from the host html page i have put:
 
   .action {
  background-color: green;
 
   }
 
   Is this possible?
   Because our javascript that was compiled is called from other html
   pages to.
 
   kind regards,
   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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Problem running StockWatcher application given in tutorial

2010-08-09 Thread Heshan Perera
Hi, I'm extremely new to GWT development. When following the the
Google tutorial in starting GWT development, I entered all the code as
given in their example and tried running in development mode to test
if it works. I use Eclipse Galileo.

When I take the URL and paste and run it on the address bar of my web
browser (Google Chrome) I get an error saying Plugin Failed to
Connect to Hosted Mode Server at 127.0.0.1:9997 and it is only that
GWT app that loads when you run for the first time that partially
appears on the screen (The text box to enter the name was missing).

Any help on this matter would be greatly appreciated.

Thank you,
Heshan

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



[UIBinder] - Nested Panels

2010-08-09 Thread BenJD
Hi all,

I have recently jumped on the GWT bandwagon and have to say I am a big
fan. It makes developing javascript applications fun again.

I have produced many Flex based projects in the past and have come
accustomed to using MXML markup to declare user interface elements. I
can see that GWT's UIBinder functionality is to GWT what MXML is to
Flex so am very keen on getting my head around how it works.

I am currently working my way through the UIBinder tutorial (http://
code.google.com/webtoolkit/doc/latest/
DevGuideUiBinder.html#Hello_Widget_World) and have a query regarding
using Widgets and nested Panels.

I have implemented the 'Hello Widget World' section of the tutorial
and it works perfectly. However if I modify the
'HelloWidgetWorld.ui.xml' to include a nested vertical panel I find
that the app no longer displays any content. Can anyone see why this
may be the case? Details below:

Step To Reproduce

Replace HelloWidgetWorld.ui.xml with the following XML

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'

  g:HTMLPanel
g:VerticalPanel
Hello, g:ListBox ui:field='listBox' visibleItemCount='1'/.
/g:VerticalPanel
  /g:HTMLPanel

/ui:UiBinder

Results

After compilation our host page displays a blank screen.

Desired Results

The above code takes the example in the 'Hello Widget World' tutorial
and wraps the components in a nested vertical panel. Ideally both the
HTML Text node and Listbox should now display vertically instead of
horizontally (the default behaviour).

regards
Ben

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



how to use gwt as an alternative to templates?

2010-08-09 Thread amishera
Hi,

In any Web MVC framework like spring, struts etc where, when a servlet
receives an http request and generate the response by forwarding it to
a template passing a model object, how would I replace the template
thing with the gwt classes. That means say in a spring controller

ModelAndView handleRequestInternal() {
  return new ModelAndView(someJsp);
}

The GWT client class works on a base html and then other things are
filled from onModuleLoad method. Now say I am in my controller's
handleRequestInternal and want to delegate the task of rendering to
gwt. How to combine gwt and spring or any web mvc per se?

Thanks.

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



GWT Developer Plugin problem: Mandriva 64-bit, Firefox

2010-08-09 Thread Paul Gestwicki
I followed the discussion at
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9e0c72621846bb45/6be4f19213378cf6,
but making symlinks to libnspr4.so did not work for me on Mandriva 64-
bit, with Firefox.

One difference on Mandriva is that libnspr4.so was in /lib64, not /usr/
lib64. I tried making links to it as libnspr4.so and libnspr4.so.0d
in /lib, /lib64, /usr/lib, and /usr/lib64, but nothing changed the
observed behavior: firefox keeps claiming that it needs the plugin
each time I try to visit 
http://127.0.0.1:/MyApp.html?gwt.codesvr=127.0.0.1:9997.

Anyone have any luck getting a Mandriva set-up working? I'm using
2010.1, in case that is significant. I have tried Firefox both from
rpm and downloaded directly from Mozilla, with no observable
difference.

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



RegEx

2010-08-09 Thread Dunlord
For a Open Source project I'm working on I needed the
java.util.regex.Matcher (and so the java.util.regex.Pattern) classes,
in the client side. They are not in the GWT JRE emulation library, but
the source code for both classes are published by SUN (I'm not sure if
under the GPL).

So I copy-pasted the source code of both clases (and a bunch of clases
they needed), cleaned them to work in gwt's client side and it all
worked wonderfully.

The question is: SUN's JRE source code licensing allows me to do this
and publish it? And under which license? And as a bonus: What I'm
allowed to do with it (or not allowed to do)?

Thankyou

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



Re: Making GWT look good...

2010-08-09 Thread martino
While I appreciate the richness of widgets and behaviours offered by
framework like SmartGWT or GXT, I don't particularly like their
windowish look and feel, also I don't think it's a particularly good
idea promoting GWT powerfulness or web application in general by
mimicking desktop application widgets aspect (how many useless web
desktops simulating a windows desktop inside your browser have you
seen?).

I think GWT/Roo should support at least two basic skin: a light theme
with few/no images/resources (http://gwt-bikeshed.appspot.com/
Scaffold.html  isn't a bad start to me!) and maybe an heavier more
appealing one but I think some effort should be done to distinguish
GWT/web applications from desktop app. I would use more/nicer effects
(slide, fade ecc.) to have smoother transitions and/or communicate to
the user that something is happening/has happened (think of mobile
apps also...).

Just my 2 cents

Martino Piccinato



On Aug 6, 2:44 pm, Chris Ramsdale cramsd...@google.com wrote:
 Hey GWT(ers),

 I've heard from many of you that GWT apps simply don't look that good out of
 the box, and styling the default app would go a long way. We couldn't agree
 more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) will
 generate a full-fledged scaffolding app that users can then go customize,
 and build on top of. The current incarnation looks like this:

 http://gwt-bikeshed.appspot.com/Scaffold.html

 And while it's a start, it's long from being...well...good looking. I'm
 working with some UI/UX people back at Google, but in the spirit of openness
 I wanted to get feedback from the real users -- you. Specifically we're
 looking for business apps that are a good example of UI and/or UX. Apps
 that allow you to track tasks, expenses, travel, projects, etc.

 If you have ideas, simply post a link in a follow-up to this thread.

 Cheers,
 -- Chris

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



Re: Need help on generating session id

2010-08-09 Thread Mani P
Thank you all guys for your responses.

But when i try to do the same thing in Java using servlets i am getting
different sesssion id's if i open a new same browser. But where as in using
GWT i am getting same session even if i use different browser (same
browser). So my requirement is to generate different session id when ever
there is a different browser instance like how i am getting in java.

On Mon, Aug 2, 2010 at 1:49 AM, eluminous chaitu eluminous.cha...@gmail.com
 wrote:

 Hello Mani,

 when Firefox generates a session id for one process, it is shared within
 all the instances of Firefox, as all the instances of Firefox is a single
 process and not different instances.
 All the instances of Firefox share a common process area which causes to
 retain a session id for all instances within that process area. This is same
 for IE too.

 Thanks  Regards
 eluminous Chaitu





 On Sat, Jul 31, 2010 at 5:22 AM, Mani mani.pall...@gmail.com wrote:

 Hi, when i try to get session id by using following piece of code
 every time i am getting same session id if i try from same browser
 (with two instance browsers) like Firefox or IE.

 getThreadLocalRequest().getSession().getId()

 Can any one tell me why it is giving same session id.

 Thanks
 Mani

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




 --
 Website for 
 Mobileshttp://www.eluminoustechnologies.com/website_for_mobiles.htm| Organic
 SEO http://www.eluminoustechnologies.com/


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


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



Adding Event Handlers on the body element...

2010-08-09 Thread seth.ho...@gmail.com
Hello,

I'm using GWT for 2 years now and i did many great things with it.
However, i'm still looking for how to implements KeyboardHandlers on
the BodyElement.
The only way i found is writing something like this in the HTML file :

  body onkeypress=return keyPress(event); onkeydown=return
keyDown(event); onkeyup=return keyUp(event);

And something like that in the EntryPoint

public void onModuleLoad() {
// publish();
}
private native final void publish() /*-{
$wnd[keyPress] = function(event) {
@webapp.client.Application::keyPress(Lcom/google/gwt/dom/client/
NativeEvent;)(event);
}
$wnd[keyUp] = function(event) {
@webapp.client.Application::keyUp(Lcom/google/gwt/dom/client/
NativeEvent;)(event);
}
$wnd[keyDown] = function(event) {
@webapp.client.Application::keyDown(Lcom/google/gwt/dom/client/
NativeEvent;)(event);
}
}-*/;

But i'm really not satisfied with that solution.
Any ideas please ?

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



Cell click events for incubator's FixedWidthGrid

2010-08-09 Thread Strannik
Hello,

Does anyone know how to figure out which cell was clicked on in the
FixedWidthGrid from the gwt incubator?

Using grid.addTableListener(...) seems to be deprecated a while ago
and does nothing (it probably worked in pre gwt-1.6).

The GWT API reccomends to use:
HTMLTable.getCellForEvent(com.google.gwt.event.dom.client.ClickEvent)

however the incubator FixedWidthGrid extends it's own HTMLTable which
does not even support adding click handlers.

It is still possible to use .addRowSelectionHandler(..) though that
does not appear to tell you which cell on a row was clicked.

Thank you

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



JavaScriptObject to Java Bean

2010-08-09 Thread Shakun Sachdeva
Hi,

I am new to GWT. I want to save the values got from DynamicForm to a bean.

*DynamicForm infoForm = new DyamicForm();*
*
*this infoForm has text properties street and city*
*
And I have a AddressBean that has getters and setters of Street and City.*

MapString, String infoMap = infoForm.getValues();
JavaScriptObject jso =
JavaScriptObjectHelper.convertMapToJavascriptObject(infoMap);
JavaScriptObjectHelper.getAttribute(jso, street)
**JavaScriptObjectHelper.getAttribute(jso, city)

*and then setting the values got from JavaScriptObjectHelper to the
Addressbean.*
*For each property I have to get the attribute and then save it to the bean.
Is there any method with which I can save all the values of the DynamicForm
in JavaBean in one go rather than picking every property and then saving to
the bean.

Any help will be really appreciated.

Thanks in advance,
Shakun

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



Re: GWT 2.1 Simple Place example

2010-08-09 Thread jaybose
Check out GWT-Presenter, it has some items to help w/ Place and Place
Management - http://code.google.com/p/gwt-presenter/wiki/GettingStarted


On Jul 30, 1:00 am, Kailash Yadav yadav...@gmail.com wrote:
 Hi,

 Can anyone provide url of tutorial/document of GWTplaceor example?
 Actually I am not getting what isplacein GWT.

 Thanks

 On Jul 12, 5:50 pm, xworker blomqvist.andr...@gmail.com wrote:

  Hi all

  Strugling with finding documentation and a simple example with the 
  newPlaceconcept. Can anyone shed some light? Most examples point to
  generated scaffold code with roo. Not easy to read, and at this point
  I dont want to use Roo. Just want a simple example or explanation
  about the new concepts in 2.1 (Places,Activity).

  Thanks

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



JavaScriptObject to Java Bean

2010-08-09 Thread Shakun Sachdeva
Hi,

I am new to GWT. I want to save the values got from DynamicForm to a bean.

*DynamicForm infoForm = new DyamicForm();*
*
*this infoForm has text properties street and city*
*
And I have a AddressBean that has getters and setters of Street and City.*

MapString, String infoMap = infoForm.getValues();
JavaScriptObject jso =
JavaScriptObjectHelper.convertMapToJavascriptObject(infoMap);
JavaScriptObjectHelper.getAttribute(jso, street)
**JavaScriptObjectHelper.getAttribute(jso, city)

*and then setting the values got from JavaScriptObjectHelper to the
Addressbean.*
*For each property I have to get the attribute and then save it to the bean.
Is there any method with which I can save all the values of the DynamicForm
in JavaBean in one go rather than picking every property and then saving to
the bean.

Any help will be really appreciated.

Thanks in advance,
Shakun

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



a and i instead of span..., (Some-html-allowed-RichTextArea)

2010-08-09 Thread Ali
Hi

Sorry if already asked, I didn't find it.

Is there any way to make RichTextAreaImplStandard to add a and i
instead of span style=[font-weight: bold;] [font-style: italic;].

I looked at RichTextAreaImplStandard but it sends commands deep down
into JS.

Do you have any idea?!

Best wishes,
Ali

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



HTML Table

2010-08-09 Thread Sanjay Jain
Hi to all
I am using  HTML table, and for setting title of the table I am using
setTitle(My Table);
But it is not working:
Here is my code:

HTMLTable table = new Grid(rows, 2);
table.setTitle(My Table);

Is there other property need to be set?
Please help
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



History and/or Place

2010-08-09 Thread jaybose
Some background...

This link discusses using the History concept in GWT to manage history
and navigation - 
http://code.google.com/webtoolkit/articles/mvp-architecture.html#history

This link gives more detail on the History concept -
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html

This link describes how GWT-Presenter manages Place -
http://code.google.com/p/gwt-presenter/wiki/GettingStarted#The_Presenter


My question...

Does anyone know if and how the 2 concepts (History and Place) will
come together? With the existence of Place, is anyone even using the
History concept anymore?

I ask because I plane on using the AppController concept described in
the first link, but I'd like merge this with the Place implementation
I see in GWT-Presenter.

Wondering what the general consensus on this is, if one exists.

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



Re: i18n translations

2010-08-09 Thread madein
Hi,
I can help you with Polish.

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



bug in Animation class

2010-08-09 Thread Michael
Hi,

I didn't see a place to post bugs, so I am submitting it to the group.

I've been working with GWT for a one off project on our website,
www.studyisland.com. I was attempting to use the Animation class (in
package com.google.gwt.animation.client) and could not figure out a
way to get an animation of an Image object to replay when I clicked on
it. I tried both rerunning the original Animation instance recreating
the instance and attempting to run it. My code is identical to the
example in the GWT showcase, with the exception that I create 3 unique
animations, one for each image on the page.

The showcase animation can be replayed, but in my case, where 3
animations existed the animations could not.

Digging into the Animation class, it is obvious why this is by the
line of code in the method run(int duration, double startTime):

// Restart the timer if there is the only animation
if (animations.size() == 1) {
  animationTimer.schedule(DEFAULT_FRAME_DELAY);
}

So, you can't re-run an animation if you create more than one
animation instance on your page. Thats fine, there may be some
limitation that I'm unaware of to prevent this. I'll just reset the
Animation class back to its initial state and start over... but I
can't because the animations are driven by an array called
animations that is a private static member of the class, and there
are no accessible methods to reset it.

Fortunately the easy solution for me is to just copy all of the code
in the Animation class into a new class, and add a method
resetAnimations to take care of this.

public static void resetAnimations() {
  animations.clear();
  animations = null;
}

I just call this before re-running any animations, and everything
works fine.

Now, I consider myself pretty good with Java, but I'm not a javascript
expert so I can't say for sure whether doing this is safe or why the
original programmers didnt include this functionality initially.
However, I think it very likely that there will be other GWT users in
the future who might encounter this issue, hence I think it should be
addressed.

If you have any questions about my writeup here, or would like some
code or something like that, feel free to email me:
michael.vill...@gmail.com.

I'm loving GWT by the way. Thanks to everyone who has contributed!
-Michael

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



GWT Popup Menu - Close on losing focus

2010-08-09 Thread MJ

I have a menubar with several Popup menus.  I would like the popups to
close if I mouse outside the area of the popup.  I have tried a couple
of things but nothing seems to work.

Any suggestions would be greatly appreciated,

Thanks in advance

MJ

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



google Authentication

2010-08-09 Thread murray
Using the UiBinder and MVP approach, whats the best way to implement
google Authethication.
i.e. Where do I call the the Auth Method (Not How, done that..but
where) ..i.e. do I create a shared  longininfo object in the shared
of MVP pattern... or whats the best resource other code.google.com to
learn GWT?

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



Script tag dynamic loading

2010-08-09 Thread Vincent COROLLEUR
Hello,

I'am trying to load dynamically with GWT some scripts in order to use
google map API V2.

By the static way it works (script tag in the index.jsp page) :

script src=http://maps.google.com/maps?
file=apiamp;v=2amp;sensor=true_or_falseamp;key=ABQIpOR5tulUc5y1R6lOKFkbpRTwM0brOpm-
All5BF6PoaKBxRWWERTqbaRJ6lpQdSlaltvv3tD-fLXwvQ type=text/
javascript/script


I tried this to do it dynamically (from the EntryPoint) but it doesn't
work :

Element script1 = DOM.createElement(script);
script1.setAttribute(type, text/javascript);
script1.setAttribute(src, http://maps.google.com/maps?
file=apiv=2sensor=falsekey=ABQIpOR5tulUc5y1R6lOKFkbpRTwM0brOpm-
All5BF6PoaKBxRWWERTqbaRJ6lpQdSlaltvv3tD-fLXwvQ);
RootPanel.getBodyElement().appendChild(script1);

This code leads to an error when it's loaded (Unloading module) :
its unload my application module.

I am still looking for a way to load dynamically google map.

Regards,

Vincent COROLLEUR

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



Re: Date Serialization issues

2010-08-09 Thread AaroeiraA
Hi,

You can do something like this:
Write custom Date/Time serializers and put them in the root of your
project. Like this:

Project
| - your.package.com
| - com.google.gwt.user.client.rpc.core.java.sql
| - com.google.gwt.user.client.rpc.core.java.util

The custom serializers NEED to be named:

Date_CustomFieldSerializer.java
Timestamp_CustomFieldSerializer.java

When writing the serializers, import the right types (java.sql.Date,
java.util.Date, java.sql.Timestamp)

Sorry for my english.






On Aug 9, 7:23 am, Paul Robinson ukcue...@gmail.com wrote:
 You can't change the timezone. You can't even create a date on the
 client and tell it what timezone it should be in - Javascript does not
 provide a way to do this.

 If you want dates on the client to appear to be the same time of day and
 date as it is on the server, regardless of the client's timezone, and
 you are using GWT serialization, then you have two options:
 (1) Avoid Date objects in your DTOs, and use some encoding of your own
 instead
 (2) Modify GWT itself so that its custom serializers for java.util.Date,
 java.sql.Date and java.sql.Timestamp serialize the
 day/month/year/hour/minute separately instead of storing the time since
 1970.

 See here for more 
 details:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 Paul

 Ameya Kulkarni wrote:
  We are sending date objects from server. It works for all dates except
  the older ones. We cannot change the implementation to send strings
  now.

  How do we set time zone in the application ?

  On Aug 6, 11:26 am, Muhammad bilal_hobn...@yahoo.com wrote:

  Dear ,

  Please set time zone in your application.
  then you may get exact date you want.

  Muhammad Bilal Ilyas
  Software Engineer

  
  From: Ameya Kulkarni amey...@gmail.com
  To: Google Web Toolkit google-web-toolkit@googlegroups.com
  Sent: Fri, August 6, 2010 11:09:46 AM
  Subject: Date Serialization issues

  Hi

  We are sending java.util.Date objects from the server. On the client
  side these date values are not correct.

  Examples:
  14-Jul-1000 (on server) is shown as 20-Jul-1000 (on browser)
  14-Jul-0100 (on server) is shown as 13-Jul-0100 (on browser)

  We are using GWT 2.0. Has anyone faced such issues ?

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

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



exception with Gwt and Hibernate

2010-08-09 Thread Shakun Sachdeva
Hi

I am working on Gwt with Hibernate at backend and am having this exception.
Can anyone help me in this that why I am geting this exception??

Caused by: org.hibernate.StaleObjectStateException: Row was updated or
deleted by another transaction (or unsaved-value mapping was incorrect):
[com.axim.emr.client.beans.Insurance#259]
at
org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:418)
at
org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:234)
at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:715)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:697)
at
org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:268)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:292)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:240)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
at
org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:320)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:266)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:243)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
at org.hibernate.engine.Cascade.cascade(Cascade.java:154)
at
org.hibernate.event.def.DefaultMergeEventListener.cascadeOnMerge(DefaultMergeEventListener.java:563)
at
org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:423)
at
org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:234)
at
org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:705)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:689)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:693)
at
com.axim.emr.server.DataServiceImpl.updatePatientObject(DataServiceImpl.java:227)
at
com.axim.emr.server.DataServiceImpl.updatePatientObject(DataServiceImpl.java:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
net.sf.gilead.gwt.PersistentRemoteService.processCall(PersistentRemoteService.java:174)


Thanks ,
Shakun

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



Re: GWT 2.1 Simple Place example

2010-08-09 Thread Christian Goudreau
Or the geat and complete Gwt-Platform !

www.gwtplatform.com

Cheers,

On Sun, Aug 8, 2010 at 5:32 PM, jaybose onyeje.b...@gmail.com wrote:

 Check out GWT-Presenter, it has some items to help w/ Place and Place
 Management - http://code.google.com/p/gwt-presenter/wiki/GettingStarted


 On Jul 30, 1:00 am, Kailash Yadav yadav...@gmail.com wrote:
  Hi,
 
  Can anyone provide url of tutorial/document of GWTplaceor example?
  Actually I am not getting what isplacein GWT.
 
  Thanks
 
  On Jul 12, 5:50 pm, xworker blomqvist.andr...@gmail.com wrote:
 
   Hi all
 
   Strugling with finding documentation and a simple example with the
 newPlaceconcept. Can anyone shed some light? Most examples point to
   generated scaffold code with roo. Not easy to read, and at this point
   I dont want to use Roo. Just want a simple example or explanation
   about the new concepts in 2.1 (Places,Activity).
 
   Thanks

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: [UIBinder] - Nested Panels

2010-08-09 Thread Christian Goudreau
It's because Vertical panel can only append Widgets. Your Hello, should be
nested inside a: g:HTML or g:Label

Don't forget that the same html rules are as plain old HTML are effective
inside UiBinder (That's why it's such a nice tool).

So you could achieve the same thing only by knowing if your widgets are
Inline or not.

so:

  g:HTMLPanel

   g:VerticalPanel

   Hello, g:ListBox ui:field='listBox' visibleItemCount='1'/.

   /g:VerticalPanel

 /g:HTMLPanel


could become:

 g:HTMLPanel
   Hello, br/
   g:ListBox ui:field='listBox' visibleItemCount='1'/.
 /g:HTMLPanel

Try to use as much normal HTML and CSS as you can !

Cheers,

On Sat, Aug 7, 2010 at 3:20 AM, BenJD bdehaan.syd...@gmail.com wrote:

 Hi all,

 I have recently jumped on the GWT bandwagon and have to say I am a big
 fan. It makes developing javascript applications fun again.

 I have produced many Flex based projects in the past and have come
 accustomed to using MXML markup to declare user interface elements. I
 can see that GWT's UIBinder functionality is to GWT what MXML is to
 Flex so am very keen on getting my head around how it works.

 I am currently working my way through the UIBinder tutorial (http://
 code.google.com/webtoolkit/doc/latest/
 DevGuideUiBinder.html#Hello_Widget_World) and have a query regarding
 using Widgets and nested Panels.

 I have implemented the 'Hello Widget World' section of the tutorial
 and it works perfectly. However if I modify the
 'HelloWidgetWorld.ui.xml' to include a nested vertical panel I find
 that the app no longer displays any content. Can anyone see why this
 may be the case? Details below:

 Step To Reproduce

 Replace HelloWidgetWorld.ui.xml with the following XML

 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'

  g:HTMLPanel
g:VerticalPanel
Hello, g:ListBox ui:field='listBox' visibleItemCount='1'/.
/g:VerticalPanel
  /g:HTMLPanel

 /ui:UiBinder

 Results

 After compilation our host page displays a blank screen.

 Desired Results

 The above code takes the example in the 'Hello Widget World' tutorial
 and wraps the components in a nested vertical panel. Ideally both the
 HTML Text node and Listbox should now display vertically instead of
 horizontally (the default behaviour).

 regards
 Ben

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: Using piriti 0.4.1

2010-08-09 Thread Deepak Singh
Any suggestion pls .

On Mon, Aug 9, 2010 at 2:02 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi All,

 I am using piriti 0.4.1 for mapping XML to POJO's with gwt 2.1 m2.
 For learning purpose, i added on sample xml file to shared folder and
 created the java classes in shared folder only. But these java classes show
 the following error
  *The type name.pehl.totoe.client.Element cannot be resolved. It is
 indirectly referenced from required .class *
 * files*
 *
 *
 I am using eclipse 3.5 and have added jar files in build path through
 eclipse.
 I don't actually know what mistake in setting up the project i am doing.
 I am not using maven.

 Pls let me know how to use piriti and is there any way to do mapping of xml
 to pojo.
 Is Piriti a better solution for fast result ?

 Thanks
 Deepak



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



Re: Problem in Large scale application development and MVP

2010-08-09 Thread Chris Ramsdale
Thanks, Will. I'll update the tutorial and sample code.

On Aug 6, 3:07 pm, WillSpecht willspe...@gmail.com wrote:
 Can the moderators pass this on to Chris Ramsdale so he can update the
 tutorial?

 On Aug 6, 2:59 pm, WillSpecht willspe...@gmail.com wrote:



  When a new contact is added it's id is never set. Because the id field
  is a string it is stored as . That is how the first contact is
  added. Now every time you create a new contact you overwrite the
  contact with key . To fix this you need to set the value of the id.
  I did this by changing the doSave method in EditContactsPresenter.

  private void doSave() {
  contact.setFirstName(display.getFirstName().getValue());
  contact.setLastName(display.getLastName().getValue());
  contact.setEmailAddress(display.getEmailAddress().getValue());
  if(History.getToken.equals(add)
      rpcService.updateContact(contact, new AsyncCallbackContact()
  {
          public void onSuccess(Contact result) {
              eventBus.fireEvent(new
  ContactUpdatedEvent(result));
          }
          public void onFailure(Throwable caught) {
              Window.alert(Error updating contact);
          }
      });
  else
      rpcService.updateContact(contact, new AsyncCallbackContact()
  {
          public void onSuccess(Contact result) {
              eventBus.fireEvent(new
  ContactUpdatedEvent(result));
          }
          public void onFailure(Throwable caught) {
              Window.alert(Error updating contact);
          }
      });

  }

  On Aug 3, 1:38 pm, WillSpecht willspe...@gmail.com wrote:

   I recently tried to follow the Large scale application development and
   MVP tutorial.  The tutorial was great but I am having a hard time with
   a few things.

   If you try and add a contact to the list, the contact is created.  If
   you try and add another contact, you are taken to the edit screen of
   the last contact you created.  No more contacts can be added once you
   add your first contact.  What needs to be changed so you can add more
   than one contact.

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



Exception while dispatching incoming RPC call Object Manager has been closed (repost)

2010-08-09 Thread spierce7
Hey, I've been trying to get my RPC Call to AppEngine to work since
last Wed, with no luck. My issue now seems to be with my query. I'm
willing to post any code needed, but I just want to get this working,
as this has completely halted me on any further progress on my app.
Everything looks like it should be working. Here is my
TestServiceImpl.java :


package com.spierce7.gwt.test.server;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import javax.jdo.Query;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.spierce7.gwt.test.client.TestService;
import com.spierce7.gwt.test.shared.PersistentShift;

public class TestServiceImpl extends RemoteServiceServlet implements
TestService{
private static final Logger LOG =
Logger.getLogger(TestServiceImpl.class.getName());
private static final PersistenceManagerFactory PMF =
JDOHelper.getPersistenceManagerFactory(transactions-optional);

public void addShift(Date startDate, Date endDate) {
PersistenceManager pm = getPersistenceManager();
try {
pm.makePersistent(new
PersistentShift(startDate, endDate));
} finally {
pm.close();
}
}

public ListPersistentShift getShifts() {
PersistenceManager pm = getPersistenceManager();
ListPersistentShift results = new
ArrayListPersistentShift();

Query query = pm.newQuery(PersistentShift.class);
query.setFilter(search == 1);

try {
results = (ListPersistentShift)
query.execute();
} finally {
pm.close();
}
return results;
}

private PersistenceManager getPersistenceManager() {
return PMF.getPersistenceManager();
}
}

___

My addShift function works fine, and I can add objects to the database
just fine. I just can't retrieve them. I finally changed the objects
in the database to all have an int variable called search, and it's
always set to 1. When I call the getShifts() method though, it gives
me this error:

javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
Object Manager has been closed
org.datanucleus.exceptions.NucleusUserException: Object Manager has
been closed
at
org.datanucleus.ObjectManagerImpl.assertIsOpen(ObjectManagerImpl.java:
3876)
at
org.datanucleus.ObjectManagerImpl.getFetchPlan(ObjectManagerImpl.java:
376)
at org.datanucleus.store.query.Query.getFetchPlan(Query.java:
497)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:631)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:630)
at
org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java:
94)
at org.datanucleus.store.appengine.query.LazyResult
$LazyAbstractListIterator.computeNext(LazyResult.java:215)
at
org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(AbstractIterator.java:
132)
at
org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIterator.java:
127)
at org.datanucleus.store.appengine.query.LazyResult
$AbstractListIterator.hasNext(LazyResult.java:169)
at java.util.AbstractCollection.toString(Unknown Source)
... (it goes on)

___

I saw some examples where queries are ended with query.closeAll(), and
I tried that also, but I get a different error telling me something
couldn't be serialized from the datanucleus. At this point I just want
it to work. Any help, or any ideas would be great. Let me know if
you'd like some other code posted.

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



Re: HTML Table

2010-08-09 Thread spierce7
Why are you doing HTMLTable table = new Grid(rows, 2);? Try doing Grid
table = new Grid(rows,2); or HTMLTable table = new HTMLTable(rows, 2);
(assuming syntax for HTMLTable)

On Aug 9, 3:25 am, Sanjay Jain snj...@gmail.com wrote:
 Hi to all
 I am using  HTML table, and for setting title of the table I am using
 setTitle(My Table);
 But it is not working:
 Here is my code:

 HTMLTable table = new Grid(rows, 2);
 table.setTitle(My Table);

 Is there other property need to be set?
 Please help
 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Making GWT look good...

2010-08-09 Thread Chris Ramsdale
Thanks for all of the great feedback (and please, keep it coming). With
these suggestions and some internal guidance, we're going to move on to
fleshing out mocks. Once I have something tangible, I'll share it here.

-- Chris

On Fri, Aug 6, 2010 at 8:01 PM, martino martino.piccin...@gmail.com wrote:

 While I appreciate the richness of widgets and behaviours offered by
 framework like SmartGWT or GXT, I don't particularly like their
 windowish look and feel, also I don't think it's a particularly good
 idea promoting GWT powerfulness or web application in general by
 mimicking desktop application widgets aspect (how many useless web
 desktops simulating a windows desktop inside your browser have you
 seen?).

 I think GWT/Roo should support at least two basic skin: a light theme
 with few/no images/resources (http://gwt-bikeshed.appspot.com/
 Scaffold.html  isn't a bad start to me!) and maybe an heavier more
 appealing one but I think some effort should be done to distinguish
 GWT/web applications from desktop app. I would use more/nicer effects
 (slide, fade ecc.) to have smoother transitions and/or communicate to
 the user that something is happening/has happened (think of mobile
 apps also...).

 Just my 2 cents

 Martino Piccinato



 On Aug 6, 2:44 pm, Chris Ramsdale cramsd...@google.com wrote:
  Hey GWT(ers),
 
  I've heard from many of you that GWT apps simply don't look that good out
 of
  the box, and styling the default app would go a long way. We couldn't
 agree
  more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) will
  generate a full-fledged scaffolding app that users can then go customize,
  and build on top of. The current incarnation looks like this:
 
  http://gwt-bikeshed.appspot.com/Scaffold.html
 
  And while it's a start, it's long from being...well...good looking. I'm
  working with some UI/UX people back at Google, but in the spirit of
 openness
  I wanted to get feedback from the real users -- you. Specifically we're
  looking for business apps that are a good example of UI and/or UX. Apps
  that allow you to track tasks, expenses, travel, projects, etc.
 
  If you have ideas, simply post a link in a follow-up to this thread.
 
  Cheers,
  -- Chris

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



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



Re: onModuleLoad() Before Page Load

2010-08-09 Thread spierce7
I'm not familiar with a lot of the things that you are using, however
GWT has a method that it calls after the widget that the method is
attached to is loaded. It's called onLoad(). Typically, when I've used
it in the past, it's because I was extending a widget, say a Grid, and
then I would override the onLoad() method. I'm not sure how you would
implement it into a completely custom widget though. You might be able
to put the iframe in a HTMLPanel or something, and call the onLoad()
method. Either way, I think this may be what your looking for. Hope
this helps!

On Aug 6, 9:54 pm, Ryan McDonald ryan.mcdona...@gmail.com wrote:
 To my understanding, the compiled GWT file module-name.nocache.js
 blocks page evaluation when it is loading. When it finishes, it
 creates a hidden iframe that begins to load the module-name.cache.js
 file but it does NOT block page evaluation and loads asynchronously.

 In my GWT module I define a native Javascript function using JSNI that
 adds a widget to the page.

 I use a Velocity Template that dynamically generates divs with unique
 ids, then call my Javascript method that I defined using JSNI to
 attach the widget to the specific div.

 The problem is that when my page is loading, and the Velocity Template
 calls my Javascript method, the hidden iframe has not finished loading
 the module-name.cache.js that defines the method.

 Is there a way to make the module-name.cache.js file load
 synchronously so that it will block page evaluation until it finishes
 loading? Or make onModuleLoad() run before the page loads completely?
 Something along these lines?

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



Re: bug in Animation class

2010-08-09 Thread spierce7
I'm going to be delving into the animation world in the next few
weeks. Thanks very much for this. I'll try to keep this in mind if I
have any issues.

On Aug 6, 11:24 am, Michael michael.vill...@gmail.com wrote:
 Hi,

 I didn't see a place to post bugs, so I am submitting it to the group.

 I've been working with GWT for a one off project on our 
 website,www.studyisland.com. I was attempting to use the Animation class (in
 package com.google.gwt.animation.client) and could not figure out a
 way to get an animation of an Image object to replay when I clicked on
 it. I tried both rerunning the original Animation instance recreating
 the instance and attempting to run it. My code is identical to the
 example in the GWT showcase, with the exception that I create 3 unique
 animations, one for each image on the page.

 The showcase animation can be replayed, but in my case, where 3
 animations existed the animations could not.

 Digging into the Animation class, it is obvious why this is by the
 line of code in the method run(int duration, double startTime):

 // Restart the timer if there is the only animation
     if (animations.size() == 1) {
       animationTimer.schedule(DEFAULT_FRAME_DELAY);
     }

 So, you can't re-run an animation if you create more than one
 animation instance on your page. Thats fine, there may be some
 limitation that I'm unaware of to prevent this. I'll just reset the
 Animation class back to its initial state and start over... but I
 can't because the animations are driven by an array called
 animations that is a private static member of the class, and there
 are no accessible methods to reset it.

 Fortunately the easy solution for me is to just copy all of the code
 in the Animation class into a new class, and add a method
 resetAnimations to take care of this.

 public static void resetAnimations() {
   animations.clear();
   animations = null;

 }

 I just call this before re-running any animations, and everything
 works fine.

 Now, I consider myself pretty good with Java, but I'm not a javascript
 expert so I can't say for sure whether doing this is safe or why the
 original programmers didnt include this functionality initially.
 However, I think it very likely that there will be other GWT users in
 the future who might encounter this issue, hence I think it should be
 addressed.

 If you have any questions about my writeup here, or would like some
 code or something like that, feel free to email me:
 michael.vill...@gmail.com.

 I'm loving GWT by the way. Thanks to everyone who has contributed!
 -Michael

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



Re: Using piriti 0.4.1

2010-08-09 Thread Harald Pehl
Piriti relies on Totoe. Totoe is an alternative XML parser with
namespace support. So please make sure you have the relevant JAR file
in the classpath / eclipse project. Totoe is available under
http://code.google.com/p/totoe/.

Having your POJO in the shared folder is no problem. Just make sure
the folder is included in your module definition. Having the XML in
the shared folder seems a little bit weired to me. Normally you
receive the XML in response to some request you made. Anyway if you
just want to test Piritis XML mappings, you can load the XML using a
ClientBundle:


public interface FooResources extends ClientBundle
{
FooResources INSTANCE = GWT.create(FooResources.class);

@Source(foo.xml)
public TextResource fooXml();

...
}


Make sure foo.xml is in the same package as FooResources. Then you can
get the XML using
FooResources.INSTANCE.fooXml().getText()

- Harald


On 9 Aug., 14:52, Deepak Singh deepaksingh...@gmail.com wrote:
 Any suggestion pls .

 On Mon, Aug 9, 2010 at 2:02 AM, Deepak Singh deepaksingh...@gmail.comwrote:



  Hi All,

  I am using piriti 0.4.1 for mapping XML to POJO's with gwt 2.1 m2.
  For learning purpose, i added on sample xml file to shared folder and
  created the java classes in shared folder only. But these java classes show
  the following error
   *The type name.pehl.totoe.client.Element cannot be resolved. It is
  indirectly referenced from required .class *
  * files*
  *
  *
  I am using eclipse 3.5 and have added jar files in build path through
  eclipse.
  I don't actually know what mistake in setting up the project i am doing.
  I am not using maven.

  Pls let me know how to use piriti and is there any way to do mapping of xml
  to pojo.
  Is Piriti a better solution for fast result ?

  Thanks
  Deepak

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



Re: Problems extending CalendarView

2010-08-09 Thread ctasada
As long as you update your patched code with the newer version every
time you upgrade you GWT version, it should be no problem.

The main issue is that you cannot extend the DefaultCalendarView
directly and the we need to use this kind of hack.

On Aug 8, 3:53 pm, ksfi...@gmail.com ksfi...@gmail.com wrote:
 On Aug 5, 9:43 am, ctasada ctas...@gmail.com wrote:

  I did it in my code without too much problems, but I agree with you
  that's quite annoying.

  Steps:
  1.- Create a new package in your code:
  com.google.gwt.user.datepicker.client

  Copy the DefaultCalendarView.java from the GWT repository (I'm not
  sure which version I used, but was the one from 2.0)

 Are you sure that the behaviour of the GWT compiler is well-defined
 for cases where you've selectively monkey-patched part of a GWT
 package in local code, and are relying the source from gwt-user.jar
 for the rest of the package? I guess it's working for the moment, but
 is that kind of behavior expected to work in future versions of the
 compiler? Any GWT compiler devs care to comment?

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



Re: Cell click events for incubator's FixedWidthGrid

2010-08-09 Thread spierce7
Are you only wanting to tell if a cell was clicked, or are you wanting
to use specifics, such as the MouseUpHandler, MouseOverHandler, etc.?

If you are using the Grid and all you want to do is tell which cell
was clicked, Grid has a function called addClickHandler() (only works
with the click handler to tell if it was clicked), and you can use the
getCellForEvent() method to retrieve the actual cell object, and from
there call the methods (I think getRow(), and getIndex()), to get the
row and column that it's in.

If you want to do MouseUp handlers etc, shoot me an e-mail and I can
help you with that. That's a bit more convoluted.

On Aug 7, 7:55 pm, Strannik outofvo...@gmail.com wrote:
 Hello,

 Does anyone know how to figure out which cell was clicked on in the
 FixedWidthGrid from the gwt incubator?

 Using grid.addTableListener(...) seems to be deprecated a while ago
 and does nothing (it probably worked in pre gwt-1.6).

 The GWT API reccomends to use:
 HTMLTable.getCellForEvent(com.google.gwt.event.dom.client.ClickEvent)

 however the incubator FixedWidthGrid extends it's own HTMLTable which
 does not even support adding click handlers.

 It is still possible to use .addRowSelectionHandler(..) though that
 does not appear to tell you which cell on a row was clicked.

 Thank you

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



Re: uibinder and css

2010-08-09 Thread Thomas Van Driessche
Hey,

when i run my app it says The following obfuscated style classes were
missing from the source CSS file:
Fix bij adding .action{}

It seems like he doesn't find it in the css linked in the html page?

kind regards

On Aug 9, 12:22 pm, Nicolas ANTONIAZZI nicolas.antonia...@gmail.com
wrote:
 You can use the external keyword to say gwt that the class should not be
 obfuscated.

 ui:style

 @external myClass;

 .myClass {
   /* Adds extra css here */

 }

 /ui:style

 2010/8/9 Thomas Van Driessche thomas.van.driessch...@gmail.com

  Hi,

  I could use this: ui:style field='otherStyle'
  src=MyUiOtherStyle.css

  But the problem is that the css file is on another server...
  We deploy the gwt app on an OC4J server, but the javascript is called
  from another html page on another server...
  And that html page has a link to a css file that my gwt app should use
  to.

  So is this possible?

  kind regards

  On Aug 6, 3:54 pm, spierce7 spier...@gmail.com wrote:
   I hope this helps:

  http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#He...

   Look at the Hello Stylish World Example. Good luck!

   On Aug 6, 9:38 am, Thomas Van Driessche

   thomas.van.driessch...@gmail.com wrote:
Hi,

I have a question on using css in gwt.

I know you can give the ui:style component a src to a css file.
But what if you want to use the css that is linked in the html page
from which the javascript from the gwt project is called?

i tried this:

g:Button addStyleNames=action ui:field=btnSearch/g:Button

And in the css file from the host html page i have put:

.action {
   background-color: green;

}

Is this possible?
Because our javascript that was compiled is called from other html
pages to.

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

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



Re: Why GWT do not run with Internet explorer?

2010-08-09 Thread Gal Dolber
checkout that your html have this doctype: !DOCTYPE html

2010/8/7 Atilla İlhan KARTAL ad...@atillailhankartal.com.tr

  Hello ;



This my first question. J  and sorry for my
 english. I am new on GWT. I cant run GWT on Internet Explorer 8. How to GWT
 run Cross-Browser. My codes run on FF and Chrome.



 public void onModuleLoad() {

 DockLayoutPanel p = new DockLayoutPanel(Unit.EM);

 p.addNorth(new HTML(north), 2);

 p.addSouth(new HTML(south), 2);

 p.addEast(new HTML(east), 2);

 p.addWest(new HTML(west), 2);

 p.add(new HTML(center));



 // Attach the LayoutPanel to the RootLayoutPanel. The latter will
 listen for

 // resize events on the window to ensure that its children are
 informed of

 // possible size changes.

 RootLayoutPanel rp = RootLayoutPanel.get();

 rp.add(p);

 }



 Best Regards.



 Atilla İlhan KARTAL

 Web Application  Software Architect

 Turkey Republic

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


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



Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread Joe Hudson
Thanks for the suggestion.  I'm glad to add this category.  Done!

Also, I missed the previous entry about the Consulting Services
category... I've added that as well.  Thanks for the support of GWT
Marketplace.

As far as using GWT Platform, that is exactly why we need a
centralized marketplace.  I didn't realize it existed and I made a
platform while creating this called GWT Pages which I am using...
http://code.google.com/p/gwtpages

Oh, and by the way, the previous link will still work but I've mapped
the application to http://www.gwtmarketplace.com

Best Regards,

Joe

On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
 I'd like to register a project I've contributed to : GWT-OpenLayers
 It's a JSNI wrapper for OpenLayers, which is a web mapping JS library.
 I was wondering if a JS Wrappers category would be a good idea.

 On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
 wrote:

  I registered Gwt-Platform and our next project, our consultant firm. You
  should add a category more specific for team of individuals that want to
  offer support or consulting services for Gwt.

  Great app ! Did you use Gwt-Platform ? :)

  Cheers,

  On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote:
   Thanks for the feedback Peter.

   I've made changes to the categories that you suggested.  That
   definitely seems to make more sense.

   Joe

   On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
Great idea Joe,

I was missing something like this for a long time. But the
categorization is little bit confusing me.
What is the difference between Libraries and Frameworks, or Tools.
Wouldn't it be better to cover some specific domains in the
categories? Like UI widgets, RPC, security, MVP, etc ?

Thank you again.
Peter

On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:

 Wow this is nice! keep it up!

 On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:

  Hi,

  I'm a huge fan of GWT and the only problem I have with it is not
  really a problem with GWT but with the fact that there isn't a
  centralized place for registering component and associated tools
  AFAIK.  I have created an application to do this which is available
   athttp://gwtmarketplace.appspot.com

  This project is open-source and the project and source code is
  available at:http://code.google.com/p/gwtmarketplace/.

  I encourage everyone who has a product related to GWT to register it
  so it easier for folks like myself to see what is available and be
  able to comment on and rate these products.

  I would certainly appreciate if the GWT folks would link
   tohttp://gwtmarketplace.appspot.comtomakeiteasierfor people to
  see.  Also, any feedback would certainly be appreciated.

  Thanks,

  Joe

 http://gwtmarketplace.appspot.com

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

  --
  Christian Goudreau

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



Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread Joe Hudson
FYI, I'll be happy to make any changes the community wants - I just
want an easier place for developers to find what they need because GWT
is definitely the way to go in terms of web application development.

If anyone has any categories or other requests, please add them here
so you can make sure that I see them (this is the google code issues
browser) - however I do appreciate the additional postings to the GWT
group so hopefully more developers will be aware of it.

http://code.google.com/p/gwtmarketplace/issues/list

Thanks,

Joe

On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
 I'd like to register a project I've contributed to : GWT-OpenLayers
 It's a JSNI wrapper for OpenLayers, which is a web mapping JS library.
 I was wondering if a JS Wrappers category would be a good idea.

 On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
 wrote:

  I registered Gwt-Platform and our next project, our consultant firm. You
  should add a category more specific for team of individuals that want to
  offer support or consulting services for Gwt.

  Great app ! Did you use Gwt-Platform ? :)

  Cheers,

  On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote:
   Thanks for the feedback Peter.

   I've made changes to the categories that you suggested.  That
   definitely seems to make more sense.

   Joe

   On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
Great idea Joe,

I was missing something like this for a long time. But the
categorization is little bit confusing me.
What is the difference between Libraries and Frameworks, or Tools.
Wouldn't it be better to cover some specific domains in the
categories? Like UI widgets, RPC, security, MVP, etc ?

Thank you again.
Peter

On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:

 Wow this is nice! keep it up!

 On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:

  Hi,

  I'm a huge fan of GWT and the only problem I have with it is not
  really a problem with GWT but with the fact that there isn't a
  centralized place for registering component and associated tools
  AFAIK.  I have created an application to do this which is available
   athttp://gwtmarketplace.appspot.com

  This project is open-source and the project and source code is
  available at:http://code.google.com/p/gwtmarketplace/.

  I encourage everyone who has a product related to GWT to register it
  so it easier for folks like myself to see what is available and be
  able to comment on and rate these products.

  I would certainly appreciate if the GWT folks would link
   tohttp://gwtmarketplace.appspot.comtomakeiteasierfor people to
  see.  Also, any feedback would certainly be appreciated.

  Thanks,

  Joe

 http://gwtmarketplace.appspot.com

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

  --
  Christian Goudreau

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



Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread Christian Goudreau
I'm not able to edit anymore, I wanted to change ArcBees category and it
didn't work.

Anyway, nice job and if your thinking about swtiching to Gwt-Platform, let
me know :D

Cheers,

On Mon, Aug 9, 2010 at 10:32 AM, Joe Hudson joe...@gmail.com wrote:

 FYI, I'll be happy to make any changes the community wants - I just
 want an easier place for developers to find what they need because GWT
 is definitely the way to go in terms of web application development.

 If anyone has any categories or other requests, please add them here
 so you can make sure that I see them (this is the google code issues
 browser) - however I do appreciate the additional postings to the GWT
 group so hopefully more developers will be aware of it.

 http://code.google.com/p/gwtmarketplace/issues/list

 Thanks,

 Joe

 On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
  I'd like to register a project I've contributed to : GWT-OpenLayers
  It's a JSNI wrapper for OpenLayers, which is a web mapping JS library.
  I was wondering if a JS Wrappers category would be a good idea.
 
  On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
  wrote:
 
   I registered Gwt-Platform and our next project, our consultant firm.
 You
   should add a category more specific for team of individuals that want
 to
   offer support or consulting services for Gwt.
 
   Great app ! Did you use Gwt-Platform ? :)
 
   Cheers,
 
   On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote:
Thanks for the feedback Peter.
 
I've made changes to the categories that you suggested.  That
definitely seems to make more sense.
 
Joe
 
On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
 Great idea Joe,
 
 I was missing something like this for a long time. But the
 categorization is little bit confusing me.
 What is the difference between Libraries and Frameworks, or Tools.
 Wouldn't it be better to cover some specific domains in the
 categories? Like UI widgets, RPC, security, MVP, etc ?
 
 Thank you again.
 Peter
 
 On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:
 
  Wow this is nice! keep it up!
 
  On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:
 
   Hi,
 
   I'm a huge fan of GWT and the only problem I have with it is
 not
   really a problem with GWT but with the fact that there isn't a
   centralized place for registering component and associated
 tools
   AFAIK.  I have created an application to do this which is
 available
athttp://gwtmarketplace.appspot.com
 
   This project is open-source and the project and source code is
   available at:http://code.google.com/p/gwtmarketplace/.
 
   I encourage everyone who has a product related to GWT to
 register it
   so it easier for folks like myself to see what is available and
 be
   able to comment on and rate these products.
 
   I would certainly appreciate if the GWT folks would link
tohttp://gwtmarketplace.appspot.comtomakeiteasierfor people to
   see.  Also, any feedback would certainly be appreciated.
 
   Thanks,
 
   Joe
 
  http://gwtmarketplace.appspot.com
 
--
You received this message because you are subscribed to the Google
 Groups
Google Web Toolkit group.
To post to this group, send email to
 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   Christian Goudreau

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: GWT Popup Menu - Close on losing focus

2010-08-09 Thread spierce7
Are you wanting it to close when you lose focus, or simply when your
mouse exits the panel? In my mind, the popup would lose focus when
you actually click outside of the popup, rather than just moving the
mouse out of it. I'm going to address the question in regards to your
mouse exiting the panel as it would be the more difficult thing to do.

I'm not sure what you are using for a pop-up method, but I would
recommend taking a look at the MouseOutHandler, and the
MouseOverHandler. I would add a MouseOutHandler to the popup, so if
they moved the mouse out, it would call a method where you could close
the popup. Another way to do this is if when the popup comes up, you
could create an invisible panel that is in front of your entire
program, but still is behind your popup popup, and give it a
MouseOverHandler so that whenever it is moused over (meaning whenever
you mouseover any part of your program that is not your popup) it will
call a method, that you can have close the popup. Something I'd
consider beforehand is, what if their mouse is not in the popup when
it's created, then it will close really really fast before they have
time to read it. You would have to make sure they mouse over the popup
prior to it being able to close.

If you wanted to do it the focus way, I'd do the latter method listed
above, but rather than using a mouse over handler for the invisible
panel, I'd use a mouse click handler, or MouseDownHandler.

If you are new to GWT Events, I'd recommend taking a look at the
following links:

http://code.google.com/webtoolkit/doc/latest/DevGuideUiHandlers.html
http://gwttutorials.com/2009/07/29/using-gwt-events/

On Aug 6, 1:40 pm, MJ mjones...@gmail.com wrote:
 I have a menubar with several Popup menus.  I would like the popups to
 close if I mouse outside the area of the popup.  I have tried a couple
 of things but nothing seems to work.

 Any suggestions would be greatly appreciated,

 Thanks in advance

 MJ

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



knowing module inheritance

2010-08-09 Thread mooreds
Hi folks,

I have a bit of a peculiar need.  I work on a site with a number of
disparate GWT modules:

moduleA
moduleB
moduleC

They all attach to different spans and enhance site functionality.

To load them all when the page loads, I have a loader module
(loaderModule) which inherits from all modules.

That's all well and good when a page is loaded normally.  However, I'm
now looking at having the page loaded via XMLHttpRequest aka
RequestBuilder.  In this case, loaderModule.onModuleLoad() method is
never called automatically.  When I try to call it, nothing happens.

Here's example code:
---

RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,myurl);

rb.setCallback(new RequestCallback() {
@Override
public void onResponseReceived(Request request, Response 
response) {

DOM.getElementById(container).setInnerHTML(response.getText());
new LoaderModule().onModuleLoad();
}

@Override
public void onError(Request request, Throwable exception) {
// TODO Auto-generated method stub
}
});

try {
rb.send();
} catch (RequestException e) {
}
---

Now, if I call moduleA.onModuleLoad() things seem to work fine.  So I
suppose I could just maintain the module list in two places (in the
LoaderModule xml file and in the code).  But I was wondering if
* there was a way to automatically chain the onModuleLoad methods, or,
barring that,
* find out what modules the module I'm currently executing has
inherited from.

I did some searching on the google web toolkit group, but didn't find
anything that seemed applicable.

Any ideas?

Thanks,
Dan

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



Re: HTML Table

2010-08-09 Thread mooreds
Hi,

The name of that method is a bit misleading.  HTMLTable inherits
setTitle from the UIObject class, and from the javadoc:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/UIObject.html#setTitle(java.lang.String)

this method:
Sets the title associated with this object. The title is the 'tool-
tip' displayed to users when they hover over the object.

Are you seeing that?

Thanks,
Dan

On Aug 9, 1:25 am, Sanjay Jain snj...@gmail.com wrote:
 Hi to all
 I am using  HTML table, and for setting title of the table I am using
 setTitle(My Table);
 But it is not working:
 Here is my code:

 HTMLTable table = new Grid(rows, 2);
 table.setTitle(My Table);

 Is there other property need to be set?
 Please help
 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Script tag dynamic loading

2010-08-09 Thread mooreds
Hi Vincent,

You might want to look at this project:

http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted

This not only has gwt bindings for google maps, but also has a way to
load the API dynamically (using the ajax loader):
http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.1/com/google/gwt/maps/client/Maps.html#loadMapsApi(java.lang.String,%20java.lang.String,%20boolean,%20java.lang.Runnable)

This works like a charm for me.

Thanks,
Dan

On Aug 9, 4:33 am, Vincent COROLLEUR vcoroll...@gmail.com wrote:
 Hello,

 I'am trying to load dynamically with GWT some scripts in order to use
 google map API V2.

 By the static way it works (script tag in the index.jsp page) :

         script src=http://maps.google.com/maps?
 file=apiamp;v=2amp;sensor=true_or_falseamp;key=ABQIpOR5tulUc5y1R6lOK 
 FkbpRTwM0brOpm-
 All5BF6PoaKBxRWWERTqbaRJ6lpQdSlaltvv3tD-fLXwvQ type=text/
 javascript/script

 I tried this to do it dynamically (from the EntryPoint) but it doesn't
 work :

 Element script1 = DOM.createElement(script);
 script1.setAttribute(type, text/javascript);
 script1.setAttribute(src, http://maps.google.com/maps?
 file=apiv=2sensor=falsekey=ABQIpOR5tulUc5y1R6lOKFkbpRTwM0brOpm-
 All5BF6PoaKBxRWWERTqbaRJ6lpQdSlaltvv3tD-fLXwvQ);
 RootPanel.getBodyElement().appendChild(script1);

 This code leads to an error when it's loaded (Unloading module) :
 its unload my application module.

 I am still looking for a way to load dynamically google map.

 Regards,

 Vincent COROLLEUR

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



Re: onModuleLoad() Before Page Load

2010-08-09 Thread mooreds
Hi Ryan,

This doesn't answer your question, but I was wondering why you had the
velocity template initiate attaching your widgets to your spans?

Another possibility is to have velocity write a list of span ids to a
hidden span, and then have your GWT component (in a startup module)
read that span and attach widgets to each span in turn.  That's the
way I do things.

Thanks,
Dan

On Aug 6, 7:54 pm, Ryan McDonald ryan.mcdona...@gmail.com wrote:
 To my understanding, the compiled GWT file module-name.nocache.js
 blocks page evaluation when it is loading. When it finishes, it
 creates a hidden iframe that begins to load the module-name.cache.js
 file but it does NOT block page evaluation and loads asynchronously.

 In my GWT module I define a native Javascript function using JSNI that
 adds a widget to the page.

 I use a Velocity Template that dynamically generates divs with unique
 ids, then call my Javascript method that I defined using JSNI to
 attach the widget to the specific div.

 The problem is that when my page is loading, and the Velocity Template
 calls my Javascript method, the hidden iframe has not finished loading
 the module-name.cache.js that defines the method.

 Is there a way to make the module-name.cache.js file load
 synchronously so that it will block page evaluation until it finishes
 loading? Or make onModuleLoad() run before the page loads completely?
 Something along these lines?

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



GWT, web service and reverse ajax/Comet

2010-08-09 Thread noosy
I'm after some advice regarding having a web service inside my GWT
project. The web service is an event consumer and I would like to
update my client side GWT code everytime it consumes a new event. Is
there a reverse ajax/comet approach that I could use here? Is it
possible for my web service to call my GWT server side code on the
event firing, and in turn have the GWT server side code return the
results back to the client side code? I'm trying to avoid a polling
approach. All ideas are welcome, thanks.

I have found StreamHub, GWT-Comet (and more) online but I'm not sure
if I can use these libaries in the manner I am proposing...

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



Re: Worth Upgrading to Eclipse Helios?

2010-08-09 Thread Trevor Skaife
Things have actually been working better for me with Helios, I haven't
had any issues.

On Aug 7, 8:56 am, Gal Dolber gal.dol...@gmail.com wrote:
 No really... it feels a bit faster and have small improvements...
 But you know that it's always better to use the last version..

 2010/8/7 spierce7 spier...@gmail.com





  Is it worth upgrading to Eclipse Helios? It sounds like some people
  are having some issues with it.

  Does not having Helios have anything to do with why I haven't been
  able to upgrade through the natural upgrade feature in Eclipse to 2.04
  GWT?

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

 --http://ajax-development.blogspot.com/

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



Re: Script tag dynamic loading

2010-08-09 Thread Vincent COROLLEUR
Thx for your help mooreds, but i need to run google map without JAR, i
have to load it with a script.

This script is reachable with an URL. Before, i used to do it with a
script tag placed in the index.jsp as explained previously.

Now the user of my application can choose his type of map (google map,
openLayers...), so i want to load only the script corresponding
to the map API choosed.

Regards,

Vincent COROLLEUR

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



Re: onModuleLoad() Before Page Load

2010-08-09 Thread Ryan McDonald
Calling an onLoad() method for the widget would be called after the
widget has loaded though. My problem is that I can't call my method
from the script to tell it to create the widget in the first place. I
need a way to make my HTML page know that it shouldn't do anything
else until my script has finished loading so it can recognize my
method. Also, the hidden iframe that is generated is all done behind
the scenes by GWT, isn't it? So I can't really manipulate that in any
way, I'm assuming.

On Aug 9, 6:28 am, spierce7 spier...@gmail.com wrote:
 I'm not familiar with a lot of the things that you are using, however
 GWT has a method that it calls after the widget that the method is
 attached to is loaded. It's called onLoad(). Typically, when I've used
 it in the past, it's because I was extending a widget, say a Grid, and
 then I would override the onLoad() method. I'm not sure how you would
 implement it into a completely custom widget though. You might be able
 to put the iframe in a HTMLPanel or something, and call the onLoad()
 method. Either way, I think this may be what your looking for. Hope
 this helps!

 On Aug 6, 9:54 pm, Ryan McDonald ryan.mcdona...@gmail.com wrote:



  To my understanding, the compiled GWT file module-name.nocache.js
  blocks page evaluation when it is loading. When it finishes, it
  creates a hidden iframe that begins to load the module-name.cache.js
  file but it does NOT block page evaluation and loads asynchronously.

  In my GWT module I define a native Javascript function using JSNI that
  adds a widget to the page.

  I use a Velocity Template that dynamically generates divs with unique
  ids, then call my Javascript method that I defined using JSNI to
  attach the widget to the specific div.

  The problem is that when my page is loading, and the Velocity Template
  calls my Javascript method, the hidden iframe has not finished loading
  the module-name.cache.js that defines the method.

  Is there a way to make the module-name.cache.js file load
  synchronously so that it will block page evaluation until it finishes
  loading? Or make onModuleLoad() run before the page loads completely?
  Something along these lines?

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



Re: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: java.lang.IllegalAccessException: Private fields can not be set on JRE classes

2010-08-09 Thread Vik
Hie


 On a rpc call i am getting following exception. please advise what is going
 wrong here? I am passing Throwable as the parameter in the service method


 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 java.lang.IllegalAccessException: Private fields can not be set on JRE
 classes.
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
 at
 com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
  at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
 at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
  at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
 at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
  at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
 at
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(IncompatibleRemoteServiceException_FieldSerializer.java)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
 at
 com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
  at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
 at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
  at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
 at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
  at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
 at
 com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.instantiate$(SerializerBase.java)
  at
 com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:140)
 at
 com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:114)
  at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61)
 at
 com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:199)
  at
 com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
 at
 com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:393)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
 at
 com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
  at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
 at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
  at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
 at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
  at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
 at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
  at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
 at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at
 

Re: onModuleLoad() Before Page Load

2010-08-09 Thread Ryan McDonald
My velocity template is in charge of dynamically creating my page.
Basically I have a Velocity macro to create two DateBox widgets so
that a date range may be input by a user. My macro is called whenever
I am generating a page that requires a date range input.

For the list of span ids, that would require all my widgets to be
added in the same span, so be in the same place in the page. My page
needs my widgets to be able to be embedded wherever I choose. The only
way I could think of accomplishing this was creating a GWT JSNI method
that takes a div id string as a parameter so it knows where to attach
my widget.
On Aug 9, 8:18 am, mooreds moor...@gmail.com wrote:
 Hi Ryan,

 This doesn't answer your question, but I was wondering why you had the
 velocity template initiate attaching your widgets to your spans?

 Another possibility is to have velocity write a list of span ids to a
 hidden span, and then have your GWT component (in a startup module)
 read that span and attach widgets to each span in turn.  That's the
 way I do things.

 Thanks,
 Dan

 On Aug 6, 7:54 pm, Ryan McDonald ryan.mcdona...@gmail.com wrote:



  To my understanding, the compiled GWT file module-name.nocache.js
  blocks page evaluation when it is loading. When it finishes, it
  creates a hidden iframe that begins to load the module-name.cache.js
  file but it does NOT block page evaluation and loads asynchronously.

  In my GWT module I define a native Javascript function using JSNI that
  adds a widget to the page.

  I use a Velocity Template that dynamically generates divs with unique
  ids, then call my Javascript method that I defined using JSNI to
  attach the widget to the specific div.

  The problem is that when my page is loading, and the Velocity Template
  calls my Javascript method, the hidden iframe has not finished loading
  the module-name.cache.js that defines the method.

  Is there a way to make the module-name.cache.js file load
  synchronously so that it will block page evaluation until it finishes
  loading? Or make onModuleLoad() run before the page loads completely?
  Something along these lines?

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



Re: uibinder and css

2010-08-09 Thread Nicolas ANTONIAZZI
When using addStyleNames={style.action}, gwt requires to find class
definition of action in style

It will not work without at least an empty declaration.

The @extrnal keyword only indicates to gwt that class should not be
obfuscated.
Thus, you can use an external class name to override it.

I do not know a cleaner way of doing it, but if someone reads this thread
with a better solution, It will be appreciated :)


2010/8/9 Thomas Van Driessche thomas.van.driessch...@gmail.com

 Hey,

 when i run my app it says The following obfuscated style classes were
 missing from the source CSS file:
 Fix bij adding .action{}

 It seems like he doesn't find it in the css linked in the html page?

 kind regards

 On Aug 9, 12:22 pm, Nicolas ANTONIAZZI nicolas.antonia...@gmail.com
 wrote:
  You can use the external keyword to say gwt that the class should not be
  obfuscated.
 
  ui:style
 
  @external myClass;
 
  .myClass {
/* Adds extra css here */
 
  }
 
  /ui:style
 
  2010/8/9 Thomas Van Driessche thomas.van.driessch...@gmail.com
 
   Hi,
 
   I could use this: ui:style field='otherStyle'
   src=MyUiOtherStyle.css
 
   But the problem is that the css file is on another server...
   We deploy the gwt app on an OC4J server, but the javascript is called
   from another html page on another server...
   And that html page has a link to a css file that my gwt app should use
   to.
 
   So is this possible?
 
   kind regards
 
   On Aug 6, 3:54 pm, spierce7 spier...@gmail.com wrote:
I hope this helps:
 
   
 http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#He...
 
Look at the Hello Stylish World Example. Good luck!
 
On Aug 6, 9:38 am, Thomas Van Driessche
 
thomas.van.driessch...@gmail.com wrote:
 Hi,
 
 I have a question on using css in gwt.
 
 I know you can give the ui:style component a src to a css file.
 But what if you want to use the css that is linked in the html page
 from which the javascript from the gwt project is called?
 
 i tried this:
 
 g:Button addStyleNames=action ui:field=btnSearch/g:Button
 
 And in the css file from the host html page i have put:
 
 .action {
background-color: green;
 
 }
 
 Is this possible?
 Because our javascript that was compiled is called from other html
 pages to.
 
 kind regards,
 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-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread Joe Hudson
Thanks Christian,

When I get home tonight I'll take a look and fix the problem.

Joe

On Aug 9, 10:38 am, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 I'm not able to edit anymore, I wanted to change ArcBees category and it
 didn't work.

 Anyway, nice job and if your thinking about swtiching to Gwt-Platform, let
 me know :D

 Cheers,



 On Mon, Aug 9, 2010 at 10:32 AM, Joe Hudson joe...@gmail.com wrote:
  FYI, I'll be happy to make any changes the community wants - I just
  want an easier place for developers to find what they need because GWT
  is definitely the way to go in terms of web application development.

  If anyone has any categories or other requests, please add them here
  so you can make sure that I see them (this is the google code issues
  browser) - however I do appreciate the additional postings to the GWT
  group so hopefully more developers will be aware of it.

 http://code.google.com/p/gwtmarketplace/issues/list

  Thanks,

  Joe

  On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
   I'd like to register a project I've contributed to : GWT-OpenLayers
   It's a JSNI wrapper for OpenLayers, which is a web mapping JS library.
   I was wondering if a JS Wrappers category would be a good idea.

   On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
   wrote:

I registered Gwt-Platform and our next project, our consultant firm.
  You
should add a category more specific for team of individuals that want
  to
offer support or consulting services for Gwt.

Great app ! Did you use Gwt-Platform ? :)

Cheers,

On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote:
 Thanks for the feedback Peter.

 I've made changes to the categories that you suggested.  That
 definitely seems to make more sense.

 Joe

 On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
  Great idea Joe,

  I was missing something like this for a long time. But the
  categorization is little bit confusing me.
  What is the difference between Libraries and Frameworks, or Tools.
  Wouldn't it be better to cover some specific domains in the
  categories? Like UI widgets, RPC, security, MVP, etc ?

  Thank you again.
  Peter

  On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:

   Wow this is nice! keep it up!

   On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:

Hi,

I'm a huge fan of GWT and the only problem I have with it is
  not
really a problem with GWT but with the fact that there isn't a
centralized place for registering component and associated
  tools
AFAIK.  I have created an application to do this which is
  available
 athttp://gwtmarketplace.appspot.com

This project is open-source and the project and source code is
available at:http://code.google.com/p/gwtmarketplace/.

I encourage everyone who has a product related to GWT to
  register it
so it easier for folks like myself to see what is available and
  be
able to comment on and rate these products.

I would certainly appreciate if the GWT folks would link
 tohttp://gwtmarketplace.appspot.comtomakeiteasierforpeople to
see.  Also, any feedback would certainly be appreciated.

Thanks,

Joe

   http://gwtmarketplace.appspot.com

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

--
Christian Goudreau

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

 --
 Christian Goudreauwww.arcbees.com

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



Re: onModuleLoad() Before Page Load

2010-08-09 Thread mooreds
Hi Ryan,

I guess I wasn't clear about the span solution.

What I mean is for the velocity template to build a span like this:
span id=component-config
style=display:nonecomp-111,comp-112,comp-113/span

And then in the gwt component startup method, read the component-
config span, split on commas, and attach components to each id found
there (if it exists).

Does that make a bit more sense?

Dan

On Aug 9, 9:56 am, Ryan McDonald ryan.mcdona...@gmail.com wrote:
 My velocity template is in charge of dynamically creating my page.
 Basically I have a Velocity macro to create two DateBox widgets so
 that a date range may be input by a user. My macro is called whenever
 I am generating a page that requires a date range input.

 For the list of span ids, that would require all my widgets to be
 added in the same span, so be in the same place in the page. My page
 needs my widgets to be able to be embedded wherever I choose. The only
 way I could think of accomplishing this was creating a GWT JSNI method
 that takes a div id string as a parameter so it knows where to attach
 my widget.
 On Aug 9, 8:18 am, mooreds moor...@gmail.com wrote:



  Hi Ryan,

  This doesn't answer your question, but I was wondering why you had the
  velocity template initiate attaching your widgets to your spans?

  Another possibility is to have velocity write a list of span ids to a
  hidden span, and then have your GWT component (in a startup module)
  read that span and attach widgets to each span in turn.  That's the
  way I do things.

  Thanks,
  Dan

  On Aug 6, 7:54 pm, Ryan McDonald ryan.mcdona...@gmail.com wrote:

   To my understanding, the compiled GWT file module-name.nocache.js
   blocks page evaluation when it is loading. When it finishes, it
   creates a hidden iframe that begins to load the module-name.cache.js
   file but it does NOT block page evaluation and loads asynchronously.

   In my GWT module I define a native Javascript function using JSNI that
   adds a widget to the page.

   I use a Velocity Template that dynamically generates divs with unique
   ids, then call my Javascript method that I defined using JSNI to
   attach the widget to the specific div.

   The problem is that when my page is loading, and the Velocity Template
   calls my Javascript method, the hidden iframe has not finished loading
   the module-name.cache.js that defines the method.

   Is there a way to make the module-name.cache.js file load
   synchronously so that it will block page evaluation until it finishes
   loading? Or make onModuleLoad() run before the page loads completely?
   Something along these lines?

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



Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread mooreds
Great idea!  I posted to my blog about your announcement:
http://www.mooreds.com/wordpress/archives/623 (Could be a source of
more projects to contact and invite to the marketplace).

Hope this gets some traction.

Dan

On Aug 9, 10:29 am, Joe Hudson joe...@gmail.com wrote:
 Thanks Christian,

 When I get home tonight I'll take a look and fix the problem.

 Joe

 On Aug 9, 10:38 am, Christian Goudreau goudreau.christ...@gmail.com
 wrote:



  I'm not able to edit anymore, I wanted to change ArcBees category and it
  didn't work.

  Anyway, nice job and if your thinking about swtiching to Gwt-Platform, let
  me know :D

  Cheers,

  On Mon, Aug 9, 2010 at 10:32 AM, Joe Hudson joe...@gmail.com wrote:
   FYI, I'll be happy to make any changes the community wants - I just
   want an easier place for developers to find what they need because GWT
   is definitely the way to go in terms of web application development.

   If anyone has any categories or other requests, please add them here
   so you can make sure that I see them (this is the google code issues
   browser) - however I do appreciate the additional postings to the GWT
   group so hopefully more developers will be aware of it.

  http://code.google.com/p/gwtmarketplace/issues/list

   Thanks,

   Joe

   On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
I'd like to register a project I've contributed to : GWT-OpenLayers
It's a JSNI wrapper for OpenLayers, which is a web mapping JS library.
I was wondering if a JS Wrappers category would be a good idea.

On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
wrote:

 I registered Gwt-Platform and our next project, our consultant firm.
   You
 should add a category more specific for team of individuals that want
   to
 offer support or consulting services for Gwt.

 Great app ! Did you use Gwt-Platform ? :)

 Cheers,

 On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote:
  Thanks for the feedback Peter.

  I've made changes to the categories that you suggested.  That
  definitely seems to make more sense.

  Joe

  On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
   Great idea Joe,

   I was missing something like this for a long time. But the
   categorization is little bit confusing me.
   What is the difference between Libraries and Frameworks, or Tools.
   Wouldn't it be better to cover some specific domains in the
   categories? Like UI widgets, RPC, security, MVP, etc ?

   Thank you again.
   Peter

   On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:

Wow this is nice! keep it up!

On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:

 Hi,

 I'm a huge fan of GWT and the only problem I have with it is
   not
 really a problem with GWT but with the fact that there isn't a
 centralized place for registering component and associated
   tools
 AFAIK.  I have created an application to do this which is
   available
  athttp://gwtmarketplace.appspot.com

 This project is open-source and the project and source code is
 available at:http://code.google.com/p/gwtmarketplace/.

 I encourage everyone who has a product related to GWT to
   register it
 so it easier for folks like myself to see what is available 
 and
   be
 able to comment on and rate these products.

 I would certainly appreciate if the GWT folks would link
  tohttp://gwtmarketplace.appspot.comtomakeiteasierforpeopleto
 see.  Also, any feedback would certainly be appreciated.

 Thanks,

 Joe

http://gwtmarketplace.appspot.com

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

 --
 Christian Goudreau

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

  --
  Christian Goudreauwww.arcbees.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to 

Re: Script tag dynamic loading

2010-08-09 Thread mooreds
I don't understand?

The gwt maps project is GWT.  Do you want to load the map via GWT, or
before GWT loads?  If after GWT loads, you could definitely load or
not load based on some user input.

Dan

On Aug 9, 9:39 am, Vincent COROLLEUR vcoroll...@gmail.com wrote:
 Thx for your help mooreds, but i need to run google map without JAR, i
 have to load it with a script.

 This script is reachable with an URL. Before, i used to do it with a
 script tag placed in the index.jsp as explained previously.

 Now the user of my application can choose his type of map (google map,
 openLayers...), so i want to load only the script corresponding
 to the map API choosed.

 Regards,

 Vincent COROLLEUR

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



Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread Joe Hudson
That's great Dan!  Thanks for the support.

Joe

On Aug 9, 12:32 pm, mooreds moor...@gmail.com wrote:
 Great idea!  I posted to my blog about your 
 announcement:http://www.mooreds.com/wordpress/archives/623(Could be a source 
 of
 more projects to contact and invite to the marketplace).

 Hope this gets some traction.

 Dan

 On Aug 9, 10:29 am, Joe Hudson joe...@gmail.com wrote:

  Thanks Christian,

  When I get home tonight I'll take a look and fix the problem.

  Joe

  On Aug 9, 10:38 am, Christian Goudreau goudreau.christ...@gmail.com
  wrote:

   I'm not able to edit anymore, I wanted to change ArcBees category and it
   didn't work.

   Anyway, nice job and if your thinking about swtiching to Gwt-Platform, let
   me know :D

   Cheers,

   On Mon, Aug 9, 2010 at 10:32 AM, Joe Hudson joe...@gmail.com wrote:
FYI, I'll be happy to make any changes the community wants - I just
want an easier place for developers to find what they need because GWT
is definitely the way to go in terms of web application development.

If anyone has any categories or other requests, please add them here
so you can make sure that I see them (this is the google code issues
browser) - however I do appreciate the additional postings to the GWT
group so hopefully more developers will be aware of it.

   http://code.google.com/p/gwtmarketplace/issues/list

Thanks,

Joe

On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
 I'd like to register a project I've contributed to : GWT-OpenLayers
 It's a JSNI wrapper for OpenLayers, which is a web mapping JS library.
 I was wondering if a JS Wrappers category would be a good idea.

 On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
 wrote:

  I registered Gwt-Platform and our next project, our consultant firm.
You
  should add a category more specific for team of individuals that 
  want
to
  offer support or consulting services for Gwt.

  Great app ! Did you use Gwt-Platform ? :)

  Cheers,

  On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com 
  wrote:
   Thanks for the feedback Peter.

   I've made changes to the categories that you suggested.  That
   definitely seems to make more sense.

   Joe

   On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
Great idea Joe,

I was missing something like this for a long time. But the
categorization is little bit confusing me.
What is the difference between Libraries and Frameworks, or 
Tools.
Wouldn't it be better to cover some specific domains in the
categories? Like UI widgets, RPC, security, MVP, etc ?

Thank you again.
Peter

On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:

 Wow this is nice! keep it up!

 On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:

  Hi,

  I'm a huge fan of GWT and the only problem I have with it is
not
  really a problem with GWT but with the fact that there 
  isn't a
  centralized place for registering component and associated
tools
  AFAIK.  I have created an application to do this which is
available
   athttp://gwtmarketplace.appspot.com

  This project is open-source and the project and source code 
  is
  available at:http://code.google.com/p/gwtmarketplace/.

  I encourage everyone who has a product related to GWT to
register it
  so it easier for folks like myself to see what is available 
  and
be
  able to comment on and rate these products.

  I would certainly appreciate if the GWT folks would link
   tohttp://gwtmarketplace.appspot.comtomakeiteasierforpeopleto
  see.  Also, any feedback would certainly be appreciated.

  Thanks,

  Joe

 http://gwtmarketplace.appspot.com

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

  --
  Christian Goudreau

--
You received this message because you are subscribed to the Google 
Groups
Google Web Toolkit group.
To post to this group, send email to 
google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
.
For more options, visit this group at
   

Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread Joe Hudson
By the way, I like your blog...

It's not just Dan Moore, it's Dan Moore!  :)

On Aug 9, 1:01 pm, Joe Hudson joe...@gmail.com wrote:
 That's great Dan!  Thanks for the support.

 Joe

 On Aug 9, 12:32 pm, mooreds moor...@gmail.com wrote:

  Great idea!  I posted to my blog about your 
  announcement:http://www.mooreds.com/wordpress/archives/623(Couldbe a source 
  of
  more projects to contact and invite to the marketplace).

  Hope this gets some traction.

  Dan

  On Aug 9, 10:29 am, Joe Hudson joe...@gmail.com wrote:

   Thanks Christian,

   When I get home tonight I'll take a look and fix the problem.

   Joe

   On Aug 9, 10:38 am, Christian Goudreau goudreau.christ...@gmail.com
   wrote:

I'm not able to edit anymore, I wanted to change ArcBees category and it
didn't work.

Anyway, nice job and if your thinking about swtiching to Gwt-Platform, 
let
me know :D

Cheers,

On Mon, Aug 9, 2010 at 10:32 AM, Joe Hudson joe...@gmail.com wrote:
 FYI, I'll be happy to make any changes the community wants - I just
 want an easier place for developers to find what they need because GWT
 is definitely the way to go in terms of web application development.

 If anyone has any categories or other requests, please add them here
 so you can make sure that I see them (this is the google code issues
 browser) - however I do appreciate the additional postings to the GWT
 group so hopefully more developers will be aware of it.

http://code.google.com/p/gwtmarketplace/issues/list

 Thanks,

 Joe

 On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
  I'd like to register a project I've contributed to : GWT-OpenLayers
  It's a JSNI wrapper for OpenLayers, which is a web mapping JS 
  library.
  I was wondering if a JS Wrappers category would be a good idea.

  On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
  wrote:

   I registered Gwt-Platform and our next project, our consultant 
   firm.
 You
   should add a category more specific for team of individuals that 
   want
 to
   offer support or consulting services for Gwt.

   Great app ! Did you use Gwt-Platform ? :)

   Cheers,

   On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com 
   wrote:
Thanks for the feedback Peter.

I've made changes to the categories that you suggested.  That
definitely seems to make more sense.

Joe

On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
 Great idea Joe,

 I was missing something like this for a long time. But the
 categorization is little bit confusing me.
 What is the difference between Libraries and Frameworks, or 
 Tools.
 Wouldn't it be better to cover some specific domains in the
 categories? Like UI widgets, RPC, security, MVP, etc ?

 Thank you again.
 Peter

 On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:

  Wow this is nice! keep it up!

  On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:

   Hi,

   I'm a huge fan of GWT and the only problem I have with it 
   is
 not
   really a problem with GWT but with the fact that there 
   isn't a
   centralized place for registering component and associated
 tools
   AFAIK.  I have created an application to do this which is
 available
athttp://gwtmarketplace.appspot.com

   This project is open-source and the project and source 
   code is
   available at:http://code.google.com/p/gwtmarketplace/.

   I encourage everyone who has a product related to GWT to
 register it
   so it easier for folks like myself to see what is 
   available and
 be
   able to comment on and rate these products.

   I would certainly appreciate if the GWT folks would link
tohttp://gwtmarketplace.appspot.comtomakeiteasierforpeopleto
   see.  Also, any feedback would certainly be appreciated.

   Thanks,

   Joe

  http://gwtmarketplace.appspot.com

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

   --
   Christian Goudreau

 --
 You received this message because you are subscribed to the Google 
 Groups
 Google Web Toolkit group.
 To post to 

Re: onModuleLoad() Before Page Load

2010-08-09 Thread Ryan McDonald
Ah, that makes more sense now, thanks. While that would work, I am
trying to avoid having to hard-code a list of id's to attach my widget
to. I would like my widget to be able to be reusable and not limited
in the way it's used. My module contains a modified DateBox widget,
and my Velocity Template creates two of them to create a date range
input field. If I hard-code the list of span id's to attach my widget
to, I would have to attach both DateBox widgets inside the Java code
and eliminate the possibility of using only one DateBox widget in a
field for just a plain date picker. If I do it in the Velocity
Template, that can deal with how I lay my widget out which is the
purpose of Velocity.

On Aug 9, 9:30 am, mooreds moor...@gmail.com wrote:
 Hi Ryan,

 I guess I wasn't clear about the span solution.

 What I mean is for the velocity template to build a span like this:
 span id=component-config
 style=display:nonecomp-111,comp-112,comp-113/span

 And then in the gwt component startup method, read the component-
 config span, split on commas, and attach components to each id found
 there (if it exists).

 Does that make a bit more sense?

 Dan

 On Aug 9, 9:56 am, Ryan McDonald ryan.mcdona...@gmail.com wrote:



  My velocity template is in charge of dynamically creating my page.
  Basically I have a Velocity macro to create two DateBox widgets so
  that a date range may be input by a user. My macro is called whenever
  I am generating a page that requires a date range input.

  For the list of span ids, that would require all my widgets to be
  added in the same span, so be in the same place in the page. My page
  needs my widgets to be able to be embedded wherever I choose. The only
  way I could think of accomplishing this was creating a GWT JSNI method
  that takes a div id string as a parameter so it knows where to attach
  my widget.
  On Aug 9, 8:18 am, mooreds moor...@gmail.com wrote:

   Hi Ryan,

   This doesn't answer your question, but I was wondering why you had the
   velocity template initiate attaching your widgets to your spans?

   Another possibility is to have velocity write a list of span ids to a
   hidden span, and then have your GWT component (in a startup module)
   read that span and attach widgets to each span in turn.  That's the
   way I do things.

   Thanks,
   Dan

   On Aug 6, 7:54 pm, Ryan McDonald ryan.mcdona...@gmail.com wrote:

To my understanding, the compiled GWT file module-name.nocache.js
blocks page evaluation when it is loading. When it finishes, it
creates a hidden iframe that begins to load the module-name.cache.js
file but it does NOT block page evaluation and loads asynchronously.

In my GWT module I define a native Javascript function using JSNI that
adds a widget to the page.

I use a Velocity Template that dynamically generates divs with unique
ids, then call my Javascript method that I defined using JSNI to
attach the widget to the specific div.

The problem is that when my page is loading, and the Velocity Template
calls my Javascript method, the hidden iframe has not finished loading
the module-name.cache.js that defines the method.

Is there a way to make the module-name.cache.js file load
synchronously so that it will block page evaluation until it finishes
loading? Or make onModuleLoad() run before the page loads completely?
Something along these lines?

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



broken image in help! Bug?

2010-08-09 Thread Sree ...
Is this a bug?? am seeing a broken image in eclipse.
Type:  final *Button* b = new Button(); and then mouseover to *Button.*

[image: broken Image.png]

-- 
-Thanks
-Srikanth.G
-Hyderabad

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

broken Image.png

Creating policy file problem

2010-08-09 Thread Michał Szczepański
Hi everyone.

I faced a problem with running gwt application using eclipse plugin.

When I try to 'Debug as -  Web Application ' it ends with exception:


Initializing AppEngine server
Unable to start embedded HTTP server
java.lang.RuntimeException: Cannot generate policy file.
at
com.google.apphosting.utils.security.SecurityManagerInstaller.install(SecurityManagerInstaller.java:
68)
at
com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:
72)
at
com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:
38)
at
com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:
79)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
at com.google.gwt.dev.DevMode.main(DevMode.java:275)
Caused by: java.io.IOException: Nazwa pliku, nazwa katalogu lub
składnia etykiety woluminu jest niepoprawna
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at java.io.File.createTempFile(File.java:1828)
at
com.google.apphosting.utils.security.SecurityManagerInstaller.generatePolicyFile(SecurityManagerInstaller.java:
115)
at
com.google.apphosting.utils.security.SecurityManagerInstaller.install(SecurityManagerInstaller.java:
66)
... 7 more

Please let me know if you ever had such a probem or know a solution to
this

Regards

Michael

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



GWT 2.1 Documention

2010-08-09 Thread tc
Does anyone know when there will be some documentation available for
GWT 2.1 even if its preliminary?  We are beginning a revamp of a
project and would like to go ahead and start out with 2.1 because the
new Data presentation widgets would be very very helpful to us.

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



Adding a GWT page to a frame

2010-08-09 Thread gwtnewbie
Hi,

I'm really new to GWT (and front-end in general) and am trying to
integrate a GWT page into an existing application done in JSP  Struts
1.  I have tried searching around but have not been able to find much
info about what I want to do.  Basically, I want to load my GWT
application/page into a frame instead of filling up the whole browser
window.  The current application has a menu tree frame on the left
hand side (menu.jsp) that loads contents into the frame on the right.
I tried creating an action that forwards to my GWT entrypoint html
using the following:

div class=leafhtml:link action=/myAction.actionLink to my GWT/
html:link/div

Clicking on the link shows a blank page, but when I look at the page
source, I do see the entrypoint html code there.  Perhaps this is not
the right direction.

It is not possible to completely rewrite the existing application in
GWT at this point, so I need to find a way to do this.  Any help is
greatly appreciated!

Thanks!
PN

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



Re: Using piriti 0.4.1

2010-08-09 Thread Deepak Singh
Hi Harald,

Thanks for your guidance.

I did all these things as stated by you. I included the jar file of totoe.
Reads xml through clientBundle. But while compiling i get the following
error

Loading inherited module 'name.pehl.piriti.Piriti'
   Loading inherited module 'com.google.gwt.inject.Inject'
  [ERROR] Unable to find 'com/google/gwt/inject/Inject.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath entry
for source?
   [ERROR] Line 8: Unexpected exception while processing element 'inherits'
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:239)
at
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:407)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:224)

So the compilation failed.

I have injected these two in .gwt.xml
inherits name=name.pehl.totoe.Totoe /
inherits name=name.pehl.piriti.Piriti /

Do i need to include anything else in the project ?

Thanks
Deepak

On Mon, Aug 9, 2010 at 7:03 PM, Harald Pehl harald.p...@googlemail.comwrote:

 Piriti relies on Totoe. Totoe is an alternative XML parser with
 namespace support. So please make sure you have the relevant JAR file
 in the classpath / eclipse project. Totoe is available under
 http://code.google.com/p/totoe/.

 Having your POJO in the shared folder is no problem. Just make sure
 the folder is included in your module definition. Having the XML in
 the shared folder seems a little bit weired to me. Normally you
 receive the XML in response to some request you made. Anyway if you
 just want to test Piritis XML mappings, you can load the XML using a
 ClientBundle:

 
 public interface FooResources extends ClientBundle
 {
FooResources INSTANCE = GWT.create(FooResources.class);

@Source(foo.xml)
public TextResource fooXml();

...
 }
 

 Make sure foo.xml is in the same package as FooResources. Then you can
 get the XML using
 FooResources.INSTANCE.fooXml().getText()

 - Harald


 On 9 Aug., 14:52, Deepak Singh deepaksingh...@gmail.com wrote:
  Any suggestion pls .
 
  On Mon, Aug 9, 2010 at 2:02 AM, Deepak Singh deepaksingh...@gmail.com
 wrote:
 
 
 
   Hi All,
 
   I am using piriti 0.4.1 for mapping XML to POJO's with gwt 2.1 m2.
   For learning purpose, i added on sample xml file to shared folder and
   created the java classes in shared folder only. But these java classes
 show
   the following error
*The type name.pehl.totoe.client.Element cannot be resolved. It is
   indirectly referenced from required .class *
   * files*
   *
   *
   I am using eclipse 3.5 and have added jar files in build path through
   eclipse.
   I don't actually know what mistake in setting up the project i am
 doing.
   I am not using maven.
 
   Pls let me know how to use piriti and is there any way to do mapping of
 xml
   to pojo.
   Is Piriti a better solution for fast result ?
 
   Thanks
   Deepak

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



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



Re: Making GWT look good...

2010-08-09 Thread Chi H
On the topic of the widget set.
 * One thing we do internally is use deferred binding on some of our
custom widgets to deal with different browsers having different levels
of functionality.  For example, in our custom styled button widget, we
use CSS3 properties (e.g.: border-radius) to render buttons on CSS3
browsers, and the CSS2 sliding doors technique (which use images for
rounded corners) to render identical looking buttons on less capable
browsers.   One advantage of using border-radius on the browsers which
support it is that you avoid aliasing when zooming in on the page.
This has been very successful for us, it should be something to
consider for new widgets where appropriate.
 * Performance is important.  Sluggish sites are not fun to use.  I
love how the GWT team is already so focused on performance, please do
not lose sight of it while you are in the process of making it look
good.



On the topic of the scaffolding app:
 * Pagination is the standard solution to the 'large number of
entities' problem.  However, there is a usability cost to pagination.
It would be really nice to get rid of the pagination and just use a
scrollbar.   If you used the approach of SlickGrid (http://
wiki.github.com/mleibman/SlickGrid/), where you only rendered what was
visible on the screen, you can render large numbers entities without
the need for pagination.
 * Alternatively, you can just provide developers with the choice
between using a scrollbar and with using pagination.  This is what we
have done internally - in practice, 80% of our crud pages are 'low
cardinality' (e.g.: 300 entities) - and we show low cardinality pages
by displaying all elements inside a standard ScrollPanel.   For extra
usability points, if you have a table, the headers should stay on
screen as you scroll the data down.
 * Assuming we stick with pagination, why are there only 8 entities on
a page?  That wastes a lot of screen real estate, there is a big blank
below.  Ideally, the list would fill all available space on the page.
That would be more difficult, but either way, but 8 is far too low if
it is going to be set to a static number.
 * When you click 'create employee' the 4 input fields for employee
creation appear below the search list.   That works well enough if
there are only 4 input fields, and 8 items on a page, as is in the
demo.  However, we had CRUD screens with 50 input fields.  We also
want to put a lot more than 8 items on a page.   So, the input fields
would need to be on their own page, replacing or overlaying the 8
entities in the list.   This is one of those things where there is no
one-size-fits all solution, but our experience is that a large number
of input fields is more common than a small number.


One last 'wishlist' point:
 * We've actually developed our own GWT-based CRUD infrastructure
recently - versioning/duditing is one of the biggest reasons we ended
up creating our own infrastructure instead of reusing an existing
one.  When an entity is created, it is created as 'v1'.   When it is
edited, we just create 'v2', mark it as current, and leave 'v1'
alone.  When the entity is deleted, we just mark it as deleted.
Because of this, in addition to just CRUD screens, we also have an
audit trail screen that lets users see all previous versions of an
entity, when each change was made, and who made each change.  And
users can then select an older version of the entity and 'revert' back
to that version.
 * Undo/redo fall nicely out of versioning as well - undoing an edit
is just reverting back to the prior version
 * We haven't yet implemented it ourselves, but 'future dated
changes' (changes that only take effect on a date in the future) and
'approved changes' (changes that must be approved by another user
before they take effect) fall nicely into that pattern as well
 * I know we aren't the only company to have to deal with this, if
GWT's built-in infrastructure had this, and did it really well, I
believe it would be a huge win in the enterprise market.
 * Even if GWT's built in infrastructure didn't have this built in,
this type of thing shows how important it is for the framework to be
easily extendable, so that developers can add this to the framework if
needed.

---
Chi Hoang


On Aug 9, 7:26 am, Chris Ramsdale cramsd...@google.com wrote:
 Thanks for all of the great feedback (and please, keep it coming). With
 these suggestions and some internal guidance, we're going to move on to
 fleshing out mocks. Once I have something tangible, I'll share it here.

 -- Chris

 On Fri, Aug 6, 2010 at 8:01 PM, martino martino.piccin...@gmail.com wrote:
  While I appreciate the richness of widgets and behaviours offered by
  framework like SmartGWT or GXT, I don't particularly like their
  windowish look and feel, also I don't think it's a particularly good
  idea promoting GWT powerfulness or web application in general by
  mimicking desktop application widgets aspect (how many useless web
  desktops simulating a windows 

Re: introducing a marketplace for GWT components associated projects

2010-08-09 Thread Joe Hudson
Hi Christian,

this problem is resolved now - I've also added a link to the front
page to add feature request or bugs.  Thanks for the feedback.

Joe

On Aug 9, 12:29 pm, Joe Hudson joe...@gmail.com wrote:
 Thanks Christian,

 When I get home tonight I'll take a look and fix the problem.

 Joe

 On Aug 9, 10:38 am, Christian Goudreau goudreau.christ...@gmail.com
 wrote:

  I'm not able to edit anymore, I wanted to change ArcBees category and it
  didn't work.

  Anyway, nice job and if your thinking about swtiching toGwt-Platform, let
  me know :D

  Cheers,

  On Mon, Aug 9, 2010 at 10:32 AM, Joe Hudson joe...@gmail.com wrote:
   FYI, I'll be happy to make any changes the community wants - I just
   want an easier place for developers to find what they need becauseGWT
   is definitely the way to go in terms of web application development.

   If anyone has any categories or other requests, please add them here
   so you can make sure that I see them (this is the google code issues
   browser) - however I do appreciate the additional postings to theGWT
   group so hopefully more developers will be aware of it.

  http://code.google.com/p/gwtmarketplace/issues/list

   Thanks,

   Joe

   On Aug 8, 7:21 pm, Mikael Couzic mikaelcou...@gmail.com wrote:
I'd like to register a project I've contributed to :GWT-OpenLayers
It's a JSNI wrapper for OpenLayers, which is a web mapping JS library.
I was wondering if a JS Wrappers category would be a good idea.

On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com
wrote:

 I registeredGwt-Platform and our next project, our consultant firm.
   You
 should add a category more specific for team of individuals that want
   to
 offer support or consulting services forGwt.

 Great app ! Did you useGwt-Platform ? :)

 Cheers,

 On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote:
  Thanks for the feedback Peter.

  I've made changes to the categories that you suggested.  That
  definitely seems to make more sense.

  Joe

  On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote:
   Great idea Joe,

   I was missing something like this for a long time. But the
   categorization is little bit confusing me.
   What is the difference between Libraries and Frameworks, or Tools.
   Wouldn't it be better to cover some specific domains in the
   categories? Like UI widgets, RPC, security, MVP, etc ?

   Thank you again.
   Peter

   On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote:

Wow this is nice! keep it up!

On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote:

 Hi,

 I'm a huge fan ofGWTand the only problem I have with it is
   not
 really a problem withGWTbut with the fact that there isn't a
 centralized place for registering component and associated
   tools
 AFAIK.  I have created an application to do this which is
   available
  athttp://gwtmarketplace.appspot.com

 This project is open-source and the project and source code is
 available at:http://code.google.com/p/gwtmarketplace/.

 I encourage everyone who has a product related toGWTto
   register it
 so it easier for folks like myself to see what is available 
 and
   be
 able to comment on and rate these products.

 I would certainly appreciate if theGWTfolks would link
  tohttp://gwtmarketplace.appspot.comtomakeiteasierforpeopleto
 see.  Also, any feedback would certainly be appreciated.

 Thanks,

 Joe

http://gwtmarketplace.appspot.com

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

 --
 Christian Goudreau

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

  --
  Christian Goudreauwww.arcbees.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 

Re: Making GWT look good...

2010-08-09 Thread marius.andreiana
Hi Chi,

On Aug 9, 10:23 pm, Chi H c...@chi.ca wrote:
  * Pagination is the standard solution to the 'large number of
 entities' problem.  However, there is a usability cost to pagination.
 It would be really nice to get rid of the pagination and just use a
 scrollbar.   If you used the approach of SlickGrid (http://
 wiki.github.com/mleibman/SlickGrid/), where you only rendered what was
 visible on the screen, you can render large numbers entities without
 the need for pagination.

How will search engines index all the content in this case?

The SlickGrid widget doesn't work at all if JS is not enabled.

Thanks

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



Does Timer class only last one session + images as an attachment in an email

2010-08-09 Thread GKotta
Hi,

I need to find a way to delete some images in the database after two
months. I thought of using the timer class, but I think it only lasts
one session. Does anyone know how I could do this?

Also, I need to email those images out before I delete them. How would
I send those images as an attachment?

Thanks!

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



Re: Does Timer class only last one session + images as an attachment in an email

2010-08-09 Thread André Moraes
Looks like you need a cron job at your server.

The timer class is a client side thing and will live only until your user
close the page.

If your images are bound to a give user, you can check when that user log-in
into your site if the have images to be deleted.

The cron approach scales better because your can make it run on periods when
the access to your app is smaller.

Also try to avoid sending too much e-mails in small space of time, this
behavior can be saw as spam by some filters.

hope it helps.

On Mon, Aug 9, 2010 at 5:53 PM, GKotta guruko...@gmail.com wrote:

 Hi,

 I need to find a way to delete some images in the database after two
 months. I thought of using the timer class, but I think it only lasts
 one session. Does anyone know how I could do this?

 Also, I need to email those images out before I delete them. How would
 I send those images as an attachment?

 Thanks!

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




-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



Re: Does Timer class only last one session + images as an attachment in an email

2010-08-09 Thread mikedshaf...@gmail.com
Here's how I'd do it...and it has nothing to do with GWT.  You server
side impl class is just a java servlet with a bunch of methods
(assuming here...).  At the beginning of each method, add a call to
another method, call it checkAndDeleteImages()..  Inside that guy, go
to your database with today's date and query all images that have a
creation date (or something similar) of today - 2 months.  Get those
images (blobs?, strings?, what?) and fire up good old javamail
(javax.mail.Message in particular), create a message (probably
MimeMultipart if I remember correctly for the attachment), point it at
a valid SMTP server and send.  When complete, delete the images.

Add this method call to every server side method callsometimes
you'll check seconds after checking...if that's oppressive, create a
stateful bean on your app server with the timer.

Don't try to do this in your client code...you'll go nuts and cause
yourself a bunch of head aches, in my opinion.

Later,

Shaffer

On Aug 9, 2:53 pm, GKotta guruko...@gmail.com wrote:
 Hi,

 I need to find a way to delete some images in the database after two
 months. I thought of using the timer class, but I think it only lasts
 one session. Does anyone know how I could do this?

 Also, I need to email those images out before I delete them. How would
 I send those images as an attachment?

 Thanks!

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



Unmatched /embed encountered. in script from dev mode

2010-08-09 Thread Shawn Brown
Hi,


**[safari plugin seems broken]**

In Dev mode when accessing my page, I immdiately see

 [The HTML that caused this error was generated by a script.]
Unmatched /embed encountered.  Ignoring tag.

Then inexplicably, I see .gif files not being resolved.  They are
there when deployed and I can actually see them resolved in dev mode
by looking at Safari's dev tools.  They only appear in the dev tools
though and show a error in console and do not appear on the actual
page.

**[firefox is ok]**
**[deployed is ok]**

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



Re: Does Timer class only last one session + images as an attachment in an email

2010-08-09 Thread André Moraes
Shaffer,

This approach is a little overhead in the maintainability of the code (and
in the methods too, since every server call will make a extra call to the
database).

GKotta

To avoid access to images that is in the database but the 2 month time has
expired, you can make the check only in the methods that access the images
in the database (if using hibernate this can be an interceptor).

This will introduce overhead, but only when images are needed.

If you cannot add a cron job at your server, create an speciall url that
requires a custom login/password and when that url is accessed you run the
code that removes the images from the database. If possible use SSL in this
part of the site and don't send the username/password in the query string,
use the HTTP POST METHOD.

Then you can make a cron job in your computer (home or job) and create a
simple wget script that access that special url. This isn't the best
solution, but works when you don't have admin access to cron jobs in the
production server.

-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



Re: Incubator - GWTCanvas problems with image loading

2010-08-09 Thread kstokes
Hi Aditya,
   Well I have two apps, once is an App Engine variant, and they are a
little different in their response, although neither will display the
image.

   My App Engine version (when running in hosted mode) displays in red
on the console that two files can't be found:

Aug 9, 2010 10:13:51 PM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /favicon.ico

Aug 9, 2010 10:17:54 PM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /mywebapp/GoogleCode.png

The hosted mode of the non-App Engine version types out some kind of
information that looks like header info or request info, but no paths
or filenames.

In the browser, the image just doesn't show up,  ( unless I use a full
URL, that is. )

-Kevin


On Aug 9, 5:23 am, aditya sanas 007aditya.b...@gmail.com wrote:
 do you get any error message while doing this...?
 probably that might help you to track exactly where it is searching
 for googlecode.png.

 --
 Aditya



 On Mon, Aug 9, 2010 at 2:44 PM, kstokes dada...@gmail.com wrote:
   I'm using Eclipse on Windows.

   I have added a GWTCanvas to the demo app and am trying to load an
  image and display it with code which is
  omething like this:

 http://code.google.com/p/google-web-toolkit-incubator/wiki/ImageLoader

  My problem is that the image only loads and displays if I have a
  complete URL like

  //                  String[] imageUrls = new String[] {
 http://www.knivesplus.com/
  media/SC-104OT.jpg};  /* This works fine */
                     String[] imageUrls = new String[]
  {images/GoogleCode.png};  /*
  This does not work. */

  However, I have created an 'images' folder in my  war folder in
  Eclipse, and the following image in the HTML displays just fine:
    img src=images/GoogleCode.pngimg

   I don't understand why the app has no problem reading the image from
  the relative path when displaying the HTML, but cannot find the image
  using the ImageLoader class.

   What can I do so that I can add images to my eclipse project which I
  can then use with GWTCanvas?

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

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



Re: GWT Developer Plugin problem: Mandriva 64-bit, Firefox

2010-08-09 Thread Chris Conroy
Which version of Firefox are you using?

On Sat, Aug 7, 2010 at 2:55 PM, Paul Gestwicki paul.gestwi...@gmail.comwrote:

 I followed the discussion at

 http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9e0c72621846bb45/6be4f19213378cf6
 ,
 but making symlinks to libnspr4.so did not work for me on Mandriva 64-
 bit, with Firefox.

 One difference on Mandriva is that libnspr4.so was in /lib64, not /usr/
 lib64. I tried making links to it as libnspr4.so and libnspr4.so.0d
 in /lib, /lib64, /usr/lib, and /usr/lib64, but nothing changed the
 observed behavior: firefox keeps claiming that it needs the plugin
 each time I try to visit
 http://127.0.0.1:/MyApp.html?gwt.codesvr=127.0.0.1:9997.

 Anyone have any luck getting a Mandriva set-up working? I'm using
 2010.1, in case that is significant. I have tried Firefox both from
 rpm and downloaded directly from Mozilla, with no observable
 difference.

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




-- 
Chris Conroy
Software Engineer
Google, Atlanta

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



execute the loading method of multiple GUI components at one time

2010-08-09 Thread Leung
Hi,

I have serveral GUI components that loads and displays user specific info after 
the user has logged-in. All these components have a method called initAuthGUI. 
Then, finally I may have many widgets and subpanels. 

1 I would like to call the initAuthGUI() method once and the call will 
proporgate down the tree recursively.
2 I would like no widget without containing the method initAuthGUI should be 
added to any panel.

What is the best way to implement these goals?

public UpperPanel() extends VerticalPanel
{
--
public initAuthGUI()
{
subpanel1.initAuthGUI()
subpanel2.initAuthGUI()
subpanel3.initAuthGUI()

}
}

public SubPanel1() extends HorizontalPanel
{
--
Widget widget1.

initAuthGUI()
{
for(k=0;kthis.getWdigetCount()l++)
{
this.widget[k].initAuthGUI();
}
}
--
}

Thanks
Ming


  

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



Re: RegEx

2010-08-09 Thread hazy1
This sounds like a great idea.

Matt

On Aug 9, 6:10 am, Dunlord esque...@gmail.com wrote:
 For a Open Source project I'm working on I needed the
 java.util.regex.Matcher (and so the java.util.regex.Pattern) classes,
 in the client side. They are not in the GWT JRE emulation library, but
 the source code for both classes are published by SUN (I'm not sure if
 under the GPL).

 So I copy-pasted the source code of both clases (and a bunch of clases
 they needed), cleaned them to work in gwt's client side and it all
 worked wonderfully.

 The question is: SUN's JRE source code licensing allows me to do this
 and publish it? And under which license? And as a bonus: What I'm
 allowed to do with it (or not allowed to do)?

 Thankyou

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



Re: Incubator - GWTCanvas problems with image loading

2010-08-09 Thread Gal Dolber
try this:
 String[] imageUrls = new String[] {GWT.getHostPageBaseURL()
+ images/GoogleCode.png};

2010/8/9 kstokes dada...@gmail.com

 Hi Aditya,
   Well I have two apps, once is an App Engine variant, and they are a
 little different in their response, although neither will display the
 image.

   My App Engine version (when running in hosted mode) displays in red
 on the console that two files can't be found:

 Aug 9, 2010 10:13:51 PM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /favicon.ico

 Aug 9, 2010 10:17:54 PM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /mywebapp/GoogleCode.png

 The hosted mode of the non-App Engine version types out some kind of
 information that looks like header info or request info, but no paths
 or filenames.

 In the browser, the image just doesn't show up,  ( unless I use a full
 URL, that is. )

 -Kevin


 On Aug 9, 5:23 am, aditya sanas 007aditya.b...@gmail.com wrote:
  do you get any error message while doing this...?
  probably that might help you to track exactly where it is searching
  for googlecode.png.
 
  --
  Aditya
 
 
 
  On Mon, Aug 9, 2010 at 2:44 PM, kstokes dada...@gmail.com wrote:
I'm using Eclipse on Windows.
 
I have added a GWTCanvas to the demo app and am trying to load an
   image and display it with code which is
   omething like this:
 
  http://code.google.com/p/google-web-toolkit-incubator/wiki/ImageLoader
 
   My problem is that the image only loads and displays if I have a
   complete URL like
 
   //  String[] imageUrls = new String[] {
  http://www.knivesplus.com/
   media/SC-104OT.jpg};  /* This works fine */
  String[] imageUrls = new String[]
   {images/GoogleCode.png};  /*
   This does not work. */
 
   However, I have created an 'images' folder in my  war folder in
   Eclipse, and the following image in the HTML displays just fine:
 img src=images/GoogleCode.pngimg
 
I don't understand why the app has no problem reading the image from
   the relative path when displaying the HTML, but cannot find the image
   using the ImageLoader class.
 
What can I do so that I can add images to my eclipse project which I
   can then use with GWTCanvas?
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



help with css bundles and background image sprites

2010-08-09 Thread Joe Hudson
Hi,

I'm trying to use a css bundle with a background image reference and I
am getting an error in the Development Mode Eclipse view:  Fix by
adding String accessor method(s) to the CssResource interface for
obfuscated classes, or using an @external declaration for unobfuscated
classes.

When I add an @external at-rule I no longer receive the error but the
background image doesn't show up.  More specifically, I do see all
other css attributes when inspecting the DOM but just not the
background-image attribute.

Here is my code (snipped for readability)

--- CSS file
@sprite .error {
  gwt-image: 'error';
}

.errorMessage {
background-color: #FEEFB3;
gwt-image: 'warn';
}


-- Client Bundle
public interface MessagePanelClientBundle extends ClientBundle {

@Source(message-panel.css)
MessagePanelCSS css();

@Source(error.png)
ImageResource error();
}

-- Css Bundle
public interface MessagePanelCSS extends CssResource {

String errorMessage();
}


Does anyone have any ideas as to why this might happen?  Any help
would be appreciated.  Thanks.

Joe

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



  1   2   >