Re: StockWatcher RPC issues

2011-07-20 Thread fabio.bozzo
All right, solved by myself.
My StockPrice class had no zero-argument constructor.
Sorry.

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



Anybody can kindly provide a example to use Speed tracer's Web Worker?

2011-07-20 Thread OrNOt
Hello, there,
   I want to use speed tracer's web worker in my project, but I
can't find an example about it.  Anybody can help me to write a very
simple Hello world ?


Thanks in advance.
OrNot

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



TextArea - issues

2011-07-20 Thread dreamer
Hi,

I am capturing user input (multi line)  in
com.google.gwt.user.client.ui.TextArea - storing datastore.
and show the same in another TextArea of another component.

Issue, when I play it back it is completely loosing line breaks, and
showing as single line and beyond TextArea boundaries.

Any inputs please ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



recommended same look and strategy of I.T app?

2011-07-20 Thread Elhanan
hi..

i keep pondering about how to implement the same look and feel on our I.T 
apps. so i was thinking on something like this:

top section would have pull down menus standard for every app, side section 
would have application specific menus (maybe as a stack panel) 
buttom section would be for messages, while the center would be for the app 
itself. (and be changed by the menu  selection).

i believe this way i would need to deal with one ActivityManager, (for the 
center region). but there many ways to lay this out.
either by the design of tables in the HTML section, or using a 
dockLayoutPanel or some other means i'm not aware of.

-- 
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/-/90kkES-VHFsJ.
To 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.



GPE 2.4 and GIN - Folders issue

2011-07-20 Thread msanztru
Hello,

I am working in a project using GPE 2.4 with its functionality to
create the request factory services and so on. I am also using GIN. I
have been struggling with an issue and finally I have found the root
cause.

In my GWT module I need to use the Entity Proxies that GPE 2.4
generates automatically and places in the shared folder. This shared
folder is not below the the folder where the gwt.xml module definition
is. In the module definition you can include subfolders with the
path tag, but they need to be subfolders. GPE 2.4 creates the shared
folder at the same level as the src folder. Something like this:

src
--com
appname
module.gwt.xml
--client
gwt classes
--server
appengine classes
shared
--com
appname
--shared
Entity proxy classes

With this config, no matter what you specify in the gwt.xml path GIN
won't be able to access the entity proxies definitions and therefore
will not run.

Any ideas on how to fix this?

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: TextArea - issues

2011-07-20 Thread Michael Vogt
Hello.

 I am capturing user input (multi line)  in
 com.google.gwt.user.client.ui.TextArea - storing datastore.
 and show the same in another TextArea of another component.

 Issue, when I play it back it is completely loosing line breaks, and
 showing as single line and beyond TextArea boundaries.

I'm not quite sure I fully understand the problem. But one thing to
watch out for is, that linebreaks from textareas are stored as \n and
or \r. To keep the linebreaks when displaying the text in a div, for
example, remember that you have to replace them with br/.

Hope this helps,
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.



How to call jsp page from GWT SplitLayoutPanel

2011-07-20 Thread Eric Park
Hello, I have two questions.

1.  I'm trying to replace a Navigation Menu from my current project
with GWT StackPanelLayout and place it within West section of
SplitLayoutPanel. When a menu on StackPanelLayout is clicked, a jsp
page must be called and display on East section of SplitLayoutPanel
without affecting the StackPlanelLayout menu on the left side.

2.  Another question.  With one click of http request for GWT showcase
page,  loads up all the GWT widgets on web browser and when a menu is
clicked, corresponding widgets are called.  Is this the best practice
to implement a large web portal?

Any help will be appreciated.

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: TextArea - issues

2011-07-20 Thread Nandha
Hi..
If you are Realy using the  class/Widget com.google.gwt.user.client.
ui.TextArea,
wen u are giving text into that textarea object automatically it ll come in
two more lines based on the width and height of the TextArea..
Example try this code

package package.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextArea;

public class MyTextArea implements EntryPoint {

public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
 TextArea txtrIfYouAre = new TextArea();
txtrIfYouAre.setText(If you are Realy using the  class/Widget
com.google.gwt.user.client.ui.TextArea,\r\nwen u are giving text into that
textarea object automatically it ll come in two more lines based on the
width and height of the TextArea..);
rootPanel.add(txtrIfYouAre, 38, 85);
txtrIfYouAre.setSize(209px, 97px);
}
}
On Wed, Jul 20, 2011 at 3:05 AM, Michael Vogt vmei...@googlemail.comwrote:

 Hello.

  I am capturing user input (multi line)  in
  com.google.gwt.user.client.ui.TextArea - storing datastore.
  and show the same in another TextArea of another component.
 
  Issue, when I play it back it is completely loosing line breaks, and
  showing as single line and beyond TextArea boundaries.
 
 I'm not quite sure I fully understand the problem. But one thing to
 watch out for is, that linebreaks from textareas are stored as \n and
 or \r. To keep the linebreaks when displaying the text in a div, for
 example, remember that you have to replace them with br/.

 Hope this helps,
 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.




-- 

3 :) 3
yours.. Nandha...

-- 
You received 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 web app for mobile

2011-07-20 Thread xavier.meh...@gmail.com
Hello,
I've noticed a samplemobilewebapp in the GWT 2.4 repository, and I've
taken a glance in the code It frightened me by its complexity...
By comparison, doing an application with Jquery, JqueryMobile
(+phonegap eventually) is quite simpler and easier to do... And if you
want to do it with gwt too, gwtquery + jquery mobile plugin(easy to
do) or jqm4gwt, are still  simple.
A mobile application is not architectured the same way a desktop one,
and we don't need complex patterns to handle complexity.
I'm a  very early adopter of gwt with the first beta version, and we
still use it daily... but from my point of view it becomes more and
more complex, like j2EE has become... How could we go back to more
simplicity? Mobile applications are maybe a means to go back to roots.

regards

-- 
You received 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 web app for mobile

2011-07-20 Thread Michael Vogt
Hello.

snip
 still use it daily... but from my point of view it becomes more and
 more complex, like j2EE has become... How could we go back to more
 simplicity? Mobile applications are maybe a means to go back to roots.

I decide with every project how I structure the application. The good
thing is in my pov, that you are not forced to use all the MVP
classes, uibinder, editors, and so on. For some projects it is very
helpfull to have these available, but other just don't need it.

When comparing the applications I did with jQuery to the ones done
with GWT, I'm feeling much more comfortable when the functionality
grows into something comparable to an application. I almost only would
use jQuery and the likes when enhanceing a more traditional website.

YMMV.


Greetings,
Michael Vogt

-- 
You received 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 web app for mobile

2011-07-20 Thread J.Ganesan
A real advantage of GWT is shared code between client and server, both
java. It has immense utility if your application demands a lot of
transport of objects between client and server. If your mobile
application can be built wholly in javascript( and, hence JQuery), GWT
is probably an overkill. Please examine whether GWT is the right
choice for your application needs.

J.Ganesan
www.DataStoreGwt.com



On Jul 20, 5:19 pm, xavier.meh...@gmail.com
xavier.meh...@gmail.com wrote:
 Hello,
 I've noticed a samplemobilewebapp in the GWT 2.4 repository, and I've
 taken a glance in the code It frightened me by its complexity...
 By comparison, doing an application with Jquery, JqueryMobile
 (+phonegap eventually) is quite simpler and easier to do... And if you
 want to do it with gwt too, gwtquery + jquery mobile plugin(easy to
 do) or jqm4gwt, are still  simple.
 A mobile application is not architectured the same way a desktop one,
 and we don't need complex patterns to handle complexity.
 I'm a  very early adopter of gwt with the first beta version, and we
 still use it daily... but from my point of view it becomes more and
 more complex, like j2EE has become... How could we go back to more
 simplicity? Mobile applications are maybe a means to go back to roots.

 regards

-- 
You received 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 web app for mobile

2011-07-20 Thread xavier.meh...@gmail.com
I agree :)
I use gwt in a minimalistic way, only to well structure my code, and
gwtrpc (even if I use more and more restlets for communicating with a
server); the benefit is also debugging, and optimization... but the
cost for a big project (it is our case) is the compilation and
deployment tasks...
It is the reason why the use of gwtquery is a means to mix the best of
two world (and for mobile jquerymobile as gwtquery plugin)...
regards

On Jul 20, 2:47 pm, Michael Vogt vmei...@googlemail.com wrote:
 Hello.

 snip still use it daily... but from my point of view it becomes more and
  more complex, like j2EE has become... How could we go back to more
  simplicity? Mobile applications are maybe a means to go back to roots.

 I decide with every project how I structure the application. The good
 thing is in my pov, that you are not forced to use all the MVP
 classes, uibinder, editors, and so on. For some projects it is very
 helpfull to have these available, but other just don't need it.

 When comparing the applications I did with jQuery to the ones done
 with GWT, I'm feeling much more comfortable when the functionality
 grows into something comparable to an application. I almost only would
 use jQuery and the likes when enhanceing a more traditional website.

 YMMV.

 Greetings,
 Michael Vogt

-- 
You received 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 Designer support Databinding or not?

2011-07-20 Thread Mgr
I am new bee . Let me know Gwt Designer tool support data binding or
not? Like Editor

-- 
You received 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 web app for mobile

2011-07-20 Thread xavier.meh...@gmail.com
I agree too :)
but if we examine deeper into the kind of objects which are
transmitted, it is often domain classes, with near zero preocessing
functions, so a javascript counterpart of the java objects is often
sufficient... as said in a previous post, we often use restlet for
communicating ; if I'm sure that transmitted date won't be used by non
java applications , I can serialize in java my objects, otherwise I've
to make two representations (java and json for instance) for the same
resource. Maybe protocolbuffer will be later used instead to merge the
two worlds better.
I'm fond of gwt from the beginning, but I still think that gwt should
be simplified or at least the deployment model reniewed, eg adding on-
the-fly compilation to have the same development feeling as with jsp,
php, ...; we change the source code, and the server compiles on the
fly, and makes optimisations later... We still may have the current
scheme too for the ones who love it.
regards

On Jul 20, 2:56 pm, J.Ganesan j.gane...@datastoregwt.com wrote:
 A real advantage of GWT is shared code between client and server, both
 java. It has immense utility if your application demands a lot of
 transport of objects between client and server. If your mobile
 application can be built wholly in javascript( and, hence JQuery), GWT
 is probably an overkill. Please examine whether GWT is the right
 choice for your application needs.

 J.Ganesanwww.DataStoreGwt.com

 On Jul 20, 5:19 pm, xavier.meh...@gmail.com







 xavier.meh...@gmail.com wrote:
  Hello,
  I've noticed a samplemobilewebapp in the GWT 2.4 repository, and I've
  taken a glance in the code It frightened me by its complexity...
  By comparison, doing an application with Jquery, JqueryMobile
  (+phonegap eventually) is quite simpler and easier to do... And if you
  want to do it with gwt too, gwtquery + jquery mobile plugin(easy to
  do) or jqm4gwt, are still  simple.
  A mobile application is not architectured the same way a desktop one,
  and we don't need complex patterns to handle complexity.
  I'm a  very early adopter of gwt with the first beta version, and we
  still use it daily... but from my point of view it becomes more and
  more complex, like j2EE has become... How could we go back to more
  simplicity? Mobile applications are maybe a means to go back to roots.

  regards

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



Re: Canvas and drawing Images that are not in the DOM

2011-07-20 Thread Philip Rogers
Good point, it's an unfortunate situation :/

The way I've handled this is to add the image to the page after adding the 
load handler:
// add event handler
yourImage.setVisible(false);
RootPanel.get().add(yourImage);

If you're waiting on hundreds of images to load, you may want to consider 
either ClientBundle (automatically groups images onto sprite sheets) or 
write a simple Loader class that attaches a load handler to each image, then 
gives you a callback when all of them have been loaded.

Philip

-- 
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/-/TFKvdLTs-iMJ.
To 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: recommended same look and strategy of I.T app?

2011-07-20 Thread Alfredo Quiroga-Villamil
Hi, take a look at:

http://code.google.com/p/easy-gwt/

and see if you can leverage some of the work we've done. You have 4 themes
also out of the box and can create another one to fit your company profile.
We give you access to changing the background color of the North Panel as
well as replacing the images displayed there to make the app feel like it
truly follows your company style guidelines. There are many more goodies and
things in the pipeline that can help you build an IT app. It also allows you
to integrate History Support although we are in the process of making this
also transparent.

Regards,

Alfredo

On Wed, Jul 20, 2011 at 5:42 AM, Elhanan elh.maa...@gmail.com wrote:

 hi..

 i keep pondering about how to implement the same look and feel on our I.T
 apps. so i was thinking on something like this:

 top section would have pull down menus standard for every app, side section
 would have application specific menus (maybe as a stack panel)
 buttom section would be for messages, while the center would be for the app
 itself. (and be changed by the menu  selection).

 i believe this way i would need to deal with one ActivityManager, (for the
 center region). but there many ways to lay this out.
 either by the design of tables in the HTML section, or using a
 dockLayoutPanel or some other means i'm not aware of.

  --
 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/-/90kkES-VHFsJ.
 To 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.




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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: TextArea - issues

2011-07-20 Thread dreamer
Here is the test case.

1) Keep entering - lines will automatically break and goes to next
line - enter till you see few line
2)  getValue()
3) store in datastore
4) get from data store and display in another TestArea.

Somewhere loosing line breaks ?


On Jul 20, 5:17 am, Nandha nandha1...@gmail.com wrote:
 Hi..
 If you are Realy using the  class/Widget com.google.gwt.user.client.
 ui.TextArea,
 wen u are giving text into that textarea object automatically it ll come in
 two more lines based on the width and height of the TextArea..
 Example try this code

 package package.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.TextArea;

 public class MyTextArea implements EntryPoint {

 public void onModuleLoad() {
 RootPanel rootPanel = RootPanel.get();
  TextArea txtrIfYouAre = new TextArea();
 txtrIfYouAre.setText(If you are Realy using the  class/Widget
 com.google.gwt.user.client.ui.TextArea,\r\nwen u are giving text into that
 textarea object automatically it ll come in two more lines based on the
 width and height of the TextArea..);
 rootPanel.add(txtrIfYouAre, 38, 85);
 txtrIfYouAre.setSize(209px, 97px);}
 }

 On Wed, Jul 20, 2011 at 3:05 AM, Michael Vogt vmei...@googlemail.comwrote:









  Hello.

   I am capturing user input (multi line)  in
   com.google.gwt.user.client.ui.TextArea - storing datastore.
   and show the same in another TextArea of another component.

   Issue, when I play it back it is completely loosing line breaks, and
   showing as single line and beyond TextArea boundaries.

  I'm not quite sure I fully understand the problem. But one thing to
  watch out for is, that linebreaks from textareas are stored as \n and
  or \r. To keep the linebreaks when displaying the text in a div, for
  example, remember that you have to replace them with br/.

  Hope this helps,
  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.

 --
 
 3 :) 3
 yours.. Nandha...

-- 
You received 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 web app for mobile

2011-07-20 Thread Michael Vogt
 I agree :)

Thanks :-)

snip
 but the
 cost for a big project (it is our case) is the compilation and
 deployment tasks...

I agree in a way. The problem arrises here when we are close to
release of a new version, and the testers want to see the fixes
immediately. Since the application is tested for release, I can't use
any of the compilation speedup tricks. At these times, I too would
like to have a faster compile. Especially for this nitty gritty
changes where a word is spelled wrong or a margin of an element should
change (when using CssResource) ...

But in general, I don't mind how fast the compile is, since I'm not
forced to sit in front of the computer watching how it progresses ;-)
Since I usually work using the development mode, which is fast for me,
and just deploy from time to time to the test server (maybe once a
week).

Deployment as such seems pretty easy and fast for me.


 It is the reason why the use of gwtquery is a means to mix the best of
 two world (and for mobile jquerymobile as gwtquery plugin)...

You mean, you compile the application in GWT and do some
implementation outside of it by handwritten JavaScript? This is
tempting, but I am not sure if I would use this. But when it helps you
to speed up turnaround time, excelent. And it shows how flexible GWT
can be adapted to specific needs :-)


Just my 2 cents,
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: GWT web app for mobile

2011-07-20 Thread xavier.meh...@gmail.com
 implementation outside of it by handwritten JavaScript
not at all , gwtquery is a jquery reimplementation in gwt and enables
the developper to develop as with jquery in java. For jquerymobile, we
use the gwtquery plugin mecanism to wrap the jqm library, and we still
continue to develop in java... But instead of using uibinder (I don't
like at all), you still  write jquery compliant html tags and you do
the processing in java... You even may use the jqm4gwt project for
doing everything in java if you don't mind doing html at all...

On Jul 20, 3:59 pm, Michael Vogt vmei...@googlemail.com wrote:
  I agree :)

 Thanks :-)

 snip but the
  cost for a big project (it is our case) is the compilation and
  deployment tasks...

 I agree in a way. The problem arrises here when we are close to
 release of a new version, and the testers want to see the fixes
 immediately. Since the application is tested for release, I can't use
 any of the compilation speedup tricks. At these times, I too would
 like to have a faster compile. Especially for this nitty gritty
 changes where a word is spelled wrong or a margin of an element should
 change (when using CssResource) ...

 But in general, I don't mind how fast the compile is, since I'm not
 forced to sit in front of the computer watching how it progresses ;-)
 Since I usually work using the development mode, which is fast for me,
 and just deploy from time to time to the test server (maybe once a
 week).

 Deployment as such seems pretty easy and fast for me.

  It is the reason why the use of gwtquery is a means to mix the best of
  two world (and for mobile jquerymobile as gwtquery plugin)...

 You mean, you compile the application in GWT and do some
 implementation outside of it by handwritten JavaScript? This is
 tempting, but I am not sure if I would use this. But when it helps you
 to speed up turnaround time, excelent. And it shows how flexible GWT
 can be adapted to specific needs :-)

 Just my 2 cents,
 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: RequestFactory issue: proxy must include getter if it is to include setter

2011-07-20 Thread David Chandler
Thanks, Ryan. It's a bug.

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

/dmc

On Tue, Jul 19, 2011 at 6:35 AM, Ryan McFall mcfall.r...@gmail.com wrote:
 I haven't seen this documented anywhere, and I've scrutinized much of
 the documentation, so I don't think I missed it.

 From what I can tell, if you have a proxy that contains a reference to
 another proxy, then you must have a getter in order for the setter to
 work properly.

 If the getter is missing, then the code for the setter will compile
 just fine, but at run-time an IllegalArgumentException is thrown when
 the setter is called, even with an appropriate parameter value.  This
 exception is thrown in AutoBeanCodexImpl.doCoderFor.

 Drilling down into the source code shows that the lack of a getter is
 the problem.

 If this is intended behavior, then it seems to me that it should be
 documented somewhere.  The closest I see is this statement in the
 Getting started with Request Factory document:

 It is not necessary to represent every property and method from the
 server-side entity in the EntityProxy, only getters and setters for
 properties that should be exposed to the client

 This doesn't explicitly say that both getters and setters are required
 for a property.

 Ryan

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





-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
You received 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: TabLayoutPanel expand to fit content?

2011-07-20 Thread MChan
Well, in that case it seems the Layout implementation of GWT overrides when 
I set position via 
[Widget].getElement().getStyle().setPosition(Position.RELATIVE) ; it sets 
the position to 'absolute'. The same goes for overflow property, which is 
set to 'hidden' whatever I manually set it to in my code.

I could have set some !important CSS rules (overrigin element style) to 
select some of the divs that need to be positionned 'relative', but given 
the markup, I would have to use the :nth-child(..) pseudo-class (if you look 
at the output markup, there are absolute positionned elements added by GWT 
with height set to ~500px in my case, so I don't want those absolute 
positionned element to be 'relative', thus the need to select specific 
children of the TabLayoutPanel). And I can't use that pseudo-class because 
it is not supported in IE6, and I need to support that browser.

In any case, I found it easier to build my own control instead of tweaking 
with TabLayoutPanel to expand to fit tab content!

Regards,
MChan

-- 
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/-/qhMXCyh57_YJ.
To 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: recommended same look and strategy of I.T app?

2011-07-20 Thread Elhanan Maayan
before i check out, does this framework implements MVP on it's own? becouse
i don't want to duplicate the work of allready in GWT (for example MVP4G ,
which seems great but doesn't use places and activities and thus bind me
more to it's code) , the same goes for the editing framework, i would like
to use a much possible all the features that already exists in gwt 2.1 +2.3
etc..

On Wed, Jul 20, 2011 at 4:34 PM, Alfredo Quiroga-Villamil laww...@gmail.com
 wrote:

 Hi, take a look at:

 http://code.google.com/p/easy-gwt/

 and see if you can leverage some of the work we've done. You have 4 themes
 also out of the box and can create another one to fit your company profile.
 We give you access to changing the background color of the North Panel as
 well as replacing the images displayed there to make the app feel like it
 truly follows your company style guidelines. There are many more goodies and
 things in the pipeline that can help you build an IT app. It also allows you
 to integrate History Support although we are in the process of making this
 also transparent.

 Regards,

 Alfredo


 On Wed, Jul 20, 2011 at 5:42 AM, Elhanan elh.maa...@gmail.com wrote:

 hi..

 i keep pondering about how to implement the same look and feel on our I.T
 apps. so i was thinking on something like this:

 top section would have pull down menus standard for every app, side
 section would have application specific menus (maybe as a stack panel)
 buttom section would be for messages, while the center would be for the
 app itself. (and be changed by the menu  selection).

 i believe this way i would need to deal with one ActivityManager, (for the
 center region). but there many ways to lay this out.
 either by the design of tables in the HTML section, or using a
 dockLayoutPanel or some other means i'm not aware of.

  --
 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/-/90kkES-VHFsJ.
 To 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.




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


  --
 You received 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: recommended same look and strategy of I.T app?

2011-07-20 Thread Elhanan Maayan
oh and we can't use GXT.

On Wed, Jul 20, 2011 at 5:15 PM, Elhanan Maayan elh.maa...@gmail.comwrote:

 before i check out, does this framework implements MVP on it's own? becouse
 i don't want to duplicate the work of allready in GWT (for example MVP4G ,
 which seems great but doesn't use places and activities and thus bind me
 more to it's code) , the same goes for the editing framework, i would like
 to use a much possible all the features that already exists in gwt 2.1 +2.3
 etc..


 On Wed, Jul 20, 2011 at 4:34 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hi, take a look at:

 http://code.google.com/p/easy-gwt/

 and see if you can leverage some of the work we've done. You have 4 themes
 also out of the box and can create another one to fit your company profile.
 We give you access to changing the background color of the North Panel as
 well as replacing the images displayed there to make the app feel like it
 truly follows your company style guidelines. There are many more goodies and
 things in the pipeline that can help you build an IT app. It also allows you
 to integrate History Support although we are in the process of making this
 also transparent.

 Regards,

 Alfredo


 On Wed, Jul 20, 2011 at 5:42 AM, Elhanan elh.maa...@gmail.com wrote:

 hi..

 i keep pondering about how to implement the same look and feel on our I.T
 apps. so i was thinking on something like this:

 top section would have pull down menus standard for every app, side
 section would have application specific menus (maybe as a stack panel)
 buttom section would be for messages, while the center would be for the
 app itself. (and be changed by the menu  selection).

 i believe this way i would need to deal with one ActivityManager, (for
 the center region). but there many ways to lay this out.
 either by the design of tables in the HTML section, or using a
 dockLayoutPanel or some other means i'm not aware of.

  --
 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/-/90kkES-VHFsJ.
 To 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.




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


  --
 You received 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: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call

2011-07-20 Thread dreamer
Is it reaching the server side code - I mean RPC Implementation
class ?
You can see in Debug. put a break point in RPC server impl.


If not reaching there , then it is definition issue - check web.xml,
sync and async method.
Debug mode gives very good Idea.

Looking like some mismatch while dispatching to servlet impl.

Does  arraylist have any elements ?



On Jul 19, 3:30 am, Nandha nandha1...@gmail.com wrote:
 Hi,
 I am getting the following error in the prompt.
 anybody can give solution for this...

 Logging to JettyLogger(null) via
 com.google.apphosting.utils.jetty.JettyLogger
 Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB-
 INF/appengine-web.xml
 Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB-
 INF/web.xml
 The server is running athttp://localhost:/
 [WARN] No file found for: /favicon.ico
 [ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.util.ArrayList
 spectrum.client.SpectrumService.getCMSData() throws
 java.lang.IllegalArgumentException' threw an unexpected exception:
 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 581)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
 ceServlet.java:
 207)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi 
 ceServlet.java:
 243)
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
 RemoteServiceServlet.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.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
 lter.java:
 58)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
 actionCleanupFilter.java:
 43)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile 
 Filter.java:
 122)
         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(DevAppEn 
 gineWebAppContext.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:212)
         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.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(Unknown Source)
         at java.util.ArrayList.set(Unknown Source)
         at
 spectrum.server.SpectrumServiceImpl.getCMSData(SpectrumServiceImpl.java:
 49)
         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
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 562)
  

Re: recommended same look and strategy of I.T app?

2011-07-20 Thread Alfredo Quiroga-Villamil
Hi Elhanan:

Yes today we use GWT/GXT. We will continue to use GXT in the future.
However, we are currently working on a version that will not have any
dependencies on GXT.

The framework does not force the usage of MVP. We use MVP and Gin when we
use the framework to build Enterprise Applications but EasyGWT itself is not
dependent or foces the usage of MVP.

Regards,

Alfredo

On Wed, Jul 20, 2011 at 10:18 AM, Elhanan Maayan elh.maa...@gmail.comwrote:

 oh and we can't use GXT.

 On Wed, Jul 20, 2011 at 5:15 PM, Elhanan Maayan elh.maa...@gmail.comwrote:

 before i check out, does this framework implements MVP on it's own?
 becouse i don't want to duplicate the work of allready in GWT (for example
 MVP4G , which seems great but doesn't use places and activities and thus
 bind me more to it's code) , the same goes for the editing framework, i
 would like to use a much possible all the features that already exists in
 gwt 2.1 +2.3 etc..


 On Wed, Jul 20, 2011 at 4:34 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hi, take a look at:

 http://code.google.com/p/easy-gwt/

 and see if you can leverage some of the work we've done. You have 4
 themes also out of the box and can create another one to fit your company
 profile. We give you access to changing the background color of the North
 Panel as well as replacing the images displayed there to make the app feel
 like it truly follows your company style guidelines. There are many more
 goodies and things in the pipeline that can help you build an IT app. It
 also allows you to integrate History Support although we are in the process
 of making this also transparent.

 Regards,

 Alfredo


 On Wed, Jul 20, 2011 at 5:42 AM, Elhanan elh.maa...@gmail.com wrote:

 hi..

 i keep pondering about how to implement the same look and feel on our
 I.T apps. so i was thinking on something like this:

 top section would have pull down menus standard for every app, side
 section would have application specific menus (maybe as a stack panel)
 buttom section would be for messages, while the center would be for the
 app itself. (and be changed by the menu  selection).

 i believe this way i would need to deal with one ActivityManager, (for
 the center region). but there many ways to lay this out.
 either by the design of tables in the HTML section, or using a
 dockLayoutPanel or some other means i'm not aware of.

  --
 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/-/90kkES-VHFsJ.
 To 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.




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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 Dev plugin for FF - how to install right Internet Browser version and GWT plugin version

2011-07-20 Thread Chris Conroy
The correct version is 1.0.10401 (you should see this listed in the add-ons
manager) and is compatible with Firefox 3.0-5.0

On Sat, Jul 16, 2011 at 9:17 PM, gwtuser001 freelancejavaco...@gmail.comwrote:

 Hello :)

 I tried to install GWT Dev Plugin for my FF but it says

 Download the GWT Developer Plugin
 For Firefox
 Win x86, Linux x86/x86_64, Mac x86/PPC(3.x only)/x86_64

 The thing is... I had installed this FF plugin for FF 4.0 but it shows
 not all widgets or not all layers... But the IE GWT plugin runs
 the app fine...

 So my question is what FF version is correct to install for this
 plugin?

 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.



Parent container style used?

2011-07-20 Thread JC
I was doing a test with this code. But the text in the table is being
styled by the parent container. Why it does not use the 'important'
css style defined locally?

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
ui:style
.important {
color: #FDFDFD;
font-weight: bold;
font-size: 14pt;
}
/ui:style
g:HTMLPanel
table
tr
tdg:Label 
stylePrimaryName=importantXXX/g:Label/td
tdg:LabelYYY/g:Label/td
tdg:LabelZZZ/g:Label/td
/tr
/table
/g:HTMLPanel
/ui:UiBinder

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



ListEditor with RequestFactory

2011-07-20 Thread Bernd
Hi,

is it possible to save all children of a ListEditor?



interface Driver extends RequestFactoryEditorDriverListCardProxy,
ListEditorCardProxy, CardEditor {}

// Create the driver which manages the data-bound widgets
driver = GWT.Driver create(Driver.class);

//CardEditorSource extends EditorSourceCardEditor
ListEditorCardProxy, CardEditor listEditor = ListEditor.of(new
CardEditorSource());

driver.initialize(eventBus, Application.get().getFactory(),
listEditor);

CardRequest cardRequest =
Application.get().getFactory().getCardRequest();
//do i need to specify a method for flush here ? e.g. persist(cards)

//cards is a ListCardProxy set from outside
driver.edit(cards,  cardRequest);

//if have tried
listEditor.setValue(cards);
//and
//driver.display(cards);
//for both cases the cards are shown correctly but saving does not
work


//save button
void onSaveClick(ClickEvent event) {
RequestContext flush = driver.flush();




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



Problems with theming

2011-07-20 Thread eSVau
I have some problems loading a theme. To remove any style i commented all 
*inherits 
name='com.google.gwt.user.theme. * ' /* out which and included some custom 
CssResources via ClientBundle everything worked fine.
Since all styling will be handled vie ClientBundle i no longer required 
MyApp.css and removed it reference at MyApp.html (entry point) 

Now i wanted to to reapply a theme (like it was before), because that way it 
is easier to develop and styling will concurrently be developed, therefore i 
put inherits name='com.google.gwt.user.theme.standard.Standard' / back 
into gwt.xml but nothing happens when i run my gwt app in dev. mode.
There is no style applied only ClientBundle injected css will be shown but 
all other elements are blank.

If i inspect the code with firebug cass classes are there, for example the 
header of a StackLayoutPanel are labeled

div class=gwt-HTML gwt-StackLayoutPanelHeader style=position: absolute; 
left: 0px; top: 0px; right: 0px; bottom: 0px;

but no style applied. A /gwt/standard/ is created with contains css and 
images


So, i'm kinda puzzle what's missing or why standard theme won't be reapplied

-- 
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/-/O15tuLbzI3UJ.
To 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.



How to debug CSS

2011-07-20 Thread Ionuț G. Stan
How do you guys debug CSS given that class names are obfuscated. I'm 
using a CellTable and some rows have up to 4-5 class names.


Is there a way to @export all these classes in a certain CSS file? I 
don't want to explicitly export them all, even with an automated way of 
extracting the class names.


Thanks!
--
Ionuț G. Stan  |  http://igstan.ro

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



Equivalent JavaScript pattern in GWT

2011-07-20 Thread Ionuț G. Stan

Hi,

Whenever I'm working in JS, I find myself times and times again using a 
certain pattern in order to avoid an extra call to the server. I dump 
into the web page a JSON object (serialized by the server) inside a 
SCRIPT tag that is then interpreted by the browser as part of the normal 
flow. The alternative would be to make an additional Ajax request, which 
is unnecessary form my point of view.


For example:

script
var DB_DATA = {
   users: ?php echo json_encode(fetch_users_from_db()); ?
};

window.onload = function () {
   // disp
   display_users(DB_DATA.users);

   refreshButton.onclick = function () {
 fetch_users_from_server(function (users) {
   display_users(users);
 });
   };
};
/script


As far as my GWT knowledge goes, I can do the same thing in GWT using 
JSNI, with something like this:


public native void displayUsers()/* {
  display_users(DB_DATA.users);
} */;

However, I was wondering if there's some GWT specific pattern, that 
would also allow some compile time checks for the presence of the 
generated JS variable (similar to how CSS files are checked to see if 
all the required CSS classes are declared).


Thanks!
--
Ionuț G. Stan  |  http://igstan.ro

--
You received 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 hibernate

2011-07-20 Thread asi
hi everyone ,i need help ton figure out how to use hibernate and gwt
or gxt together
nothing that i found seemed to work
thx

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



Re: Canvas and drawing Images that are not in the DOM

2011-07-20 Thread Jeff Larsen
I haven't been able to get ImageResource to work with Canvas, so I don't 
think that solution is viable. Am I mistaken? Were you guys able to do that 
with forplay? 

-- 
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/-/tlAvzUke17EJ.
To 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 hibernate

2011-07-20 Thread Juan Pablo Gardella
See this 
threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/7e46e8c33e7ee5da/e80d1eff4ddb7a81?pli=1
.

2011/7/20 asi mbkas...@gmail.com

 hi everyone ,i need help ton figure out how to use hibernate and gwt
 or gxt together
 nothing that i found seemed to work
 thx

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



Aw: Problems with theming

2011-07-20 Thread eSVau
Ok, it seems it was an strange eclipse error.

Using mvn gwt:run instead via eclipse and everything was fine. And to 
puzzle me even more it worked afterwards with changing theme, removing, 
reapplying theme, etc.

-- 
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/-/-eu31tLw_UAJ.
To 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 hibernate

2011-07-20 Thread swapnil marghade
GWT supports hibernate let me know what problem or issue you are facing ..

On Wed, Jul 20, 2011 at 4:19 PM, asi mbkas...@gmail.com wrote:

 hi everyone ,i need help ton figure out how to use hibernate and gwt
 or gxt together
 nothing that i found seemed to work
 thx

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



login form

2011-07-20 Thread Paolo Inaudi
I've made a login form in gwt with a textbox, a passwordtextbox and a
button.
everything is fine, but browser isn't asking me to store the password.
Do I have to make the button a html submit input and create another
page? or is there a way to tell the browser this is a login form?
thanks a lot
Paolo

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



Re: Canvas and drawing Images that are not in the DOM

2011-07-20 Thread Philip Rogers
Hey Jeff,

We initially had a custom image bundle that produced large base64-encoded 
sprite sheets, and that did work--we just created an image with the base64 
result and used it that way. Sadly, there are some memory issues with IE9 
that prevent this from being feasible because IE ends up copying the base64 
src string a few times in memory (a reasonable thing to do when uri's are 
small), which was a problem for us because we had such large images.

When using many images on Canvas, our solution in ForPlay is to do the 
sprite sheeting manually (reduces 100 image requests to 1, along with some 
other GL advantages) and use the normal GWT Image load technique I posted 
above.

Philip

-- 
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/-/TX3P7DrujkMJ.
To 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:

2011-07-20 Thread David Chandler
My apologies for the spam, folks. Ahmed is a long time group member and
therefore the recent posts from this account were not subject to moderation.
Most likely, the account has been compromised, so I've banned it until the
situation is resolved.

/dmc

On Tue, Jul 19, 2011 at 11:15 PM, Ahmed Sief ahmed_sie...@yahoo.com wrote:

 http://hoellmueller.biz/modules/Search/adm.htm

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




-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
You received 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: login form

2011-07-20 Thread Juan Pablo Gardella
I think you must use a form
panelhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/FormPanel.html
if you want the browser ask store some input.

2011/7/20 Paolo Inaudi p91p...@gmail.com

 I've made a login form in gwt with a textbox, a passwordtextbox and a
 button.
 everything is fine, but browser isn't asking me to store the password.
 Do I have to make the button a html submit input and create another
 page? or is there a way to tell the browser this is a login form?
 thanks a lot
 Paolo

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



override / overrule a gwt class, AbstractPlaceHistoryMapper

2011-07-20 Thread pansen
hi all,

i try to bring in our project a slightliy modified version of the
class ``com.google.gwt.place.impl.AbstractPlaceHistoryMapperF``.
unfortunately without success.

it seems like deferred binding does not work here as this is not a
client class. or it does not work cause its an abstract class - i
couldn't manage it.

now my trivial solution (/try) was to have the same file in the same
package in my project and hope this would be chosen before the
gwt*.jar file. unfortunately this is not the case and not working...

has anyone a hint for me how to bring in my minimal modified version
of this file?

btw. this problem belongs to this thread
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/33f8c5e63209da4f,
which i will write a blog entry when its done. but this part is the
very last problem...

cheers, andi

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



Connecting to a oracle database with GWT

2011-07-20 Thread Bruno Henrique
Hi people,

Can someone give an example how to configure and call a oracle db connection
using GWT.
I know that it must be done in the server side and I can get the data in
client side using RPC. But I don't know where to add the oracle library and
make the calls.

Tks!!!

-- 
You received 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: override / overrule a gwt class, AbstractPlaceHistoryMapper

2011-07-20 Thread Jeff Larsen
if you look at Place.gwt.xml you'll see that 


  generate-with 
class=com.google.gwt.place.rebind.PlaceHistoryMapperGenerator
when-type-assignable 
class=com.google.gwt.place.shared.PlaceHistoryMapper/
  /generate-with

so the class you need to override is PlaceHistoryMapperGenerator

Looking in PlaceHistoryMapperGenerator you'll see imports for 

import com.google.gwt.place.impl.AbstractPlaceHistoryMapper;
import com.google.gwt.place.impl.AbstractPlaceHistoryMapper.PrefixAndToken;

If you did a copy/paste of the code and imported your class extending APHM 
and the PrefixAndToken(possibly) and then in your gwt.xml file did   
generate-with class=com.my.generator.CopiedPlaceHistoryMapperGenerator
when-type-assignable 
class=com.google.gwt.place.shared.PlaceHistoryMapper/
  /generate-with

you should get the result you desire. 

-- 
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/-/inSP2AbauBoJ.
To 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: Connecting to a oracle database with GWT

2011-07-20 Thread Kevin Anderson
http://www.java-forums.org/java-tips/6116-using-jdbc-connect-oracle-database.html

This is more of a java question then a GWT question. But the above gives you 
an example of how to do it. Though I personally prefer using something like 
spring to handle the oracle connection and then in my services just inject 
the connection.

-- 
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/-/8k6xhdQKwY0J.
To 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: Connecting to a oracle database with GWT

2011-07-20 Thread Kayode Odeyemi
There's ODK4Spring connector. Download it and you are up to speed.

On 7/20/11, Kevin Anderson kev...@gmail.com wrote:
 http://www.java-forums.org/java-tips/6116-using-jdbc-connect-oracle-database.html

 This is more of a java question then a GWT question. But the above gives you
 an example of how to do it. Though I personally prefer using something like
 spring to handle the oracle connection and then in my services just inject
 the connection.

 --
 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/-/8k6xhdQKwY0J.
 To 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.




-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde

-- 
You received 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: Equivalent JavaScript pattern in GWT

2011-07-20 Thread Jeff Chimene
You've got to expose DB_DATA to Java for this to work.
Maybe use Javascript overlays
(http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html),
and call out to Java from JSNI instead of referencing DB_DATA
directly. I write directly since there's more hand-written code
involved than what actually executes.

On 07/19/2011 11:45 PM, Ionuț G. Stan wrote:
 Hi,
 
 Whenever I'm working in JS, I find myself times and times again using a
 certain pattern in order to avoid an extra call to the server. I dump
 into the web page a JSON object (serialized by the server) inside a
 SCRIPT tag that is then interpreted by the browser as part of the normal
 flow. The alternative would be to make an additional Ajax request, which
 is unnecessary form my point of view.
 
 For example:
 
 script
 var DB_DATA = {
users: ?php echo json_encode(fetch_users_from_db()); ?
 };
 
 window.onload = function () {
// disp
display_users(DB_DATA.users);
 
refreshButton.onclick = function () {
  fetch_users_from_server(function (users) {
display_users(users);
  });
};
 };
 /script
 
 
 As far as my GWT knowledge goes, I can do the same thing in GWT using
 JSNI, with something like this:
 
 public native void displayUsers()/* {
   display_users(DB_DATA.users);
 } */;
 
 However, I was wondering if there's some GWT specific pattern, that
 would also allow some compile time checks for the presence of the
 generated JS variable (similar to how CSS files are checked to see if
 all the required CSS classes are declared).
 
 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.



Aw: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call

2011-07-20 Thread Jens
Seems like you did a yourArrayList.get(0) call on an empty ArrayList inside 
your getCMSData() method. So I would check that first.

-- J.

-- 
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/-/Lk-cZ_i0IVQJ.
To 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: override / overrule a gwt class, AbstractPlaceHistoryMapper

2011-07-20 Thread pansen
harrr...

its working via the put my own version to the classpath. we have
several subprojects and i did it in the wrong one :)

thanks, i'm happy ;)

On 20 Jul., 17:58, pansen andi.ba...@googlemail.com wrote:
 hi all,

 i try to bring in our project a slightliy modified version of the
 class ``com.google.gwt.place.impl.AbstractPlaceHistoryMapperF``.
 unfortunately without success.

 it seems like deferred binding does not work here as this is not a
 client class. or it does not work cause its an abstract class - i
 couldn't manage it.

 now my trivial solution (/try) was to have the same file in the same
 package in my project and hope this would be chosen before the
 gwt*.jar file. unfortunately this is not the case and not working...

 has anyone a hint for me how to bring in my minimal modified version
 of this file?

 btw. this problem belongs to this 
 threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...,
 which i will write a blog entry when its done. but this part is the
 very last problem...

 cheers, andi

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



Re: gwt hibernate

2011-07-20 Thread Néstor Boscán
 Hi Asi

 The problem with Hibernate and GWT is that Hibernate needs to return
 Hibernate proxy classes so it can detect changes made to your objects and
 detect access to associations that are not loaded. The problem with this
 mechanism is that when you try to serialize your classes through GWT-RPC it
 will break throwing LazyInitializationException. So the solutions is to get
 rid of those proxy classes. One way that I've seen recommended in the GWT
 group is to create another object and copy the information. This will work
 but you will have to code a lot to make this work when your object graph is
 big. The solution that I have found is to clean the proxies using a
 HibernateCleaner class:

 import java.beans.PropertyDescriptor;

 import java.io.InputStream;

 import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 import java.util.List;

 import org.apache.commons.beanutils.PropertyUtils;

 import org.hibernate.EntityMode;
 import org.hibernate.Hibernate;
 import org.hibernate.Session;
 import org.hibernate.metadata.ClassMetadata;
 import org.hibernate.proxy.HibernateProxyHelper;

 import java.io.Serializable;

 import java.sql.Blob;

 import java.util.*;

 import org.apache.log4j.Logger;

 import org.hibernate.proxy.HibernateProxy;

 public class HibernateCleaner {
 private static final Logger logger =
 Logger.getLogger(HibernateCleaner.class);

 public static Object clean(Session session, Object obj) throws
 Exception {
 return (clean(session, obj, new HashMapClass, MapObject,
 Object()));
 }

 private static Object clean(Session session,
 Object obj,
 MapClass, MapObject, Object
 visitedObjects) throws Exception {
 Object newObj, value = null, cleanValue = null;
 Map.Entry m;
 Class clazz;
 Object[] array;
 Collection collection;
 Map map;
 PropertyDescriptor[] descriptors;
 String property;
 ClassMetadata clazzMetaData;
 MapObject, Object visitedObjectsInClass;
 int index, length, hashCode;

 if (obj == null)
 return (null);

 if ((obj instanceof Boolean) || (obj instanceof Number) ||
 (obj instanceof Character) || (obj instanceof String) ||
 (obj instanceof Blob) || (obj instanceof InputStream))
 return (obj);

 if (obj instanceof Date)
 return (new Date (((Date) obj).getTime()));

 if (obj instanceof Calendar)
 return (((Calendar) obj).clone());

 if (obj instanceof Object[]) {
 array = (Object[]) ((Object[]) obj).clone();
 length = array.length;
 for (index = 0; index  length; index++)
 array[index] = clean(session, array[index],
 visitedObjects);

 return (array);
 }

 if (obj instanceof Object[]) {
 array = (Object[]) ((Object[]) obj).clone();
 length = array.length;
 for (index = 0; index  length; index++)
 array[index] = clean(session, array[index],
 visitedObjects);

 return (array);
 }

 if (obj instanceof Collection) {
 collection = createCollection((Collection) obj);

 if (Hibernate.isInitialized(obj)) {
 for (Object member: (Collection) obj)
 collection.add (clean(session, member,
 visitedObjects));
 }

 return (collection);
 }

 if (obj instanceof Map) {
 map = createMap((Map) obj);

 if (Hibernate.isInitialized(obj)) {
 for (Object member: ((Map)obj).entrySet()) {
 m = (Map.Entry) member;
 clean(session, m.getKey(), visitedObjects);
 clean(session, m.getValue(), visitedObjects);
 map.put (m.getKey(), m.getValue());
 }
 }

 return (map);
 }

 if (obj instanceof HibernateProxy) {
 clazz =
 HibernateProxyHelper.getClassWithoutInitializingProxy(obj);
 } else {
 clazz = obj.getClass();
 }

 visitedObjectsInClass = visitedObjects.get(clazz);
 if (visitedObjectsInClass == null) {
 visitedObjectsInClass = new HashMapObject, Object();
 visitedObjects.put(clazz, visitedObjectsInClass);
 } else if (visitedObjectsInClass.containsKey(obj)) {
 return visitedObjectsInClass.get(obj);
 }

 newObj = clazz.newInstance();
 visitedObjectsInClass.put(obj, newObj);

 if (!Hibernate.isInitialized(obj)) {
 if (session != null) {
 clazzMetaData =
 session.getSessionFactory().getClassMetadata(newObj.getClass());
 Serializable id = 

Re: gwt hibernate

2011-07-20 Thread Kevin Anderson
If you use spring to manage your session the lazy initialization is not a 
problem. You can add a filter in your web.xml that will keep a entityManager 
open through the entire request and response lifecycle. That filter 
is org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.
This was a great help to me in handling lazily loaded items.

-- 
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/-/fi7mBvemBloJ.
To 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: Connecting to a oracle database with GWT

2011-07-20 Thread Bruno Henrique
I have no problems with jdbc...I've already worked with this in desktop and
web applications (jsp, jsf)...my problem is using it with GWT...I don't know
how to do it...where I have to add the oracle library...

2011/7/20 Kevin Anderson kev...@gmail.com


 http://www.java-forums.org/java-tips/6116-using-jdbc-connect-oracle-database.html

 This is more of a java question then a GWT question. But the above gives
 you an example of how to do it. Though I personally prefer using something
 like spring to handle the oracle connection and then in my services just
 inject the connection.

 --
 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/-/8k6xhdQKwY0J.
 To 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: Connecting to a oracle database with GWT

2011-07-20 Thread Jeff Larsen
with GWT you have client and server code. The question you're asking is 
similar to asking where to put the oracle library when using JQuery. GWT 
compiles to javascript and while it has some server side plumbing, that is 
there just to facilitate client/server communication. The answer is you put 
the oracle jar inside your server and only reference it from your server 
side classes. 

-- 
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/-/aDrqg9PQ6OEJ.
To 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: Connecting to a oracle database with GWT

2011-07-20 Thread Bruno Henrique
Can someone give an simple example how to use oracle with GWT, using RPC?
I tried to do something here, but I got the error:


java.lang.NoClassDefFoundError: java.net.Socket 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.net.nt.TcpNTAdapter.connect(Unknown Source)

at oracle.net.nt.ConnOption.connect(Unknown Source)

at oracle.net.nt.ConnStrategy.execute(Unknown Source)

at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source)

at oracle.net.ns.NSProtocol.establishConnection(Unknown Source)

at oracle.net.ns.NSProtocol.connect(Unknown Source)

at oracle.jdbc.ttc7.TTC7Protocol.connect(

*TTC7Protocol.java:1774*)

at oracle.jdbc.ttc7.TTC7Protocol.logon(

*TTC7Protocol.java:215*)

at oracle.jdbc.driver.OracleConnection.init(

*OracleConnection.java:362*)

at oracle.jdbc.driver.OracleDriver.getConnectionInstance(

*OracleDriver.java:536*)

at oracle.jdbc.driver.OracleDriver.connect(

*OracleDriver.java:328*)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at
com.carriers.chartapplication.server.indicador.banco.IndicadorBanco.buscarIndicadorBanco(

*IndicadorBanco.java:75*)

at
com.carriers.chartapplication.server.indicador.negocio.IndicadorNegocio.init(

*IndicadorNegocio.java:44*)

at com.carriers.chartapplication.server.GreetingServiceImpl.init(

*GreetingServiceImpl.java:16*)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(

*Native Method*)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.mortbay.jetty.servlet.Holder.newInstance(

*Holder.java:153*)

at org.mortbay.jetty.servlet.ServletHolder.initServlet(

*ServletHolder.java:428*)

at org.mortbay.jetty.servlet.ServletHolder.getServlet(

*ServletHolder.java:339*)

at org.mortbay.jetty.servlet.ServletHolder.handle(

*ServletHolder.java:487*)

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:212*)

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*)

2011/7/20 Jeff Larsen larse...@gmail.com

 with GWT you have client and server code. The question you're asking is
 similar to asking where to put the oracle library when using JQuery. GWT
 compiles to javascript and while it has some server 

Re: override / overrule a gwt class, AbstractPlaceHistoryMapper

2011-07-20 Thread pansen
jeff,

again - thank you for your answer; this solution looks very clean. i
figured out all that stuff too, but i didn't have the correct
classnames to apply. your hint, looking at ``Place.gwt.xml`` is very
helpful though.

finally i didn't change it to your solution just because i don't have
to copy that much files (only one) and there is no need to inherit a
custom ``*.gwt.xml`` or write it to any of ours.

for the record: our solution will only work flawlessly if you use
maven 3.x. we had classpath issues with maven 2.x versions as the
classpath was built in a different order on linux than on osx for
example.

cheers, andi

On 20 Jul., 18:28, pansen andi.ba...@googlemail.com wrote:
 harrr...

 its working via the put my own version to the classpath. we have
 several subprojects and i did it in the wrong one :)

 thanks, i'm happy ;)

 On 20 Jul., 17:58, pansen andi.ba...@googlemail.com wrote:







  hi all,

  i try to bring in our project a slightliy modified version of the
  class ``com.google.gwt.place.impl.AbstractPlaceHistoryMapperF``.
  unfortunately without success.

  it seems like deferred binding does not work here as this is not a
  client class. or it does not work cause its an abstract class - i
  couldn't manage it.

  now my trivial solution (/try) was to have the same file in the same
  package in my project and hope this would be chosen before the
  gwt*.jar file. unfortunately this is not the case and not working...

  has anyone a hint for me how to bring in my minimal modified version
  of this file?

  btw. this problem belongs to this 
  threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...,
  which i will write a blog entry when its done. but this part is the
  very last problem...

  cheers, andi

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



Re: override / overrule a gwt class, AbstractPlaceHistoryMapper

2011-07-20 Thread Jeff Larsen
Naw, the solution is pretty ugly, copy/pasting code sucks. It has the 
advantage of working quickly. Sounds like you got a better solution, so I'd 
definitely roll with that. The only caveat is that you'll have to be careful 
with GWT version updates now, there are no guarentees that the class you're 
extending won't change and they won't tell you. 

-- 
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/-/bwatD9QO__kJ.
To 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.



RequestBuilder

2011-07-20 Thread ASlak
I am having a problem with requestbuilder.

I am trying to do this:

RequestBuilder requestbuilder = new RequestBuilder(POST, /blah/
blah);

Eclipse marks it with an error which says The constructor
RequestBuilder(String, String) is not visible

Does anyone have any idea why this is happening?

-- 
You received 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 Developer Plugin for Firefox.

2011-07-20 Thread dsuwirya
Hello,

The intention of this post is to actually ask you about the strategy
and approach that the GWT team takes regarding the GWT developer
plugin for FF, and what's the plan going forward.

With the 6 weeks release cycle that FF takes right now, I see that
it's difficult to keep up with them as every new release of FF
requires us to recompile the plugin with the new gecko-sdk
and to produce a new dll out of it. If we need to keep doing that,
it's pretty resource consumptive, plus at the end the size of the
plugin is going to explode pretty quickly also.

I hope you don't mind to share your view about this. Thanks a lot.

Best regards.

-- 
You received 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 checkbox widget with custom id atribute for checkbox input

2011-07-20 Thread Andrey
Hi All,

GWT checkbox widget generates the code below:
span id=row_number_1 
  input type=checkbox id=gwt-uid-XXX disabled=
  label for=gwt-uid-70.../label
/span

gwt-uid-XXX, where XXX is auto generated values.
Is it possible to assign custom IDs (or pattern) to checkbox input for
example:

span
  input type=checkbox id=row_number_1 disabled=
  label for=row_number_1.../label
/span

Or

span
  input type=checkbox id=gwt-uid-XXX_row_number_1 disabled=
  label for= gwt-uid-XXX_row_number_1.../label
/span


Best regards,
Andrey.

-- 
You received 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: RequestBuilder

2011-07-20 Thread Alfredo Quiroga-Villamil
RequestBuilder requestbuilder = new RequestBuilder(RequestBuilder.POST,
url);


Regards,


Alfredo

On Wed, Jul 20, 2011 at 12:36 PM, ASlak alain.s...@gmail.com wrote:

 I am having a problem with requestbuilder.

 I am trying to do this:

 RequestBuilder requestbuilder = new RequestBuilder(POST, /blah/
 blah);

 Eclipse marks it with an error which says The constructor
 RequestBuilder(String, String) is not visible

 Does anyone have any idea why this is happening?

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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 checkbox widget with custom id atribute for checkbox input

2011-07-20 Thread Jeff Larsen
have you tried overriding #onEnsureDebugId(String)?

-- 
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/-/DHnQ7Qbiw0oJ.
To 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 Developer Plugin for Firefox.

2011-07-20 Thread Chris Conroy
Agreed these are serious issues facing the FF plugin. For the moment, we're
doing a little bit of wait and see to see if this new release strategy
(specifically the forced rebuild of all extensions) actually sticks. If it
does, we'll certainly need to retool how we spin plugin builds for new
versions of Firefox.

The size issue will definitely be a problem. In anticipation of that, we've
reduced the compiled output size considerably by turning off some debug
flags, and our plugin supporting 3.0-5.0 clocks in at just 2.0MB.  Long
term, we'll probably need to fashion some kind of split binary or revisit
the notion of having every version supported in a single xpi.

Short term, the unsatisfying answer that I can give to you is that we will
lag Firefox's release schedule. If you rely on the Firefox GWT DevMode
plugin, be sure to keep an instance of a known working version of firefox
around for your development.

On Wed, Jul 20, 2011 at 1:22 PM, dsuwirya dsuwi...@gmail.com wrote:

 Hello,

 The intention of this post is to actually ask you about the strategy
 and approach that the GWT team takes regarding the GWT developer
 plugin for FF, and what's the plan going forward.

 With the 6 weeks release cycle that FF takes right now, I see that
 it's difficult to keep up with them as every new release of FF
 requires us to recompile the plugin with the new gecko-sdk
 and to produce a new dll out of it. If we need to keep doing that,
 it's pretty resource consumptive, plus at the end the size of the
 plugin is going to explode pretty quickly also.

 I hope you don't mind to share your view about this. Thanks a lot.

 Best regards.

 --
 You received 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: TextArea - issues

2011-07-20 Thread Michael Vogt
 1) Keep entering - lines will automatically break and goes to next
 line - enter till you see few line
 2)  getValue()
 3) store in datastore
 4) get from data store and display in another TestArea.

 Somewhere loosing line breaks ?

Can you post a sample on a public server to look at?


Greetings,
Michael Vogt

-- 
You received 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: login form

2011-07-20 Thread Ionuț G. Stan

On Jul/20/2011 18:03, Paolo Inaudi wrote:

I've made a login form in gwt with a textbox, a passwordtextbox and a
button.
everything is fine, but browser isn't asking me to store the password.
Do I have to make the button a html submit input and create another
page? or is there a way to tell the browser this is a login form?
thanks a lot
Paolo



I once worked on a project that did the same thing. They noticed the 
password remember stuff to late (they pretty much ignored it) and I had 
to fix this issue.


After some research the conclusion I reached was that it's best to keep 
the login process as classical as possible. By classic I mean, the 
HTML should not be generated by JS, but be written by the server, and 
the POST request should not be sent via Ajax, but rather using a normal 
form request. If you don't do this, the results will vary across 
browsers (this list is from memory):


1. no browser will remember user/pass combo unless it sees the HTML as 
it parses the page. So, no JS generated form elements.


2. As far as I remember, Firefox was the only browser that offered the 
remember password dialog for Ajax request (the heuristic were quite 
smart). The other browsers needed a classic request.


3. Chrome was very picky in that the remember password dialog was shown 
only on the first page after the redirect. If it happens that you do two 
redirects after successful login, then no dialog is shown. Oh, and the 
response of the page should be 2XX, but that's to be expected.


There were a lot of other issues that I don't remember right now. So my 
advice is to go for a classic HTML form/request. You can have the form 
with display:none and after the GWT code loads reposition it wherever 
you want on the page, or even read the text input values and populate 
another form element with them. But, as I said, submission should not be 
done via JS.


Hope it helps,

--
Ionuț G. Stan  |  http://igstan.ro

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



Upload a File

2011-07-20 Thread kant kodali
Hi,

Why Uploading a file is so hard? I have been looking at lot of
examples and they all are way over my head
and they do somewhat different than what i was looking. I expected GWT
will have some sort of library but
it seems like we have to write a good amount of code.

I am just looking for a code which can upload a simple file..It will
be great if i can just copy-paste and see it working.

Thanks!
-Kant

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



Client-side Caching with RequestFactory

2011-07-20 Thread Robert Porter
Hello,

I'm looking for advice on the best way to implement client-side caching with 
RequestFactory.  I have a fairly large amount of data (a list of domain 
objects) that must be used by several parts of my application.  Furthermore 
there are a few operations that dirty the cache and will require it to be 
reloaded.

One possibility is that I could delegate all RequestFactory calls (for this 
specific object) through a class that does the caching -- but this seems 
really ugly.  Ideally I would like to do this behind the scenes so that 
throughout the app.

An option that would probably work a bit better is if I could create my own 
caching implementation of the RequestContext -- but is that possible?

Any thoughts or suggestions?

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/-/q-CPK8AVCVAJ.
To 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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-20 Thread Eric Ridge
Is there a trick to get the currently-available-for-Safari plugin to
work with Safari 5.1/OS X 10.7?  Safari refuses to load it, and I can
find no indication as to why.

(fortunately, I keep around a copy of Safari 4.0.5 so I can keep working.)

Any insight will be greatly appreciated!

eric

-- 
You received 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: Upload a File

2011-07-20 Thread Jim Douglas
I posted an overview here:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cfe1a1feaa1b345d/935ce4db15ee537c

GWT doesn't stand alone.  It's a tool for building JavaScript
applications that run in a browser, so it has to work within the rules
(security and otherwise) that browsers impose.

On Jul 20, 12:17 pm, kant kodali kanth...@gmail.com wrote:
 Hi,

 Why Uploading a file is so hard? I have been looking at lot of
 examples and they all are way over my head
 and they do somewhat different than what i was looking. I expected GWT
 will have some sort of library but
 it seems like we have to write a good amount of code.

 I am just looking for a code which can upload a simple file..It will
 be great if i can just copy-paste and see it working.

 Thanks!
 -Kant

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



Table

2011-07-20 Thread Robert Lockwood
I started working with GWT some months ago but stopped because of computer
availability.  I've just installed Tomcat in an old computer of mine and
have been able to deploy an example program on it.  I don't know much HTML,
CSS, and am still learning Java (which I've been learning just for this
project).

I'm attempting to change some things in the MyWebApp project that uses
asynch.

I've been able to modify the code, html, and css to move the title, table,
and popup box to the left side and have attempted to position them 10px from
the left using css margin.  It doesnt' work for the table - how do I do
that?
I thought of creating the table in the Java file but it's not clear how to
do that.


css Margin doesn't work to position the popup from the table, just from the
top.  I'd like to be able to position it down from the table.

And last and least: how does one change the color of a button on display and
after some event?

TIA

-- 
When I was 12 I thought I would live forever.
So far, so good.

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



Browser Type and version

2011-07-20 Thread skippy
Can GWT help me determine the browser (IE FireFox) and the version?

We want to tell users using old versions of IE like 6 and 7 that they
need to upgrade due to performace problems when viewing large values
of data.

I just have not seen an example that has a conplete list.

Also what is oprea?  FireFox?

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: Browser Type and version

2011-07-20 Thread Jim Douglas
Parse the navigator.userAgent string.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/Window.Navigator.html#getUserAgent()

http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx

http://www.useragentstring.com/

On Jul 20, 1:30 pm, skippy al.leh...@fisglobal.com wrote:
 Can GWT help me determine the browser (IE FireFox) and the version?

 We want to tell users using old versions of IE like 6 and 7 that they
 need to upgrade due to performace problems when viewing large values
 of data.

 I just have not seen an example that has a conplete list.

 Also what is oprea?  FireFox?

 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: Client-side Caching with RequestFactory

2011-07-20 Thread Thomas Broyer


On Wednesday, July 20, 2011 8:37:48 PM UTC+2, Robert Porter wrote:

 Hello,

 I'm looking for advice on the best way to implement client-side caching 
 with RequestFactory.  I have a fairly large amount of data (a list of domain 
 objects) that must be used by several parts of my application.  Furthermore 
 there are a few operations that dirty the cache and will require it to be 
 reloaded.

 One possibility is that I could delegate all RequestFactory calls (for this 
 specific object) through a class that does the caching -- but this seems 
 really ugly.


Not that ugly if you think of RF as an implementation detail and your class 
as a higher-level API/DAO.
 

 Ideally I would like to do this behind the scenes so that throughout the 
 app.

 An option that would probably work a bit better is if I could create my own 
 caching implementation of the RequestContext -- but is that possible?


Your RequestContext is *just* an interface, so you can provide your own 
implementation, wrapping the one generated by the RequestFactoryGenerator to 
add caching.
This is the same approach as was suggested/recommended 2 years ago with 
GWT-RPC (Ray Ryan at Google I/O)

-- 
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/-/HIkdQEDKrpEJ.
To 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.



RootLayoutPanel/UIBinder - Browser history

2011-07-20 Thread appEngr
I am trying to implement an application using RootLayoutPanel and
UIBinder.

I want a way through which user can hit browsers back button within
GWT application. After using RootLayoutPanel i have lost that
functionality.

Is there a work around to get Browser history working

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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-20 Thread Eric Ridge
Glad it's not just me.

If you go to Help -- Installed Plug-ins, it's not listed.

Its Info.plist looks just fine, so I'm thinking maybe the Safari
plugin API changed with 5.1.  There's nothing in any of the OS logs
(/var/log/system.log, etc) where Safari is complaining.

Maybe I'll try to hunt down the plugin sources and re-compile it and
see what happens.

eric

On Wed, Jul 20, 2011 at 5:02 PM, alexkrishnan axkrish...@gmail.com wrote:
 I can confirm that it doesn't work for me in the release version of
 Safari 5.1 that came out with Lion today. My workaround is using
 chrome.

 On Jul 20, 12:28 pm, Eric Ridge eeb...@gmail.com wrote:
 Is there a trick to get the currently-available-for-Safari plugin to
 work with Safari 5.1/OS X 10.7?  Safari refuses to load it, and I can
 find no indication as to why.

 (fortunately, I keep around a copy of Safari 4.0.5 so I can keep working.)

 Any insight will be greatly appreciated!

 eric

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

2011-07-20 Thread Nick Chalko
On Tue, Jul 19, 2011 at 11:00 AM, Kevin Jordan ke...@kjordan.net wrote:

 You can do a custom constraint.


That seems like a good approach,  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: setFocus for TextBox does not work?

2011-07-20 Thread Evan Cheng
I think you need to add ScheduledCommand after widget onLoad().

public void onLoad() {
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
txt_User.setFocus(true);
}
});
}

-- 
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/-/VXebQf9Ql9cJ.
To 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.



Rich Text Area replace Text

2011-07-20 Thread gangurg gangurg
I have a rich Text Area , as the user types in something i want to
automatically check spelling and replace the appropriate word .Folks any
idea

-- 
You received 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 Designer support Databinding or not?

2011-07-20 Thread Eric Clayberg
GWT Designer does support the GXT data binding API, but GWT itself does not 
have a built-in data binding API.

-- 
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/-/KHJPY4mPsRcJ.
To 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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-20 Thread Shawn Brown
 Glad it's not just me.

It broken on SnowLeopard too after upgrading to Version 5.1 (6534.50)

Shawn

-- 
You received 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: Parent container style used?

2011-07-20 Thread Qian Qiao
On Wed, Jul 20, 2011 at 22:36, JC johnacoo...@gmail.com wrote:
 I was doing a test with this code. But the text in the table is being
 styled by the parent container. Why it does not use the 'important'
 css style defined locally?

 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
        xmlns:g=urn:import:com.google.gwt.user.client.ui
        ui:style
                .important {
                        color: #FDFDFD;
                        font-weight: bold;
                        font-size: 14pt;
                }
        /ui:style
        g:HTMLPanel
                table
                        tr
                                tdg:Label 
 stylePrimaryName=importantXXX/g:Label/td
                                tdg:LabelYYY/g:Label/td
                                tdg:LabelZZZ/g:Label/td
                        /tr
                /table
        /g:HTMLPanel
 /ui:UiBinder


Because it should be {style.important}, not important?

On a side note, please don't use widgets unless you need to handle
events on them. Use plain old HTML tags wherever possible.

-- Joe

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



Basic packaged app questions. Need to get that first one under my belt.

2011-07-20 Thread Dale12
I'm trying to build a basic packaged app.  My understanding is that a
packaged app doesn't require a server side.  So, using GWT in Eclipse
how do I set up a project without it automatically creating a server
side package?

Is it possible to use java's APIs when developing a packaged app (with
no server side)?  Take some of the games available for play offline,
are they all written using only GWTs APIs and then compiled into
JavaScript?

I'm a bit confused on how this works which makes it a little difficult
to ask well crafted questions.  Any nuggets of info you can throw my
way would be much appreciated.  Also, if someone could point me to the
source code for a fairly simple packaged app project that would be
very helpful.

Thanks for the 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.



Re: [gwt-contrib] Was the lack of server side templating in GWT one of the reasons why Google+ team did not choose GWT ?

2011-07-20 Thread David Chandler
Thanks for pointing it out. I've already answered this in the best way
I know how, so I'm happy to let the community hash this one out.

https://groups.google.com/d/msg/google-web-toolkit/-/eSqUVQ8gKEMJ

/dmc

On Mon, Jul 18, 2011 at 10:13 AM, karthik reddy
karthik.ele...@gmail.com wrote:
 Note: I am cross-posting this on  GWT-contributors group to solicit the
 responses of the GWT team. The original post on the GWT group is at :
 https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/CnjBcJsknS0
 The following were two direct quotes from Joseph Smarr (tech lead of google
 plus -- plus.google.com):
 (FYI: The full Q  A with the Google+  Tech Lead can be found
 at: http://anyasq.com/79-im-a-technical-lead-on-the-google+-team)
 we often render our Closure templates server-side so the page renders
 before any JavaScript is loaded, then the JavaScript finds the right DOM
 nodes and hooks up event handlers, etc. to make it responsive (as a result,
 if you're on a slow connection and you click on stuff really fast, you may
 notice a lag before it does anything, but luckily most people don't run into
 this in practice).
 The cool thing about Closure templates is they can be compiled into both
 Java and JavaScript. So we use Java server-side to turn the templates into
 HTML, but we can also do the same in JavaScript client-side for dynamic
 rendering. For instance, if you type in a profile page URL directly, we'll
 render it server-side, but if you go to the stream say and navigate to
 someone's profile page, we do it with AJAX and render it client-side using
 the same exact template. 

 Going from the tone of the above two quotes, it seems to me that the lack of
 server-side templating  system in GWT (GWT has client-side templating in the
 form of UiBinder but not server-side templating) , could have been one of
 the reasons for  not choosing GWT for  the Google+ project.
 What do you guys think??
 Was the lack of server side templating  in GWT one of the reasons why
 Google+ team did not choose GWT ??

 PS: If you guys haven't tried Google+ yet, I would recommend you try it.
 Setting aside how good of a social network/social collaboration tool it is,
 I suggest you guys try it just to get a feel of its UI architecture. Every
 once in a while, an application comes along and raises the bar(eg., Gmail in
 2004) in the area of UI design/UI development and I think Google plus has
 done it this time around.
 Also, I really appreciate the fact that GWT is an exceptional work of
 engineering.  My desire is to just provoke discussion in a direction that
 hopefully leads to making the product even more better and increases its
 technological moat (Warren Buffet
 lingo: http://37signals.com/svn/posts/333-warren-buffett-on-castles-and-moats)

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



-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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


Re: [gwt-contrib] Was the lack of server side templating in GWT one of the reasons why Google+ team did not choose GWT ?

2011-07-20 Thread Patrick Julien
Why don't you feature the Google products that use GWT in the gallery?

http://gwtgallery.appspot.com/

I'm always coming up against the argument that Google doesn't use GWT,
always.  It's annoying and I shouldn't have to make that sale and I
wouldn't need to if the gallery featured those products



On Wed, Jul 20, 2011 at 10:07 AM, David Chandler drfibona...@google.com wrote:
 Thanks for pointing it out. I've already answered this in the best way
 I know how, so I'm happy to let the community hash this one out.

 https://groups.google.com/d/msg/google-web-toolkit/-/eSqUVQ8gKEMJ

 /dmc

 On Mon, Jul 18, 2011 at 10:13 AM, karthik reddy
 karthik.ele...@gmail.com wrote:
 Note: I am cross-posting this on  GWT-contributors group to solicit the
 responses of the GWT team. The original post on the GWT group is at :
 https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/CnjBcJsknS0
 The following were two direct quotes from Joseph Smarr (tech lead of google
 plus -- plus.google.com):
 (FYI: The full Q  A with the Google+  Tech Lead can be found
 at: http://anyasq.com/79-im-a-technical-lead-on-the-google+-team)
 we often render our Closure templates server-side so the page renders
 before any JavaScript is loaded, then the JavaScript finds the right DOM
 nodes and hooks up event handlers, etc. to make it responsive (as a result,
 if you're on a slow connection and you click on stuff really fast, you may
 notice a lag before it does anything, but luckily most people don't run into
 this in practice).
 The cool thing about Closure templates is they can be compiled into both
 Java and JavaScript. So we use Java server-side to turn the templates into
 HTML, but we can also do the same in JavaScript client-side for dynamic
 rendering. For instance, if you type in a profile page URL directly, we'll
 render it server-side, but if you go to the stream say and navigate to
 someone's profile page, we do it with AJAX and render it client-side using
 the same exact template. 

 Going from the tone of the above two quotes, it seems to me that the lack of
 server-side templating  system in GWT (GWT has client-side templating in the
 form of UiBinder but not server-side templating) , could have been one of
 the reasons for  not choosing GWT for  the Google+ project.
 What do you guys think??
 Was the lack of server side templating  in GWT one of the reasons why
 Google+ team did not choose GWT ??

 PS: If you guys haven't tried Google+ yet, I would recommend you try it.
 Setting aside how good of a social network/social collaboration tool it is,
 I suggest you guys try it just to get a feel of its UI architecture. Every
 once in a while, an application comes along and raises the bar(eg., Gmail in
 2004) in the area of UI design/UI development and I think Google plus has
 done it this time around.
 Also, I really appreciate the fact that GWT is an exceptional work of
 engineering.  My desire is to just provoke discussion in a direction that
 hopefully leads to making the product even more better and increases its
 technological moat (Warren Buffet
 lingo: http://37signals.com/svn/posts/333-warren-buffett-on-castles-and-moats)

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



 --
 David Chandler
 Developer Programs Engineer, GWT+GAE
 w: http://code.google.com/
 b: http://turbomanage.wordpress.com/
 b: http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

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

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


[gwt-contrib] [google-web-toolkit] r10463 committed - ...

2011-07-20 Thread codesite-noreply

Revision: 10463
Author:   to...@google.com
Date: Wed Jul 20 13:04:32 2011
Log:
Removing bad 2.4.0-rc1 tag.


http://code.google.com/p/google-web-toolkit/source/detail?r=10463

Deleted:
 /tags/2.4.0-rc1

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


[gwt-contrib] [google-web-toolkit] r10464 committed - ...

2011-07-20 Thread codesite-noreply

Revision: 10464
Author:   to...@google.com
Date: Wed Jul 20 13:05:44 2011
Log:
Creating 2.4.0-rc1 tag.


http://code.google.com/p/google-web-toolkit/source/detail?r=10464

Added:
 /tags/2.4.0-rc1

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