Re: What am I misunderstanding about the event model?

2008-12-22 Thread Jason Morris

The GWT event model is a close relation of the standard Java event model.

The problem with the standard DOM EventListeners is that only one listener can 
be attached to an 
Element. The other problem is that a custom Widget may be required to listen 
for a sequence of 
low-level events in order to trigger a single high-level event (think 
MOUSEDOWN/UP/MOVE in relation 
to itemDraggedAndDropped()).

So you hide the low-level events within Widget classes, which when they receive 
the event can 
trigger the collection of ClickListeners / MouseListeners / 
MyFancyListenerNumber3.

If you are extending the classes over and over again, adding your 
double-click behavior to each 
one in it's onBrowserEvent method, you're doing it wrong. The correct way is to 
extend once, and 
allow for adding any additional listeners (double-click, keyboard, etc.) to the 
extended class 
(which should trigger them in it's onBrowserEvent method). This way the event 
handling logic remains 
separated from the Widget itself.

Also bare in mind Composite style classes (like a TabPanel) that want to turn a 
Click event on a tab 
into onBeforeTabSelected and onTabSelected for it's TabListeners.

Hope that helps a bit.

David H. Cook wrote:
 
 The more code I implement and the more event-related APIs
 I look at in GWT, the more confused I get.  After
 looking at complete examples about 'listeners' on website such as:
 http://examples.roughian.com/index.htm#Listeners~Summary
 or posts in this group, I conclude that the most general
 is an 'EventListener', because then I can get at ANY/ALL events
 that I might be interested in, as it's method gets 'Event e'
 as an input param.  But, what seems to me like
 a real NEGATIVE is that I must 'extend' (sub-class) an object
 to use EventListener, right?
 
 Now, if I only care about a 'click', then I do NOT need to extend,
 because there are 'clicklisteners', which listen for just ONE event
 type...'click'.  But, if I want, say, 'double-click', well, there
 are NOT any 'double-click' listeners, so it seems that I'll need
 to use the more general EventListener.
 
 That would be reasonable/acceptable if there was just
 ONE object that I wanted/needed to extend in a given app.
 But, let's say, I care about 'doubleclicks' from 3 different
 objects in the same app...anchors, tabs, and images.
 (Maybe not the best examples, but bear with me.)
 So, it seems that now I need to extend three objects, so I'll
 need 3 java classes (and thus, ...3 FILES...one class per file).
 [Some posts/examples mention 'widget builders'  as a separate
 class of developer.  But, I don't want to build new 'widgets'...
 I just want a write a simple app.
 
 Somehow, the APIs seem to be making things unnecessarily 'complex',
 when I compare this to how easy it was to implement events
 in javascript language (before I started using GWT).  And, its
 beginning to seem like the designers of the event-model/event-apis in
 GWT
 might have miss-designed the APIs?!  (I wasn't around at the
 beginning, so I don't know how the event-APIs looked in version 1.00.)
 
 Both the author of roughian website and other posters all seem to
 bemoan
 this need to extend, but all say it is necessary.  For example,
 roughian
 says:
 
 [Notes:
 This is something you should only use if you are subclassing a widget
 - it's not much use otherwise,
 you can't addEventListener() to anything I'm aware of.
 So, as a builder of widgets, you'd use this to pick up events and use
 them in ways
 that you can't do with the ordinarily supported event interfaces]
 
 Clearly, I (and others?) must all be missing something.  Where have I
 gone wrong?
 
  
 

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



Re: Need for a great GWT GUI library

2008-12-22 Thread Miles T.

Hi Juan,

Ext GWT (aka gxt, previously MyGWT) is a full GWT solution (no
wrapping JS library). It provides :
- containers and layouts
- MVC layer
- complete look and feels
- rich set of widgets (including grids, drag and drop...)
- form data binding
- lazy rendering
Drawbacks :
- bugs : as the library is young, there are some bugs, but they are
quickly fixed when you post a ticket (and there are almost always
workarounds when you can't wait).
- slower but not slow : In hosted mode, start time will be slower than
a vanilla GWT app, but I don't get any performance issue once the
app is launched
- GPL license or pay (it can be a drawback for people who neither can
release under GPL nor can pay)
I use it since April 2008 in an internal app (223 classes for the GWT
side) and it saves me a lot of time. I don't have to write a line of
HTML/CSS code.

Regards

On Dec 21, 10:39 pm, ckendrick charles.kendr...@gmail.com wrote:
 If SmartGWT seems slow, just disable Firebug or similar development
 utilities, and be sure you haven't done anything like completely
 disabling browser caching.  For normal end users who don't have these
 tools or settings, it's quick.

 On Dec 19, 7:13 am, Juan Backson juanback...@gmail.com wrote:

  Smart-GWT - slow and memory intensive
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: SuggestBox on a textarea

2008-12-22 Thread Eddy

Yes, I thought about that but unfortunately SuggestBox class was
declared final ...

On Dec 22, 4:55 am, todd.sei...@gmail.com todd.sei...@gmail.com
wrote:
 Create your own class which extends SuggestBox. Override the setText
 (String text) method with you own implementation.

 On Dec 21, 5:37 pm, Eddy ridl...@gmail.com wrote:

  If I create a SuggestBox based on a textarea, like this:

  new SuggestBox(myoracle, new TextArea());

  is there a way to make sure the suggestbox doesn't do a setText on the
  whole textarea everytime a suggestion is selected?

  any help appreciated
  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: Need for a great GWT GUI library

2008-12-22 Thread Rockster


I'm using gwt-mosaicand it's very good. SmartGWT is in fact a
javascript wrapper for the SmartClient js library.
For native GWT, go for gwt-mosaic.




On Dec 22, 9:16 am, Miles T. dupont.nico...@gmail.com wrote:
 Hi Juan,

 Ext GWT (aka gxt, previously MyGWT) is a full GWT solution (no
 wrapping JS library). It provides :
 - containers and layouts
 - MVC layer
 - complete look and feels
 - rich set of widgets (including grids, drag and drop...)
 - form data binding
 - lazy rendering
 Drawbacks :
 - bugs : as the library is young, there are some bugs, but they are
 quickly fixed when you post a ticket (and there are almost always
 workarounds when you can't wait).
 - slower but not slow : In hosted mode, start time will be slower than
 a vanilla GWT app, but I don't get any performance issue once the
 app is launched
 - GPL license or pay (it can be a drawback for people who neither can
 release under GPL nor can pay)
 I use it since April 2008 in an internal app (223 classes for the GWT
 side) and it saves me a lot of time. I don't have to write a line of
 HTML/CSS code.

 Regards

 On Dec 21, 10:39 pm, ckendrick charles.kendr...@gmail.com wrote:

  If SmartGWT seems slow, just disable Firebug or similar development
  utilities, and be sure you haven't done anything like completely
  disabling browser caching.  For normal end users who don't have these
  tools or settings, it's quick.

  On Dec 19, 7:13 am, Juan Backson juanback...@gmail.com wrote:

   Smart-GWT - slow and memory intensive
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: SuggestBox on a textarea

2008-12-22 Thread Eddy

yes this could be a solution, on the other hand I am just finished
exploring the svn repository for the SuggestBox class:

the class we are using r3877

http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/SuggestBox.java?r=3877

is declared final, but all subsequent releases are not... so I am
going to sort out the problem installing gwt via svn and extending
SuggestBox

thanks to everybody for the help
Edoardo

On Dec 22, 10:51 am, eggsy84 jimbob...@hotmail.com wrote:
 Hi there,

 (Just read your post on my tutorial)

 As you can't override the class the only way I can think of storing
 the data is to persist a collection of Strings so when the selection
 is made is made do something like this:

 ---

 onSuggestionSelected()
 {
    myStringCollection.add(selectedSuggestion);

 }

 StringBuffer buffer = new StringBuffer();
 for ( String selection : myStringCollection )
 {
    // just add a space between each item in the collection
    buffer.append(selection +  );

 }

 myTextArea.setText(buffer.toString());

 ---

 The String collection will hang around as long as the object hangs
 around?! Would that solve the problem?

 Eggsy

 On Dec 22, 8:40 am, Eddy ridl...@gmail.com wrote:

  Yes, I thought about that but unfortunately SuggestBox class was
  declared final ...

  On Dec 22, 4:55 am, todd.sei...@gmail.com todd.sei...@gmail.com
  wrote:

   Create your own class which extends SuggestBox. Override the setText
   (String text) method with you own implementation.

   On Dec 21, 5:37 pm, Eddy ridl...@gmail.com wrote:

If I create a SuggestBox based on a textarea, like this:

new SuggestBox(myoracle, new TextArea());

is there a way to make sure the suggestbox doesn't do a setText on the
whole textarea everytime a suggestion is selected?

any help appreciated
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
-~--~~~~--~~--~--~---



StringMap?

2008-12-22 Thread Stefan

In this video the guy talks about a fast StringMap class that can be
used instead of the HashMap when you only have strings as key:
http://www.youtube.com/watch?v=nxVOvcM6LS8

But I can't find it in the API ref, any ideas?

Thanks,
Stefan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Unable to get session in internet explorer

2008-12-22 Thread algorithm

i manage to try it on another pc using vista and IE7 and it's working
fine...

On Dec 22, 2:49 pm, algorithm kingchi...@gmail.com wrote:
 Hi to all,
  i'm having a problem with IE8 where i can't retrieve session. my code
 basically calls a rpc to store a String[][] object into session and
 onSuccess it will call a HttpServlet to generate a jasper PDF.
 The following is my code and it works fine in both hosted mode and
 firefox but not IE8. Can anyone please tell me what seems to be the
 problem?

 /**
 * Class extends com.google.gwt.user.server.rpc.RemoteServiceServlet
 * Store String[][] into session
 **/
 public void storeReport(String[][] data) {
                 getThreadLocalRequest().getSession().setAttribute
 (medicalReportData, data);

 }

 /**
 * RPC call to store String[][] into session
 * onSuccess call a HttpServlet to generate jasper PDF
 **/
 MedicalStoreRemote.Util.getInstance().storeReport(data, new
 AsyncCallback() {
    public void onSuccess(Object result) {
         String moduleRelativeURL = GWT.getModuleBaseURL();
         moduleRelativeURL += (moduleRelativeURL.equals()) ? /
 MedicalReportServlet : MedicalReportServlet;
         com.google.gwt.user.client.Window.open(moduleRelativeURL, Report,
 );
    }

    public void onFailure(Throwable caught) {
         System.out.println(Store medical report data failed);
         caught.printStackTrace();
   }

 });

 /**
 * Get session data and create jasper pdf
 * in IE8 the session always return null
 **/
 public void service(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException {
         String[][] data = (String[][])req.getSession().getAttribute
 (medicalReportData);
         if(data ==null){
            ServletOutputStream os = resp.getOutputStream();
            os.write(DATA IS NULL.getBytes());
            os.flush();
            os.close();
            return;
         }
         createReport(data, resp);}

 private void createReport(String[][] data, HttpServletResponse
 responese)throws ServletException{
 //Create JASPER PDF

 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: shell fails loading

2008-12-22 Thread ArunDhaJ

Hi,
I got this problem fixed.. :-)
I started using gwt with IE6 and later upgraded to IE7. Till then it
was working fine.
3 days back I uninstalled IE7 and this problem started.
Today I installed IE7 again to check this and now its working
fine... :-) I dont know the reason...

Please let me know if you could able to infer the root cause.

Thanks Kevin and Ian for your support. This discussion was worth and I
learnt few internals of GWT and Tomcat from your suggestions.

Regards
ArunDhaJ
www.arundhaj.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: shell fails loading

2008-12-22 Thread Kevin Tarn
Glad to know you have solve it.

Kevin

On Mon, Dec 22, 2008 at 7:27 PM, ArunDhaJ arund...@gmail.com wrote:


 Hi,
 I got this problem fixed.. :-)
 I started using gwt with IE6 and later upgraded to IE7. Till then it
 was working fine.
 3 days back I uninstalled IE7 and this problem started.
 Today I installed IE7 again to check this and now its working
 fine... :-) I dont know the reason...

 Please let me know if you could able to infer the root cause.

 Thanks Kevin and Ian for your support. This discussion was worth and I
 learnt few internals of GWT and Tomcat from your suggestions.

 Regards
 ArunDhaJ
 www.arundhaj.com
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: What am I misunderstanding about the event model?

2008-12-22 Thread David H. Cook

Jason -

You wrote:
The problem with the standard DOM EventListeners is that only one
listener can be attached to an
Element. The other problem is that a custom Widget may be required to
listen for a sequence of
low-level events in order to trigger a single high-level event (think
MOUSEDOWN/UP/MOVE in relation
to itemDraggedAndDropped())

Yes!   I agree totatlly! There are nothing BUT problems with the event
model.
So, with those shortcomings, why did they implement it that way?

Like the 'roughian' man said so succinctly:
You can't addEventListener() to anything I'm aware of.

That's my criticism in a nutshell!  So, why didn't they implement it
that way?
Then they wouldn't have even NEEDED all those other (foolish) Listener-
APIs
with all their shortcomings!

You wrote:
 If you are extending the classes over and over again...

NO, I'm NOT!  I don't like it that I need to!  So, I refuse.

In fact, what I found myself doing was to change my whole design (from
what I had when I first implemented it in the old javascript-model) so
that
I am NOT implementing DBL-CLICK,  because of the need to sub-class.

[I found a thread a week ago or so, where someone found that in the
soon-to-be
released GWT 1.60, there was some refactoring of event-stuff, and I am
hoping
against hope that they were ripping out ALL the event-routines, and
simplifying,
but of course, they aren't.  The community would be in an uproar.
(Except for me.!)
I'd welcome it with open-arms, as I have just one small app written in
GWT, and
would be more than happy to re-write all the event-stuff, if they were
to redesign
it totally.]



On Dec 22, 3:04 am, Jason Morris lem...@gmail.com wrote:
 The GWT event model is a close relation of the standard Java event model.

 The problem with the standard DOM EventListeners is that only one listener 
 can be attached to an
 Element. The other problem is that a custom Widget may be required to listen 
 for a sequence of
 low-level events in order to trigger a single high-level event (think 
 MOUSEDOWN/UP/MOVE in relation
 to itemDraggedAndDropped()).

 So you hide the low-level events within Widget classes, which when they 
 receive the event can
 trigger the collection of ClickListeners / MouseListeners / 
 MyFancyListenerNumber3.

 adding your double-click behavior to each
 one in it's onBrowserEvent method, you're doing it wrong. The correct way is 
 to extend once, and
 allow for adding any additional listeners (double-click, keyboard, etc.) to 
 the extended class
 (which should trigger them in it's onBrowserEvent method). This way the event 
 handling logic remains
 separated from the Widget itself.

 Also bare in mind Composite style classes (like a TabPanel) that want to turn 
 a Click event on a tab
 into onBeforeTabSelected and onTabSelected for it's TabListeners.

 Hope that helps a bit.

 David H. Cook wrote:

  The more code I implement and the more event-related APIs
  I look at in GWT, the more confused I get.  After
  looking at complete examples about 'listeners' on website such as:
 http://examples.roughian.com/index.htm#Listeners~Summary
  or posts in this group, I conclude that the most general
  is an 'EventListener', because then I can get at ANY/ALL events
  that I might be interested in, as it's method gets 'Event e'
  as an input param.  But, what seems to me like
  a real NEGATIVE is that I must 'extend' (sub-class) an object
  to use EventListener, right?

  Now, if I only care about a 'click', then I do NOT need to extend,
  because there are 'clicklisteners', which listen for just ONE event
  type...'click'.  But, if I want, say, 'double-click', well, there
  are NOT any 'double-click' listeners, so it seems that I'll need
  to use the more general EventListener.

  That would be reasonable/acceptable if there was just
  ONE object that I wanted/needed to extend in a given app.
  But, let's say, I care about 'doubleclicks' from 3 different
  objects in the same app...anchors, tabs, and images.
  (Maybe not the best examples, but bear with me.)
  So, it seems that now I need to extend three objects, so I'll
  need 3 java classes (and thus, ...3 FILES...one class per file).
  [Some posts/examples mention 'widget builders'  as a separate
  class of developer.  But, I don't want to build new 'widgets'...
  I just want a write a simple app.

  Somehow, the APIs seem to be making things unnecessarily 'complex',
  when I compare this to how easy it was to implement events
  in javascript language (before I started using GWT).  And, its
  beginning to seem like the designers of the event-model/event-apis in
  GWT
  might have miss-designed the APIs?!  (I wasn't around at the
  beginning, so I don't know how the event-APIs looked in version 1.00.)

  Both the author of roughian website and other posters all seem to
  bemoan
  this need to extend, but all say it is necessary.  For example,
  roughian
  says:

  [Notes:
  This is something you should only use if you are subclassing a widget

Re: GWTCanvas, TabPanels, Internet Explorer

2008-12-22 Thread soundseeker

it would be great if the combination canvas/tab panel/ie would work in
the next version,
it's too good not to be widely spread!

at the moment it's a bug and the my application gui has to be
reconsidered.

robert


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: IDE for GWT

2008-12-22 Thread 9drag...@googlemail.com

On 22 Dez., 03:28, todd.sei...@gmail.com todd.sei...@gmail.com
wrote:
 Eclipse is great IMO. It its perfectly suited for developing an GWT
 app you can think of. I started out with Instantiation's GWT Designer.
 The product was great for getting into GWT quick but I found it
 eventually only useful for creating trivial applications.

 On Dec 20, 8:48 pm, Eduardo Henrique eduardo.hi...@gmail.com
 wrote:

same on my side!

GWT Designer does many cool things for me, like adding the methods if
i change the interface for a romte service
but the drag and drop GUI Builder is often just useful for creating
something fast, then change it and never will be able to use designer
mode again
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: IDE for GWT

2008-12-22 Thread Eric Clayberg - Instantiations

Actually, that is not really true. GWT Designer has a very powerful
reverse engineering parser that allows it to understand most (80-90%)
hand-written and refactored code. You can use the GUI layout tools to
create an initial design, switch to the source view to modify it and
then switch back to the design view to continue working. This is one
of the features that distinguishes it (and its SWT and Sweing Designer
siblings) from other GUI builders on the market that either have very
limited parsers or can't parse any code at all (like NetBeans). Note
that GWT Designer (as part of WindowBuilder Pro) is a Jolt Award
Finalist this year!

On Dec 22, 7:50 am, 9drag...@googlemail.com
9drag...@googlemail.com wrote:

 GWT Designer does many cool things for me, like adding the methods if
 i change the interface for a romte service
 but the drag and drop GUI Builder is often just useful for creating
 something fast, then change it and never will be able to use designer
 mode again
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: generating for all browsers

2008-12-22 Thread suk...@yahoo.com

unfortunately it's deeper than that, the vertical split panels don't
work, the decoratedpanel also has a problem with
layouting...everything works and looks perfect on IE but both on
firefox and chrome. it doesn't work. any other hints?

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



Session varriable are lost

2008-12-22 Thread arnaud

Hi every one,
i have created a session variable in which i put a xml file like a
String.When i try to get this variable one part is lost.
What can i do for this?
Arnaud
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Migrating existing JSPs to GWT

2008-12-22 Thread chandraj...@gmail.com

Can someone reply on this please??

Thanks,

On Dec 16, 2:06 pm, chandraj...@gmail.com chandraj...@gmail.com
wrote:
 Is there any well defined framework to an existing web app project
 using JSPs to GWT? Any sample applications?
 The back end is clearly separated from the UI. Any other guidelines
 while rewriting the JSPs?

 I am also trying to use Spring framework for this project rework.
 Whats the best and easy approach to learn Spring and GWT integration?

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



add jars to the classpath????

2008-12-22 Thread jbroquefere

Hello,
I'm trying to access mine own objects, which are in jars files.
I add them to the builpath (i use eclipse).
My imports seem to be ok (not red underlined), but when i try to
launch the application, i have some errors  like :
[ERROR] Line 15: The import com.my.own.package cannot be resolved

Should i configure something in xml files? my jars are NOT widgets,
just objects i have to use.

thank's a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: add jars to the classpath????

2008-12-22 Thread Isaac Truett

Widgets or not, if they're used in client code then they need to be
part of a module. Also, if you're using shell scripts or .cmd files to
launch, you'll need to add the jar to the classpath in that script.


On Mon, Dec 22, 2008 at 10:38 AM, jbroquefere
jeanbaptiste.roquef...@gmail.com wrote:

 Hello,
 I'm trying to access mine own objects, which are in jars files.
 I add them to the builpath (i use eclipse).
 My imports seem to be ok (not red underlined), but when i try to
 launch the application, i have some errors  like :
 [ERROR] Line 15: The import com.my.own.package cannot be resolved

 Should i configure something in xml files? my jars are NOT widgets,
 just objects i have to use.

 thank's a lot
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: add jars to the classpath????

2008-12-22 Thread jbroquefere

My response is : use a servlet :)

On Dec 22, 4:38 pm, jbroquefere jeanbaptiste.roquef...@gmail.com
wrote:
 Hello,
 I'm trying to access mine own objects, which are in jars files.
 I add them to the builpath (i use eclipse).
 My imports seem to be ok (not red underlined), but when i try to
 launch the application, i have some errors  like :
 [ERROR] Line 15: The import com.my.own.package cannot be resolved

 Should i configure something in xml files? my jars are NOT widgets,
 just objects i have to use.

 thank's a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: TabPanel listeners

2008-12-22 Thread Kevin Tarn
Does addTabListener not enough for your requirement?

Kevin

On Mon, Dec 22, 2008 at 10:58 PM, jake H pnosti...@gmail.com wrote:


 Hello,
 I m creating a simple tabpanel with subpanels like the one follows

  TabPanel tpanel = new TabPanel();
  tpanel.add(new HTML(tbp),Basic);
  TabPanel subpanel = new TabPanel();


  subpanel.add(new HTML(aaa),Two);
  subpanel.add(new HTML(aaa),Three);
  subpanel.selectTab(0);
  tpanel.add(subpanel,Basic);
  tpanel.add(new HTML(tbp),Basic);

 I want to ask if its possible with tabListeners , not to create the
 interface from the start but when the user press the One subpanel for
 example then it will load whatever it wants.

 Basic  | Basic | Basic
 |
 One | Two | Three  , by pressing One then load the stuff. I dont want
 to load them all from the beginning.

 Ty.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Migrating existing JSPs to GWT

2008-12-22 Thread gregor

The issue is not straight forward and depends on your situation and
constraints. There lots of posts about this on the group and there are
also good resources on how to integrate GWT with Spring. Search group
for struts and spring. The best answer is probably to throw away
your existing JSP layer and connect new GWT UI with Spring via GWT
RPC, but that is not always possible.

On Dec 22, 3:09 pm, chandraj...@gmail.com chandraj...@gmail.com
wrote:
 Can someone reply on this please??

 Thanks,

 On Dec 16, 2:06 pm, chandraj...@gmail.com chandraj...@gmail.com
 wrote:

  Is there any well defined framework to an existing web app project
  using JSPs to GWT? Any sample applications?
  The back end is clearly separated from the UI. Any other guidelines
  while rewriting the JSPs?

  I am also trying to use Spring framework for this project rework.
  Whats the best and easy approach to learn Spring and GWT integration?

  Peace  Regards,
  C
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: TabPanel listeners

2008-12-22 Thread todd.sei...@gmail.com

Yes you can. Add your tabs.

tpanel.add(new SimplePanel(),Tab 1);
tpanel.add(new SimplePanel(),Tab 2);
tpanel.add(new SimplePanel(),Tab 3);
tpanel.add(new SimplePanel(),Tab 4);

Register your TabListener. And do something similar to this in you
listener.

onTabSelected(SourcesTabEvents sender, int tabIndex)  {

  SimplePanel sp = (SimplePanel) tpanel.getWidget(tabIndex);

  if (sp.getWidget()==null) {
 switch (tabIndex) {
   case 0:
 sp.setWidget(new HTML(This is Tab 1));
 break;
   case 1:
 
 }
  }

}

On Dec 22, 9:58 am, jake H pnosti...@gmail.com wrote:
 Hello,
 I m creating a simple tabpanel with subpanels like the one follows

           TabPanel tpanel = new TabPanel();
           tpanel.add(new HTML(tbp),Basic);
           TabPanel subpanel = new TabPanel();

           subpanel.add(new HTML(aaa),Two);
           subpanel.add(new HTML(aaa),Three);
           subpanel.selectTab(0);
           tpanel.add(subpanel,Basic);
           tpanel.add(new HTML(tbp),Basic);

 I want to ask if its possible with tabListeners , not to create the
 interface from the start but when the user press the One subpanel for
 example then it will load whatever it wants.

 Basic  | Basic | Basic
                  |
 One | Two | Three  , by pressing One then load the stuff. I dont want
 to load them all from the beginning.

 Ty.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Servlet Response formatting in IE

2008-12-22 Thread D L H

Yeah it looks like IE is trying to actually format the xml to display
it on the page. If I stick another character in front of the xml
string I get this result from IE:

TABLE width=400
P style=FONT: 13pt/15pt verdanaThe XML page cannot be displayed
P style=FONT: 8pt/11pt verdanaCannot view XML input using style
sheet. Please correct the error and then click the A
href=javascript:location.reload() target=_selfRefresh/A button,
or try again later.
HR

P style=FONT: bold 8pt/11pt verdanaInvalid at the top level of the
document. Error processing resource 'http://localhost:/
com.proprintsgear.design_lab.test6/loadXml'. Line 1, Position 1 /
PPRE style=FONT-WEIGHT: normal; FONT-SIZE: 10pt; LINE-HEIGHT: 12pt;
FONT-STYLE: normal; FONT-VARIANT: normalFONT color=blue{lt;?xml
version=1.0 encoding=UTF-8?gt;
etc...

I'll try playing around with JSON. Thanks for your response, gregor.

-DLH


On Dec 22, 10:42 am, gregor greg.power...@googlemail.com wrote:
 Hi DLH,

 I had a similar problem a couple of months ago trying to return an XML
 string from a file upload servlet in IE. In my case IE appeared to be
 consuming the first 20/30 chars of the XML text before my
 onSubmitComplete() could get its hands on it thus rendering it un-
 parsable. I went through just about every tip on the group relating to
 this in various combination (text/html is definitely right, but
 still didn't work for me) for a frustrating day to no avail. I came to
 the conclusion that IE was trying to be helpful by interpreting the
 markup itself and screwing it up rather than just leaving it alone. I
 imagine there is a way to get round this but it is not clear to me
 what. As you can see, this is a different but related problem to
 yours, which suggests that IE can be awkward and unpredictable with
 XML responses.

 Next morning I decided to learn JSON, which I had never used before,
 and between the simple flexjson lib and GWT JSON parser I had it
 working within a couple of hours and was delighted to see that IE
 completely ignored the JSON return strings in all cases. Personally I
 will not bother with XML again.

 Unfortunately JSON doesn't sound like a solution for you, and I'm
 sorry I don't have the real answer. One thing that might work if all
 else fails is to put your XML inside a JSON response as a single text
 field, dig it out using the GWT JSON parser, then use the GWT XML
 parser on it. Horrible I know, but it will probably stop IE
 interfering with your response.

 regards
 gregor

 On Dec 22, 2:35 pm, D L H thed2...@gmail.com wrote:

  Hmm I think that's how I had it originally. I just changed it to text/
  html again, and it didn't seem to have any effect.

  public class LoadXmlServlet extends HttpServlet {
          protected void doPost(HttpServletRequest request, 
  HttpServletResponse
  response) throws java.io.IOException {
                  response.setContentType(text/html);
                  ServletOutputStream out = response.getOutputStream();
                  //StringWriter sw = new StringWriter();
                  //PrintWriter pw = new PrintWriter(sw);

                  DiskFileItemFactory factory = new DiskFileItemFactory();
                  ServletFileUpload upload = new ServletFileUpload(factory);

                  List items;
                  try {
                          items = upload.parseRequest(request);
                          FileItem item = (FileItem)items.get(0);
                          out.print(item.getString());
                  } catch(FileUploadException e) {
                          //e.printStackTrace(pw);
                          //out.print(sw.toString());
                  }
          }

  }

  On Dec 21, 9:40 pm, todd.sei...@gmail.com todd.sei...@gmail.com
  wrote:

   It looks like you are using a FormPanel. For IE to work you need to
   have your response content type be set to text/html. This will work
   for the other browsers as well.

   On Dec 19, 5:05 pm, D L H thed2...@gmail.com wrote:

Hello.

I have a Java servlet that reads an xml-based file and sends the
contents to my gwt application as an HttpServletResponse. I have the
content type set to text/plain in the servlet. On the client side I
use event.getResults() inside the onSubmitComplete method of the form
handler.

Everything runs smoothly in Firefox, but when I tested in IE7, it
would not work properly. I used a Label for debugging to see what
exactly the application was reading from the servlet, and in IE i'm
getting a buncha HTML stuff like this:

DIV class=eSPAN class=bnbsp;/SPAN SPAN class=mlt;?/
SPANSPAN class=pixml version=1.0 /SPANSPAN class=m?gt;/
SPAN /DIV

How do I get IE7 to format my servlet response as plain text instead
of html?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to 

Re: Servlet Response formatting in IE

2008-12-22 Thread gregor

That might work if you stick say 20 or 30 chars in front of it, enough
for IE to give up and say I don't know what this is, pass it on.

On Dec 22, 4:35 pm, D L H thed2...@gmail.com wrote:
 Yeah it looks like IE is trying to actually format the xml to display
 it on the page. If I stick another character in front of the xml
 string I get this result from IE:

 TABLE width=400
 P style=FONT: 13pt/15pt verdanaThe XML page cannot be displayed
 P style=FONT: 8pt/11pt verdanaCannot view XML input using style
 sheet. Please correct the error and then click the A
 href=javascript:location.reload() target=_selfRefresh/A button,
 or try again later.
 HR

 P style=FONT: bold 8pt/11pt verdanaInvalid at the top level of the
 document. Error processing resource 'http://localhost:/
 com.proprintsgear.design_lab.test6/loadXml'. Line 1, Position 1 /
 PPRE style=FONT-WEIGHT: normal; FONT-SIZE: 10pt; LINE-HEIGHT: 12pt;
 FONT-STYLE: normal; FONT-VARIANT: normalFONT color=blue{lt;?xml
 version=1.0 encoding=UTF-8?gt;
 etc...

 I'll try playing around with JSON. Thanks for your response, gregor.

 -DLH

 On Dec 22, 10:42 am, gregor greg.power...@googlemail.com wrote:

  Hi DLH,

  I had a similar problem a couple of months ago trying to return an XML
  string from a file upload servlet in IE. In my case IE appeared to be
  consuming the first 20/30 chars of the XML text before my
  onSubmitComplete() could get its hands on it thus rendering it un-
  parsable. I went through just about every tip on the group relating to
  this in various combination (text/html is definitely right, but
  still didn't work for me) for a frustrating day to no avail. I came to
  the conclusion that IE was trying to be helpful by interpreting the
  markup itself and screwing it up rather than just leaving it alone. I
  imagine there is a way to get round this but it is not clear to me
  what. As you can see, this is a different but related problem to
  yours, which suggests that IE can be awkward and unpredictable with
  XML responses.

  Next morning I decided to learn JSON, which I had never used before,
  and between the simple flexjson lib and GWT JSON parser I had it
  working within a couple of hours and was delighted to see that IE
  completely ignored the JSON return strings in all cases. Personally I
  will not bother with XML again.

  Unfortunately JSON doesn't sound like a solution for you, and I'm
  sorry I don't have the real answer. One thing that might work if all
  else fails is to put your XML inside a JSON response as a single text
  field, dig it out using the GWT JSON parser, then use the GWT XML
  parser on it. Horrible I know, but it will probably stop IE
  interfering with your response.

  regards
  gregor

  On Dec 22, 2:35 pm, D L H thed2...@gmail.com wrote:

   Hmm I think that's how I had it originally. I just changed it to text/
   html again, and it didn't seem to have any effect.

   public class LoadXmlServlet extends HttpServlet {
           protected void doPost(HttpServletRequest request, 
   HttpServletResponse
   response) throws java.io.IOException {
                   response.setContentType(text/html);
                   ServletOutputStream out = response.getOutputStream();
                   //StringWriter sw = new StringWriter();
                   //PrintWriter pw = new PrintWriter(sw);

                   DiskFileItemFactory factory = new DiskFileItemFactory();
                   ServletFileUpload upload = new ServletFileUpload(factory);

                   List items;
                   try {
                           items = upload.parseRequest(request);
                           FileItem item = (FileItem)items.get(0);
                           out.print(item.getString());
                   } catch(FileUploadException e) {
                           //e.printStackTrace(pw);
                           //out.print(sw.toString());
                   }
           }

   }

   On Dec 21, 9:40 pm, todd.sei...@gmail.com todd.sei...@gmail.com
   wrote:

It looks like you are using a FormPanel. For IE to work you need to
have your response content type be set to text/html. This will work
for the other browsers as well.

On Dec 19, 5:05 pm, D L H thed2...@gmail.com wrote:

 Hello.

 I have a Java servlet that reads an xml-based file and sends the
 contents to my gwt application as an HttpServletResponse. I have the
 content type set to text/plain in the servlet. On the client side I
 use event.getResults() inside the onSubmitComplete method of the form
 handler.

 Everything runs smoothly in Firefox, but when I tested in IE7, it
 would not work properly. I used a Label for debugging to see what
 exactly the application was reading from the servlet, and in IE i'm
 getting a buncha HTML stuff like this:

 DIV class=eSPAN class=bnbsp;/SPAN SPAN class=mlt;?/
 SPANSPAN class=pixml version=1.0 /SPANSPAN class=m?gt;/
 SPAN /DIV

 How do I 

Re: onHistoryChange(String token) is not working.

2008-12-22 Thread Sumit Chandel
Hi Rinku,

Which browser does this occur on? I think the problem you're experiencing is
related to Issue #624 that Thomas mentioned above, but yours is probably an
IE case where a single form panel will work through history but multiple
form panels trigger the bug.

I would recommend updating the issue report with your case and posting some
sample code to help us reproduce to problem on our side. Issue #624 is
slated for 1.6, so hopefully we can get this fix in by the next release.

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

Hope that helps,
-Sumit Chandel

On Wed, Dec 17, 2008 at 10:03 PM, Rinku ashishkushwaha1...@gmail.comwrote:


 Can anybody help me to solve this bug ?

 On Dec 17, 10:30 am, Rinku ashishkushwaha1...@gmail.com wrote:
  Similar issue is reported in this thread also.
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 
  On Dec 17, 10:18 am, Rinku ashishkushwaha1...@gmail.com wrote:
 
   Hi Thomas,
   Thanks for reply.
 
   Yes. single vs. multiple is affecting the history.
   I am using History.back() to move on the previousHistoryToken which is
   only working when I am uploading single file.
   Please reply soon.
 
   On Dec 16, 7:04 pm, Thomas Broyer t.bro...@gmail.com wrote:
 
On 11 déc, 14:43, Rinku ashishkushwaha1...@gmail.com wrote:
 
 Hi,
 I am using FileUpload Widget to upload a file.
 When I am upolading more than one  files  with FileUploadWidget and
 after uploading  the files  I am using History.back on a click of a
 button then onHistoryChange() method is not invoking.
 
See issue 624
 http://code.google.com/p/google-web-toolkit/issues/detail?id=624
 
 When I am uploading a single file then onHistoryChange() method is
 calling.
 
That sounds weird; I can't understand how single vs. multiple would
affect history...
 
 It is necessary for me to call History.back() method after
 uploading
 files to display the previous view.
 
Can't you rather use some other mean of communicating the previous
history token and then doing a History.newItem(previousHistoryToken)?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: IDE for GWT

2008-12-22 Thread precog

I use Intellij with a vim plugin running GWT in hosted mode against an
installed tomcat (too much information, I know).

I've tried using eclipse a few times in a general sort of way.  They
have very similar features, though a smaller user-base, but the user-
interface in IntelliJ is so well-designed I don't spend a lot of time
with eclipse.  Well worth the money.

Also, you need IntelliJ 8 (their newest) in order to use gwt1.5
properly (ie to handle generics).  Intellij 8 does refactoring, etc.,
through the asynchronous interface properly.

On Dec 20, 5:48 pm, Eduardo Henrique eduardo.hi...@gmail.com
wrote:
 What IDE are you using???
 Do you use any Eclipse's Plugin for GWT?

 --
 Eduardo Henrique(Hitek) -www.eduardohitek.blogspot.com
 Desenvolvimento
 SoftSite -www.softsite.com.br
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Deploying/Packaging GWT applications that have server side components

2008-12-22 Thread Mitchel Ludwig

Ok:

First post to the group, so please be gentle.  I've built a number of
GWT applications.  Up to now, they've all been 100% client side, and
all are really single user apps, so compiling and deploying them
hasn't been an issue.  I just compile them using the ???-compile.cmd
generated, package up the directory structure, and it's all good.

I'm working on my first application now that needs a server side.
Basically, it's still a stand alone application, I just want it to
communicate with various home automation tools in my house.  They all
talk XML over HTTP, so I built a server side proxy to handle getting
outside the sandbox.  It compiles and runs fine in Eclipse, and under
the ???-shell.cmd execution.  But again, I'm not looking this to be
anything, to the end user, but an application they run local to their
machine.  Both the client and the server would run on the same PC,
with the server just there to proxy the XML to the various HTTP
services.

So here is my question.  How do I deploy this?  Grabbing the compiled
code and just running the main.HTML brings up the client UI, but
server side is borked because it's not running.  Is there a bundled
hosted mode I can package things up in?  Am I *forced* to build/
deploy some kind of separate tomcat (or other) server?

I tried to find something along these lines in the forums, but I
couldn't.  I apologize if this has been answered before.

Thanks for any assistance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Deploying/Packaging GWT applications that have server side components

2008-12-22 Thread todd.sei...@gmail.com

Yes, you have to deploy to some kind of server. Tomcat is surprisingly
easy to work with...especially on Windows. Just follow the instruction
at 
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=FAQ_PackageAppInWARFile
for building a WAR file. Start Tomcat and place the WAR in the webapps
directory. Tomcat will deploy it for you.

On Dec 22, 3:07 pm, Mitchel Ludwig mi...@theludwigs.net wrote:
 Ok:

 First post to the group, so please be gentle.  I've built a number of
 GWT applications.  Up to now, they've all been 100% client side, and
 all are really single user apps, so compiling and deploying them
 hasn't been an issue.  I just compile them using the ???-compile.cmd
 generated, package up the directory structure, and it's all good.

 I'm working on my first application now that needs a server side.
 Basically, it's still a stand alone application, I just want it to
 communicate with various home automation tools in my house.  They all
 talk XML over HTTP, so I built a server side proxy to handle getting
 outside the sandbox.  It compiles and runs fine in Eclipse, and under
 the ???-shell.cmd execution.  But again, I'm not looking this to be
 anything, to the end user, but an application they run local to their
 machine.  Both the client and the server would run on the same PC,
 with the server just there to proxy the XML to the various HTTP
 services.

 So here is my question.  How do I deploy this?  Grabbing the compiled
 code and just running the main.HTML brings up the client UI, but
 server side is borked because it's not running.  Is there a bundled
 hosted mode I can package things up in?  Am I *forced* to build/
 deploy some kind of separate tomcat (or other) server?

 I tried to find something along these lines in the forums, but I
 couldn't.  I apologize if this has been answered before.

 Thanks for any assistance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Who's Using GWT?

2008-12-22 Thread Alex Epshteyn

http://play.typeracer.com

Too many tips and tricks to enumerate here :)

On Dec 11, 8:39 pm, Sumit Chandel sumitchan...@google.com wrote:
 Hello everyone,

 We've recently updated the GWT homepage to include a page displaying a
 non-exhaustive list of applications that are built with GWT. We were
 also able to capture a few developers on video for those who happened
 to be around the Google Mountain View area and developed awesome
 applications using GWT. Check out more details on both of these at the
 link below:

 Who's Using GWT?:http://code.google.com/webtoolkit/app_gallery.html

 It's great that we were able to catch some of our local developers on
 video, but we know there are other great stories out there from other
 developers in the community. So, I thought it would be cool if I
 stickied this Groups thread for community members to share their
 experience with everyone.

 Feel free to post up your own GWT application(s), along with your most
 loved / requested features and any tips and tricks you've come across
 as you developed your applications that you'd like to share with the
 rest of the community. Looking forward to hearing from you.

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



Making a request to another page

2008-12-22 Thread Suri

Hi all,
I'm trying to do the following.

As part of how I'm modeling my exception handling, I decided that to
be consistent with my current Struts model -  I would redirect the
user to a generic error page in case of an error. Thus, any exceptions
in the GWT should also be handled in the same manner.

I figured I could just use the RequestBuilder to send my request
along. However, I see that the problem here is that it requires a
RequestCallback instance in order to make the request. I probably
could fake a callback and let it pass, but I wanted to check with the
experts to see if there was a more appropriate way to do this. Does
this mean that there is no way of making a request/call to the server
without providing a callback?


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



Re: Incubator: ScrollTable

2008-12-22 Thread Suri

Hi Francesco,

I'm using the ScrollTable myself and I was able to make the columns to
be of fixed width simply by setting the minimum, preferred and maximum
widths of my column(s) to be of the same value. e.g if you're being
consistent with the example code provided:

private TableDefinitionStudent createTableDefinition()
{

   // definition for a column
   {
   StudentColumnDefinitionString colDef =
StudentColumnDefinitionString(Col 1) {



   }
}



On Dec 21, 8:29 am, francescoNemesi ilmus...@gmail.com wrote:
 Hello,

 I have been using the ScrollTable widget
 (com.google.gwt.gen2.table.client.ScrollTable) in the incubator and I
 find it very useful. I need to add a Row Header section which
 contains fixed columns that do not move when scrolling horizontally.

 I have studied the AbstractScrollTable
 (com.google.gwt.gen2.table.client.AbstractScrollTable) class code
 which implements most of the ScrollTable functionality and I think the
 cleanest and best way to add a Row Header would be to add a
 FixedWidthFlexTable that implements it, much in the same way the
 existing headerTable has been implemented.

 Has anyone done this before? Are there any best practices to change
 the current code in the incubator (AbstractScrollTable class code
 would need some substantial parts added to it)?

 An abovious solution would be create my own class that extends
 AbstractScrollTable, but this contains either private or protected
 instance variables (for example Element absoluteElement, the widget
 main DIV container), so I'd rather go for the cleanest approach
 possible...

 Any help and suggestions highly appreciated.

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



Re: Making a request to another page

2008-12-22 Thread Reinier Zwitserloot

RequestBuilder makes an AJAX call. It doesn't redirect the browser.
use setLocation for that, which I think is in the standard GWT API
someplace. Otherwise, use some JSNI to do:

window.location.href = http://whatever.com/;;

if you really meant to make an AJAX call: Yes, you need a callback.
You don't have to put anything in it, though.

On Dec 22, 11:06 pm, Suri sviswanad...@gmail.com wrote:
 Hi all,
 I'm trying to do the following.

 As part of how I'm modeling my exception handling, I decided that to
 be consistent with my current Struts model -  I would redirect the
 user to a generic error page in case of an error. Thus, any exceptions
 in the GWT should also be handled in the same manner.

 I figured I could just use the RequestBuilder to send my request
 along. However, I see that the problem here is that it requires a
 RequestCallback instance in order to make the request. I probably
 could fake a callback and let it pass, but I wanted to check with the
 experts to see if there was a more appropriate way to do this. Does
 this mean that there is no way of making a request/call to the server
 without providing a callback?

 Thanks
 Suri
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: What am I misunderstanding about the event model?

2008-12-22 Thread Reinier Zwitserloot

1) You can use something called 'anonymous inner classes'. google it.
They look something like this:

someButton.addClickListener(new ClickListener() { public void onClick
() {
/* code that runs when someButton is clicked goes here. */
}});

This does produce 2 class files, but this is an utterly irrelevant
implementation detail of the JVM. GWT doesn't even give a crap about
these; it generates JS files directly from the java sources, and the
class files are there only because some IDEs don't work well without
them, and the hosted mode debug tool needs them. Whining about this is
pointless, as its a fact of life of the JVM platform. It also seems a
bit pointless to whine about: Who cares about how many class files are
involved?

2) the web doesn't work with generic 'I want every event ever' style
event catching. You can only sign up for a few events. The ones GWT
has nice abstractions for (all the 'specific' listeners) are the ones
that work reliably and similarly on all supported GWT platforms. There
are a select few event types that are non-standard and aren't
generally available on GWT's widget (the most famous one is probably
doubleclick), and there are a few widgets that don't have an
addXListener for something they do support. EventListener and the
Event class are LOW LEVEL SUPPORT classes - you do not use them in
normal code, only in library code. They are used by GWT's own widgets.
You should use them if you're building your own widget from scratch
(but not when you're compositing them from other GWT widgets). If you
aren't doing that, then you shouldn't be using them. They aren't drop
in replacements to do 'catch all events' code.

In general, you should not use the stuff that isn't supported. If,
however, you must, then you can. This involves messing with the DOM.*
utility methods and generally means you need to know what you're
doing. Remember, GWT is a *LEAKY* abstraction. Using GWT when you
don't have a clue about how html, the dom, and javascript work, is not
a supported use case. GWT is useful because it makes web development
easier. That's a long way of saying: Tough cookies, go learn how the
web works, then come back.

Once you've figured that all out, this is how you can hack GWT:

1. use DOM/Widget.sinkEvents to set up a listener on the DOM side for
the specific event you're interested in.

2. Use the EventListener raw interface / override onEvent from the
Widget class and check the Event code to know what just happened. The
'Event' class is a javascript/java interactivity tool, just like the
JavaScriptObject class. You are NOT supposed to do anything with it in
java code; you pass it into JSNI methods and then the JSNI code does
something with it. This interface also provides you with a few useful
parameters, such as the sending object.

3. As a general rule, using one event listener to handle events coming
from multiple objects, is bad design. Use as many anonymous inner
classes as you need, instead. This is only acceptable in certain
situations that involve arrays of 100% similar widgets (such as a blog
engine where you have a list of checkbox widgets, one for each tag,
where the tags on any given post are completely dynamic - for example,
set by the user when he wrote the post. Then it can make sense to have
just one event listener for the whole lot, and check which widget
caused the event to respond appropriately).

4. When using anonymous inner classes for event handlers with more
than one method (such as the keyboard listener which has keyUp,
keyDown, keyPress), but you only care about one of those, use the
XListenerAdapter class instead of the interface. Make sure you use the
@Override annotation on the one method you're overriding when you do
this, or bad things happen when you typo the method name
(specifically: nothing happens at all, which means you have to go on a
bug hunting spree to figure out why nothing is happening. It can take
a while to realize you typoed the method name. With an @Override in
place, the compiler will refuse to compile your code right from the
get go. Much easier to find that mistake now.)

Example situation: I have a cancel button and an ok button.

DO THIS:

cancelButton.addClickListener(new ClickListener() { public void onClick
(Widget w) {
dialog.close();
Messaging.flashWarning(Sign-up cancelled.);
}});

okButton.addClickListener(new ClickListener() { public void onClick
(Widget w) {
okButton.setEnabled(false);
dialog.showSpinner();
sendRegistrationRequest(emailBox.getText(), new
RegistrationRequestHandler() {
@Override public void requestAccepted() {
dialog.close();
Messaging.showMessage(Congratulations! You've signed up
to our service!);
}

@Override public void requestDenied(String reason) {
dialog.close();
Messaging.showError(Whoops - we can't process your sign
up request, because  + reason);
}
});
}});


do NOT do:

myClickListener = 

Re: Need for a great GWT GUI library

2008-12-22 Thread thebuz...@gmail.com

If you want a great library use ext gwt which is not the same as gwt-
ext.

Ext Gwt does contain some javascript but it is used for mostly
performace issues. Other than that ext gwt is written in pure java.

The gui widgets it has have basic and advance widgets. It is a great
choice to do something that require some advance widgets. Also the
library does have bugs however it is getting fixed with each version
release while new features get added.

On Dec 19, 7:13 am, Juan Backson juanback...@gmail.com wrote:
 Hi,

 I have been using GWT for almost 6 months now.  In the past six months, I
 have tried migrating code from pure GWT to GWT-EXT and then to Smart-GWT.

 They all have drawback:

 GWT - no good looking widget
 GWT-Ext - very buggy and GPL licensing
 Smart-GWT - slow and memory intensive

 Is there any library that has the same capability of Smart-GWT and good
 performance?

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



Re: Need for a great GWT GUI library

2008-12-22 Thread nogridbag

I've been using GXT (Ext-GWT) for quite some time now.  While it
certainly looks nice and provides a good amount of functionality
lacking in GWT, there are several drawbacks.

1) It is very buggy.  Bugs get fixed fairly fast, which is good, but I
find myself submitting an abnormally large amount of bugs.  While the
developer (singular) is very responsive, passionate about his work,
and friendly, the code isn't exactly up to the standards that was
hoping for.

2) It is not just a set of widgets, it's a complete framework on top
of GWT.  Your team will have to invest time to learn it.
Intermingling GWT widgets and GXT widgets is possible, but confusing
IMHO.  Which leads me to my next issue.

3) Documentation is still very lacking, although they're working on
it...

4) There's some really iffy design decisions.
a) The use of generics is not only inconsistent, but in many cases
it's not even possible to use generics due to API bugs.  The example I
was going to post was actually just fixed in the release today.
b) While the widgets look nice and performance is OK, you are forced
to back the GXT components (like Grid, Tree, List) with GXT specific
data model objects.  If you have a simple Employee POJO, and you want
to add it to a GXT Grid, you have to either wrap it in a Model or
ModelData class, or you have to implement a marker interface and do a
bit of trickery to get it in the Grid.  The only reason for all of
this is to support binding (since GWT doesn't support reflection).  I
would much rather have preferred a Swing like TableModel and an
optional binding layer on top of it.
c) The widgets look nice out of the box and customizing them slightly
with CSS is pretty easy.  However, if the changes require you to alter
the HTML of a GXT component, you're in for a world of pain.  The HTML
markup is tied heavily into the functionality of the widgets and is
referenced throughout the class either by tag name, tag id, or by css
class.  IMHO, the UI should be completely separate from the
functionality of the widgets.

5) Size.  The CSS itself is ~80k.

On the plus side, it's nice to have a pure GWT library in which I can
step into Java code (which you will have to do quite often!).  The
widgets look and function very nicely.  It would take a lot of time
and money to write many of the widgets GXT provides.  If you plan on
using it as is, it works fine.

On Dec 19, 10:13 am, Juan Backson juanback...@gmail.com wrote:
 Hi,

 I have been using GWT for almost 6 months now.  In the past six months, I
 have tried migrating code from pure GWT to GWT-EXT and then to Smart-GWT.

 They all have drawback:

 GWT - no good looking widget
 GWT-Ext - very buggy and GPL licensing
 Smart-GWT - slow and memory intensive

 Is there any library that has the same capability of Smart-GWT and good
 performance?

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



Re: How download file clicking in another component?

2008-12-22 Thread Romeryto Lira
Any idea??? Please =D.
--
Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
com ele conquistará o mundo. (Albert Einstein)
╔╗
  ROMERYTO VIEIRA LIRA
  Bacharelando em Ciência da Computação - UFCG
  Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br
  Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br
  Página Pessoal: http://romeryto.googlepages.com
  Blog: http://olhartecnologico.blogspot.com
╚╝

Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
ambiente.



2008/12/20 Romeryto Lira romer...@gmail.com

 Hi,

 I need call a download's servlet when I click on Button or in Tree's node.
 How to call a download's servlet for this?

 Thanks.

 --
 Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
 Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
 com ele conquistará o mundo. (Albert Einstein)
 ╔╗
   ROMERYTO VIEIRA LIRA
   Bacharelando em Ciência da Computação - UFCG
   Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br
   Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br
   Página Pessoal: http://romeryto.googlepages.com
   Blog: http://olhartecnologico.blogspot.com
 ╚╝

 Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
 ambiente.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: What am I misunderstanding about the event model?

2008-12-22 Thread David Hoffer
Hi Reinier,

So are you saying I can't use EventListener to somehow implement
double/right click support in Tree widgets and convert the Event to a
TreeItem?

Moreover are you saying that double/right click support cannot be
implemented using GWT?  Unless I want to start over and re-implement
widgets?

I understand what I am looking for is very Swing/desktop app centric rather
than the norm on the web.  However that is exactly what I have been asked to
do.

If you had to had to have double/right click Tree widget support how could
you/I get the TreeItem the user operated on?  If Google could do it for
single click I don't see why the same is not possible for other operations.

-Dave

On Mon, Dec 22, 2008 at 4:49 PM, Reinier Zwitserloot reini...@gmail.comwrote:


 1) You can use something called 'anonymous inner classes'. google it.
 They look something like this:

 someButton.addClickListener(new ClickListener() { public void onClick
 () {
/* code that runs when someButton is clicked goes here. */
 }});

 This does produce 2 class files, but this is an utterly irrelevant
 implementation detail of the JVM. GWT doesn't even give a crap about
 these; it generates JS files directly from the java sources, and the
 class files are there only because some IDEs don't work well without
 them, and the hosted mode debug tool needs them. Whining about this is
 pointless, as its a fact of life of the JVM platform. It also seems a
 bit pointless to whine about: Who cares about how many class files are
 involved?

 2) the web doesn't work with generic 'I want every event ever' style
 event catching. You can only sign up for a few events. The ones GWT
 has nice abstractions for (all the 'specific' listeners) are the ones
 that work reliably and similarly on all supported GWT platforms. There
 are a select few event types that are non-standard and aren't
 generally available on GWT's widget (the most famous one is probably
 doubleclick), and there are a few widgets that don't have an
 addXListener for something they do support. EventListener and the
 Event class are LOW LEVEL SUPPORT classes - you do not use them in
 normal code, only in library code. They are used by GWT's own widgets.
 You should use them if you're building your own widget from scratch
 (but not when you're compositing them from other GWT widgets). If you
 aren't doing that, then you shouldn't be using them. They aren't drop
 in replacements to do 'catch all events' code.

 In general, you should not use the stuff that isn't supported. If,
 however, you must, then you can. This involves messing with the DOM.*
 utility methods and generally means you need to know what you're
 doing. Remember, GWT is a *LEAKY* abstraction. Using GWT when you
 don't have a clue about how html, the dom, and javascript work, is not
 a supported use case. GWT is useful because it makes web development
 easier. That's a long way of saying: Tough cookies, go learn how the
 web works, then come back.

 Once you've figured that all out, this is how you can hack GWT:

 1. use DOM/Widget.sinkEvents to set up a listener on the DOM side for
 the specific event you're interested in.

 2. Use the EventListener raw interface / override onEvent from the
 Widget class and check the Event code to know what just happened. The
 'Event' class is a javascript/java interactivity tool, just like the
 JavaScriptObject class. You are NOT supposed to do anything with it in
 java code; you pass it into JSNI methods and then the JSNI code does
 something with it. This interface also provides you with a few useful
 parameters, such as the sending object.

 3. As a general rule, using one event listener to handle events coming
 from multiple objects, is bad design. Use as many anonymous inner
 classes as you need, instead. This is only acceptable in certain
 situations that involve arrays of 100% similar widgets (such as a blog
 engine where you have a list of checkbox widgets, one for each tag,
 where the tags on any given post are completely dynamic - for example,
 set by the user when he wrote the post. Then it can make sense to have
 just one event listener for the whole lot, and check which widget
 caused the event to respond appropriately).

 4. When using anonymous inner classes for event handlers with more
 than one method (such as the keyboard listener which has keyUp,
 keyDown, keyPress), but you only care about one of those, use the
 XListenerAdapter class instead of the interface. Make sure you use the
 @Override annotation on the one method you're overriding when you do
 this, or bad things happen when you typo the method name
 (specifically: nothing happens at all, which means you have to go on a
 bug hunting spree to figure out why nothing is happening. It can take
 a while to realize you typoed the method name. With an @Override in
 place, the compiler will refuse to compile your code right from the
 get go. Much easier to find that mistake now.)

 Example situation: I have a cancel 

Re: Need for a great GWT GUI library

2008-12-22 Thread David Hoffer
Yes all of the above.  The LF is lacking.

But what I would like to see in GWT are more 'complete' and 'extendable'
widgets.  For instance GWT chose to implement/support single click events in
the Tree widget but did not provide any support for double click or right
click support.  I understand these may be secondary needs but it makes it
hard to use any widget API if I can't extend it and do what I want.

Another example of a need is dynamic setting of images/URL in basic widgets
such as buttons, labels, menu/tree items, etc.  GWT only supports a static
image and I have to jump through hoops to change it.  It would be nice if
the Widget API supported setting the image dynamically.

In my brief use of GWT I have found the API quite lacking in functionality
for dynamic applications and is not easily extended.  On the other hand I
have found the its JS performance and RPC behavior to be very impressive.

-Dave

On Mon, Dec 22, 2008 at 8:40 PM, Fred Janon fja...@gmail.com wrote:

 I just wonder what people would like to see in a GWT library: what widgets,
 what features? I guess a nice look and feel for a start, but what else?

  4) There's some really iffy design decisions.

 What do you consider iffy design choices?

 Fred


 On Tue, Dec 23, 2008 at 11:45, nogridbag nogrid...@gmail.com wrote:


 I've been using GXT (Ext-GWT) for quite some time now.  While it
 certainly looks nice and provides a good amount of functionality
 lacking in GWT, there are several drawbacks.

 1) It is very buggy.  Bugs get fixed fairly fast, which is good, but I
 find myself submitting an abnormally large amount of bugs.  While the
 developer (singular) is very responsive, passionate about his work,
 and friendly, the code isn't exactly up to the standards that was
 hoping for.

 2) It is not just a set of widgets, it's a complete framework on top
 of GWT.  Your team will have to invest time to learn it.
 Intermingling GWT widgets and GXT widgets is possible, but confusing
 IMHO.  Which leads me to my next issue.

 3) Documentation is still very lacking, although they're working on
 it...

 4) There's some really iffy design decisions.
 a) The use of generics is not only inconsistent, but in many cases
 it's not even possible to use generics due to API bugs.  The example I
 was going to post was actually just fixed in the release today.
 b) While the widgets look nice and performance is OK, you are forced
 to back the GXT components (like Grid, Tree, List) with GXT specific
 data model objects.  If you have a simple Employee POJO, and you want
 to add it to a GXT Grid, you have to either wrap it in a Model or
 ModelData class, or you have to implement a marker interface and do a
 bit of trickery to get it in the Grid.  The only reason for all of
 this is to support binding (since GWT doesn't support reflection).  I
 would much rather have preferred a Swing like TableModel and an
 optional binding layer on top of it.
 c) The widgets look nice out of the box and customizing them slightly
 with CSS is pretty easy.  However, if the changes require you to alter
 the HTML of a GXT component, you're in for a world of pain.  The HTML
 markup is tied heavily into the functionality of the widgets and is
 referenced throughout the class either by tag name, tag id, or by css
 class.  IMHO, the UI should be completely separate from the
 functionality of the widgets.

 5) Size.  The CSS itself is ~80k.

 On the plus side, it's nice to have a pure GWT library in which I can
 step into Java code (which you will have to do quite often!).  The
 widgets look and function very nicely.  It would take a lot of time
 and money to write many of the widgets GXT provides.  If you plan on
 using it as is, it works fine.

 On Dec 19, 10:13 am, Juan Backson juanback...@gmail.com wrote:
  Hi,
 
  I have been using GWT for almost 6 months now.  In the past six months,
 I
  have tried migrating code from pure GWT to GWT-EXT and then to
 Smart-GWT.
 
  They all have drawback:
 
  GWT - no good looking widget
  GWT-Ext - very buggy and GPL licensing
  Smart-GWT - slow and memory intensive
 
  Is there any library that has the same capability of Smart-GWT and good
  performance?
 
  Thanks,
  JB



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Found bug in Gwt 1.5.3 History class

2008-12-22 Thread Rinku

Hi Arthur,
I have a problem with both; browser's back button and History.back().


On Dec 18, 7:12 pm, Arthur Kalmenson arthur.k...@gmail.com wrote:
 Oh, nevermind, there's already an 
 issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=624

 It looks like it'll be fixed in GWT 1.6.

 --
 Arthur Kalmenson

 On Thu, Dec 18, 2008 at 9:10 AM, Arthur Kalmenson arthur.k...@gmail.com 
 wrote:
  Hmm, do you have problems when you use the browser's back button or is
  only a problem when you call History.back() programmatically? I'd file
  a bug report in the GWT issue tracker
 http://code.google.com/p/google-web-toolkit/issues/list

  --
  Arthur Kalmenson

  On Thu, Dec 18, 2008 at 1:02 AM, Rinku ashishkushwaha1...@gmail.com wrote:

  Can anybody help me to solve this bug ?

  On Dec 17, 11:21 am, Rinku ashishkushwaha1...@gmail.com wrote:
  Please pay attention to this bug.

  The similar bug is reported in this thread 
  :-http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

  On Dec 16, 3:33 pm, Rinku ashishkushwaha1...@gmail.com wrote:

   Hi,
   I am using FileUploadWidget, when ever I am uploading more that one
   files with file upload widget, History.back() is not working. It is
   not calling onHistoryChanged(String token) method.

   If I am using uploading one file from FileUploadWidget then
   History.back() is working fine.
   What is issue ?
   Please help me to solve this bug.

   Thanks,
   Ashish Kushwaha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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 Printing

2008-12-22 Thread kiran raj

i think you need a javascript to print it . by using the code   window.print();

On Tue, Dec 23, 2008 at 9:47 AM, jagadesh jagadesh.manch...@gmail.com wrote:

 Hi Guys,


 I am Facing a requirement where i need to print the contents of a
 flextable.the flextable is a form type.it contains label , textbox
 with text ,textarea and even checkboxs.

 i need to get the form to be printed .

 can anyone sort me out please


 thanks for all of your answers in advance.

 thank u,
 jagadesh
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: onHistoryChange(String token) is not working.

2008-12-22 Thread Rinku


Hi Sumit,
I am using both IE and Firefox.
On both browser I am facing this issue.

On Dec 22, 9:59 pm, Sumit Chandel sumitchan...@google.com wrote:
 Hi Rinku,

 Which browser does this occur on? I think the problem you're experiencing is
 related to Issue #624 that Thomas mentioned above, but yours is probably an
 IE case where a single form panel will work through history but multiple
 form panels trigger the bug.

 I would recommend updating the issue report with your case and posting some
 sample code to help us reproduce to problem on our side. Issue #624 is
 slated for 1.6, so hopefully we can get this fix in by the next release.

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

 Hope that helps,
 -Sumit Chandel

 On Wed, Dec 17, 2008 at 10:03 PM, Rinku ashishkushwaha1...@gmail.comwrote:



  Can anybody help me to solve this bug ?

  On Dec 17, 10:30 am, Rinku ashishkushwaha1...@gmail.com wrote:
   Similar issue is reported in this thread also.
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

   On Dec 17, 10:18 am, Rinku ashishkushwaha1...@gmail.com wrote:

Hi Thomas,
Thanks for reply.

Yes. single vs. multiple is affecting the history.
I am using History.back() to move on the previousHistoryToken which is
only working when I am uploading single file.
Please reply soon.

On Dec 16, 7:04 pm, Thomas Broyer t.bro...@gmail.com wrote:

 On 11 déc, 14:43, Rinku ashishkushwaha1...@gmail.com wrote:

  Hi,
  I am using FileUpload Widget to upload a file.
  When I am upolading more than one  files  with FileUploadWidget and
  after uploading  the files  I am using History.back on a click of a
  button then onHistoryChange() method is not invoking.

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

  When I am uploading a single file then onHistoryChange() method is
  calling.

 That sounds weird; I can't understand how single vs. multiple would
 affect history...

  It is necessary for me to call History.back() method after
  uploading
  files to display the previous view.

 Can't you rather use some other mean of communicating the previous
 history token and then doing a History.newItem(previousHistoryToken)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



[gwt-contrib] Re: RR: SuggestBox uprades

2008-12-22 Thread John LaBanca
[+ecc] to make sure this shows up in her inbox

I think we cut this out of the plans for GWT 1.6 because the DropDownPanel
wasn't ready for prime time.  I'm not sure about the status of the
RPCRequestOracle, so that might still be on the table.

Thanks,
John LaBanca
jlaba...@google.com


On Sat, Dec 20, 2008 at 10:36 PM, Isaac Truett itru...@gmail.com wrote:


 Whatever happened to this change? I noticed issue #2739 requesting
 hideSuggestions() and this patch would seem to satisfy that request.
 Is there any chance of this patch or something similar making 1.6?



 On Tue, Apr 29, 2008 at 4:25 PM, Emily Crutcher e...@google.com wrote:
  Below are the  SuggestBox API modifications under consideration. Feedback
 is
  very welcome.
 
   Thanks,
 
  Emily
 
  Make SuggestBox depend upon a  DropDownPanel to control its popup,
 allowing
  users to customize the behavior, including where it is located and what
 item
  is selected by default.
  Add a requestDefaultSuggestions method to the SuggestOracle, use it in
  SuggestBox.
  Add hideSuggestions()/showSuggestions() method
  Add a new RPCSuggestOracle which, if extended from, guarantees that only
 one
  request can be extent at once.
  Add HighlightHandler support to SuggestBox
 
  P.S The attached patch is against the gwt-incubator, as gwt itself is
 under
  feature lock down.  The only changes to SuggestOracle and
  MultiWordSuggestOracle is the inclusion of the method
  requestDefaultSuggestions().
 
 
  There are only 10 types of people in the world: Those who understand
  binary, and those who don't
  
 

 


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



[gwt-contrib] Add dateBoxFormatError to dark and chrome style themes

2008-12-22 Thread jlabanca

Reviewers: ecc,

Description:
The dateBoxFormatError style name is applied to a DateBox with an
invalid date entry.  This patch adds style definitions to the dark and
chrome style themes.  Style definitions were already added for the
standard theme.

Patch was submitted TBR by ecc.

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

Affected files:
   user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
   user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
   user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
   user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css

user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css


Index:  
user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
===
---  
user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
 
(revision 4363)
+++  
user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
 
(working copy)
@@ -1093,10 +1093,9 @@
  .gwt-DateBox input {
width: 8em;
  }
-.dateBoxFormatError{
-  background:#ff;
+.dateBoxFormatError {
+  background: #ff;
  }
-
  .dateBoxPopup {
  }

Index: user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
===
--- user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css 
(revision 4363)
+++ user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css 
(working copy)
@@ -999,6 +999,10 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #a8eeff;
+  color: red;
+}
  .dateBoxPopup {
  }

Index: user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
===
--- user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
 
(revision 4363)
+++ user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
 
(working copy)
@@ -1000,6 +1000,10 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #a8eeff;
+  color: red;
+}
  .dateBoxPopup {
  }

Index:  
user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
===
--- user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css  
 
(revision 4363)
+++ user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css  
 
(working copy)
@@ -1094,6 +1094,9 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #eed6d6;
+}
  .dateBoxPopup {
  }

Index:  
user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
===
---  
user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css  
 
(revision 4363)
+++  
user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css  
 
(working copy)
@@ -1095,6 +1095,9 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #eed6d6;
+}
  .dateBoxPopup {
  }




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



[gwt-contrib] [google-web-toolkit commit] r4364 - in releases/1.6/user/src/com/google/gwt/user/theme: chrome/public/gwt/chrome dark/public/...

2008-12-22 Thread codesite-noreply

Author: jlaba...@google.com
Date: Mon Dec 22 08:39:48 2008
New Revision: 4364

Modified:
 
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
 
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
 
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
 
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
 
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css

Log:
Added dateBoxFormatError style definitions to the dark and chrome style  
themes.

Patch by: jlabanca
Review by: ecc (TBR)



Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
  
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
  
Mon Dec 22 08:39:48 2008
@@ -1094,6 +1094,9 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #eed6d6;
+}
  .dateBoxPopup {
  }


Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
  
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
  
Mon Dec 22 08:39:48 2008
@@ -1095,6 +1095,9 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #eed6d6;
+}
  .dateBoxPopup {
  }


Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css   
 
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css   
 
Mon Dec 22 08:39:48 2008
@@ -999,6 +999,10 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #a8eeff;
+  color: red;
+}
  .dateBoxPopup {
  }


Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css

(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css

Mon Dec 22 08:39:48 2008
@@ -1000,6 +1000,10 @@
  .gwt-DateBox input {
width: 8em;
  }
+.dateBoxFormatError {
+  background: #a8eeff;
+  color: red;
+}
  .dateBoxPopup {
  }


Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css

(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css

Mon Dec 22 08:39:48 2008
@@ -1093,10 +1093,9 @@
  .gwt-DateBox input {
width: 8em;
  }
-.dateBoxFormatError{
-  background:#ff;
+.dateBoxFormatError {
+  background: #ff;
  }
-
  .dateBoxPopup {
  }


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



[gwt-contrib] Add NativePreviewEvent to replace current EventPreview system (version 4)

2008-12-22 Thread jlabanca

Reviewers: ecc,

Description:
The latest version of this patch introduces
PopupPanel.setAlwaysAutoHide().  Unlike autoHide, alwaysAutoHide
indicates that the PopupPanel should autoHide even if it isn't at the
top of the stack.  The only time it does not autoHide is if a modal
popup is open above it.

We have also gone back to NativePreviewEvent.cancel()/consume().

Both the SuggestBox and MenuBar setAlwaysAutoHide to true.  However, the
MenuBar overrides the event preview to handle all of its unique special
cases.

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

Affected files:

reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/Issue1932.java

reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDialogBox.java
   user/src/com/google/gwt/event/dom/client/DomEvent.java
   user/src/com/google/gwt/event/dom/client/HasNativeEvent.java
   user/src/com/google/gwt/event/shared/GwtEvent.java
   user/src/com/google/gwt/event/shared/HandlerManager.java
   user/src/com/google/gwt/user/client/DOM.java
   user/src/com/google/gwt/user/client/Event.java
   user/src/com/google/gwt/user/client/EventPreview.java
   user/src/com/google/gwt/user/client/ui/DialogBox.java
   user/src/com/google/gwt/user/client/ui/MenuBar.java
   user/src/com/google/gwt/user/client/ui/PopupPanel.java
   user/src/com/google/gwt/user/client/ui/SuggestBox.java
   user/test/com/google/gwt/user/UISuite.java
   user/test/com/google/gwt/user/client/EventTest.java
   user/test/com/google/gwt/user/client/ui/PopupTest.java



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



[gwt-contrib] Re: Re: [Code Review] Small Test Framework For JJS Optimizers

2008-12-22 Thread mike . aizatsky
Scott,

I was able to get rid of custom RPO. Please check the issue:

http://codereview.appspot.com/11060/show

PS Do you find convenient to use the codereview tool or should I send an  
old-fashioned patch attached?

On Dec 19, 2008 11:44pm, Scott Blum sco...@google.com wrote:
 Mike, I took a look and I think it's a good first pass, definitely a good  
start!

 I would actually be excited about a tad bit of refactoring to allow the  
tests to be more surgical. I think a little bit of work on JJSCompiler  
could eliminate the need for a rebind oracle entirely, and I think we'd  
actually rather skip optimizations during initial construction in order to  
surgically call specific optimizers. Thoughts?


 On Tue, Dec 16, 2008 at 9:58 PM, Mike Aizatsky mike.aizat...@gmail.com  
wrote:

 Scott,



 I'm sorry I've disappeared, but I had really busy couple of months. I

 have resurrected the change (and all forthcoming).



 Please take another look at the test mini-framework:



 http://codereview.appspot.com/11060




 On Tue, Oct 14, 2008 at 5:23 AM, Scott Blum sco...@google.com wrote:

  On Mon, Oct 6, 2008 at 5:57 PM, Scott Blum sco...@google.com wrote:

 

   By the way, I've already got a big patch out that Bob is reviewing  
that

   is a

   huge refactor to JavaToJavaScriptCompiler, and we can continue to

   refactor

   further to support this use case in the best way possible. I can't

   think of

   a fundamental reason that compiles should be slow for small test  
cases.

 

  I'll be happy to take a look at JTJSC and tests as soon as you finish

  the refactoring.

 

  Cool, if you want, you can chime in on the patch review for that.

 

  Update, this is working its way into the 1.6 release branch.









 --

 Regards,

 Mike






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



[gwt-contrib] FileUpload should implement HasChangeHandlers

2008-12-22 Thread jlabanca

Reviewers: ecc,

Description:
Description:

The native file input element supports change events, which are very
useful to automatically submit a form when the user selects a file.
FileUpload should implement HasChangeHandlers to take advantage of this.


Fix:

FileUpload now implements HasChangeHandlers.  This would have been a
trivial change except...

Native file upload implementations differ slightly between browsers
(some have text boxes, others don't), but the change event is fired
exactly when you'd expect it to be on all browsers except Opera.  Opera
fires the change event every time the user types a character, which is
inconsistent with other browsers and with the native text box.  I added
an impl class that saves the last change event internally and fires it
only when the input element is blurred, which is consistent with text
boxes.  Unfortunately, this means that if the user selects a file
through the file chooser in Opera, a change event will not fire until
the user blurs the file upload element.  However, this is a minor
difference, its perfectly reasonable, and it only affects Opera.

I verified that the impl class is compiled out on other browsers.


Testing:
===
I tested this manually on all browsers and added a code museum issue.

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

Affected files:

reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/Issue3187.java
   user/src/com/google/gwt/user/FileUpload.gwt.xml
   user/src/com/google/gwt/user/User.gwt.xml
   user/src/com/google/gwt/user/client/ui/FileUpload.java



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