Re: How to add hover on CellList

2011-08-04 Thread Sébastien Tromp
You may take a look here too:
https://groups.google.com/d/topic/google-web-toolkit/kXLuKRN6Co0/discussion
-- 
Sébastien Tromp

2011/8/3 Jeff Larsen larse...@gmail.com

 sink the mouseover event on your cell and add a handler for mouseover and
 open up a popup panel with the required functionality

 if you just want the alt text, you could set the alt text on the content of
 the cell.

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

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


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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alexander Orlov
On Thursday, August 4, 2011 5:57:23 AM UTC+2, Nick Hristov wrote:

 If I am understanding you correctly, you want to have the server 
 generate some html page content and the the embedded gwt module will 


A server-side approach that generates static snapshots of every — in a 
certain way annotated — state is a possible solution.

But there could be also a compile time approach. That is,* during compile 
time the appropriate static snapshots could be generated* to represent a 
certain state of the app pre-filled with certain default values. This would 
be even a more elegant solution as the server don't need to be bothered with 
this stuff in the future.

Hope to read something from the core devs... :)

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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread Eugen Paraschiv
This is a critical problem - the plugin simply removes the .svn directories, 
completely messing up the entire workspace - everything below webapp is now 
unversioned and shown to be committed. Is there any feedback on this? 
Thanks. 

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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread Michael Vogt
Hello

 This is a critical problem - the plugin simply removes the .svn directories,
 completely messing up the entire workspace - everything below webapp is now
 unversioned and shown to be committed. Is there any feedback on this?

Do you mean that when you compile your application, everything inside
the module folder is replaced? We solve this with the additional
compiler argument '-war foldername'. That way the compiled files are
saved in the specified folder.

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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread Eugen Paraschiv
Something like that, yes.
Where should the '-war foldername' be specified?
I do indeed have it active on my run configurations, but the actual Eclipse
builder that's running in the background is the one that is likely
responsible with the removal of the svn dirs. I also have the war directory
correctly specified in the properties of the project, under Google - Web
Application, but when configuring a new Eclipse workspace, that option may
very well be configured minutes later, when the Eclipse builder may already
have removed the svn directories (which is what just happened to me). What
I'm not clear about is what does the plugin have to do with the svn
directories? Why does it touch these directories in the first place?
Thank you for the help and the quick response.
Eugen.

On Thu, Aug 4, 2011 at 11:31 AM, Michael Vogt vmei...@googlemail.comwrote:

 Hello

  This is a critical problem - the plugin simply removes the .svn
 directories,
  completely messing up the entire workspace - everything below webapp is
 now
  unversioned and shown to be committed. Is there any feedback on this?
 
 Do you mean that when you compile your application, everything inside
 the module folder is replaced? We solve this with the additional
 compiler argument '-war foldername'. That way the compiled files are
 saved in the specified folder.

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



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



Re: IE8 - Not working - Mouse event for ListBox

2011-08-04 Thread Ash
Guyzz any help??

Thanks,
-ash

On Aug 3, 5:54 pm, Ash ashly@gmail.com wrote:
 Hi,

 I'm using a list box which has many URLs for image. When someone move
 the mouse through the drop down values, I need to show the image in an
 HTML box. This works fine (MouseMove) in Firefox, but does not work in
 IE8.

 The below code represents the test case, and none of them gets
 called / fired in IE8.

 Can someone please help me to sort this out. I'm using GWT 2.0.3.

             ListBox listItem = new ListBox();
             listItem.addMouseMoveHandler(new HandlesAllMouseEvents() {

             public void onMouseDown(MouseDownEvent event) {
                 Window.alert(On Mouse down...);
             }

             public void onMouseUp(MouseUpEvent event) {
                 Window.alert(On mouse up...);
             }

             public void onMouseMove(MouseMoveEvent event) {
                 Window.alert(On mouse move...);
             }

             public void onMouseOut(MouseOutEvent event) {
                 Window.alert(On mouse out...);
             }

             public void onMouseOver(MouseOverEvent event) {
                 Window.alert(on mouse over...);
             }

             public void onMouseWheel(MouseWheelEvent event) {
                 Window.alert(on mouse wheeel);
             }
         });

 Thanks,
 -ash

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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread l.denardo
Are you using GWT in an Eclipse Web project?
If so you must *closely* follow the directions here:

http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee

This means you must:
*Turn off the deploy from this directory option
*Point the -war directory for your devmode to the *temporary* server
directory used by eclipse.

Then when you compile Eclipse will ask you where your real war
directory is and compile into it.

If you use your real war directory with the plugin in a web project,
any time you start GWT devmode your war directory will be cleared and
gwt plugin will recreate it without hidden directories like the .svn.
I had the same issue and solved it by pointing the devmode war
directory as stated in the faq linked above.

Also be careful that the -war option for devmode will be resetted when
you upgrade your plugin, so you'll have to correct it by hand.

Hope this can be helpful.
Regards
Lorenzo

On Aug 4, 10:47 am, Eugen Paraschiv hanrisel...@gmail.com wrote:
 Something like that, yes.
 Where should the '-war foldername' be specified?
 I do indeed have it active on my run configurations, but the actual Eclipse
 builder that's running in the background is the one that is likely
 responsible with the removal of the svn dirs. I also have the war directory
 correctly specified in the properties of the project, under Google - Web
 Application, but when configuring a new Eclipse workspace, that option may
 very well be configured minutes later, when the Eclipse builder may already
 have removed the svn directories (which is what just happened to me). What
 I'm not clear about is what does the plugin have to do with the svn
 directories? Why does it touch these directories in the first place?
 Thank you for the help and the quick response.
 Eugen.

 On Thu, Aug 4, 2011 at 11:31 AM, Michael Vogt vmei...@googlemail.comwrote:







  Hello

   This is a critical problem - the plugin simply removes the .svn
  directories,
   completely messing up the entire workspace - everything below webapp is
  now
   unversioned and shown to be committed. Is there any feedback on this?

  Do you mean that when you compile your application, everything inside
  the module folder is replaced? We solve this with the additional
  compiler argument '-war foldername'. That way the compiled files are
  saved in the specified folder.

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

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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread Michael Vogt
 Something like that, yes.
 Where should the '-war foldername' be specified?

When you click the red folder button in the toolbar of eclipse to
compile a project, you find an advanced area in the dialog that is
shown. There you have the additional compiler argument area to add the
-war switch.

 I do indeed have it active on my run configurations, but the actual Eclipse
 builder that's running in the background is the one that is likely
 responsible with the removal of the svn dirs. I also have the war directory
 correctly specified in the properties of the project, under Google - Web
 Application, but when configuring a new Eclipse workspace, that option may
 very well be configured minutes later, when the Eclipse builder may already
 have removed the svn directories (which is what just happened to me). What
 I'm not clear about is what does the plugin have to do with the svn
 directories? Why does it touch these directories in the first place?

Sorry, can't help here, since I have not seen this problem in my
projects (which are also store in svn.


 Thank you for the help and the quick response.

You're welcome.


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



Re: Using PHP as a server side scripting language with GWT.

2011-08-04 Thread Jambi
Hey Vikas,

using PHP is no problem. But you won´t be able to use GWT-RPC. You
have to use a JSON interface instead.

check out this doc: 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/tutorial/JSONphp.html

On 3 Aug., 14:12, Vikas Thapliyal vikas...@gmail.com wrote:
 Hi,

 We have a PHP web site using Apache web server.
 I want to use GWT in this site.

 Can I use GWT as UI components and still use PHP as my server side
 scripting language or I have to shift to Java (for server side
 programming) to listen events from GWT conponents.?

 Any other problem that can be forseen with my approach.

 Thanks in advance.
 Vikas Thapliyal

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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Jambi
 But there could be also a compile time approach. That is,* during compile
 time the appropriate static snapshots could be generated* to represent a
 certain state of the app pre-filled with certain default values. This would
 be even a more elegant solution as the server don't need to be bothered with
 this stuff in the future.

I don´t think this is a good idea. The dynamic content, that should be
crawlable, doesn´t exist at compile time.

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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alexander Orlov
On Thu, Aug 4, 2011 at 11:27 AM, Jambi michael.lukaszc...@googlemail.comwrote:

 I don´t think this is a good idea. The dynamic content, that should be
 crawlable, doesn´t exist at compile time.


What I mean is that you should be able to annotate static parts of your
app that might be relevant for crawlers and put default values where your
dynamic parts are. These default values could simply state USERNAME, DATE,
CURRENT BALANCE. So the crawler could get a better context of the static
parts of your app, actually a page in this case.

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



Re: EventBus in 2.4

2011-08-04 Thread will0
I've filed an issue. 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6653

Should be an easy fix - just changing the import in Activity would do it I 
imagine.

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



Re: GWT Project Backup

2011-08-04 Thread Ed
Copy your wor4kspace.

On Wed, Aug 3, 2011 at 4:13 AM, Matin Rahman matin...@gmail.com wrote:
 How can i take GWT Project Backup from IDE(eclips).

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



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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread Eugen Paraschiv
That makes sense, thanks. I will put the suggested best practice
into...practice.
However, should the compilation process be a little smarter, perhaps
clearing out the directories it knows it created itself, and not the entire
war directory? If this were the case, then the module directories would be
cleared (which is fine, they don't have .svn anyways) but the rest of the
files will be ignored, because they're not generated files in the first
place. Also, a complicated setup with 2 war directories wouldn't be
necessary.
Again, thanks for the help and the quick response.
Eugen.

On Thu, Aug 4, 2011 at 12:06 PM, l.denardo lorenzo.dena...@gmail.comwrote:

 Are you using GWT in an Eclipse Web project?
 If so you must *closely* follow the directions here:

 http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee

 This means you must:
 *Turn off the deploy from this directory option
 *Point the -war directory for your devmode to the *temporary* server
 directory used by eclipse.

 Then when you compile Eclipse will ask you where your real war
 directory is and compile into it.

 If you use your real war directory with the plugin in a web project,
 any time you start GWT devmode your war directory will be cleared and
 gwt plugin will recreate it without hidden directories like the .svn.
 I had the same issue and solved it by pointing the devmode war
 directory as stated in the faq linked above.

 Also be careful that the -war option for devmode will be resetted when
 you upgrade your plugin, so you'll have to correct it by hand.

 Hope this can be helpful.
 Regards
 Lorenzo

 On Aug 4, 10:47 am, Eugen Paraschiv hanrisel...@gmail.com wrote:
  Something like that, yes.
  Where should the '-war foldername' be specified?
  I do indeed have it active on my run configurations, but the actual
 Eclipse
  builder that's running in the background is the one that is likely
  responsible with the removal of the svn dirs. I also have the war
 directory
  correctly specified in the properties of the project, under Google - Web
  Application, but when configuring a new Eclipse workspace, that option
 may
  very well be configured minutes later, when the Eclipse builder may
 already
  have removed the svn directories (which is what just happened to me).
 What
  I'm not clear about is what does the plugin have to do with the svn
  directories? Why does it touch these directories in the first place?
  Thank you for the help and the quick response.
  Eugen.
 
  On Thu, Aug 4, 2011 at 11:31 AM, Michael Vogt vmei...@googlemail.com
 wrote:
 
 
 
 
 
 
 
   Hello
 
This is a critical problem - the plugin simply removes the .svn
   directories,
completely messing up the entire workspace - everything below webapp
 is
   now
unversioned and shown to be committed. Is there any feedback on this?
 
   Do you mean that when you compile your application, everything inside
   the module folder is replaced? We solve this with the additional
   compiler argument '-war foldername'. That way the compiled files are
   saved in the specified folder.
 
   Hope I understood you correctly,
   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-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread Eugen Paraschiv
About the war option, I am using it, only I was pointing it to my actual war
directory and not a temporary one.
Thanks for the help.
Eugen.

On Thu, Aug 4, 2011 at 12:12 PM, Michael Vogt vmei...@googlemail.comwrote:

  Something like that, yes.
  Where should the '-war foldername' be specified?
 
 When you click the red folder button in the toolbar of eclipse to
 compile a project, you find an advanced area in the dialog that is
 shown. There you have the additional compiler argument area to add the
 -war switch.

  I do indeed have it active on my run configurations, but the actual
 Eclipse
  builder that's running in the background is the one that is likely
  responsible with the removal of the svn dirs. I also have the war
 directory
  correctly specified in the properties of the project, under Google - Web
  Application, but when configuring a new Eclipse workspace, that option
 may
  very well be configured minutes later, when the Eclipse builder may
 already
  have removed the svn directories (which is what just happened to me).
 What
  I'm not clear about is what does the plugin have to do with the svn
  directories? Why does it touch these directories in the first place?
 
 Sorry, can't help here, since I have not seen this problem in my
 projects (which are also store in svn.


  Thank you for the help and the quick response.
 
 You're welcome.


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



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



Re: google plugin/build deletes .svn directory in src/main/webapp

2011-08-04 Thread l.denardo
I'm glad to hear it helped.
I agree having this setup is a bit cumbersome and the whole process
could be smarter.

Anyway it looks like it's just devMode behavior, and I'm happy to have
a complete development environment despite these little quirks.
I think an update to documentation to better explain WHY you should
not point your war directory to the actual war, and a better evidence
of the correct setting in the guide, should be the optimum solution.

Regards
Lorenzo

On Aug 4, 12:57 pm, Eugen Paraschiv hanrisel...@gmail.com wrote:
 About the war option, I am using it, only I was pointing it to my actual war
 directory and not a temporary one.
 Thanks for the help.
 Eugen.

 On Thu, Aug 4, 2011 at 12:12 PM, Michael Vogt vmei...@googlemail.comwrote:







   Something like that, yes.
   Where should the '-war foldername' be specified?

  When you click the red folder button in the toolbar of eclipse to
  compile a project, you find an advanced area in the dialog that is
  shown. There you have the additional compiler argument area to add the
  -war switch.

   I do indeed have it active on my run configurations, but the actual
  Eclipse
   builder that's running in the background is the one that is likely
   responsible with the removal of the svn dirs. I also have the war
  directory
   correctly specified in the properties of the project, under Google - Web
   Application, but when configuring a new Eclipse workspace, that option
  may
   very well be configured minutes later, when the Eclipse builder may
  already
   have removed the svn directories (which is what just happened to me).
  What
   I'm not clear about is what does the plugin have to do with the svn
   directories? Why does it touch these directories in the first place?

  Sorry, can't help here, since I have not seen this problem in my
  projects (which are also store in svn.

   Thank you for the help and the quick response.

  You're welcome.

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

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



Flextable, Rowspan best practices

2011-08-04 Thread P.G.Taboada
Hi,

I am fighting flex table and rowspan. I am using a table to render 15
min timeslots for a calendar. Then I load the appointments and place
them into the right timeslots, with the rowspan according to the
duration of the appointment.

When I add the appointment rowspan I do delete the slots below.

My appointments are sorted by date, so I am adding them col by col.

It is a big difference if I first remove the time slots below, or if I
first add the appointments. Neither way I get the table right.

I am sure this is nothing new and maybe someone already has compiled a
list of tips for the flex table.

Would be nice.

brgds,

Papick

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



Re: Flextable, Rowspan best practices

2011-08-04 Thread Paul Robinson

Sounds like that approach will be really messy. When you add a new appointment, 
you will have to work out what row to put it in according to what other 
appointments there are, and their duration. Also, consider whether you will 
ever want to have multiple appointments at the same time, and how that might 
work.

Why not use an absolute panel, and then you can place divs exactly where you 
want them and give them the size they should have. Also, it would then be more 
natural to set up drag and drop to create/move/resize appointments.

HTH
Paul

On 04/08/11 12:13, P.G.Taboada wrote:

Hi,

I am fighting flex table and rowspan. I am using a table to render 15
min timeslots for a calendar. Then I load the appointments and place
them into the right timeslots, with the rowspan according to the
duration of the appointment.

When I add the appointment rowspan I do delete the slots below.

My appointments are sorted by date, so I am adding them col by col.

It is a big difference if I first remove the time slots below, or if I
first add the appointments. Neither way I get the table right.

I am sure this is nothing new and maybe someone already has compiled a
list of tips for the flex table.

Would be nice.

brgds,

Papick



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



Re: GWT Project Backup

2011-08-04 Thread Alan Chaney
Another option is to right-click the project in the package explorer, 
select Export... and then Archive File and create a zip or tar.gz 
backup. This gives you a project archive which can be imported into 
another workspace. Its likely to be much quicker than copying the whole 
workspace.


Alan


On 8/4/2011 3:32 AM, Ed wrote:

Copy your wor4kspace.

On Wed, Aug 3, 2011 at 4:13 AM, Matin Rahmanmatin...@gmail.com  wrote:

How can i take GWT Project Backup from IDE(eclips).

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




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



Re: Problems with my first application

2011-08-04 Thread Juan Pablo Gardella
Its a classpath issue:

[ERROR] Line 97: ConstraintViolation cannot be resolved to a
type

Add the javax.validation
jarhttp://mvnrepository.com/artifact/javax.validation/validation-api/1.0.0.GA
(jsr303)
and some 
implementationhttp://stackoverflow.com/questions/1384968/is-there-an-implementation-of-jsr-303-bean-validation-available
.

Juan

2011/8/3 Apocalypto lmelon...@gmail.com

 Hello GWT world, I'm a student who is trying to learn how to develop
 with GWT framework. I already know well Java language but I'm stuck
 with my first application: it's a simple log in interface which stores
 user data into cookies, but I can't understand why it doesn't work
 properly.

 MainEntryPoint

private GWTLogInServiceAsync logInService =
 GWT.create(GWTLogInService.class);
private GWTDeBugServiceAsync deBugService =
 GWT.create(GWTDeBugService.class);
private String dataBaseString;
 ...
logInButton.addClickHandler(new ClickHandler() {

public void onClick(ClickEvent event) {
dataBaseString = null;

logInService.logIn(userNameTextBox.getText(),
 passWordTextBox.getText(), new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
Window.alert(Log in failed!);
}

@Override
public void onSuccess(String result) {
dataBaseString = result;
}
});

deBugService.outPut(2) DataBase:  +
 dataBaseString, new AsyncCallbackVoid() {

public void onFailure(Throwable caught) {
}

public void onSuccess(Void result) {
}
});

if (dataBaseString != null) {
logIn(userNameTextBox.getText(),
 dataBaseString);
}
}
});
 ...
private void logIn(String userName, String dataBase) {
Cookies.setCookie(userName, userName);
Cookies.setCookie(dataBase, dataBase);

Location.reload();
}



 GWTLogInServiceImpl

 public String logIn(String userName, String passWord) {
String dataBase = null;

try {
Class.forName(org.postgresql.Driver);

Connection connection =
 DriverManager.getConnection(jdbc:postgresql://localhost:5432/User
 DataBase, postGreSQLUserName, postGreSQLPassWord);

String query = SELECT \DataBase\ FROM \User\ WHERE
 \Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + ';

ResultSet resultSet =
 connection.createStatement().executeQuery(query);

if (resultSet.next()) {
dataBase = resultSet.getString(DataBase);
}
} catch (Exception exception) {
exception.printStackTrace();
}

System.out.println(1) DataBase:  + dataBase);

return dataBase;
}



 GWTDeBugServiceImpl

public void outPut(String string) {
System.out.println(string);
}



 I get the following output:
 2) DataBase: null
 1) DataBase: dataBaseName

 Why does it execute GWTDeBugService before GWTLogInService? I'm using
 NetBeans 6.9.1 with the latest GWT framework and GWT4NB plugin.
 In addition, during compilation I get the following errors:
 Validating newly compiled units
  [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
 user.jar!/com/google/gwt/editor/client/EditorDriver.java'
 [ERROR] Line 20: The import
 javax.validation.ConstraintViolation cannot be resolved
 [ERROR] Line 97: ConstraintViolation cannot be resolved to a
 type
  [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
 user.jar!/com/google/gwt/editor/client/impl/
 AbstractSimpleBeanEditorDriver.java'
 [ERROR] Line 28: Name clash: The method
 setConstraintViolations(IterableConstraintViolation?) of type
 BaseEditorDriverT,E has the same erasure as
 setConstraintViolations(IterableConstraintViolation?) of type
 EditorDriverT but does not override it
  [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
 user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
 [ERROR] Line 31: The import
 javax.validation.ConstraintViolation cannot be resolved
 [ERROR] Line 67: ConstraintViolation cannot be resolved to a
 type
  [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
 user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
 [ERROR] Line 25: The import
 javax.validation.ConstraintViolation cannot be resolved
 [ERROR] Line 40: ConstraintViolation cannot be resolved to a
 type
 [ERROR] Line 43: ConstraintViolation cannot be resolved to a
 type
 [ERROR] Line 44: Missing code implementation in the compiler
 [ERROR] Line 

Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Juan Pablo Gardella
Any gwt team member?

2011/8/4 Alexander Orlov alexander.or...@loxal.net

 On Thu, Aug 4, 2011 at 11:27 AM, Jambi 
 michael.lukaszc...@googlemail.comwrote:

 I don´t think this is a good idea. The dynamic content, that should be
 crawlable, doesn´t exist at compile time.


 What I mean is that you should be able to annotate static parts of your
 app that might be relevant for crawlers and put default values where your
 dynamic parts are. These default values could simply state USERNAME, DATE,
 CURRENT BALANCE. So the crawler could get a better context of the static
 parts of your app, actually a page in this case.

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


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



Re: UiBinder.useSafeHtmlTemplates

2011-08-04 Thread Brian Reilly
Put the line to set the configuration property after 
inheriting com.google.gwt.uibinder.UiBinder, which you're probably 
inheriting indirectly by way of com.google.gwt.user.User.

-- Brian

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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alex Dobjanschi
http://code.google.com/web/ajaxcrawling/docs/getting-started.html

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



TreeItem child widgets do not have onAttach called

2011-08-04 Thread lkcl
folks hi,

this is luke, the lead developer of the python port of GWT.  we
regularly track the GWT source code, to the point of having 3
different semi-automated java-to-python converters of varying levels
of sophistication, and the reason for doing that is to save vast
amounts of time and resources, because the GWT source code is much
more tested.

_very_ occasionally we find a bug in GWT which has been transferred -
verbatim - from the direct translation to python.  it would be very
good, therefore, to have peoples' input on this issue, and to have a
discussion of this bug which could affect users of both GWT and
pyjamas.

the issue is this: a user has created a Tree and has placed TreeItems
in it, and then attached a CheckBox onto the TreeItem.  the problem is
that in these CheckBoxes, no onClicks or any other kind of event
handling occur, period.

now, i'm dead impressed that this new pyjamas developer then went and
delved into the pyjs ui source code and found the problem _and_
created a fix:
http://code.google.com/p/pyjamas/issues/?id=638

diff --git a/library/gwt/ui/TreeItem.py b/library/gwt/ui/TreeItem.py
index f5c0489..d5a413f 100644
--- a/library/gwt/ui/TreeItem.py
+++ b/library/gwt/ui/TreeItem.py
@@ -127,10 +127,18 @@ class TreeItem(UIObject):
 return item

 def onAttach(self):
-pass
+for item in self.children:
+item.onAttach()
+w = self.getWidget()
+if w:
+   w.onAttach()

 def onDetach(self):
-pass
+for item in self.children:
+item.onDetach()
+w = self.getWidget()
+if w:
+   w.onDetach()

 def getChild(self, index):
 if (index  0) or (index = len(self.children)):

so, the question that i have is very simple: is this the right thing
to do?  remember that, as we didn't design the GWT UI widget
infrastructure (merely port it pretty much verbatim to python),
analysing the implications of issues such as this is somewhat outside
of our... scope / resources / time / community abilities shall we
say.

plus, i believe it's important to raise this with the GWT community
not least because someone else in the GWT community may wish to do
exactly the same thing: have TreeItems where the widgets within them
bloody well work! :)

i'd be interested to hear the thoughts of the GWT community on this
issue.  fyi read-only archive of pyjamas-dev exact same topic is here:
http://groups.google.com/group/pyjamas-dev/browse_thread/thread/b69ad20a6af2085e

l.

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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alex Dobjanschi
I just saw you already posted this link, sorry for that.

As far as it goes, you're basically running Javascript code, in a 
(simple-to-complex) app, inside client code (browser sandbox). I don't how 
crawling such an app would be straightforward.

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



Re: TreeItem child widgets do not have onAttach called

2011-08-04 Thread lkcl
okaay... rright: the message took its sweet time to appear here in the
forum, and so i couldn't cross-reference the forum with the bugreport
until that had happened, duh, so now that's happened, here's the
reference:

http://code.google.com/p/google-web-toolkit/issues/detail?id=6656

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



jsni, parameter from java to javascript

2011-08-04 Thread Diego
hello,

jsni help in a simple, do not understand how do I pass a variable
value from javascript variable to java ..

The method is this:


public static native void setSharePropertyButton(String nameShare,
String linkShare, String pictureShare, String captionShare, String
descriptionShare, String messageShare)/*-{

 $wnd.FB.ui(
{
method: 'feed',
name: 'This is the content of the name field.',
link: 'http://www.mydomain.com',
caption: 'This is the content of the caption field.',
description: 'This is the content of the description 
field, below
the caption.',
message: 'This is text in the message box a user can 
add to or
replace.'
});
}-*/;



I can not understand how I can, for example, take the value of the
variable name and assign it nameShare. (name: )

Thanks.
Diego

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



Help!

2011-08-04 Thread Thomas Lefort
If anybody can help, I am really pulling my hairs...

I am on my last bit of my jsni integration with maps v3. I want a
widget to appear in an infowindow. The widget has buttons and links.
All elements appear fine in the infowindow except that none of the
links, buttons work anymore.

This is what I do:

public native void openInfoWindowWidget(EOLatLng markerPosition,
Element element) /*-{
var myElement = element;

$wnd.mapsJSNI.openInfoWindowWidget(markerPosition.@com.metaaps.webapps.earthimages.shared.domain.EOLatLng::lat,
markerPosition.@com.metaaps.webapps.earthimages.shared.domain.EOLatLng::lng,
myElement);
}-*/;

public final void openPropertiesWindow(EOLatLng currentCoordinate,
ListProperty properties, PropertiesChange callBack) {
FlowPanel panel = new FlowPanel();
openInfoWindowWidget(currentCoordinate, panel.getElement());
panel.add(propertiesEditor);
}


propertiesEditor is my widget, it's a field. I am adding the flowpanel
in between to avoid a call to getElement on the widget itself.

I would really appreciate any ideas!!!

Thanks

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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alexander Orlov
On Thu, Aug 4, 2011 at 3:11 PM, Alex Dobjanschi
alex.dobjans...@gmail.comwrote:

 As far as it goes, you're basically running Javascript code, in a
 (simple-to-complex) app, inside client code (browser sandbox). I don't how
 crawling such an app would be straightforward.

 The apps parts of an app shouldn't be crawled... There are static parts
in almost every app, e.g. product descriptions and exactly those parts of
an app should be crawled.

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



Re: Problems with my first application

2011-08-04 Thread Apocalypto
Thanks for the reply, I included validation-api-1.0.0.GA.jar and
validation-api-1.0.0.GA-sources.jar to project libraries and the
errors were solved. Is it necessary to include also Hibernate
Validator? I tried to run again the project but the servlets were not
executed in the correct order

On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Its a classpath issue:

         [ERROR] Line 97: ConstraintViolation cannot be resolved to a
 type

 Add the javax.validation
 jarhttp://mvnrepository.com/artifact/javax.validation/validation-api/1.0...
 (jsr303)
 and some 
 implementationhttp://stackoverflow.com/questions/1384968/is-there-an-implementation...
 .

 Juan

 2011/8/3 Apocalypto lmelon...@gmail.com







  Hello GWT world, I'm a student who is trying to learn how to develop
  with GWT framework. I already know well Java language but I'm stuck
  with my first application: it's a simple log in interface which stores
  user data into cookies, but I can't understand why it doesn't work
  properly.

  MainEntryPoint

     private GWTLogInServiceAsync logInService =
  GWT.create(GWTLogInService.class);
     private GWTDeBugServiceAsync deBugService =
  GWT.create(GWTDeBugService.class);
     private String dataBaseString;
  ...
             logInButton.addClickHandler(new ClickHandler() {

                 public void onClick(ClickEvent event) {
                     dataBaseString = null;

                     logInService.logIn(userNameTextBox.getText(),
  passWordTextBox.getText(), new AsyncCallbackString() {

                         @Override
                         public void onFailure(Throwable caught) {
                             Window.alert(Log in failed!);
                         }

                         @Override
                         public void onSuccess(String result) {
                             dataBaseString = result;
                         }
                     });

                     deBugService.outPut(2) DataBase:  +
  dataBaseString, new AsyncCallbackVoid() {

                         public void onFailure(Throwable caught) {
                         }

                         public void onSuccess(Void result) {
                         }
                     });

                     if (dataBaseString != null) {
                         logIn(userNameTextBox.getText(),
  dataBaseString);
                     }
                 }
             });
  ...
     private void logIn(String userName, String dataBase) {
         Cookies.setCookie(userName, userName);
         Cookies.setCookie(dataBase, dataBase);

         Location.reload();
     }

  GWTLogInServiceImpl

  public String logIn(String userName, String passWord) {
         String dataBase = null;

         try {
             Class.forName(org.postgresql.Driver);

             Connection connection =
  DriverManager.getConnection(jdbc:postgresql://localhost:5432/User
  DataBase, postGreSQLUserName, postGreSQLPassWord);

             String query = SELECT \DataBase\ FROM \User\ WHERE
  \Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + ';

             ResultSet resultSet =
  connection.createStatement().executeQuery(query);

             if (resultSet.next()) {
                 dataBase = resultSet.getString(DataBase);
             }
         } catch (Exception exception) {
             exception.printStackTrace();
         }

         System.out.println(1) DataBase:  + dataBase);

         return dataBase;
     }

  GWTDeBugServiceImpl

     public void outPut(String string) {
         System.out.println(string);
     }

  I get the following output:
  2) DataBase: null
  1) DataBase: dataBaseName

  Why does it execute GWTDeBugService before GWTLogInService? I'm using
  NetBeans 6.9.1 with the latest GWT framework and GWT4NB plugin.
  In addition, during compilation I get the following errors:
  Validating newly compiled units
       [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
  user.jar!/com/google/gwt/editor/client/EditorDriver.java'
          [ERROR] Line 20: The import
  javax.validation.ConstraintViolation cannot be resolved
          [ERROR] Line 97: ConstraintViolation cannot be resolved to a
  type
       [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
  user.jar!/com/google/gwt/editor/client/impl/
  AbstractSimpleBeanEditorDriver.java'
          [ERROR] Line 28: Name clash: The method
  setConstraintViolations(IterableConstraintViolation?) of type
  BaseEditorDriverT,E has the same erasure as
  setConstraintViolations(IterableConstraintViolation?) of type
  EditorDriverT but does not override it
       [ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
  user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
          [ERROR] Line 31: The import
  javax.validation.ConstraintViolation cannot be resolved
          [ERROR] Line 67: ConstraintViolation cannot be resolved to a
  type
       [ERROR] Errors in 

Re: Problems with my first application

2011-08-04 Thread Juan Pablo Gardella
 Is it necessary to include also Hibernate
Validator? No exactly hibernate validator, some jsr303 implementation. I
think is necesary.

I tried to run again the project but the servlets were not
executed in the correct order

I'm blind. Can you explain a little more your problem?

Juan

2011/8/4 Apocalypto lmelon...@gmail.com

 Thanks for the reply, I included validation-api-1.0.0.GA.jar and
 validation-api-1.0.0.GA-sources.jar to project libraries and the
 errors were solved. Is it necessary to include also Hibernate
 Validator? I tried to run again the project but the servlets were not
 executed in the correct order

 On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  Its a classpath issue:
 
  [ERROR] Line 97: ConstraintViolation cannot be resolved to a
  type
 
  Add the javax.validation
  jar
 http://mvnrepository.com/artifact/javax.validation/validation-api/1.0...
  (jsr303)
  and some implementation
 http://stackoverflow.com/questions/1384968/is-there-an-implementation...
  .
 
  Juan
 
  2011/8/3 Apocalypto lmelon...@gmail.com
 
 
 
 
 
 
 
   Hello GWT world, I'm a student who is trying to learn how to develop
   with GWT framework. I already know well Java language but I'm stuck
   with my first application: it's a simple log in interface which stores
   user data into cookies, but I can't understand why it doesn't work
   properly.
 
   MainEntryPoint
 
  private GWTLogInServiceAsync logInService =
   GWT.create(GWTLogInService.class);
  private GWTDeBugServiceAsync deBugService =
   GWT.create(GWTDeBugService.class);
  private String dataBaseString;
   ...
  logInButton.addClickHandler(new ClickHandler() {
 
  public void onClick(ClickEvent event) {
  dataBaseString = null;
 
  logInService.logIn(userNameTextBox.getText(),
   passWordTextBox.getText(), new AsyncCallbackString() {
 
  @Override
  public void onFailure(Throwable caught) {
  Window.alert(Log in failed!);
  }
 
  @Override
  public void onSuccess(String result) {
  dataBaseString = result;
  }
  });
 
  deBugService.outPut(2) DataBase:  +
   dataBaseString, new AsyncCallbackVoid() {
 
  public void onFailure(Throwable caught) {
  }
 
  public void onSuccess(Void result) {
  }
  });
 
  if (dataBaseString != null) {
  logIn(userNameTextBox.getText(),
   dataBaseString);
  }
  }
  });
   ...
  private void logIn(String userName, String dataBase) {
  Cookies.setCookie(userName, userName);
  Cookies.setCookie(dataBase, dataBase);
 
  Location.reload();
  }
 
   GWTLogInServiceImpl
 
   public String logIn(String userName, String passWord) {
  String dataBase = null;
 
  try {
  Class.forName(org.postgresql.Driver);
 
  Connection connection =
   DriverManager.getConnection(jdbc:postgresql://localhost:5432/User
   DataBase, postGreSQLUserName, postGreSQLPassWord);
 
  String query = SELECT \DataBase\ FROM \User\ WHERE
   \Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + ';
 
  ResultSet resultSet =
   connection.createStatement().executeQuery(query);
 
  if (resultSet.next()) {
  dataBase = resultSet.getString(DataBase);
  }
  } catch (Exception exception) {
  exception.printStackTrace();
  }
 
  System.out.println(1) DataBase:  + dataBase);
 
  return dataBase;
  }
 
   GWTDeBugServiceImpl
 
  public void outPut(String string) {
  System.out.println(string);
  }
 
   I get the following output:
   2) DataBase: null
   1) DataBase: dataBaseName
 
   Why does it execute GWTDeBugService before GWTLogInService? I'm using
   NetBeans 6.9.1 with the latest GWT framework and GWT4NB plugin.
   In addition, during compilation I get the following errors:
   Validating newly compiled units
[ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
   user.jar!/com/google/gwt/editor/client/EditorDriver.java'
   [ERROR] Line 20: The import
   javax.validation.ConstraintViolation cannot be resolved
   [ERROR] Line 97: ConstraintViolation cannot be resolved to a
   type
[ERROR] Errors in 'jar:file:/{projectFolder}/lib/GWT2.3.0/gwt-
   user.jar!/com/google/gwt/editor/client/impl/
   AbstractSimpleBeanEditorDriver.java'
   [ERROR] Line 28: Name clash: The method
   setConstraintViolations(IterableConstraintViolation?) of type
   BaseEditorDriverT,E has 

Re: Help!

2011-08-04 Thread Juan Pablo Gardella
Are you debbug with firebug or similar to see the error?

2011/8/4 Thomas Lefort lefortho...@gmail.com

 If anybody can help, I am really pulling my hairs...

 I am on my last bit of my jsni integration with maps v3. I want a
 widget to appear in an infowindow. The widget has buttons and links.
 All elements appear fine in the infowindow except that none of the
 links, buttons work anymore.

 This is what I do:

 public native void openInfoWindowWidget(EOLatLng markerPosition,
 Element element) /*-{
var myElement = element;


 $wnd.mapsJSNI.openInfoWindowWidget(markerPosition.@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
 ::lat,
 markerPosition.@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
 ::lng,
 myElement);
 }-*/;

 public final void openPropertiesWindow(EOLatLng currentCoordinate,
 ListProperty properties, PropertiesChange callBack) {
FlowPanel panel = new FlowPanel();
openInfoWindowWidget(currentCoordinate, panel.getElement());
panel.add(propertiesEditor);
}


 propertiesEditor is my widget, it's a field. I am adding the flowpanel
 in between to avoid a call to getElement on the widget itself.

 I would really appreciate any ideas!!!

 Thanks

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



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



Re: Help!

2011-08-04 Thread Thomas Lefort
I am debugging with firefox but I do not see any error. It's more like
all handlers have been wiped out, when I click on a link it doesn't do
anything anymore. If I try the exact same widget by adding it to
another widget or via uibinder all the links and buttons work fine.



On Aug 4, 4:01 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Are you debbug with firebug or similar to see the error?

 2011/8/4 Thomas Lefort lefortho...@gmail.com







  If anybody can help, I am really pulling my hairs...

  I am on my last bit of my jsni integration with maps v3. I want a
  widget to appear in an infowindow. The widget has buttons and links.
  All elements appear fine in the infowindow except that none of the
  links, buttons work anymore.

  This is what I do:

  public native void openInfoWindowWidget(EOLatLng markerPosition,
  Element element) /*-{
                 var myElement = element;

  $wnd.mapsJSNI.openInfoWindowWidget(markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
  ::lat,
  markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
  ::lng,
  myElement);
  }-*/;

  public final void openPropertiesWindow(EOLatLng currentCoordinate,
  ListProperty properties, PropertiesChange callBack) {
                 FlowPanel panel = new FlowPanel();
             openInfoWindowWidget(currentCoordinate, panel.getElement());
             panel.add(propertiesEditor);
         }

  propertiesEditor is my widget, it's a field. I am adding the flowpanel
  in between to avoid a call to getElement on the widget itself.

  I would really appreciate any ideas!!!

  Thanks

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

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



Re: Problems with my first application

2011-08-04 Thread Luca Meloni
I have two servlets in my project:
 - The login servlet tooks the username and the password, checks if
user data is correct and eventually returns the name of the related
database;
 - The debug servlet for now can only output a string.
In MainEntryPoint I call the login servlet before the debug servlet,
but I get an output that indicates that the debug servlet is called
before the login servlet; this is the code snippet:

logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
Window.alert(Log in failed!);
}

@Override
public void onSuccess(String result) {
dataBaseString = result;
}
});

deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

public void onFailure(Throwable caught) {
}

public void onSuccess(Void result) {
}
});

And this is the related output:

2) DataBase: null
1) DataBase: dataBaseName

On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
  Is it necessary to include also Hibernate
 Validator? No exactly hibernate validator, some jsr303 implementation. I
 think is necesary.

 I tried to run again the project but the servlets were not
 executed in the correct order

 I'm blind. Can you explain a little more your problem?

 Juan

 2011/8/4 Apocalypto lmelon...@gmail.com







  Thanks for the reply, I included validation-api-1.0.0.GA.jar and
  validation-api-1.0.0.GA-sources.jar to project libraries and the
  errors were solved. Is it necessary to include also Hibernate
  Validator? I tried to run again the project but the servlets were not
  executed in the correct order

  On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   Its a classpath issue:

           [ERROR] Line 97: ConstraintViolation cannot be resolved to a
   type

   Add the javax.validation
   jar
 http://mvnrepository.com/artifact/javax.validation/validation-api/1.0...
   (jsr303)
   and some implementation
 http://stackoverflow.com/questions/1384968/is-there-an-implementation...
   .

   Juan

   2011/8/3 Apocalypto lmelon...@gmail.com

Hello GWT world, I'm a student who is trying to learn how to develop
with GWT framework. I already know well Java language but I'm stuck
with my first application: it's a simple log in interface which stores
user data into cookies, but I can't understand why it doesn't work
properly.

MainEntryPoint

   private GWTLogInServiceAsync logInService =
GWT.create(GWTLogInService.class);
   private GWTDeBugServiceAsync deBugService =
GWT.create(GWTDeBugService.class);
   private String dataBaseString;
...
           logInButton.addClickHandler(new ClickHandler() {

               public void onClick(ClickEvent event) {
                   dataBaseString = null;

                   logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

                       @Override
                       public void onFailure(Throwable caught) {
                           Window.alert(Log in failed!);
                       }

                       @Override
                       public void onSuccess(String result) {
                           dataBaseString = result;
                       }
                   });

                   deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

                       public void onFailure(Throwable caught) {
                       }

                       public void onSuccess(Void result) {
                       }
                   });

                   if (dataBaseString != null) {
                       logIn(userNameTextBox.getText(),
dataBaseString);
                   }
               }
           });
...
   private void logIn(String userName, String dataBase) {
       Cookies.setCookie(userName, userName);
       Cookies.setCookie(dataBase, dataBase);

       Location.reload();
   }

GWTLogInServiceImpl

public String logIn(String userName, String passWord) {
       String dataBase = null;

       try {
           Class.forName(org.postgresql.Driver);

           Connection connection =
DriverManager.getConnection(jdbc:postgresql://localhost:5432/User
DataBase, postGreSQLUserName, postGreSQLPassWord);

           String query = SELECT \DataBase\ FROM \User\ WHERE
\Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + ';

  

Re: Problems with my first application

2011-08-04 Thread Luca Meloni
I have two servlets in my project:
 - The login servlet tooks the username and the password, checks if
user data is correct and eventually returns the name of the related
database;
 - The debug servlet for now can only output a string.
In MainEntryPoint I call the login servlet before the debug servlet,
but I get an output that indicates that the debug servlet is called
before the login servlet; this is the code snippet:

logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
Window.alert(Log in failed!);
}

@Override
public void onSuccess(String result) {
dataBaseString = result;
}
});

deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

public void onFailure(Throwable caught) {
}

public void onSuccess(Void result) {
}
});

And this is the related output:

2) DataBase: null
1) DataBase: dataBaseName

Look at my first post to see the other code snippets

On Aug 4, 3:47 pm, Apocalypto lmelon...@gmail.com wrote:
 Thanks for the reply, I included validation-api-1.0.0.GA.jar and
 validation-api-1.0.0.GA-sources.jar to project libraries and the
 errors were solved. Is it necessary to include also Hibernate
 Validator? I tried to run again the project but the servlets were not
 executed in the correct order

 On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:







  Its a classpath issue:

          [ERROR] Line 97: ConstraintViolation cannot be resolved to a
  type

  Add the javax.validation
  jarhttp://mvnrepository.com/artifact/javax.validation/validation-api/1.0...
  (jsr303)
  and some 
  implementationhttp://stackoverflow.com/questions/1384968/is-there-an-implementation...
  .

  Juan

  2011/8/3 Apocalypto lmelon...@gmail.com

   Hello GWT world, I'm a student who is trying to learn how to develop
   with GWT framework. I already know well Java language but I'm stuck
   with my first application: it's a simple log in interface which stores
   user data into cookies, but I can't understand why it doesn't work
   properly.

   MainEntryPoint

      private GWTLogInServiceAsync logInService =
   GWT.create(GWTLogInService.class);
      private GWTDeBugServiceAsync deBugService =
   GWT.create(GWTDeBugService.class);
      private String dataBaseString;
   ...
              logInButton.addClickHandler(new ClickHandler() {

                  public void onClick(ClickEvent event) {
                      dataBaseString = null;

                      logInService.logIn(userNameTextBox.getText(),
   passWordTextBox.getText(), new AsyncCallbackString() {

                          @Override
                          public void onFailure(Throwable caught) {
                              Window.alert(Log in failed!);
                          }

                          @Override
                          public void onSuccess(String result) {
                              dataBaseString = result;
                          }
                      });

                      deBugService.outPut(2) DataBase:  +
   dataBaseString, new AsyncCallbackVoid() {

                          public void onFailure(Throwable caught) {
                          }

                          public void onSuccess(Void result) {
                          }
                      });

                      if (dataBaseString != null) {
                          logIn(userNameTextBox.getText(),
   dataBaseString);
                      }
                  }
              });
   ...
      private void logIn(String userName, String dataBase) {
          Cookies.setCookie(userName, userName);
          Cookies.setCookie(dataBase, dataBase);

          Location.reload();
      }

   GWTLogInServiceImpl

   public String logIn(String userName, String passWord) {
          String dataBase = null;

          try {
              Class.forName(org.postgresql.Driver);

              Connection connection =
   DriverManager.getConnection(jdbc:postgresql://localhost:5432/User
   DataBase, postGreSQLUserName, postGreSQLPassWord);

              String query = SELECT \DataBase\ FROM \User\ WHERE
   \Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + ';

              ResultSet resultSet =
   connection.createStatement().executeQuery(query);

              if (resultSet.next()) {
                  dataBase = resultSet.getString(DataBase);
              }
          } catch (Exception exception) {
              exception.printStackTrace();
          }

          System.out.println(1) DataBase:  + dataBase);

          return 

Re: Compile Error - Method Not Implemented

2011-08-04 Thread Jeffrey Chimene

On 8/3/2011 7:56 PM, Nick Apperley wrote:

Is there a way to do a clean build from scratch?
You can always delete the compiler output (including .class files). If 
you're using Eclipse, the clean function will accomplish that task.

When a compile is
done is any caching involved?

I think the answer at the level of problem you're having is no.
I qualify the no, because if you are using Gin, and are using 
development mode, and you change the Gin binding information, then it's 
wise to recompile (i.e. restart development mode). That doesn't seem to 
be the case here.


I'm fairly sure you will find the problem is some unexplored linkage 
between the .java and the .ui.xml. I've outlined a resolution path 
below. I know this can be frustrating. In cases like this, the wisdom to 
strategically cripple your application is crucial to isolating the 
failure point.


On Aug 3, 2:28 am, Jeffrey Chimene jchim...@gmail.com wrote:

I see nothing there either.

I'd try a few things:
o Simplify the file. Use VerticalPanel or HorizontalPanel or a
combination of them to replace the g:grid when laying out the labels.

o Focus on getting a clean compilation w/o reference to the ui.xml
(obviously, it won't run...) Start commenting out the UiField and
UiHandler annotations one by one. Donotcomment out the field references.

o Does the Template Editor do anything interesting when invoked on this
ui.xml?

o Look at the generated javascript and see if you can find the linkage
to the Problem Child.


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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread dreamer
 = static pages
  I tried to develop a page uisng UIBinder (mix of html and widgets)
and RPC calls where it makes
  sense and ultimately I wanted to post entire page to server and let
server serve next page.

Here are My roadblocks for now

 * Not sure how to post entire page to servlet, develop just using
designer and plugin

 * If some how, able to post UIBinder page to servlet, how servlet
creates a RequestDispatcher for another UIBinder page?

 * Can UIBinder page be identifiable like jsp/html page on
server ???

-Venu
http://schoolk12.appspot.com/





On Aug 4, 6:45 am, Alexander Orlov alexander.or...@loxal.net wrote:
 On Thu, Aug 4, 2011 at 3:11 PM, Alex Dobjanschi
 alex.dobjans...@gmail.comwrote:

  As far as it goes, you're basically running Javascript code, in a
  (simple-to-complex) app, inside client code (browser sandbox). I don't how
  crawling such an app would be straightforward.

  The apps parts of an app shouldn't be crawled... There are static parts

 in almost every app, e.g. product descriptions and exactly those parts of
 an app should be crawled.

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



Re: Problems with my first application

2011-08-04 Thread Juan Pablo Gardella
Its best do the login in a filter. If you do the login in a filter always
execute before servlets.

If you want use a servlet to do login and have other servlet with similar
url pattern read
thishttp://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/html/rwsfservletug/4-4.html.
With filters you can explicity the order of execution, with servlet no (is
not define in the specification, so is the serlvet container decide,
unpredictable).

Juan


2011/8/4 Luca Meloni lmelon...@gmail.com

 I have two servlets in my project:
  - The login servlet tooks the username and the password, checks if
 user data is correct and eventually returns the name of the related
 database;
  - The debug servlet for now can only output a string.
 In MainEntryPoint I call the login servlet before the debug servlet,
 but I get an output that indicates that the debug servlet is called
 before the login servlet; this is the code snippet:

logInService.logIn(userNameTextBox.getText(),
 passWordTextBox.getText(), new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
Window.alert(Log in failed!);
}

@Override
public void onSuccess(String result) {
dataBaseString = result;
}
});

deBugService.outPut(2) DataBase:  +
 dataBaseString, new AsyncCallbackVoid() {

public void onFailure(Throwable caught) {
}

public void onSuccess(Void result) {
}
});

 And this is the related output:

 2) DataBase: null
 1) DataBase: dataBaseName

 On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
   Is it necessary to include also Hibernate
  Validator? No exactly hibernate validator, some jsr303 implementation. I
  think is necesary.
 
  I tried to run again the project but the servlets were not
  executed in the correct order
 
  I'm blind. Can you explain a little more your problem?
 
  Juan
 
  2011/8/4 Apocalypto lmelon...@gmail.com
 
 
 
 
 
 
 
   Thanks for the reply, I included validation-api-1.0.0.GA.jar and
   validation-api-1.0.0.GA-sources.jar to project libraries and the
   errors were solved. Is it necessary to include also Hibernate
   Validator? I tried to run again the project but the servlets were not
   executed in the correct order
 
   On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:
Its a classpath issue:
 
[ERROR] Line 97: ConstraintViolation cannot be resolved to a
type
 
Add the javax.validation
jar
  http://mvnrepository.com/artifact/javax.validation/validation-api/1.0..
 .
(jsr303)
and some implementation
  http://stackoverflow.com/questions/1384968/is-there-an-implementation..
 .
.
 
Juan
 
2011/8/3 Apocalypto lmelon...@gmail.com
 
 Hello GWT world, I'm a student who is trying to learn how to
 develop
 with GWT framework. I already know well Java language but I'm stuck
 with my first application: it's a simple log in interface which
 stores
 user data into cookies, but I can't understand why it doesn't work
 properly.
 
 MainEntryPoint
 
private GWTLogInServiceAsync logInService =
 GWT.create(GWTLogInService.class);
private GWTDeBugServiceAsync deBugService =
 GWT.create(GWTDeBugService.class);
private String dataBaseString;
 ...
logInButton.addClickHandler(new ClickHandler() {
 
public void onClick(ClickEvent event) {
dataBaseString = null;
 
logInService.logIn(userNameTextBox.getText(),
 passWordTextBox.getText(), new AsyncCallbackString() {
 
@Override
public void onFailure(Throwable caught) {
Window.alert(Log in failed!);
}
 
@Override
public void onSuccess(String result) {
dataBaseString = result;
}
});
 
deBugService.outPut(2) DataBase:  +
 dataBaseString, new AsyncCallbackVoid() {
 
public void onFailure(Throwable caught) {
}
 
public void onSuccess(Void result) {
}
});
 
if (dataBaseString != null) {
logIn(userNameTextBox.getText(),
 dataBaseString);
}
}
});
 ...
private void logIn(String userName, String dataBase) {

Re: Help!

2011-08-04 Thread John Ho
Because you are passing an Element, any handlers that were added to your
Widget do not get passed along. To get around this, you will need to create
a native JSNI function for your buttons and links.

Example:

yourButton.getElement().setPropertyJSO(onclick, yourClickFunction);

Where yourClickFunction is defined in JSNI.



On Thu, Aug 4, 2011 at 10:06 AM, Thomas Lefort lefortho...@gmail.comwrote:

 I am debugging with firefox but I do not see any error. It's more like
 all handlers have been wiped out, when I click on a link it doesn't do
 anything anymore. If I try the exact same widget by adding it to
 another widget or via uibinder all the links and buttons work fine.



 On Aug 4, 4:01 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  Are you debbug with firebug or similar to see the error?
 
  2011/8/4 Thomas Lefort lefortho...@gmail.com
 
 
 
 
 
 
 
   If anybody can help, I am really pulling my hairs...
 
   I am on my last bit of my jsni integration with maps v3. I want a
   widget to appear in an infowindow. The widget has buttons and links.
   All elements appear fine in the infowindow except that none of the
   links, buttons work anymore.
 
   This is what I do:
 
   public native void openInfoWindowWidget(EOLatLng markerPosition,
   Element element) /*-{
  var myElement = element;
 
  
 $wnd.mapsJSNI.openInfoWindowWidget(markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
   ::lat,
   markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
   ::lng,
   myElement);
   }-*/;
 
   public final void openPropertiesWindow(EOLatLng currentCoordinate,
   ListProperty properties, PropertiesChange callBack) {
  FlowPanel panel = new FlowPanel();
  openInfoWindowWidget(currentCoordinate, panel.getElement());
  panel.add(propertiesEditor);
  }
 
   propertiesEditor is my widget, it's a field. I am adding the flowpanel
   in between to avoid a call to getElement on the widget itself.
 
   I would really appreciate any ideas!!!
 
   Thanks
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: jsni, parameter from java to javascript

2011-08-04 Thread John Ho
Unless I'm misreading what you're trying to accomplish, it sounds as though 
you just need to assign what you are passing in your method arguments.

public static native void setSharePropertyButton(String nameShare, String 
linkShare, String pictureShare, String captionShare, 
String descriptionShare, String messageShare) /*-{ 

$wnd.FB.ui({
method: 'feed', 
name: nameShare, 
link: linkShare, 
caption: captionShare, 
description: descriptionShare, 
message: messageShare
});
}-*/;

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



GWT CELLTABLE : How to handle event on pager button

2011-08-04 Thread vaibhav bhalke
Hi

How to handle event on pager button. first,last,next,prev page ?

Right now I want to handle event on last page i.e when user click last page
button then next 100 record need to added in data provider (update/refresh )

-- 
Best Regards,
Vaibhav Bhalke


http://about.me/vaibhavbhalke

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



Re: IE8 - Not working - Mouse event for ListBox

2011-08-04 Thread jhulford
Mouse events are not fired on Option elements in IE.  I'm not sure
there's even a workaround either if you need to use a Select box.

http://stackoverflow.com/questions/2064011/select-option-hover-is-not-working-in-ie

On Aug 4, 4:58 am, Ash ashly@gmail.com wrote:
 Guyzz any help??

 Thanks,
 -ash

 On Aug 3, 5:54 pm, Ash ashly@gmail.com wrote:

  Hi,

  I'm using a list box which has many URLs for image. When someone move
  the mouse through the drop down values, I need to show the image in an
  HTML box. This works fine (MouseMove) in Firefox, but does not work in
  IE8.

  The below code represents the test case, and none of them gets
  called / fired in IE8.

  Can someone please help me to sort this out. I'm using GWT 2.0.3.

              ListBox listItem = new ListBox();
              listItem.addMouseMoveHandler(new HandlesAllMouseEvents() {

              public void onMouseDown(MouseDownEvent event) {
                  Window.alert(On Mouse down...);
              }

              public void onMouseUp(MouseUpEvent event) {
                  Window.alert(On mouse up...);
              }

              public void onMouseMove(MouseMoveEvent event) {
                  Window.alert(On mouse move...);
              }

              public void onMouseOut(MouseOutEvent event) {
                  Window.alert(On mouse out...);
              }

              public void onMouseOver(MouseOverEvent event) {
                  Window.alert(on mouse over...);
              }

              public void onMouseWheel(MouseWheelEvent event) {
                  Window.alert(on mouse wheeel);
              }
          });

  Thanks,
  -ash

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



Re: Help!

2011-08-04 Thread Thomas Lefort
You are right and this is why I pass a flow panel first as an element
and then I add the widget itself to the flow panel using
FlowPanel.add(widget). I could get that to work on a normal div that
I had in my HTML file but with the map infoWindow it just won't work
and I really can't see the difference.


On Aug 4, 4:40 pm, John Ho jzho...@gmail.com wrote:
 Because you are passing an Element, any handlers that were added to your
 Widget do not get passed along. To get around this, you will need to create
 a native JSNI function for your buttons and links.

 Example:

 yourButton.getElement().setPropertyJSO(onclick, yourClickFunction);

 Where yourClickFunction is defined in JSNI.

 On Thu, Aug 4, 2011 at 10:06 AM, Thomas Lefort lefortho...@gmail.comwrote:







  I am debugging with firefox but I do not see any error. It's more like
  all handlers have been wiped out, when I click on a link it doesn't do
  anything anymore. If I try the exact same widget by adding it to
  another widget or via uibinder all the links and buttons work fine.

  On Aug 4, 4:01 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   Are you debbug with firebug or similar to see the error?

   2011/8/4 Thomas Lefort lefortho...@gmail.com

If anybody can help, I am really pulling my hairs...

I am on my last bit of my jsni integration with maps v3. I want a
widget to appear in an infowindow. The widget has buttons and links.
All elements appear fine in the infowindow except that none of the
links, buttons work anymore.

This is what I do:

public native void openInfoWindowWidget(EOLatLng markerPosition,
Element element) /*-{
               var myElement = element;

  $wnd.mapsJSNI.openInfoWindowWidget(markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
::lat,
markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
::lng,
myElement);
}-*/;

public final void openPropertiesWindow(EOLatLng currentCoordinate,
ListProperty properties, PropertiesChange callBack) {
               FlowPanel panel = new FlowPanel();
           openInfoWindowWidget(currentCoordinate, panel.getElement());
           panel.add(propertiesEditor);
       }

propertiesEditor is my widget, it's a field. I am adding the flowpanel
in between to avoid a call to getElement on the widget itself.

I would really appreciate any ideas!!!

Thanks

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

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

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



Re: Problems with my first application

2011-08-04 Thread Luca Meloni
OK I read and now I think it's better to use a filter: have you got
some sites to suggest me with filter examples? I would appreciate it,
thank you

On Aug 4, 4:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Its best do the login in a filter. If you do the login in a filter always
 execute before servlets.

 If you want use a servlet to do login and have other servlet with similar
 url pattern read
 thishttp://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/h
 With filters you can explicity the order of execution, with servlet no (is
 not define in the specification, so is the serlvet container decide,
 unpredictable).

 Juan

 2011/8/4 Luca Meloni lmelon...@gmail.com







  I have two servlets in my project:
   - The login servlet tooks the username and the password, checks if
  user data is correct and eventually returns the name of the related
  database;
   - The debug servlet for now can only output a string.
  In MainEntryPoint I call the login servlet before the debug servlet,
  but I get an output that indicates that the debug servlet is called
  before the login servlet; this is the code snippet:

                     logInService.logIn(userNameTextBox.getText(),
  passWordTextBox.getText(), new AsyncCallbackString() {

                         @Override
                         public void onFailure(Throwable caught) {
                             Window.alert(Log in failed!);
                         }

                         @Override
                         public void onSuccess(String result) {
                             dataBaseString = result;
                         }
                     });

                     deBugService.outPut(2) DataBase:  +
  dataBaseString, new AsyncCallbackVoid() {

                         public void onFailure(Throwable caught) {
                         }

                         public void onSuccess(Void result) {
                         }
                     });

  And this is the related output:

  2) DataBase: null
  1) DataBase: dataBaseName

  On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
    Is it necessary to include also Hibernate
   Validator? No exactly hibernate validator, some jsr303 implementation. I
   think is necesary.

   I tried to run again the project but the servlets were not
   executed in the correct order

   I'm blind. Can you explain a little more your problem?

   Juan

   2011/8/4 Apocalypto lmelon...@gmail.com

Thanks for the reply, I included validation-api-1.0.0.GA.jar and
validation-api-1.0.0.GA-sources.jar to project libraries and the
errors were solved. Is it necessary to include also Hibernate
Validator? I tried to run again the project but the servlets were not
executed in the correct order

On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Its a classpath issue:

         [ERROR] Line 97: ConstraintViolation cannot be resolved to a
 type

 Add the javax.validation
 jar
   http://mvnrepository.com/artifact/javax.validation/validation-api/1.0..
  .
 (jsr303)
 and some implementation
   http://stackoverflow.com/questions/1384968/is-there-an-implementation..
  .
 .

 Juan

 2011/8/3 Apocalypto lmelon...@gmail.com

  Hello GWT world, I'm a student who is trying to learn how to
  develop
  with GWT framework. I already know well Java language but I'm stuck
  with my first application: it's a simple log in interface which
  stores
  user data into cookies, but I can't understand why it doesn't work
  properly.

  MainEntryPoint

     private GWTLogInServiceAsync logInService =
  GWT.create(GWTLogInService.class);
     private GWTDeBugServiceAsync deBugService =
  GWT.create(GWTDeBugService.class);
     private String dataBaseString;
  ...
             logInButton.addClickHandler(new ClickHandler() {

                 public void onClick(ClickEvent event) {
                     dataBaseString = null;

                     logInService.logIn(userNameTextBox.getText(),
  passWordTextBox.getText(), new AsyncCallbackString() {

                         @Override
                         public void onFailure(Throwable caught) {
                             Window.alert(Log in failed!);
                         }

                         @Override
                         public void onSuccess(String result) {
                             dataBaseString = result;
                         }
                     });

                     deBugService.outPut(2) DataBase:  +
  dataBaseString, new AsyncCallbackVoid() {

                         public void onFailure(Throwable caught) {
                         }

                         public void onSuccess(Void result) {
                         }
                     });

              

Explore Trees of Tree

2011-08-04 Thread David BARKATS
Hi all,

I have a tree of trees. like this
[-]Tree Root (Tree.java)
   [-]SubTree1(Tree.java)
Item1-1(TreeItem.java)
   [-]SubTree2(Tree.java)
Item2-1(TreeItem.java)
Item2-2(TreeItem.java)
Item2-3(TreeItem.java)

I am force to use Tree for Sub trees because I want to be able to focus
items in both trees.

When putting focus on Tree Root and pressing arrow down i can reach all
items By using navigation keys up on tree when trying to select Item2-1 from
Item2-2 i got the following error


java.lang.NullPointerException: null
at com.google.gwt.user.client.ui.Tree.getTopClosedParent(Tree.java:1048)
at com.google.gwt.user.client.ui.Tree.moveSelectionDown(Tree.java:1210)
at com.google.gwt.user.client.ui.Tree.keyboardNavigation(Tree.java:1107)
at com.google.gwt.user.client.ui.Tree.onBrowserEvent(Tree.java:654)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1321)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1277)
at sun.reflect.GeneratedMethodAccessor29.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
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
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:214)
at sun.reflect.GeneratedMethodAccessor22.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
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:662)

I expect to explore tree and subtree by using arrows keys

I am using gwt2.3.0 on windows using firefox

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



GWT with Oracle

2011-08-04 Thread Gema Mmm
Hi!! it's my first time using GWT, i want to connect my application
with a db of oracle express.

And when i run the application have this exception.

ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
pagina.client.GreetingService.greetServer(java.lang.String,java.lang.String)'
threw an unexpected exception: java.lang.NoClassDefFoundError:
oracle.jdbc.driver.OracleDriver is a restricted class. Please see the
Google  App Engine developer's guide for more details.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
385)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:351)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.NoClassDefFoundError:
oracle.jdbc.driver.OracleDriver is a restricted class. Please see the
Google  App Engine developer's guide for more details.
at
com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
51)
at oracle.jdbc.driver.OracleDriver.clinit(OracleDriver.java:371)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at pagina.server.Validar.getConnection(Validar.java:30)
at
pagina.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:
16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at

include JSP modules in GWT project

2011-08-04 Thread Bhaskar
Hi,

we have existing project with struts framework( we are usinh JSP for
View). Now we are using GWT(and GXT) for the new features.(old
features are in JSP olny)
now we want to create one GWT project for new features, but we want
add old code(i.e struts code) in GWT project so that we can debug/
compile with single project.

can any one help me in this?


Regards,
Bhaskar

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



RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread br22
Sometimes you want the same Java code to run on the client and server.
With RPC it is easy to share the same object, what is the best way to
do this with RF?
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Tree of trees

2011-08-04 Thread David BARKATS
I have a tree of trees. like this
[-]Tree Root (Tree.java)
   [-]SubTree1(Tree.java)
Item1-1(TreeItem.java)
   [-]SubTree2(Tree.java)
Item2-1(TreeItem.java)
Item2-2(TreeItem.java)
Item2-3(TreeItem.java)
When putting focus on Tree Root and pressing arrow down i can reach
all items By using navigation keys up on tree when trying to select
Item2-1 from Item2-2 i got the following error


java.lang.NullPointerException: null
at com.google.gwt.user.client.ui.Tree.getTopClosedParent(Tree.java:
1048)
at com.google.gwt.user.client.ui.Tree.moveSelectionDown(Tree.java:
1210)
at com.google.gwt.user.client.ui.Tree.keyboardNavigation(Tree.java:
1107)
at com.google.gwt.user.client.ui.Tree.onBrowserEvent(Tree.java:
654)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1321)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1277)
at sun.reflect.GeneratedMethodAccessor29.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
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
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:214)
at sun.reflect.GeneratedMethodAccessor22.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
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)

I expect to explore tree and subtree by using arrows keys

I am using gwt2.3.0 on windows using firefox

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



Adding Mutual Exclusivity to Toggle Button

2011-08-04 Thread DarthG
I am trying to create a set of toggle buttons with radio button
functionality. I have searched the forums and seen a few threads
mentioning this, but no detailed explanations or example code. I have
tried to extend the RadioButton class and change the style to emulate
a ToggleButton, but it is unsatisfactory and I am frustrated that I
can't work out how to properly implement this.

Thanks,
Gary

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



GWT CellTree expand/collapse all

2011-08-04 Thread Sven
Hi there,

is there a simple way to just expand or collapse all treenodes?
Or do i really have iterate through each one and use setChildOpen?

Hope someone can help :)

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



Odp: Using PHP as a server side scripting language with GWT.

2011-08-04 Thread PiotrN
I'm developing and maintaining critical and fairly large application that 
has PHP on the server and GWT based frontend.
It works very well, as mentioned by Jambi, you communicate with JSON.
My advice is to put as much work and though into the json communication part 
as you can.

Bad design of that area will take it's toll later, while good one will make 
you grind.

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



Re: Problems with my first application

2011-08-04 Thread Juan Pablo Gardella
I use Spring Security. But if you are doing a sample, make a filter that
process a post.

Simple Example.

@Override
  public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
  throws IOException, ServletException {
logger.info(Entrando en filtro para procesar el login afip);

// cast
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;

// login
login(req);

// redirect to some url
redirectSomeUrl(req, resp);
  }

 private void login(HttpServletRequest req) {
// If is a POST login.
if (POST.equals(req.getMethod())) {
  validateData(req);
}
  }

In validate data check info and create/invalidate session.

Hope helps.






2011/8/4 Luca Meloni lmelon...@gmail.com

 OK I read and now I think it's better to use a filter: have you got
 some sites to suggest me with filter examples? I would appreciate it,
 thank you

 On Aug 4, 4:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  Its best do the login in a filter. If you do the login in a filter always
  execute before servlets.
 
  If you want use a servlet to do login and have other servlet with similar
  url pattern read
  this
 http://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/h
  With filters you can explicity the order of execution, with servlet no
 (is
  not define in the specification, so is the serlvet container decide,
  unpredictable).
 
  Juan
 
  2011/8/4 Luca Meloni lmelon...@gmail.com
 
 
 
 
 
 
 
   I have two servlets in my project:
- The login servlet tooks the username and the password, checks if
   user data is correct and eventually returns the name of the related
   database;
- The debug servlet for now can only output a string.
   In MainEntryPoint I call the login servlet before the debug servlet,
   but I get an output that indicates that the debug servlet is called
   before the login servlet; this is the code snippet:
 
  logInService.logIn(userNameTextBox.getText(),
   passWordTextBox.getText(), new AsyncCallbackString() {
 
  @Override
  public void onFailure(Throwable caught) {
  Window.alert(Log in failed!);
  }
 
  @Override
  public void onSuccess(String result) {
  dataBaseString = result;
  }
  });
 
  deBugService.outPut(2) DataBase:  +
   dataBaseString, new AsyncCallbackVoid() {
 
  public void onFailure(Throwable caught) {
  }
 
  public void onSuccess(Void result) {
  }
  });
 
   And this is the related output:
 
   2) DataBase: null
   1) DataBase: dataBaseName
 
   On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:
 Is it necessary to include also Hibernate
Validator? No exactly hibernate validator, some jsr303
 implementation. I
think is necesary.
 
I tried to run again the project but the servlets were not
executed in the correct order
 
I'm blind. Can you explain a little more your problem?
 
Juan
 
2011/8/4 Apocalypto lmelon...@gmail.com
 
 Thanks for the reply, I included validation-api-1.0.0.GA.jar and
 validation-api-1.0.0.GA-sources.jar to project libraries and the
 errors were solved. Is it necessary to include also Hibernate
 Validator? I tried to run again the project but the servlets were
 not
 executed in the correct order
 
 On Aug 4, 1:48 pm, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com
 wrote:
  Its a classpath issue:
 
  [ERROR] Line 97: ConstraintViolation cannot be resolved
 to a
  type
 
  Add the javax.validation
  jar

 http://mvnrepository.com/artifact/javax.validation/validation-api/1.0..
   .
  (jsr303)
  and some implementation

 http://stackoverflow.com/questions/1384968/is-there-an-implementation..
   .
  .
 
  Juan
 
  2011/8/3 Apocalypto lmelon...@gmail.com
 
   Hello GWT world, I'm a student who is trying to learn how to
   develop
   with GWT framework. I already know well Java language but I'm
 stuck
   with my first application: it's a simple log in interface which
   stores
   user data into cookies, but I can't understand why it doesn't
 work
   properly.
 
   MainEntryPoint
 
  private GWTLogInServiceAsync logInService =
   GWT.create(GWTLogInService.class);
  private GWTDeBugServiceAsync deBugService =
   GWT.create(GWTDeBugService.class);
  private String dataBaseString;
   ...
  logInButton.addClickHandler(new ClickHandler() {
 
  public void onClick(ClickEvent event) {
  

Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread Ben Munge
You create a Proxy object on the client for your corresponding server
object.

http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html


On Aug 4, 5:46 am, br22 g22...@gmail.com wrote:
 Sometimes you want the same Java code to run on the client and server.
 With RPC it is easy to share the same object, what is the best way to
 do this with RF?
 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problems with my first application

2011-08-04 Thread Luca Meloni
OK thanks for your example but I tried to do another thing, I removed
the debug servlet so the project had only the login servlet; I tried
to run the project but, when I clicked on the login button, the page
didn't do any action. I don't understand what's happening

On Aug 4, 5:16 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 I use Spring Security. But if you are doing a sample, make a filter that
 process a post.

 Simple Example.

 @Override
   public void doFilter(ServletRequest request, ServletResponse response,
 FilterChain chain)
       throws IOException, ServletException {
     logger.info(Entrando en filtro para procesar el login afip);

     // cast
     HttpServletRequest req = (HttpServletRequest) request;
     HttpServletResponse resp = (HttpServletResponse) response;

     // login
     login(req);

     // redirect to some url
     redirectSomeUrl(req, resp);
   }

  private void login(HttpServletRequest req) {
     // If is a POST login.
     if (POST.equals(req.getMethod())) {
       validateData(req);
     }
   }

 In validate data check info and create/invalidate session.

 Hope helps.

 2011/8/4 Luca Meloni lmelon...@gmail.com







  OK I read and now I think it's better to use a filter: have you got
  some sites to suggest me with filter examples? I would appreciate it,
  thank you

  On Aug 4, 4:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   Its best do the login in a filter. If you do the login in a filter always
   execute before servlets.

   If you want use a servlet to do login and have other servlet with similar
   url pattern read
   this
 http://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/h
   With filters you can explicity the order of execution, with servlet no
  (is
   not define in the specification, so is the serlvet container decide,
   unpredictable).

   Juan

   2011/8/4 Luca Meloni lmelon...@gmail.com

I have two servlets in my project:
 - The login servlet tooks the username and the password, checks if
user data is correct and eventually returns the name of the related
database;
 - The debug servlet for now can only output a string.
In MainEntryPoint I call the login servlet before the debug servlet,
but I get an output that indicates that the debug servlet is called
before the login servlet; this is the code snippet:

                   logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

                       @Override
                       public void onFailure(Throwable caught) {
                           Window.alert(Log in failed!);
                       }

                       @Override
                       public void onSuccess(String result) {
                           dataBaseString = result;
                       }
                   });

                   deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

                       public void onFailure(Throwable caught) {
                       }

                       public void onSuccess(Void result) {
                       }
                   });

And this is the related output:

2) DataBase: null
1) DataBase: dataBaseName

On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
  Is it necessary to include also Hibernate
 Validator? No exactly hibernate validator, some jsr303
  implementation. I
 think is necesary.

 I tried to run again the project but the servlets were not
 executed in the correct order

 I'm blind. Can you explain a little more your problem?

 Juan

 2011/8/4 Apocalypto lmelon...@gmail.com

  Thanks for the reply, I included validation-api-1.0.0.GA.jar and
  validation-api-1.0.0.GA-sources.jar to project libraries and the
  errors were solved. Is it necessary to include also Hibernate
  Validator? I tried to run again the project but the servlets were
  not
  executed in the correct order

  On Aug 4, 1:48 pm, Juan Pablo Gardella 
  gardellajuanpa...@gmail.com
  wrote:
   Its a classpath issue:

           [ERROR] Line 97: ConstraintViolation cannot be resolved
  to a
   type

   Add the javax.validation
   jar

 http://mvnrepository.com/artifact/javax.validation/validation-api/1.0..
.
   (jsr303)
   and some implementation

 http://stackoverflow.com/questions/1384968/is-there-an-implementation..
.
   .

   Juan

   2011/8/3 Apocalypto lmelon...@gmail.com

Hello GWT world, I'm a student who is trying to learn how to
develop
with GWT framework. I already know well Java language but I'm
  stuck
with my first application: it's a simple log in interface which
stores
user data into cookies, but I can't understand why it doesn't
  work
properly.


Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread br22
Great, but how you make the SAME Java code (that runs both on the
client and the server) share the SAME object (not 2 objects like Obj1
and Obj1Proxy)?

On Aug 4, 11:34 am, Ben Munge ben.mu...@gmail.com wrote:
 You create a Proxy object on the client for your corresponding server
 object.

 http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

 On Aug 4, 5:46 am, br22 g22...@gmail.com wrote:

  Sometimes you want the same Java code to run on the client and server.
  With RPC it is easy to share the same object, what is the best way to
  do this with RF?
  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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: TreeItem child widgets do not have onAttach called

2011-08-04 Thread Jim Douglas
The basic issue here is that TreeItems aren't Widgets, so (by design)
they don't handle their own events.  You'll want to review Tree to
decide how best to manage your events.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/Tree.html
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/TreeItem.html

http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/user/client/ui/Tree.java
http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/user/client/ui/TreeItem.java

On Aug 4, 6:08 am, lkcl luke.leigh...@gmail.com wrote:
 folks hi,

 this is luke, the lead developer of the python port of GWT.  we
 regularly track the GWT source code, to the point of having 3
 different semi-automated java-to-python converters of varying levels
 of sophistication, and the reason for doing that is to save vast
 amounts of time and resources, because the GWT source code is much
 more tested.

 _very_ occasionally we find a bug in GWT which has been transferred -
 verbatim - from the direct translation to python.  it would be very
 good, therefore, to have peoples' input on this issue, and to have a
 discussion of this bug which could affect users of both GWT and
 pyjamas.

 the issue is this: a user has created a Tree and has placed TreeItems
 in it, and then attached a CheckBox onto the TreeItem.  the problem is
 that in these CheckBoxes, no onClicks or any other kind of event
 handling occur, period.

 now, i'm dead impressed that this new pyjamas developer then went and
 delved into the pyjs ui source code and found the problem _and_
 created a fix:http://code.google.com/p/pyjamas/issues/?id=638

 diff --git a/library/gwt/ui/TreeItem.py b/library/gwt/ui/TreeItem.py
 index f5c0489..d5a413f 100644
 --- a/library/gwt/ui/TreeItem.py
 +++ b/library/gwt/ui/TreeItem.py
 @@ -127,10 +127,18 @@ class TreeItem(UIObject):
          return item

      def onAttach(self):
 -        pass
 +        for item in self.children:
 +            item.onAttach()
 +        w = self.getWidget()
 +        if w:
 +           w.onAttach()

      def onDetach(self):
 -        pass
 +        for item in self.children:
 +            item.onDetach()
 +        w = self.getWidget()
 +        if w:
 +           w.onDetach()

      def getChild(self, index):
          if (index  0) or (index = len(self.children)):

 so, the question that i have is very simple: is this the right thing
 to do?  remember that, as we didn't design the GWT UI widget
 infrastructure (merely port it pretty much verbatim to python),
 analysing the implications of issues such as this is somewhat outside
 of our... scope / resources / time / community abilities shall we
 say.

 plus, i believe it's important to raise this with the GWT community
 not least because someone else in the GWT community may wish to do
 exactly the same thing: have TreeItems where the widgets within them
 bloody well work! :)

 i'd be interested to hear the thoughts of the GWT community on this
 issue.  fyi read-only archive of pyjamas-dev exact same topic is 
 here:http://groups.google.com/group/pyjamas-dev/browse_thread/thread/b69ad...

 l.

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



Re: Using both image and styling on GWT CustomButton

2011-08-04 Thread Omid Rad
More details on my question:

I'm trying to set style names on different faces of ToggleButton (i.e.
upFace, DownFace, ...). It looks like setting styleName on a face
doesn't work. For example the following won't work:

g:ToggleButton
g:upFace styleName='{style.myToggleButton-up}' /
/g:ToggleButton

But I noticed when setting the style name on ToggleButton itself, like
this:

g:ToggleButton styleName='{style.myToggleButton}' /

... the generated HTML will look something like this:

div class=GPAKHSCBGG GPAKHSCBGG-up role=button aria-
pressed=false.../div

However, even if I have {style.myToggleButton-up} defined, it is not
populated to GPAKHSCBGG-up. So I'm wondering how can I do this without
having to mock the global .gwt-ToggleButton-up stylesheet. Please
help.


Thanks,
Omid


On Aug 4, 1:23 am, Omid Rad omidk...@gmail.com wrote:
 I'm trying to get a ToggleButton to work with a transparent PNG image
 which gets background color by CSS styles. It looks like a
 CustomButton can get only one of image or style but not both of them.
 I tried the followings to no avail:

     g:ToggleButton title=first try
         g:upFace image='{images.imageWithTransparentBackground}'
         styleName='{style.blueBackground}' /
         g:downFace image='{images.imageWithTransparentBackground}'
         styleName='{style.redBackground}' /
     /g:ToggleButton

     g:ToggleButton title=second try
         g:upFace image='{images.imageWithTransparentBackground}'
             div class='{style.blueBackground}'/div
         /g:upFace
         g:downFace image='{images.imageWithTransparentBackground}'
             div class='{style.REDBackground}'/div
         /g:downFace
     /g:ToggleButton

 I don't want to use the global CSS space (i.e .gwt-ToggleButton-up
 and .gwt-ToggleButton-down), and I don't want to set the background
 image as background-image CSS since I will have many buttons. Any
 ideas how to get this working?

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



Setting styles on different faces of a GWT CustomButton using UiBinder

2011-08-04 Thread Omid Rad
I'm trying to set style names on different faces of ToggleButton (i.e.
upFace, DownFace, ...). It looks like setting styleName on a face
doesn't work. For example the following won't work:

g:ToggleButton
g:upFace styleName='{style.myToggleButton-up}' /
/g:ToggleButton

But I noticed when setting the style name on ToggleButton itself...

g:ToggleButton styleName='{style.myToggleButton}' /

... the generated HTML will look something like this:

div class=GPAKHSCBGG GPAKHSCBGG-up role=button aria-
pressed=false.../div

However, even if I have {style.myToggleButton-up} defined, it is not
populated to GPAKHSCBGG-up. So I'm wondering how can I do this without
having to mock the global .gwt-ToggleButton-up stylesheet. Please
help.


Thanks,
Omid

This question is also posted in StackOverflow here:
http://stackoverflow.com/questions/6945538/setting-styles-on-different-faces-of-a-gwt-custombutton-using-uibiner

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



Re: Using both image and styling on GWT CustomButton

2011-08-04 Thread Jeff Larsen
add 
@external myToggleButton, myToggleButton-up; to your ui:binder file. 


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



Application written using GWT 2.1.1 goes belly up in 2.3 dev mode -- please help me to understand

2011-08-04 Thread Rob Tanner
Hi,

I have a production application built using GWT 2.1.1 and the Eclipse
plugin.  I've just installed Eclipse Indigo (jee edition) and the GWT
2.3 plugin.  Not wanting to break something that already works, I
created a new workspace in Eclipse and than imported the project.
When I try to bring up the project in Development mode I get lots and
lots of errors (could say all hell breaks loose).  Below is the output
I get in Eclipse.  I'm hoping there's a simple configuration solution
to this problem, but at this point I have no idea what it is.

Thanks,
Rob



[DEBUG] [accountrequest] - Validating newly compiled units
[ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
Eclipse-Indigo/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
user.jar!/com/google/gwt/dom/client/CanvasElement.java'
[ERROR] [accountrequest] - Line 43: No source code is available 
for
type com.google.gwt.canvas.dom.client.Context; did you forget to
inherit a required module?
[ERROR] [accountrequest] - Line 54: No source code is available 
for
type com.google.gwt.canvas.dom.client.Context2d; did you forget to
inherit a required module?
[ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
Eclipse-Indigo/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
user.jar!/com/google/gwt/dom/client/MediaElement.java'
[ERROR] [accountrequest] - Line 124: No source code is 
available for
type com.google.gwt.media.dom.client.TimeRanges; did you forget to
inherit a required module?
[ERROR] [accountrequest] - Line 178: No source code is 
available for
type com.google.gwt.media.dom.client.MediaError; did you forget to
inherit a required module?
[ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
Eclipse-Indigo/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
user.jar!/com/google/gwt/dom/client/Touch.java'
[ERROR] [accountrequest] - Line 36: The method
touchGetClientX(Touch) is undefined for the type DOMImpl
[ERROR] [accountrequest] - Line 45: The method
touchGetClientY(Touch) is undefined for the type DOMImpl
[ERROR] [accountrequest] - Line 54: The method
touchGetIdentifier(Touch) is undefined for the type DOMImpl
[ERROR] [accountrequest] - Line 63: The method 
touchGetPageX(Touch)
is undefined for the type DOMImpl
[ERROR] [accountrequest] - Line 72: The method 
touchGetPageY(Touch)
is undefined for the type DOMImpl
[ERROR] [accountrequest] - Line 103: The method
touchGetScreenX(Touch) is undefined for the type DOMImpl
[ERROR] [accountrequest] - Line 112: The method
touchGetScreenY(Touch) is undefined for the type DOMImpl
[ERROR] [accountrequest] - Line 121: The method
touchGetTarget(Touch) is undefined for the type DOMImpl
[ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
Eclipse-Indigo/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
user.jar!/com/google/gwt/editor/client/EditorDriver.java'
[ERROR] [accountrequest] - Line 97: No source code is available 
for
type javax.validation.ConstraintViolationT; did you forget to
inherit a required module?
[ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
Eclipse-Indigo/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
user.jar!/com/google/gwt/editor/client/impl/
AbstractEditorContext.java'
[ERROR] [accountrequest] - Line 92: The method
addSubDelegate(AbstractEditorDelegate, String, Editorcapture#16-of ?
) is undefined for the type AbstractEditorDelegateT,capture#15-of ?
[ERROR] [accountrequest] - Line 93: The method getEditorChain() 
is
undefined for the type AbstractEditorDelegateT,capture#17-of ?
[ERROR] [accountrequest] - Line 129: The method
accept(EditorVisitor) is undefined for the type
AbstractEditorDelegatecapture#23-of ?,capture#24-of ?
[ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
Eclipse-Indigo/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
[ERROR] [accountrequest] - Line 67: No source code is available 
for
type javax.validation.ConstraintViolationT; did you forget to
inherit a required module?
[ERROR] [accountrequest] - Line 82: The method 
initialize(String, T,
E, DelegateMap) in the type AbstractEditorDelegateT,E is not
applicable for the arguments (String, E)
[ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
Eclipse-Indigo/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-

Re: GWT with Oracle

2011-08-04 Thread Juan Pablo Gardella
You can't use some classes in GWT (client side):

unexpected exception: java.lang.NoClassDefFoundError:
oracle.jdbc.driver.OracleDriver is a restricted class

See here
http://code.google.com/intl/es/webtoolkit/doc/latest/RefJreEmulation.htmlwhat
classes you can use directly. If isn't in the list, you must put the
sources.

I recommend connecto in server side to the DB.

Juan



2011/8/4 Gema Mmm gema.mates...@gmail.com

 Hi!! it's my first time using GWT, i want to connect my application
 with a db of oracle express.

 And when i run the application have this exception.

 ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.lang.String

 pagina.client.GreetingService.greetServer(java.lang.String,java.lang.String)'
 threw an unexpected exception: java.lang.NoClassDefFoundError:
 oracle.jdbc.driver.OracleDriver is a restricted class. Please see the
 Google  App Engine developer's guide for more details.
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 385)
at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 588)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 208)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 248)
at

 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
 35)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 58)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
 97)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:351)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)
 Caused by: java.lang.NoClassDefFoundError:
 oracle.jdbc.driver.OracleDriver is a restricted class. Please see the
 Google  App Engine developer's guide for more details.
at

 com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
 51)
at oracle.jdbc.driver.OracleDriver.clinit(OracleDriver.java:371)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at pagina.server.Validar.getConnection(Validar.java:30)
at
 

Re: include JSP modules in GWT project

2011-08-04 Thread Juan Pablo Gardella
If you need server side functionality you only need add jars. If you need
some classes in client/shared side generate a project where  define modules.
See inside gwt-user.jar

Juan

2011/8/4 Bhaskar bhaskar1...@gmail.com

 Hi,

 we have existing project with struts framework( we are usinh JSP for
 View). Now we are using GWT(and GXT) for the new features.(old
 features are in JSP olny)
 now we want to create one GWT project for new features, but we want
 add old code(i.e struts code) in GWT project so that we can debug/
 compile with single project.

 can any one help me in this?


 Regards,
 Bhaskar

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



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



Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread Ben Munge
You generally shouldn't be doing this from a design standpoint. If you
want to share some simple objects or utilities you could use the
shared package, but beyond that would break encapsulation. If you
could explain your requirements in a bit more detail I might be able
to provide better assistance.

On Aug 4, 11:24 am, br22 g22...@gmail.com wrote:
 Great, but how you make the SAME Java code (that runs both on the
 client and the server) share the SAME object (not 2 objects like Obj1
 and Obj1Proxy)?

 On Aug 4, 11:34 am, Ben Munge ben.mu...@gmail.com wrote:







  You create a Proxy object on the client for your corresponding server
  object.

 http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

  On Aug 4, 5:46 am, br22 g22...@gmail.com wrote:

   Sometimes you want the same Java code to run on the client and server.
   With RPC it is easy to share the same object, what is the best way to
   do this with RF?
   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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Mark Wengranowski
Hi Everyone,

I'm running into a weird issue with creating a Dialog box. When i add
a widget that contains a doclayoutpanel to a dialog box, the CENTER
area of the doclayoutpanel is not visible. The north and south areas
seem to show just fine. I inspected this with firebug and the content
was there, it just wasn't visible.

Anyone have an idea what might be happeniing here?

Thanks,
-Mark

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



Re: DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Ashwin Desikan

Mark,

did you try to set the width and height of the dialog box? If you 
haven't I would suggest try to set the width and height. That might 
display the content area of your dock layout panel


regards
Ashwin
On Thursday 04 August 2011 11:25 PM, Mark Wengranowski wrote:

Hi Everyone,

I'm running into a weird issue with creating a Dialog box. When i add
a widget that contains a doclayoutpanel to a dialog box, the CENTER
area of the doclayoutpanel is not visible. The north and south areas
seem to show just fine. I inspected this with firebug and the content
was there, it just wasn't visible.

Anyone have an idea what might be happeniing here?

Thanks,
-Mark



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



Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread br22
Thank you, I have a Java code that can run either on the client or the
server.
When on the client it uses the Obj1Proxy that it gets from the server,
but when it runs on the server it has the original Obj1. I assume that
it can be solved with “generics” and “implements” , but I don't know
Java that well.
Thanks.

On Aug 4, 1:52 pm, Ben Munge ben.mu...@gmail.com wrote:
 You generally shouldn't be doing this from a design standpoint. If you
 want to share some simple objects or utilities you could use the
 shared package, but beyond that would break encapsulation. If you
 could explain your requirements in a bit more detail I might be able
 to provide better assistance.

 On Aug 4, 11:24 am, br22 g22...@gmail.com wrote:

  Great, but how you make the SAME Java code (that runs both on the
  client and the server) share the SAME object (not 2 objects like Obj1
  and Obj1Proxy)?

  On Aug 4, 11:34 am, Ben Munge ben.mu...@gmail.com wrote:

   You create a Proxy object on the client for your corresponding server
   object.

  http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

   On Aug 4, 5:46 am, br22 g22...@gmail.com wrote:

Sometimes you want the same Java code to run on the client and server.
With RPC it is easy to share the same object, what is the best way to
do this with RF?
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Where to host GWT based web site

2011-08-04 Thread Qiang Ma
Hi,

I assume someone figured out...
If I develop a GWT based app, where can I host it most cost effectively (ie.
cheap)?
Regular hosting options say they support PHP, CGI... but it doesn't sound
they allow me to deploy the war file.

Thanks in advance!

-maq

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



Re: DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Mark Wengranowski
I tried and that did not work either. I specifying sizes on everything
just eliminate that issue.

On Aug 4, 11:30 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:
 Mark,

 did you try to set the width and height of the dialog box? If you
 haven't I would suggest try to set the width and height. That might
 display the content area of your dock layout panel

 regards
 Ashwin
 On Thursday 04 August 2011 11:25 PM, Mark Wengranowski wrote:



  Hi Everyone,

  I'm running into a weird issue with creating a Dialog box. When i add
  a widget that contains a doclayoutpanel to a dialog box, the CENTER
  area of the doclayoutpanel is not visible. The north and south areas
  seem to show just fine. I inspected this with firebug and the content
  was there, it just wasn't visible.

  Anyone have an idea what might be happeniing here?

  Thanks,
  -Mark- Hide quoted text -

 - Show quoted text -

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



Re: Where to host GWT based web site

2011-08-04 Thread Isaac Truett
1. GWT applications don't require a Java back-end, so technically speaking
any web host that lets you upload HTML and JS should be able to host a GWT
application.

2. Google App Engine.



On Thu, Aug 4, 2011 at 2:35 PM, Qiang Ma mumay...@gmail.com wrote:

 Hi,

 I assume someone figured out...
 If I develop a GWT based app, where can I host it most cost effectively
 (ie. cheap)?
 Regular hosting options say they support PHP, CGI... but it doesn't sound
 they allow me to deploy the war file.

 Thanks in advance!

 -maq

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


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



Re: Where to host GWT based web site

2011-08-04 Thread Kevin Anderson
First question: do you have any server side dependencies? meaning do you use 
GWT-RPC or RequestFactory?

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



Re: Where to host GWT based web site

2011-08-04 Thread Kevin Anderson
How heavy of traffic are you anticipating?

I would second Isaac's suggestion of GAE.

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



Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread Ryan McFall
I have frequently wanted to write utility code that processes an
object in a particular way on both the client and server side
representation of the object.

Unfortunately, when using RequestFactory, it is difficult to make this
work cleanly.  You can declare that your domain object implements the
proxy interface, and then write your common code in terms of the proxy
interface.  But you will then have to come up with a dummy
implementation of the stableId method required by EntityProxy.  If
that doesn't bother you, then it should work.

Ryan

On Aug 4, 2:32 pm, br22 g22...@gmail.com wrote:
 Thank you, I have a Java code that can run either on the client or the
 server.
 When on the client it uses the Obj1Proxy that it gets from the server,
 but when it runs on the server it has the original Obj1. I assume that
 it can be solved with “generics” and “implements” , but I don't know
 Java that well.
 Thanks.

 On Aug 4, 1:52 pm, Ben Munge ben.mu...@gmail.com wrote:







  You generally shouldn't be doing this from a design standpoint. If you
  want to share some simple objects or utilities you could use the
  shared package, but beyond that would break encapsulation. If you
  could explain your requirements in a bit more detail I might be able
  to provide better assistance.

  On Aug 4, 11:24 am, br22 g22...@gmail.com wrote:

   Great, but how you make the SAME Java code (that runs both on the
   client and the server) share the SAME object (not 2 objects like Obj1
   and Obj1Proxy)?

   On Aug 4, 11:34 am, Ben Munge ben.mu...@gmail.com wrote:

You create a Proxy object on the client for your corresponding server
object.

   http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

On Aug 4, 5:46 am, br22 g22...@gmail.com wrote:

 Sometimes you want the same Java code to run on the client and server.
 With RPC it is easy to share the same object, what is the best way to
 do this with RF?
 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Mark Wengranowski
From what i can figure out it is a problem with layout panels in
general. Is there a way to fix this? I try setting a width and height
of the layout panel but it does not work.

On Aug 4, 11:38 am, Mark Wengranowski m...@greatlittlebox.com wrote:
 I tried and that did not work either. I specifying sizes on everything
 just eliminate that issue.

 On Aug 4, 11:30 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:



  Mark,

  did you try to set the width and height of the dialog box? If you
  haven't I would suggest try to set the width and height. That might
  display the content area of your dock layout panel

  regards
  Ashwin
  On Thursday 04 August 2011 11:25 PM, Mark Wengranowski wrote:

   Hi Everyone,

   I'm running into a weird issue with creating a Dialog box. When i add
   a widget that contains a doclayoutpanel to a dialog box, the CENTER
   area of the doclayoutpanel is not visible. The north and south areas
   seem to show just fine. I inspected this with firebug and the content
   was there, it just wasn't visible.

   Anyone have an idea what might be happeniing here?

   Thanks,
   -Mark- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

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



Re: DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Mark Wengranowski
Ha, ok, i figured it out. I had to set the size of the widget i was
passing into the dialog box. I set it on everything else but
thisDoh! widget.setSize(width, height); does the trick.



On Aug 4, 11:38 am, Mark Wengranowski m...@greatlittlebox.com wrote:
 I tried and that did not work either. I specifying sizes on everything
 just eliminate that issue.

 On Aug 4, 11:30 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:



  Mark,

  did you try to set the width and height of the dialog box? If you
  haven't I would suggest try to set the width and height. That might
  display the content area of your dock layout panel

  regards
  Ashwin
  On Thursday 04 August 2011 11:25 PM, Mark Wengranowski wrote:

   Hi Everyone,

   I'm running into a weird issue with creating a Dialog box. When i add
   a widget that contains a doclayoutpanel to a dialog box, the CENTER
   area of the doclayoutpanel is not visible. The north and south areas
   seem to show just fine. I inspected this with firebug and the content
   was there, it just wasn't visible.

   Anyone have an idea what might be happeniing here?

   Thanks,
   -Mark- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

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



Need help for storing Sessions

2011-08-04 Thread Foermchen82
Hi,

i actual do my first steps with GWT.
Now I want to secure my web application. It is no problem, to build a
login dialog with username and password.
On several websites i have read, that I have to build a secure token
ant store it in a cookie to track the validility of the session.

For this, I have several questions:

1. What, if i can't use cookies. How can I remember, that the user is
still logged in?
2. If I refresh the page, the login dialog will be shown. How I can
display the last state of the website?
3. If I close the browser an open it again, and if I store the token
in a cookie, does the laste state of the session will be restored? I
hope not! If I close the browser, the session should not be reusable
4. I have read, that cookies can possible be a security problem. How
can I prevent this?

Can comebody help me?

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



gxt tree issue

2011-08-04 Thread dan.cojo...@gmail.com
Hello all,
We are having an issue with a ext gwt tree, from time to time (we are
not able to reproduce this easily) the tree is not expanding. We
captured the stacktrace presented below.
The sencha support suggested that this could be some gwt chrome
generated code issue (see
http://www.sencha.com/forum/showthread.php?118358-Strange-problem-I-can-t-quite-explainp=633662viewfull=1#post633662).
Note that this is happening only with google chrome. Currenly we are
using gwt-2.3.0 and gxt-2.2.4.
Please advice on how should we debug this further.
Regards,
Dan

TypeError: Cannot read property
'com_extjs_gxt_ui_client_widget_treepanel_TreePanel_nodes' of null
at com_extjs_gxt_ui_client_widget_treepanel_TreePanel_
$findNode__Lcom_extjs_gxt_ui_client_widget_treepanel_TreePanel_2Lcom_google_gwt_user_client_Element_2Lcom_extjs_gxt_ui_client_widget_treepanel_TreePanel
$TreeNode_2 (http://localhost:58080/gconsole/06B7...html:37463:101)
at com_extjs_gxt_ui_client_widget_treepanel_TreePanelView_
$onMouseOver__Lcom_extjs_gxt_ui_client_widget_treepanel_TreePanelView_2Lcom_extjs_gxt_ui_client_event_TreePanelEvent_2V
(http://localhost:58080/gconsole/06B7...html:38760:173)
at com_extjs_gxt_ui_client_widget_treepanel_TreePanelView_
$onEvent__Lcom_extjs_gxt_ui_client_widget_treepanel_TreePanelView_2Lcom_extjs_gxt_ui_client_event_TreePanelEvent_2V
(http://localhost:58080/gconsole/06B7...html:38710:148)
at
Object.com_extjs_gxt_ui_client_widget_treepanel_TreePanel_onComponentEvent__Lcom_extjs_gxt_ui_client_event_ComponentEvent_2V
[as
onComponentEvent__Lcom_extjs_gxt_ui_client_event_ComponentEvent_2V]
(http://localhost:58080/gconsole/06B7...e.html:38049:3)
at com_extjs_gxt_ui_client_widget_Component_
$onBrowserEvent__Lcom_extjs_gxt_ui_client_widget_Component_2Lcom_google_gwt_user_client_Event_2V
(http://localhost:58080/gconsole/06B7...e.html:7664:15)
at
Object.com_extjs_gxt_ui_client_widget_Component_onBrowserEvent__Lcom_google_gwt_user_client_Event_2V
[as onBrowserEvent__Lcom_google_gwt_user_client_Event_2V] (http://
localhost:58080/gconsole/06B7...he.html:8012:3)
at
com_google_gwt_user_client_DOM_dispatchEvent__Lcom_google_gwt_user_client_Event_2Lcom_google_gwt_user_client_Element_2Lcom_google_gwt_user_client_EventListener_2V
(http://localhost:58080/gconsole/06B7html:44951:12)
at HTMLDivElement.anonymous (http://localhost:58080/gconsole/
06B7...html:45352:105)
at
com_google_gwt_core_client_impl_Impl_apply__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2
(http://localhost:58080/gconsole//06Bhtml:39220:21)
at
com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2
(http://localhost:58080/gconsole//
06B77E11D139763379ED6E3DA1131BCA.cache.html:39248:12)

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



Re: Help!

2011-08-04 Thread Thomas Lefort
I have been through the v2 map jsni library and I am struggling to
understand the difference.
On the other hand I really stripped it down to teh bare minimum and I
am now just adding a button. The button appears in the bubble but the
click event is never triggered...


On Aug 4, 5:05 pm, Thomas Lefort lefortho...@gmail.com wrote:
 You are right and this is why I pass a flow panel first as an element
 and then I add the widget itself to the flow panel using
 FlowPanel.add(widget). I could get that to work on a normal div that
 I had in my HTML file but with the map infoWindow it just won't work
 and I really can't see the difference.

 On Aug 4, 4:40 pm, John Ho jzho...@gmail.com wrote:







  Because you are passing an Element, any handlers that were added to your
  Widget do not get passed along. To get around this, you will need to create
  a native JSNI function for your buttons and links.

  Example:

  yourButton.getElement().setPropertyJSO(onclick, yourClickFunction);

  Where yourClickFunction is defined in JSNI.

  On Thu, Aug 4, 2011 at 10:06 AM, Thomas Lefort lefortho...@gmail.comwrote:

   I am debugging with firefox but I do not see any error. It's more like
   all handlers have been wiped out, when I click on a link it doesn't do
   anything anymore. If I try the exact same widget by adding it to
   another widget or via uibinder all the links and buttons work fine.

   On Aug 4, 4:01 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:
Are you debbug with firebug or similar to see the error?

2011/8/4 Thomas Lefort lefortho...@gmail.com

 If anybody can help, I am really pulling my hairs...

 I am on my last bit of my jsni integration with maps v3. I want a
 widget to appear in an infowindow. The widget has buttons and links.
 All elements appear fine in the infowindow except that none of the
 links, buttons work anymore.

 This is what I do:

 public native void openInfoWindowWidget(EOLatLng markerPosition,
 Element element) /*-{
                var myElement = element;

   $wnd.mapsJSNI.openInfoWindowWidget(markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
 ::lat,
 markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng
 ::lng,
 myElement);
 }-*/;

 public final void openPropertiesWindow(EOLatLng currentCoordinate,
 ListProperty properties, PropertiesChange callBack) {
                FlowPanel panel = new FlowPanel();
            openInfoWindowWidget(currentCoordinate, 
 panel.getElement());
            panel.add(propertiesEditor);
        }

 propertiesEditor is my widget, it's a field. I am adding the flowpanel
 in between to avoid a call to getElement on the widget itself.

 I would really appreciate any ideas!!!

 Thanks

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

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

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



Re: generating dynamic jsp pages instead of html

2011-08-04 Thread Christian Andersson

No one ?

On 02. aug. 2011 12:47, Christian Andersson wrote:

Hi there.

I know that as of today it is now possible to generate dynamic jsp 
pages instead of html pages using the gwt compiler


I wonder, have anyone looked into doing this in any form.

The reason i'm asking this is that GWT in it's current way do not 
allow for an easy dynamic translation of the pages, I know I can use 
the Dictionary class for this, but for me, it is not flexible enough 
(translation is stil ldone on client side, and i still need to add jsp 
code to find and fetch the translations and encode them into 
javascript objects.)


so, this is the simple Idea I want to do instead.
1: remove all permutations for languages leaving only one permutation 
for languages (default)

2: exchange the extension 0f the output from html to jsp
3: in the generated jsp files, instead of reading the propertyfiles 
and hard coding the language text into the result file, add java/jsp 
code that will read from the propertyfile instead of generating 1 file 
for each language.


so, has anyoen tried anything like that?

/Christian Andersson


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



Re: Help!

2011-08-04 Thread John Ho
Even though you are creating a new FlowPanel and adding your 
propertiesEditor widget after passing it into the popup, it still doesn't 
matter because you are passing the panel as an Element in your 
openInfoWindowWidget 
method.

But to elaborate on the approach I mentioned, try this as an example:

public class YourPanel extends Composite {
JavaScriptObject clickFunction;

{
createJSNIBridge();
}

public YourPanel() {
Button button = new Button(Button);
button.getElement().setPropertyJSO(onclick, clickFunction);

FlowPanel panel = new FlowPanel();
panel.add(button);
initWidget(panel);
}

native void createJSNIBridge()/*-{
this.@your.package.location.YourPanel::clickFunction = function() {
alert(Clicked!);
}
}-*/;
}

And then call openInfoWindowWidget(currentCoordinate, new YourPanel
().getElement()); 

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



Re: Application written using GWT 2.1.1 goes belly up in 2.3 dev mode -- please help me to understand

2011-08-04 Thread Ioan Agopian
Hi,

It seems that GWT is no longer in the build path. Try setting it again
in the project settings under Google / Web toolkit.

Regards,
Ioan

On Aug 4, 8:20 pm, Rob Tanner caspersg...@gmail.com wrote:
 Hi,

 I have a production application built using GWT 2.1.1 and the Eclipse
 plugin.  I've just installed Eclipse Indigo (jee edition) and the GWT
 2.3 plugin.  Not wanting to break something that already works, I
 created a new workspace in Eclipse and than imported the project.
 When I try to bring up the project in Development mode I get lots and
 lots of errors (could say all hell breaks loose).  Below is the output
 I get in Eclipse.  I'm hoping there's a simple configuration solution
 to this problem, but at this point I have no idea what it is.

 Thanks,
 Rob

 [DEBUG] [accountrequest] - Validating newly compiled units
         [ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
 Eclipse-Indigo/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
 user.jar!/com/google/gwt/dom/client/CanvasElement.java'
                 [ERROR] [accountrequest] - Line 43: No source code is 
 available for
 type com.google.gwt.canvas.dom.client.Context; did you forget to
 inherit a required module?
                 [ERROR] [accountrequest] - Line 54: No source code is 
 available for
 type com.google.gwt.canvas.dom.client.Context2d; did you forget to
 inherit a required module?
         [ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
 Eclipse-Indigo/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
 user.jar!/com/google/gwt/dom/client/MediaElement.java'
                 [ERROR] [accountrequest] - Line 124: No source code is 
 available for
 type com.google.gwt.media.dom.client.TimeRanges; did you forget to
 inherit a required module?
                 [ERROR] [accountrequest] - Line 178: No source code is 
 available for
 type com.google.gwt.media.dom.client.MediaError; did you forget to
 inherit a required module?
         [ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
 Eclipse-Indigo/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
 user.jar!/com/google/gwt/dom/client/Touch.java'
                 [ERROR] [accountrequest] - Line 36: The method
 touchGetClientX(Touch) is undefined for the type DOMImpl
                 [ERROR] [accountrequest] - Line 45: The method
 touchGetClientY(Touch) is undefined for the type DOMImpl
                 [ERROR] [accountrequest] - Line 54: The method
 touchGetIdentifier(Touch) is undefined for the type DOMImpl
                 [ERROR] [accountrequest] - Line 63: The method 
 touchGetPageX(Touch)
 is undefined for the type DOMImpl
                 [ERROR] [accountrequest] - Line 72: The method 
 touchGetPageY(Touch)
 is undefined for the type DOMImpl
                 [ERROR] [accountrequest] - Line 103: The method
 touchGetScreenX(Touch) is undefined for the type DOMImpl
                 [ERROR] [accountrequest] - Line 112: The method
 touchGetScreenY(Touch) is undefined for the type DOMImpl
                 [ERROR] [accountrequest] - Line 121: The method
 touchGetTarget(Touch) is undefined for the type DOMImpl
         [ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
 Eclipse-Indigo/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
 user.jar!/com/google/gwt/editor/client/EditorDriver.java'
                 [ERROR] [accountrequest] - Line 97: No source code is 
 available for
 type javax.validation.ConstraintViolationT; did you forget to
 inherit a required module?
         [ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
 Eclipse-Indigo/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
 user.jar!/com/google/gwt/editor/client/impl/
 AbstractEditorContext.java'
                 [ERROR] [accountrequest] - Line 92: The method
 addSubDelegate(AbstractEditorDelegate, String, Editorcapture#16-of ?) is 
 undefined for the type AbstractEditorDelegateT,capture#15-of ?

                 [ERROR] [accountrequest] - Line 93: The method 
 getEditorChain() is
 undefined for the type AbstractEditorDelegateT,capture#17-of ?
                 [ERROR] [accountrequest] - Line 129: The method
 accept(EditorVisitor) is undefined for the type
 AbstractEditorDelegatecapture#23-of ?,capture#24-of ?
         [ERROR] [accountrequest] - Errors in 'jar:file:/Users/rtanner/Java/
 Eclipse-Indigo/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-
 user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
                 [ERROR] [accountrequest] - Line 67: No source code is 
 available for
 type javax.validation.ConstraintViolationT; did you forget to
 inherit a required module?
                 [ERROR] [accountrequest] - Line 82: The method 
 initialize(String, T,
 E, DelegateMap) in the 

GWT + Guice + Shiro

2011-08-04 Thread Fabricio Pizzichillo
Hello Friends
I have an application with GWT + Gin + Guice + Postgresql + Mybatis. Can
anyoneguide me on how to configure ApacheShiro to authenticate users?
thanks

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



Re: StockWatcherTest.java not generated

2011-08-04 Thread Peterson G.
I made a clean install of Eclipse, reinstalled and it worked. I've
read somewhere that there was conflict with hibernate, maybe that was
the problem. Anyway, it works, now.


On 3 août, 22:53, Peterson G. peterson.g...@gmail.com wrote:
 Hello,

 Sorry to bother you with such a beginner problem, but I'm stuck with
 it. I searched the group for a solution and did not found one.

 I've just installed GWT in Eclipse and was trying to follow the Sample
 Application Tutorial (http://code.google.com/webtoolkit/doc/latest/
 tutorial/gettingstarted.html)

 The directory layout is created properly, but some file aren't :
 The test directory is created, with a test package, but the test
 package is empty.
 No StockWatcherTest.java.
 None of the .launch files are created either.

 The .classpath and the .project are generated. (And I've no active
 filter in my Package Explorer)

 Do you have any clue on what I did wrong ?

 My Eclipse version is Helios Build 20110301-1815
 I installed plugins fromhttp://dl.google.com/eclipse/plugin/3.6

 Thanks !

 Peterson

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



Re: Application written using GWT 2.1.1 goes belly up in 2.3 dev mode -- please help me to understand

2011-08-04 Thread Jeff Larsen
Are you using maven? 

This looks like you have competing versions of GWT on your classpath and the 
old one is winning :)

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



Re: Web Workers in GWT

2011-08-04 Thread OrNOt
Hi, Cidylle,
  I wrote  one example  based on speed tracer 's web worker and
after some sort of struggling
make it run.

 If you like , I can send the source code to you.  It seems no
place to attach file here?


Regards.
OrNot

BTW:   I also need your help if possible. I want to pass a canvas'
image array from front thread to worker,
in javascript, it seems easy by the event.data. But I don't know how
to pass it in Speed Tracer 's implementation.
If I understand right, it only passes string and double.





On Aug 3, 8:56 am, cidylle0 cidyl...@gmail.com wrote:
 Chris,
 Thanks again for your pointers, they have been very helpful. Following
 your advice I believe I managed to set up the proper configuration and
 I feel I am very close to succeeding. So far I am simply trying to
 test the set up by sending a message from the main module to the
 worker, and have the worker send back the message then display it in
 an alert window. As I attempt to do so with postMessage() methods I
 run into an error I cannot seem to correct:

 (worker bootstrap error : alert not defined )

 Do you have any idea what that error could be ? I have the error
 whether i use simple strings or JSON objects in postMessage. I have
 ran a couple searches and looked into the wc3 specs but to no avail.
 Thank you.

 On Aug 2, 10:18 am, Chris Conroy con...@google.com wrote:







  Within SpeedTracer take a look at the Breaky Worker infrastructure (used to
  validate the schema of records SpeedTracer receives from Chrome):

  client/ui/src/com/google/speedtracer/...
  breaky/BreakyWorker.gwt.xml
  breaky/worker/BreakyWorker.java
  client/model/BreakyWorkerHost.java

  To get an idea of how all this stuff is wired up. The Worker Host lives in
  the normal GWT module side of things, and the BreakyWorker is a
  DedicatedWorkerEntryPoint responsible for initializing the worker. Since
  it's small, it also handles the handling of messages.

  The BreakyWorker.gwt.xml module pulls in  our WebWorker definition and uses
  the DedicatedWorkerLinker.

  On Mon, Aug 1, 2011 at 7:58 PM, cidylle0 cidyl...@gmail.com wrote:
   Thank you for your input Chris.
   Yes I have been looking at the code included in Speedtracer but
   without documentation (and the fact that I am a novice GWT developer)
   I am having a difficult time figuring out how to the webworker is
   being set up and used in Speedtracer. There seems to be a module for
   the webworker with various classes representing worker entry points
   but I am not sure which would to implement and in what context. In the
   xml files of the modules i did notice an add-linker ... tag which I
   am assuming points to the module that represents the worker. Again, if
   anyone could provide a few basic steps to make a simple web worker
   work in GWT I would greatly appreciate.

   On a general note, I am a bit surprised by the lack of support
   available for web workers in gwt, when there is support for other
   HTML5 features like local storage, canvas etc. Does anyone know why it
   is the case ? Are people not interested in using multi-threading in
   GWT or is GWT not a suitable tool for such an application ?

   On Aug 1, 3:54 pm, Chris Conroy con...@google.com wrote:
You definitely don't want to use gears.

You can take a look at how SpeedTracer uses WebWorkers via a custom
DedicatedWebWorker linker:
  http://code.google.com/p/speedtracer/source/browse/#svn%2Ftrunk%2Fsrc...

Note that you cannot reference $doc or $wnd in the webworker.

On Mon, Aug 1, 2011 at 6:37 PM, cidylle0 cidyl...@gmail.com wrote:
 Hi Allahbaksh.

 I did run accross the gwt-ns you mentioned but I am having trouble
 running the sample described. Can't seem to set it up right. The
 documentation is very minimal and the project seems to have been
 halted. Can anyone who has used web workers with GWT before help me
 out or point me out to some JAR or tutorial out there ? I found
 something called google Gears that seemed to have been doing something
 very similar (worker pool) but it has recently been deprecated. Any
 help would be appreciated. Thanks.

 On Aug 1, 5:02 am, Allahbaksh a.allahba...@gmail.com wrote:
  HI,
  Check gwt-ns project. I have personally not used it.
  Regards,
  Allahbaksh

  On Jul 30, 6:08 am, cidylle0 cidyl...@gmail.com wrote:

   Hello,

   I am currently playing around with GWT and I would like to
   implement
   some HTML5 features with it like web workers. In the GWT
   documentation
   I see that it supports a couple HTML5 features but no Web Workers.
   Are
   there any libraries out there that would implement web workers in
   GWT ? Or can anybody point me to a simple tutorial ? I would
   appreciate. 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
   

Re: java.lang.IllegalArgumentException: Unknown proxy type

2011-08-04 Thread Y2i
bumping up...

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



Re: DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Ashwin Desikan
additionally, try using a ResizeLayoutPanel. and place your 
docklayoutpanel inside it. This would ensure the docklayout panel 
automatically re-sizes based on the toppanel's width and height


On Friday 05 August 2011 12:40 AM, Mark Wengranowski wrote:

Ha, ok, i figured it out. I had to set the size of the widget i was
passing into the dialog box. I set it on everything else but
thisDoh! widget.setSize(width, height); does the trick.



On Aug 4, 11:38 am, Mark Wengranowskim...@greatlittlebox.com  wrote:

I tried and that did not work either. I specifying sizes on everything
just eliminate that issue.

On Aug 4, 11:30 am, Ashwin Desikanashwin.desi...@gmail.com  wrote:




Mark,
did you try to set the width and height of the dialog box? If you
haven't I would suggest try to set the width and height. That might
display the content area of your dock layout panel
regards
Ashwin
On Thursday 04 August 2011 11:25 PM, Mark Wengranowski wrote:

Hi Everyone,
I'm running into a weird issue with creating a Dialog box. When i add
a widget that contains a doclayoutpanel to a dialog box, the CENTER
area of the doclayoutpanel is not visible. The north and south areas
seem to show just fine. I inspected this with firebug and the content
was there, it just wasn't visible.
Anyone have an idea what might be happeniing here?
Thanks,
-Mark- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -


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



Re: UiBinder.useSafeHtmlTemplates

2011-08-04 Thread Hilco Wijbenga
On 4 August 2011 05:43, Brian Reilly brian.irei...@gmail.com wrote:
 Put the line to set the configuration property after
 inheriting com.google.gwt.uibinder.UiBinder, which you're probably
 inheriting indirectly by way of com.google.gwt.user.User.

Ah, that's the trick. After adding an inherits
com.google.gwt.user.User to my lowest level module, all warnings
disappear.

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



Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Nick Hristov
I am sorry, but this sounds insane.

You are going to generate page content on the browser which you will
post on the server so that it can be loaded by the browser.

I still stand by my original approach.

Generate the simple html content on the server, and let the browser
load a GWT module which (possibly with gwtquery) attaches event
handlers into the page and links into the rest of the module's
functionality.

Nick


On Aug 4, 7:24 am, dreamer venugopal.vasire...@gmail.com wrote:
  = static pages
   I tried to develop a page uisng UIBinder (mix of html and widgets)
 and RPC calls where it makes
   sense and ultimately I wanted to post entire page to server and let
 server serve next page.

 Here are My roadblocks for now

  * Not sure how to post entire page to servlet, develop just using
 designer and plugin

  * If some how, able to post UIBinder page to servlet, how servlet
 creates a RequestDispatcher for another UIBinder page?

  * Can UIBinder page be identifiable like jsp/html page on
 server ???

 -Venuhttp://schoolk12.appspot.com/

 On Aug 4, 6:45 am, Alexander Orlov alexander.or...@loxal.net wrote:







  On Thu, Aug 4, 2011 at 3:11 PM, Alex Dobjanschi
  alex.dobjans...@gmail.comwrote:

   As far as it goes, you're basically running Javascript code, in a
   (simple-to-complex) app, inside client code (browser sandbox). I don't how
   crawling such an app would be straightforward.

   The appsparts of an app shouldn't be crawled... There are static parts

  in almost every app, e.g. product descriptions and exactly those parts of
  an app should be crawled.

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



DockPanels TabLayoutPanel and missing elements

2011-08-04 Thread Dave Potts
Hi
I trying to construct a dialog with a base of a dockpanel with a
tablayoutpnael in the 'south' area.  An attempt to add an element to any
off the tab panel results in a display that only shows the tab header.

Looking a html/dom tree/display with firebug does not show anything
useful, is this type off thing a known problem.

I construct my tablayout panel and add several panels constructed from
FLOWPanels, I add elements to the FLOWPanels,  I expected something to be
shown or something to hidden in the firebug window.

my code reads as follows

public final  class MkMainDisplay extends TabLayoutPanel {


public MkMainDisplay(MkLayers theLayers) {
super(1.5, Unit.EM);
this.theLayers=theLayers;
BaseTabPanel tabPan,routePan,portPan;
tabPan=new InfoPanel(Info);
addPan(tabPan);
BLAH BLAH

private void addPan(BaseTabPanel pan){
add(pan,pan.getName());
BLAH BLAH

in the class InfoPanel

public class InfoPanel extends BaseTabPanel
public InfoPanel(String name) {
super(name);
add(new HTML(Hello world I am panel));
}
 BLAH BLAH
In the class BaseTabPanel

public class BaseTabPanel extends FlowPanel {

private String name;
public BaseTabPanel(String name) {
super();
this.name=name;
}
BLAH BLAH

Am I doing something wrong or have I forgotten to do something important?

Dave









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



Re: DockPanels TabLayoutPanel and missing elements

2011-08-04 Thread Ashwin Desikan
when using layout panels its recommended to place layoutPanels inside 
other layoutPanels. This would ensure the panels automatically resize.


In your case try to set the width  height of your tabLayoutPanel and 
its contents area.


thanks
Ashwin


On Friday 05 August 2011 10:40 AM, Dave Potts wrote:

Hi
I trying to construct a dialog with a base of a dockpanel with a
tablayoutpnael in the 'south' area.  An attempt to add an element to any
off the tab panel results in a display that only shows the tab header.

Looking a html/dom tree/display with firebug does not show anything
useful, is this type off thing a known problem.

I construct my tablayout panel and add several panels constructed from
FLOWPanels, I add elements to the FLOWPanels,  I expected something to be
shown or something to hidden in the firebug window.

my code reads as follows

public final  class MkMainDisplay extends TabLayoutPanel {


public MkMainDisplay(MkLayers theLayers) {
super(1.5, Unit.EM);
this.theLayers=theLayers;
BaseTabPanel tabPan,routePan,portPan;
tabPan=new InfoPanel(Info);
 addPan(tabPan);
 BLAH BLAH

 private void addPan(BaseTabPanel pan){
add(pan,pan.getName());
BLAH BLAH

in the class InfoPanel

public class InfoPanel extends BaseTabPanel
 public InfoPanel(String name) {
super(name);
add(new HTML(Hello world I am panel));
}
  BLAH BLAH
In the class BaseTabPanel

public class BaseTabPanel extends FlowPanel {

private String name;
public BaseTabPanel(String name) {
super();
this.name=name;
}
 BLAH BLAH

Am I doing something wrong or have I forgotten to do something important?

Dave











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



[gwt-contrib] Re: Comment on CssResource in google-web-toolkit

2011-08-04 Thread codesite-noreply

Comment by a.korzhe...@gmail.com:

Would really like to see smth like that:

@sprite .myClass {
  gwt-image: url(image.png);
}

because if i have external css with this class i would like to define image  
there and not in UiBinder via ui:image .../


For more information:
http://code.google.com/p/google-web-toolkit/wiki/CssResource

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Support chained requests where the returned proxy type is not reachable from the canonical Reque... (issue1499810)

2011-08-04 Thread bobv

Reviewers: rjrjr,

Description:
Support chained requests where the returned proxy type is not reachable
from the canonical RequestContext.
Issue 6641.
Patch by: bobv
Review by: rjrjr


Please review this at http://gwt-code-reviews.appspot.com/1499810/

Affected files:
  M user/src/com/google/web/bindery/autobean/vm/impl/FactoryHandler.java
  M  
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
  M  
user/test/com/google/web/bindery/requestfactory/gwt/RequestFactorySuite.java
  A  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryChainedContextTest.java
  M  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java
  A  
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryChainedContextJreTest.java
  M  
user/test/com/google/web/bindery/requestfactory/vm/RequestFactoryJreSuite.java



--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Fix typo (issue1497807)

2011-08-04 Thread fredsa

Reviewers: unnurg,

Description:
Fix typo

Fixes issues: 5912

Review by: unn...@google.com

Please review this at http://gwt-code-reviews.appspot.com/1497807/

Affected files:
  M user/src/com/google/gwt/regexp/shared/RegExp.java


Index: user/src/com/google/gwt/regexp/shared/RegExp.java
===
--- user/src/com/google/gwt/regexp/shared/RegExp.java   (revision 10471)
+++ user/src/com/google/gwt/regexp/shared/RegExp.java   (working copy)
@@ -32,7 +32,7 @@
  * There are a few small incompatibilities between the two implementations.
  * Java-specific constructs in the regular expression syntax (e.g.  
[a-z[^bc]],

  * (?=foo), \A, \Q) work only in the pure Java implementation, not the GWT
- * implementation, and are not rejected by either. Also, the  
Javscript-specific
+ * implementation, and are not rejected by either. Also, the  
Javascript-specific

  * constructs $` and $' in the replacement expression work only in the GWT
  * implementation, not the pure Java implementation, which rejects them.
  */


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] XMLHttpRequest2

2011-08-04 Thread Allahbaksh Asadullah
HI,
We are trying to implement XMLHttpRequest2. Whether there is already
some contribution made in this regards to the GWT? If yes can you
point out to the location of the source code.
If there is no contribution what is best way specify different
response type like ArrayBuffer, Blob etc. Whether GWT has already some
implementation of the same? If know can you people suggest what is
best way to have this done.
Regards,
Allahbaksh

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix typo (issue1497807)

2011-08-04 Thread unnurg

On 2011/08/04 16:22:03, fredsa wrote:

LGTM

http://gwt-code-reviews.appspot.com/1497807/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10493 committed - Remove CompilationUnit.getSource()....

2011-08-04 Thread codesite-noreply

Revision: 10493
Author:   gwt.mirror...@gmail.com
Date: Thu Aug  4 11:07:02 2011
Log:  Remove CompilationUnit.getSource().

No longer needed with GwtAstBuidler.

http://gwt-code-reviews.appspot.com/1462807/
Review by: zun...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10493

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/javac/CachedCompilationUnit.java
  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java

 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnitBuilder.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java
 /trunk/dev/core/test/com/google/gwt/dev/javac/CompilationStateTest.java
  
/trunk/dev/core/test/com/google/gwt/dev/javac/CompilationUnitArchiveTest.java

 /trunk/dev/core/test/com/google/gwt/dev/javac/MockCompilationUnit.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/javac/CachedCompilationUnit.java	 
Tue Jun 14 05:20:58 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/javac/CachedCompilationUnit.java	 
Thu Aug  4 11:07:02 2011

@@ -41,7 +41,6 @@
   private final CategorizedProblem[] problems;
   private final String resourceLocation;
   private final String resourcePath;
-  private final DiskCacheToken sourceToken;
   private final String typeName;

   /**
@@ -67,7 +66,6 @@
 this.problems = unit.problems;
 this.astToken = unit.astToken;
 this.astVersion = unit.astVersion;
-this.sourceToken = unit.sourceToken;

 // Override these fields
 this.lastModified = lastModified;
@@ -85,7 +83,7 @@
*  serialized AST types.
*/
   @SuppressWarnings(deprecation)
-  CachedCompilationUnit(CompilationUnit unit, long sourceToken, long  
astToken) {

+  CachedCompilationUnit(CompilationUnit unit, long astToken) {
 assert unit != null;
 this.compiledClasses = unit.getCompiledClasses();
 this.contentId = unit.getContentId();
@@ -110,7 +108,6 @@
 }
 this.astToken = new DiskCacheToken(astToken);
 this.astVersion = GwtAstBuilder.getSerializationVersion();
-this.sourceToken = new DiskCacheToken(sourceToken);
   }

   @Override
@@ -147,12 +144,6 @@
   public String getResourcePath() {
 return resourcePath;
   }
-
-  @Override
-  @Deprecated
-  public String getSource() {
-return sourceToken.readString();
-  }

   @Override
   public String getTypeName() {
===
---  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java	 
Wed Jun  8 16:44:32 2011
+++  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java	 
Thu Aug  4 11:07:02 2011

@@ -19,6 +19,7 @@
 import com.google.gwt.core.ext.TreeLogger.HelpInfo;
 import com.google.gwt.core.ext.TreeLogger.Type;
 import com.google.gwt.core.ext.UnableToCompleteException;
+import  
com.google.gwt.dev.javac.CompilationUnitBuilder.GeneratedCompilationUnit;

 import com.google.gwt.dev.jjs.InternalCompilerException;
 import com.google.gwt.dev.jjs.InternalCompilerException.NodeInfo;
 import com.google.gwt.dev.jjs.SourceInfo;
@@ -29,7 +30,6 @@

 import java.io.File;
 import java.io.IOException;
-import java.net.MalformedURLException;
 import java.net.URL;
 import java.util.HashSet;
 import java.util.LinkedList;
@@ -43,13 +43,6 @@
  * console.
  */
 public class CompilationProblemReporter {
-
-  /**
-   * Used to lazily retrieve source if needed for reporting an error.
-   */
-  public interface SourceFetcher {
-String getSource();
-  }

   /**
* Used as a convenience to catch all exceptions thrown by the compiler.  
For

@@ -144,40 +137,24 @@
   }

   /**
-   * Walk the compilation state and report errors if they exist.
+   * Logs errors to the console.
*
* @param logger logger for reporting errors to the console
-   * @param compilationState contains units that might contain errors
-   * @param suppressErrors See {@link #reportErrors(TreeLogger,  
CompilationUnit, boolean)}

+   * @param unit Compilation unit that may have errors
+   * @param suppressErrors Controls he log level for logging errors. If
+   *  codefalse/code is passed, compilation errors are logged  
at

+   *  TreeLogger.ERROR and warnings logged at TreeLogger.WARN. If
+   *  codetrue/code is passed, compilation errors are logged at
+   *  TreeLogger.TRACE and TreeLogger.DEBUG.
+   * @return codetrue/code if an error was logged.
*/
-  public static void reportAllErrors(TreeLogger logger, CompilationState  
compilationState,

-  boolean suppressErrors) {
-for (CompilationUnit unit : compilationState.getCompilationUnits()) {
-  if (unit.isError()) {
-reportErrors(logger, unit, suppressErrors);
-  }
-}
-  }
-
-  /**
-   * Report an error in a compilation unit to the console.
-   *
-   * @param logger logger 

[gwt-contrib] [google-web-toolkit] r10494 committed - Fix typo...

2011-08-04 Thread codesite-noreply

Revision: 10494
Author:   gwt.mirror...@gmail.com
Date: Thu Aug  4 11:18:23 2011
Log:  Fix typo

Fixes issues: 5912

Review at http://gwt-code-reviews.appspot.com/1497807

Review by: unn...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10494

Modified:
 /trunk/user/src/com/google/gwt/regexp/shared/RegExp.java

===
--- /trunk/user/src/com/google/gwt/regexp/shared/RegExp.java	Fri Oct  8  
06:15:38 2010
+++ /trunk/user/src/com/google/gwt/regexp/shared/RegExp.java	Thu Aug  4  
11:18:23 2011

@@ -32,7 +32,7 @@
  * There are a few small incompatibilities between the two implementations.
  * Java-specific constructs in the regular expression syntax (e.g.  
[a-z[^bc]],

  * (?=foo), \A, \Q) work only in the pure Java implementation, not the GWT
- * implementation, and are not rejected by either. Also, the  
Javscript-specific
+ * implementation, and are not rejected by either. Also, the  
Javascript-specific

  * constructs $` and $' in the replacement expression work only in the GWT
  * implementation, not the pure Java implementation, which rejects them.
  */

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Support chained requests where the returned proxy type is not reachable from the canonical Reque... (issue1499810)

2011-08-04 Thread rjrjr


http://gwt-code-reviews.appspot.com/1499810/diff/1/user/src/com/google/web/bindery/autobean/vm/impl/FactoryHandler.java
File
user/src/com/google/web/bindery/autobean/vm/impl/FactoryHandler.java
(right):

http://gwt-code-reviews.appspot.com/1499810/diff/1/user/src/com/google/web/bindery/autobean/vm/impl/FactoryHandler.java#newcode54
user/src/com/google/web/bindery/autobean/vm/impl/FactoryHandler.java:54:
return method.invoke(this, args);
Is this really related to this patch? What's it fixing?

http://gwt-code-reviews.appspot.com/1499810/diff/1/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
File
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
(right):

http://gwt-code-reviews.appspot.com/1499810/diff/1/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java#newcode505
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java:505:
AutoBeanT created;
So when I append the a CarService request context to a DogService
context, the car context will know how to make dogs, yes? Are we sure
that's desirable?

I guess I'm asking if it's a side effect of the fix that is not worth
the work of masking, or if you're taking extra effort to make it happen.

Presuming this side effect is happening because it needs to happen, we
should explicitly test for it.

http://gwt-code-reviews.appspot.com/1499810/diff/1/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryChainedContextTest.java
File
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryChainedContextTest.java
(right):

http://gwt-code-reviews.appspot.com/1499810/diff/1/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryChainedContextTest.java#newcode38
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryChainedContextTest.java:38:
* rechable proxy types.
reachable

http://gwt-code-reviews.appspot.com/1499810/diff/1/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryChainedContextTest.java#newcode91
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryChainedContextTest.java:91:
SimpleFooRequest c3 = c2.append(req.simpleFooRequest());
Would be easier to read of the context names reflected their type.
barRc1, fooRc1

http://gwt-code-reviews.appspot.com/1499810/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix typo (issue1497807)

2011-08-04 Thread fredsa

committed in r10494

http://gwt-code-reviews.appspot.com/1497807/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


  1   2   >