Re: Editor and enumeration or object cast

2010-11-26 Thread Jerome C.
Thanks,

This solution works well !

On 17 nov, 23:20, mbmacri mbma...@gmail.com wrote:
 Hi.

 Here is my EnumEditor implementation based on a ListBox. It should
 give you an idea of how to implement it using option buttons:

 package com.leasingsaas.client.ui.widgets;

 import java.util.HashMap;

 import com.google.gwt.editor.client.LeafValueEditor;
 import com.google.gwt.user.client.ui.ListBox;

 public class EnumEditorT extends EnumT extends ListBox implements
 LeafValueEditorT {
         ClassT clazz;
         HashMapT, Integer index = new HashMapT, Integer();

         public EnumEditor(ClassT e) {
                 super();
                 this.clazz = e;
                 int idx = 0;
                 for (T t : e.getEnumConstants()) {
                         this.addItem(t.toString());
                         index.put(t, idx);
                         idx++;
                 }
         }

         @Override
         public void setValue(T value) {
                 if (value == null) {
                         setSelectedIndex(-1);
                 } else {
                         setSelectedIndex(index.get(value));
                 }
         }

         @Override
         public T getValue() {
                 int idx = getSelectedIndex();
                 if (idx == -1)
                         return null;
                 else {
                         System.out.println(Returning value of:  + 
 getItemText(idx));
                         return Enum.valueOf(clazz, getItemText(idx));
                 }
         }

 }

 On 16 nov, 07:58, JeromeC. jerome.ca...@gmail.com wrote:







  nobody has an idea on how to manage enum with the neweditorframework
  without rewriting a class for each enum ?

  I just want to create a RadioButtonGroup which is used to 
  editenumerationbut I don't know how tocastmy enum...

  Any help is welcome.

  On 12 nov, 11:39, JeromeC. jerome.ca...@gmail.com wrote:

   Hello,

   I try to create editors with neweditormechanism. How do you do when
   your bean property is not the same that youreditor.

   For example, how can I have aneditorwhich can editEnumeration?

   I've tried to create a RadioButtonGroup which displays values of an
  enumerationand try to make this class aneditor.

   Here is the code: this is just a flow panel where each child is a
   RadioButton

   public class RadioButtonGroupT extendsEnumT extends FlowPanel
   implements LeafValueEditorT
   {
           public RadioButtonGroup()
           {

           }

           @Override
           public T getValue()
           {
                   T result = null;

                   for (int i = 0; i  getWidgetCount(); i++)
                   {
                           RadioButton radio = (RadioButton) getWidget(i);

                           if (radio.getValue())
                           {
                                   // ? how can Icastit ?
                                   result = radio.getFormValue();
                                   break;
                           }
                   }

                   return result;
           }

           @Override
           public void setValue(T value)
           {
                   for (int i = 0; i  getWidgetCount(); i++)
                   {
                           RadioButton radio = (RadioButton) getWidget(i);

                           if (radio.getFormValue().equals(value.toString()))
                           {
                                   radio.setValue(true);
                                   break;
                           }
                   }
           }

   }

   thanks for any help

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



Comet and GWT problem

2010-11-26 Thread Noor
Hi, I am getting some difficulties with comet on the server

First, I am working with the default configuration of the gwt hosted
mode(i.e. using jetty), do i need to make any change to enable comet

Now, on the server what I want is a client will send a request and
then he will be enrolled in a so-called group. Whenever, any change
happens to all group, all client connected to that group are made
aware.


Can someone help with this??

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



GWT Examples

2010-11-26 Thread csaffi
Hi everybody,
I'm new to GWT, so I'm wondering if you could provide me some useful
examples and tutorials for building a client-side GUI and a server-
side backend, for developing a stupid simple Window with a Table
inside it, populated by data read from a db.

I hope you can help me. Thank you very much in advance!

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



Re: GWT port of CodeMirror

2010-11-26 Thread Didier Durand
Hi Gaurav,


Will start using it for some project of mine: I'll come back to you
with feedback.
regards
didier

On Nov 25, 6:25 am, Gaurav Vaish gaurav.va...@gmail.com wrote:
 Hi Guys,

 I've put up quick starter documentation 
 athttp://code.google.com/p/gcodemirror/wiki/GettingStarted
 and javadoc 
 athttp://gcodemirror.googlecode.com/svn/trunk/src/CodeMirror/docs/javad...

 Let me know if that helps!

 (Thanks to Alain for forcing me do so ;) )

 --
 Happy Hacking,
 Gaurav Vaishhttp://www.mastergaurav.com

 On Nov 25, 8:34 am, Gaurav Vaish gaurav.va...@gmail.com wrote:

  Yes Alain... the documentation is in the roadmap... basically, I
  need to find some time to write it :)

  May be a couple of days off.

  --
  Happy Hacking,
  Gaurav Vaishhttp://www.mastergaurav.com

  On Nov 25, 2:40 am, nino ekambi jazzmatad...@googlemail.com wrote:

   Maybe you could write some getting started stuff in the wiki ?

   Cheers,

   Alain

   2010/11/24 Gaurav Vaish gaurav.va...@gmail.com

Great!
btw, here's the direct URL:
   http://gcodemirror.googlecode.com/svn/trunk/src/CodeMirrorTest/war/Co...

--
Happy Hacking,
Gaurav Vaish
   http://www.mastergaurav.com

On Nov 25, 2:20 am, nino ekambi jazzmatad...@googlemail.com wrote:
 Good work pal,
 i ll definetly check it out.
 Regards,
 Alain

 2010/11/24 Gaurav Vaish gaurav.va...@gmail.com

  Hi Gang,

  I am working on a GWT port of CodeMirror (http://codemirror.net).

  The project is available at Google Code at
 http://code.google.com/p/gcodemirror.

  Let me know if you find it useful.
  Critics, feedback welcome! :)

  --
  Happy Hacking,
  Gaurav Vaish
 http://www.mastergaurav.com

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

  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: StackLayoutPanel and IE8 issue

2010-11-26 Thread massimo malvestio
Hi! As you suggested, I did not specify the unit of measure, so, firefox
applied automatically %, ie intended as px.
Thanks

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



Re: Comet and GWT problem

2010-11-26 Thread Noor
if somebody knows how to solve this problem, please help??

thanks

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



Re: Comet and GWT problem

2010-11-26 Thread Noor

When initiating a comet connection on the client, I am getting this
error
Error 405 HTTP method GET is not supported by this URL

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



Double click on a specific position

2010-11-26 Thread daniela iervolino
Hi,
I have a question. I want to create an object by double clicking in
the background. Creating an object isn't a problem, but I don't know
how to do this in the specific position where the mouse make the
double click...
Can anyone help me?

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



History with different classes

2010-11-26 Thread daniela iervolino
Hi,
I have a problem with History functionality. My application has
different pages and each of them is built from a java class. How can I
use the History functionality to navigate between pages (without using
Hyperlinks)?
Thanks

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



Re: RequestFactory Security/Authentication

2010-11-26 Thread Ramon Buckland
Yes this does happen. So the answer is:

  jsp:output omit-xml-declaration=yes /

   jsp:directive.page
  pageEncoding=ISO-8859-1
  contentType=text/html; ISO-8859-1 /

This intructs the jspx file ( an XML file ) to tell your browser it
has to be rendered as text/html.
Sets the Content-type: header (see firebug to compare the values of
the Response header before and after if you are interested.

r.


On Nov 25, 6:12 pm, Patrick Hilsbos patrick.hils...@cloudsters.net
wrote:
 actually i'm only getting xml output; looks kinda strange.

 how does your header look like?


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



Re: Double click on a specific position

2010-11-26 Thread Giuseppe La Scaleia
Hi Daniela
If i have understand the only solution is to creare a MouseClickListener on
the Main Component that you have and than create your object.
Regards Giuseppe

2010/11/26 daniela iervolino daniela.ie...@gmail.com

 Hi,
 I have a question. I want to create an object by double clicking in
 the background. Creating an object isn't a problem, but I don't know
 how to do this in the specific position where the mouse make the
 double click...
 Can anyone help me?

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




-- 
Giuseppe La Scaleia
CNR - IMAA
geoSDI - NSDI
Sviluppo Software

C.da S. Loja
85050  Tito Scalo - POTENZA (PZ)
Italia

phone:  +39 0971427305
fax:  +39 0971 427271
mob:+39 3804697436
mail: giuseppe.lascal...@geosdi.org
skype:  glascaleia

web: http://www.geosdi.org

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



Re: GWT Examples

2010-11-26 Thread daniela iervolino
Well, there's something at this link http://www.gwtapps.com
On the right side there's some applications from the book that you can
download.
It was very useful for me.. I don't know if there's the application
you required, but it's really a very good starting point.
Bye!


On 26 Nov, 10:28, csaffi csaff...@gmail.com wrote:
 Hi everybody,
 I'm new to GWT, so I'm wondering if you could provide me some useful
 examples and tutorials for building a client-side GUI and a server-
 side backend, for developing a stupid simple Window with a Table
 inside it, populated by data read from a db.

 I hope you can help me. Thank you very much in advance!

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



Re: best practice for handling CSS themes

2010-11-26 Thread Marcin Misiewicz
I really like your solution. Thank you for sharing your solutions.
But I wonder how do you deal with the new gwt widgets which support
CssResource's.
I'm not sure if your solutions will be working for example with
CellBrowser or SimplePager.
They come with bundled default Resources and they inject the styles in
the constructor.
I understand that my BaseClientBundle can look like this :

interface BaseClientBundle  extends ClientBundle{
@Source(greenTheme.css)
SomeCssResource getCssResource();

CellBrowserResources getCellBrowserResources();
}

And during the instantantion of the CellBrowser I can pass
CellBrowserResources instance.
But this approach seems to be error prone. A developer can easily
forget to pass the resource reference from current theme bundle, and
in the result he will get default styling.
Also theming such a widget inside uibinder, forces us to manually
create the widget, which reduces productivity.

So my question is how do you cope with widgets which uses resources
internally ?
Not only with leagacy (written in old manner) widgets.

On Oct 29, 2:53 pm, Jeff Larsen larse...@gmail.com wrote:
 On Oct 29, 2:03 am, wolfgang wor@gmail.com wrote:









  I was facing the same question and my solution was to have my main
  theme in a CSSResource file.
  This resource file is injected during the loading procedure of the
  app.
  Since the layout of my app is defined through CSS, I only allow to
  change a few things (like color, font-style, various sizes ...).
  For this I use the runtime substitution (@eval) - so I can change
  things during runtime. I only have to (re-)inject the affected
  stylesheet again.
  This works fine so far and I'm not knowing an other way to do this. So
  if there's a better way - please post.

   GWT helps *me* to not have to worry so much about
   browsers-that-aren't-Firefox. But what happens when I hand over the
   WAR (with just HTML, CSS, and JavaScript) to a third party and they
   want to add their own branding? Do *they* then have to worry about
   cross-browser issues? Or would I have to limit them to using
   portable CSS only?

  Since I'm using CSSResource there is no way to replace the css file
  without compiling the app again (the css styles may be obfuscated and
  added to the widgets). I hope this is correct.

 I haven't tried this, but my guess is you could create a client bundle
 with all your goodies inside it. Then extend that client bundle and
 override the various style sheet source locations, then you could just
 selectively inject the client bundle into your application.

 interface BaseClientBundle  extends ClientBundle{

     @Source(greenTheme.css)
     SomeCssResource getCssResource();

 }

 interface ExtendedClientBundle extends BaseClientBundle{
   �...@source(yellowTheme.css)
    SomeCssResource getCssResource();

 }

 You may need to reload the page to make sure that the yellowTheme.css
 doesn't get some funky behavior from greenTheme, but this should allow
 you to swap out skins on the page.

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



Activities versus presenters - best practise

2010-11-26 Thread Raphael André Bauer
Hi,


just a simple best-practise question.

We are using GWT 2.1, mappers, activities and views. Everything works nicely.

But sometimes we want to use activities (aka presenters) and views
without a mapper. We could switch from an activity back to good old
presenter and a custom view interface that exposes eg. Widget
asWidget() or so.

But we could also stick to activities and their start(...) method. Of
course the activity would not be managed and would have no life cycle.
On the other hand it would be only a single programming model and we
would not need to define our own view interface.


Does anybody have an advice how to handle that best?


Thanks!


Cheers,

Raphael

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



Re: using hyperlink to process commands?

2010-11-26 Thread Magnus
The commands should open some panels, so they are on the client.

I want to present a list of items, and one click on one item should
open the details.

Can you please describe your method with the History tokens?

Thanks
Magnus

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



Re: different Google Update Sites???

2010-11-26 Thread Magnus
So can I mix these two update sites? Aren't there any dependencies?

Magnus

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



Re: Activities versus presenters - best practise

2010-11-26 Thread Thomas Broyer


On 26 nov, 14:40, Raphael André Bauer raphael.andre.ba...@gmail.com
wrote:
 Hi,

 just a simple best-practise question.

 We are using GWT 2.1, mappers, activities and views. Everything works nicely.

 But sometimes we want to use activities (aka presenters) and views
 without a mapper. We could switch from an activity back to good old
 presenter and a custom view interface that exposes eg. Widget
 asWidget() or so.

 But we could also stick to activities and their start(...) method. Of
 course the activity would not be managed and would have no life cycle.
 On the other hand it would be only a single programming model and we
 would not need to define our own view interface.

I don't understand that last bit. Activities don't define any view
interface (Activity != MVP, contrary to what the doc says); any
Widget implements IsWidget.

 Does anybody have an advice how to handle that best?

If you go with the Activity model, developers will expect their life-
cycle to be respected, which means adding tests that your container
is not breaking it.
If you don't use Activity, it'll be clear for the developer that the
life-cycle is different.

Other than the life-cycle though, I can't find any difference between
the two approaches.

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



Re: (Spring?) JMS and GWT, or any other genuine message queue solution

2010-11-26 Thread Baloe
Hi,

Yes, but we don't use JBoss but the Google App Engine, so I guess we
can't use JMS here. Independent from which framework you use, it is
not possible to create threads at all, so I guess we can't just use
any existing library which embraces JMS.

The Tasks seems to be allright, but this sounds more like a cronjob
which always executes at a certain time, and that's not what we want.
We need to have a general queue, which has to be done as soon as
possible, but not every minute or every hour or at any specific time
interval.

Best,
Niels


On 24 nov, 15:18, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
 Hello,
 I am currently working an application that does use JMS for async
 communication in one part of the application backend.
 We use ConcurrentHashMap and CopyOnWriteList to store and retrieve
 common/shared data.

 These common data are then queried by GWT-RPC Servlets. There is a
 clean-up thread, that wakes up after 2 hrs to clean up the stale data from
 these common-data-holders. This has worked pretty well for us.

 Also, queing/threading has become a breeze with java.util.concurrent.*
 classes. With Executor/ExecutorServices etc you can very easily write async.
 multi threaded applications, without bothering about internal details.
 We are usinghttp://jboss.org/hornetq/

 Thanks,
 Subhro.

 On Wed, Nov 24, 2010 at 7:35 PM, Baloe nielsba...@gmail.com wrote:
  Hi,

  Has anyone experience using JMS with GWT? We need something like that,
  but the only thing I can find is some tests integrating Spring with
  GWT.

  With or without JMS, we need to let some asynchronous processing take
  place, preferrably taken after we put some work somewhere on a queue
  and not worrying about threading or queueing. Any ideas?

  Thanks!
  Niels

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

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



RequestFactory find and remove

2010-11-26 Thread poe
Hi @ all,

i've got a little problem using requestfactory.

public void start(AcceptsOneWidget panel, EventBus eventBus) {
  ...
  ObjectRequest request =
((RequestFactory)requestFactory).objectRequest();
  RequestObjectProxy findRequest =
request.findObject(place.getObjectId());

  findRequest.fire...

public void onSuccess(ObjectProxy response) {
  currentObject = response;
}

}


public void delete() {

  ObjectRequest request =
((RequestFactory)requestFactory).objectRequest();
  RequestVoid deleteRequest = request.remove().using(currentObject);

  deleteRequest.fire(...

}

I fetch the object in the start method from my activity. When delete
is called and the remove method from the request is fired i get a
JDOObjectNotFoundException because the findObject Method is called on
the server after the remove method! My question is why or what am I
doing wrong?

Thanks for your help
poe

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



Re: different Google Update Sites???

2010-11-26 Thread Didier Durand
Hi,

Yes, you can use them jointly.

One point though: you have to be in synch in the dependencies: GWT
Designer version may have requirements on a given version of GWT. So,
be careful.

It will probably get simpler over time as Google harmonizes the
various products but some patience is needed, I guess.

regards
didier

On Nov 26, 3:00 pm, Magnus alpineblas...@googlemail.com wrote:
 So can I mix these two update sites? Aren't there any dependencies?

 Magnus

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



Re: GWT Examples

2010-11-26 Thread PhilBeaudoin
A couple of simple sample at:
http://gwtplatform.com

They are base on GWT platform, but might give you a good idea.

   Philippe

On Nov 26, 4:11 am, daniela iervolino daniela.ie...@gmail.com wrote:
 Well, there's something at this linkhttp://www.gwtapps.com
 On the right side there's some applications from the book that you can
 download.
 It was very useful for me.. I don't know if there's the application
 you required, but it's really a very good starting point.
 Bye!

 On 26 Nov, 10:28, csaffi csaff...@gmail.com wrote:







  Hi everybody,
  I'm new to GWT, so I'm wondering if you could provide me some useful
  examples and tutorials for building a client-side GUI and a server-
  side backend, for developing a stupid simple Window with a Table
  inside it, populated by data read from a db.

  I hope you can help me. Thank you very much in advance!

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



DialogBox

2010-11-26 Thread sadiel
Hi
I'm new with GWT. I'm developing an aplication that first open a
dialogBox, in this first dialogBox there is an OK button when you
click this button open other DialogBox whit another OK Button. When
you click this Ok button I want to close both dialogBox.
Any idea how to do that?
Best regards

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



EJB+ RequestFactory?

2010-11-26 Thread frog

Maybe it's a silly question but I'm new to gwt and I've been wondering
if I could use my ejb  package, with it's entities and stateless
beans, together with RequestFactrory (as PoxyFor and Service).

Is this doable at all?

I've been experimenting and managed to deploy an ear file with ejb 
gwt-war  module but when I'm trying to persist my entity the Request
fails with message from glassfish saying:
“The requested resource () is not available”.

Not very informative. Could someone enlighten me on this?
thanks

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



Re: Gilead AND GWT

2010-11-26 Thread Nick Chalko
On Wed, Nov 24, 2010 at 10:24 AM, Noor baken...@gmail.com wrote:

 Hi, I am getting lots of difficulty in integrating gilead in gwt. Can
 someone please send the jars they have successfully used that works
 because the one I have downloaded does not work



Hi,
What is gilead?
What version is gilead are you using?
What version of GWT are you using?
What errors are you having?
What have you tried so far?

R,
Nick

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



newbie question about external classes

2010-11-26 Thread xalien
hi all, I'm new of GWT and I apologize for my newbie question but I
never found a response...
I built a simple GWT application that show some data, the data
actually is hardcoded on my class. Is it possibile, from my gwt
class(EntryPoint), to use external business classes(stored in jar) to
extract and elaborate my data before show it on web page? Compiling I
receive the error did you forget to inherit a required module? but I
can't inerit my classes because they are not gwt classes...
Summarizing: is it possible in a GWT project using non GWT classes?
how?

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



UTF-8 Encoding problem

2010-11-26 Thread Ronaldo Rigoni
Hello all,
I'm running my GWT application with Glassfish V2 application server.
There's  a big problem with encoding, Glassfish is configured all with
UTF-8, the RPC call is UTF-8 too, but, when the GWT recieve the
response, the encoding is broken, specialy text with HTML format.
The main Gwt HTML file is with UTF-8 encoding too, and the meta tag.
 Some GWT request header is follows:

Why the Accept-Charset is  requested with ISO?
The data I'm sending is p educação saúde alimentação/p
When this text return to the client returns like this p\n\teducação
saúde alimentação/p
Of course is correct, but when I try to set in a textArea the text
turns crazy educação saúde alimentação

Any suggestion?

===
Host127.0.0.1:
User-Agent  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11) Gecko/
20101013 Ubuntu/10.04 (lucid) Firefox/3.6.11
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  115
Connection  keep-alive
X-GWT-Permutation   HostedMode
X-GWT-Module-Base   http://127.0.0.1:/ferramentaaulagwt/
Content-Typetext/x-gwt-rpc; charset=utf-8
Referer http://127.0.0.1:/ferramentaaulagwt/hosted.html?ferramentaaulagwt
Content-Length  1331
Cookie  JSESSIONID=1gmpreaoyhwf8;
FA_TIPO_AULA_PREVIAMENTE_CRIADA=EDITAR;
FA_ID_AULA_PREVIAMENTE_CRIADA=24302
Pragma  no-cache
Cache-Control   no-cache

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



Frustrated with GWT Binder

2010-11-26 Thread Jeff Zhang
Hi all,

I'd like to create a UI like the sample application Mail. But I meet
some weird problems.

When I run the application, I can only see an empty page with nothing,
What's wrong with my code ?


The following is my sample code:

//  widget binder xml

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
   xmlns:g=urn:import:com.google.gwt.user.client.ui
xmlns:e=urn:import:zjffdu.tutorial.gwt.uibinder.client
   ui:style
   .bolder {
   font-weight: bolder;
   }
   /ui:style
   g:DockLayoutPanel unit=EM
   g:center size=40
   g:Label text=my label/g:Label
   /g:center
   /g:DockLayoutPanel

/ui:UiBinder

// binder java class

public class MyBinderWidget extends Composite {

   private static MyBinderWidgetUiBinder uiBinder = GWT
   .create(MyBinderWidgetUiBinder.class);

   interface MyBinderWidgetUiBinder extends UiBinderWidget,
MyBinderWidget {
   }



   public MyBinderWidget() {
   initWidget(uiBinder.createAndBindUi(this));


   }

}



/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class UIBinderExample implements EntryPoint {

   /**
* This is the entry point method.
*/
   public void onModuleLoad() {
   MyBinderWidget widget=new MyBinderWidget();
   RootPanel.get().add(widget);
   }
}

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



new component in palette from another package

2010-11-26 Thread drami
Hi,

I use the Smart GWT Window Builder. I have created a new component for
my app but I can't add it because it is in other package. Are there
any way to add my component to the palette if itsn't in my module?

thanks!

  David.


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



How to add column titles for widget CellBrowser?

2010-11-26 Thread Łukasz Bachman
Hi guys,
we are struggling with adding some header to CellBrowser. There is
nothing in API which would support that, also we did try extending
base CellBrowser to get our hands on some protected content but no
luck there either.
Did anyone manage to find the solution?

Regards,
Łukasz

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



addClickHandler

2010-11-26 Thread pieceOvCake
when i use this code everything works fine.

SUCCESS
public class PickupLocation extends Composite{

private static PickupLocationUiBinder uiBinder = GWT
.create(PickupLocationUiBinder.class);

interface PickupLocationUiBinder extends UiBinderWidget,
PickupLocation {
}

@UiField
TextBox streetNumber;
TextBox streetName;
//Button locateButton;

public PickupLocation() {
initWidget(uiBinder.createAndBindUi(this));

final Button locateButton = new Button(Add);

// Listen for mouse events on the Add button.
locateButton.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
locatePoint();
  }
});
}

private void locatePoint() {
// TODO Auto-generated method stub
}

}


but when i change the code to use my button from uiBinder xml file
it gives me a null pointer error.

FAILS===
public class PickupLocation extends Composite{

private static PickupLocationUiBinder uiBinder = GWT
.create(PickupLocationUiBinder.class);

interface PickupLocationUiBinder extends UiBinderWidget,
PickupLocation {
}

@UiField
TextBox streetNumber;
TextBox streetName;
Button locateButton;

public PickupLocation() {
initWidget(uiBinder.createAndBindUi(this));

// Listen for mouse events on the Add button.
locateButton.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
locatePoint();
  }
});
}

private void locatePoint() {
// TODO Auto-generated method stub
}

}

=
here the code from my ui.xml file
g:customCellg:Button ui:field=locateButtonLocate /g:Button/
g:customCell

any help would be appreciated.

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



onKeyPress Even Firefox 3.6.12

2010-11-26 Thread Gangaram

 GWT 2.1.0/ APP ENGINE 1.3.8/Google plugin eclipse 3.5

This is partial code from from tutorial StockWatcher.

// Listen for keyboard events in the input box.
newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
  public void onKeyPress(KeyPressEvent event) {
if (event.getCharCode() == KeyCodes.KEY_ENTER) {
  addStock();
}
  }
});

I came across a unique problem on event hander  onKeyPress. This event
works fine in IE but not on Firefox 3.6.12.

How can I make it work for the said Firefox version?

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



disclosure panel within a g:customCell in a Grid

2010-11-26 Thread phlukman
hi,

Am trying to add a disclosure panel within a custom cell in a grid but
I keep getting this error:

May have only one body element Element g:DisclosurePanel
animationEnabled='true' debugId='personalInfoPanel' open='true'
visible='true'

I checked already that a custom cell accepts any child Widget and I
figured that DisclosurePanel will get accepted since it's widget

Has anybody experienced this problem?

thanks in advance
Patria

PD: putting a horizontal panel within the custom cell works fine...

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



gwt

2010-11-26 Thread Shiv shankar
hi everyone,
i have to create a panel with one label, inside that one more panel with 5
toggle buttons, please suggest some good coding techniques, as i am new to
this gwt,



thanks  in advance
-shiv

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



Re: addClickHandler

2010-11-26 Thread Hilco Wijbenga
On 25 November 2010 09:59, pieceOvCake bira...@gmail.com wrote:
       �...@uifield
        TextBox streetNumber;
        TextBox streetName;
        Button locateButton;

Add @UiField to locateButton.

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



Re: GWT 2.1.0 maven asks for com.google.gwt:gwt-dev:jar:windows:2.1.0??

2010-11-26 Thread ialpert
Same (or similar) problem here...(except going from gwt 1.7.1 to
2.1.0). Using the 2.1.0 version of the plugin.

I include the gwt-dev jar - and get warnings about doing that (things
seem to work except for gwt tests).

If i attempt to exclude gwt-dev and make it's scope test-compile (and
make a bunch of maven-compiler-plugin excludes), and have it explode
because some of my classes (the gwt-dev jar dependent ones) haven't
been compiled in the gxt:compile phase.

i also have the problem where running gwt:test or  integration-test
asks me to load the browser (i thought this defaulted to headless)



On Nov 9, 3:44 am, Musicman75 stephan.beu...@googlemail.com wrote:
 I run into the same problem.
 After changing from 2.0.4 to GWT 2.1.0 I can't execute the tests
 anymore.

 The tests fail with error:

  --- gwt-maven-plugin:2.1.0:test (gwtcompile) @ dashboardClient ---
 [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
 Condition
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
 355)
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
 272)
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase.java:
 290)
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
 [ERROR]         at junit.framework.TestSuite.createTest(TestSuite.java:63)
 [ERROR]         at junit.framework.TestSuite.addTestMethod(TestSuite.java:
 283)
 [ERROR]         at junit.framework.TestSuite.init(TestSuite.java:146)
 [ERROR]         at junit.framework.TestSuite.init(TestSuite.java:175)
 [ERROR]         at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:
 117)
 [ERROR]         at junit.textui.TestRunner.start(TestRunner.java:179)
 [ERROR]         at
 org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:
 63)
 [ERROR] Caused by: java.lang.ClassNotFoundException:
 com.google.gwt.dev.cfg.Condition
 [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 [ERROR]         at java.security.AccessController.doPrivileged(Native Method)
 [ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 [ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
 301)
 [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 [ERROR]         ... 11 more
 [ERROR] com/google/gwt/dev/cfg/Condition

 On 7 Nov., 16:10, Jeff Larsen larse...@gmail.com wrote:

  I get the same error.

  I tried added gwt-dev 2.1.0 as a test dependency, but then it wants me
  go to URLs in a browser... I just want it to run my test suite.

  On Nov 6, 8:08 pm, Yaakov yaakov.chai...@gmail.com wrote:

   Well, I tried that. It now fails with this in the testing phase:

   *
   [INFO] [gwt:test {execution: test}]
   [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
   Condition
   [ERROR]         at
   com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
   355)
   [ERROR]         at
   com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
   272)
   [ERROR]         at
   com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase.
java:
   290)
   [ERROR]         at
   com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
   [ERROR]         at junit.framework.TestSuite.createTest(TestSuite.java:
   63)
   [ERROR]         at
   junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
   [ERROR]         at junit.framework.TestSuite.init(TestSuite.java:
   146)
   [ERROR]         at junit.framework.TestSuite.init(TestSuite.java:
   175)
   [ERROR]         at
   junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:117)
   [ERROR]         at junit.textui.TestRunner.start(TestRunner.java:179)
   [ERROR]         at
   org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:
   63)
   [ERROR] Caused by: java.lang.ClassNotFoundException:
   com.google.gwt.dev.cfg.Condition
   [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:
   202)
   [ERROR]         at java.security.AccessController.doPrivileged(Native
   Method)
   [ERROR]         at
   java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:
   307)
   [ERROR]         at sun.misc.Launcher
   $AppClassLoader.loadClass(Launcher.java:301)
   [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:
   248)
   [ERROR]         ... 11 more
   [ERROR] com/google/gwt/dev/cfg/Condition
   [INFO]
   
   [ERROR] BUILD ERROR
   [INFO]
   
   [INFO] There was test failures.
   *

   On Nov 5, 6:49 pm, Thomas Broyer t.bro...@gmail.com 

What is the best way to render complex cell?

2010-11-26 Thread ailinykh
Hello, everybody!
I have CellList which contains custom cells. It's pretty close to Cell
List example from show case, but my custom cell is more complicated.
It has several images, several links and I want to handle clicks on
images and links. Generating html code by overriding render method
seems to very difficult and error prone. Is there a better way to do
it? What I wish to have is implementing widget using UiBinder and then
converting it into Cell.
Is it possible?

Thank you,
  Andrey

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



Re: Frustrated with GWT Binder

2010-11-26 Thread Paul Stockley
You need to add it to the RootLayoutPanel not the RootPanel.

On Nov 26, 2:46 am, Jeff Zhang zjf...@gmail.com wrote:
 Hi all,

 I'd like to create a UI like the sample application Mail. But I meet
 some weird problems.

 When I run the application, I can only see an empty page with nothing,
 What's wrong with my code ?

 The following is my sample code:

 //  widget binder xml

 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
        xmlns:g=urn:import:com.google.gwt.user.client.ui
 xmlns:e=urn:import:zjffdu.tutorial.gwt.uibinder.client
        ui:style
                .bolder {
                        font-weight: bolder;
                }
        /ui:style
        g:DockLayoutPanel unit=EM
                g:center size=40
                        g:Label text=my label/g:Label
                /g:center
        /g:DockLayoutPanel

 /ui:UiBinder

 // binder java class

 public class MyBinderWidget extends Composite {

        private static MyBinderWidgetUiBinder uiBinder = GWT
                        .create(MyBinderWidgetUiBinder.class);

        interface MyBinderWidgetUiBinder extends UiBinderWidget,
 MyBinderWidget {
        }

        public MyBinderWidget() {
                initWidget(uiBinder.createAndBindUi(this));

        }

 }

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class UIBinderExample implements EntryPoint {

        /**
         * This is the entry point method.
         */
        public void onModuleLoad() {
                MyBinderWidget widget=new MyBinderWidget();
                RootPanel.get().add(widget);
        }







 }

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



Re: newbie question about external classes

2010-11-26 Thread Didier Durand
Hi,

You have to have the source code of your classes and let GWT translate
them from Java to Javacript so that they can run in the browser.

Caution: the jre emulation in GWT is limited - see the list to check
what your business classes can and cannot use. See
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html -
you may have to modify your business classes to comply with the list
of emulated classes.

regards
didier

On Nov 25, 9:38 am, xalien xalie...@yahoo.it wrote:
 hi all, I'm new of GWT and I apologize for my newbie question but I
 never found a response...
 I built a simple GWT application that show some data, the data
 actually is hardcoded on my class. Is it possibile, from my gwt
 class(EntryPoint), to use external business classes(stored in jar) to
 extract and elaborate my data before show it on web page? Compiling I
 receive the error did you forget to inherit a required module? but I
 can't inerit my classes because they are not gwt classes...
 Summarizing: is it possible in a GWT project using non GWT classes?
 how?

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



Re: GWT 2.1.0 maven asks for com.google.gwt:gwt-dev:jar:windows:2.1.0??

2010-11-26 Thread ialpert
I'm having similar problems. UPdating from gwt 1.7.1 to 2.1.0, also
going from the old maven-gwt-plugin to the gwt-maven-plugin 2.1.0 (ugh
-- naming conventions here are awful and i've got to fully qualify the
new plugin because i can't find a way to remove the old plugin).

I can include the gwt-dev jar in my pom, and get a warning not to --
other then that everything else seems fine.

Or

I can scope the dev jar to test-compile, exclude some other classes in
the compile phase (classes that rely on the dev jar), and the gwt-
maven-plugin complains during it's compile phase that it needs a
compiled version of the class that relies on gwt-dev jar.

I've also got a similar problem in my gwt:test phase where it requests
that i click on a link (i thought this was all headless):


[INFO] [gwt:test {execution: default-cli}]
[INFO]
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running GWT Tests
[INFO] Please navigate your browser to this URL:
[INFO] 
http://127.0.1.1:37860/path.to.my.webapp.TestModule.JUnit/junit.html?gwt.codesvr=127.0.1.1:48442
Process 1290795377283 is killed.
[WARNING] Forked JVM has been killed on time-out after 60 seconds
[INFO]

[INFO] Building ParentProject
[INFO]task-segment: [org.codehaus.mojo:gwt-maven-plugin:
2.1.0:test]
[INFO]

[INFO] [gwt:test {execution: default-cli}]
[INFO]
[INFO]
[INFO]

[INFO] Reactor Summary:
[INFO]

[INFO] fmas .. SUCCESS
[1:19.311s]
[INFO] ParentProject . SUCCESS
[0.011s]
[INFO]

[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 1 minute 20 seconds
[INFO] Finished at: Fri Nov 26 14:17:17 AST 2010
[INFO] Final Memory: 22M/368M
[INFO]



On Nov 9, 3:44 am, Musicman75 stephan.beu...@googlemail.com wrote:
 I run into the same problem.
 After changing from 2.0.4 to GWT 2.1.0 I can't execute the tests
 anymore.

 The tests fail with error:

  --- gwt-maven-plugin:2.1.0:test (gwtcompile) @ dashboardClient ---
 [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
 Condition
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
 355)
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
 272)
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase.java:
 290)
 [ERROR]         at
 com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
 [ERROR]         at junit.framework.TestSuite.createTest(TestSuite.java:63)
 [ERROR]         at junit.framework.TestSuite.addTestMethod(TestSuite.java:
 283)
 [ERROR]         at junit.framework.TestSuite.init(TestSuite.java:146)
 [ERROR]         at junit.framework.TestSuite.init(TestSuite.java:175)
 [ERROR]         at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:
 117)
 [ERROR]         at junit.textui.TestRunner.start(TestRunner.java:179)
 [ERROR]         at
 org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:
 63)
 [ERROR] Caused by: java.lang.ClassNotFoundException:
 com.google.gwt.dev.cfg.Condition
 [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 [ERROR]         at java.security.AccessController.doPrivileged(Native Method)
 [ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 [ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
 301)
 [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 [ERROR]         ... 11 more
 [ERROR] com/google/gwt/dev/cfg/Condition

 On 7 Nov., 16:10, Jeff Larsen larse...@gmail.com wrote:

  I get the same error.

  I tried added gwt-dev 2.1.0 as a test dependency, but then it wants me
  go to URLs in a browser... I just want it to run my test suite.

  On Nov 6, 8:08 pm, Yaakov yaakov.chai...@gmail.com wrote:

   Well, I tried that. It now fails with this in the testing phase:

   *
   [INFO] [gwt:test {execution: test}]
   [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
   Condition
   [ERROR]         at
   com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
   355)
   [ERROR]         at
   

Testing view using Gwt-Platform's MockingBinder tool

2010-11-26 Thread Christian Goudreau
Well, that's our latest blog post and I'm sure there's a lot of people
feeling that views need to be tested sometimes when too much logic stays
inside. With mocking binder, testing view become as easy as testing
presenter and without having to rely on GWTTestCase !

Have fun reading :
http://arcbees.wordpress.com/2010/11/25/testing-views-using-gwt-platform-mockingbinder/

http://arcbees.wordpress.com/2010/11/25/testing-views-using-gwt-platform-mockingbinder/
Cheers,

-- 
Christian Goudreau
www.arcbees.com

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



How to fit a widget exactly to the width of its parent?

2010-11-26 Thread Magnus
Hi,

want to set the width of a button so that it fits exactly into its
parent, a FlowPanel in this case.

I have tried to retrieve the parent's client width and subtracted a
lot of numbers, including margin, padding, border, but the button is
always too wide, causing horiziontal scrollbars to appear.

Here is what I have done:

 public void onResize()
 {
  Element e = getElement();
  Style s = e.getStyle ();

  int b = getInteger (s.getBorderWidth());
  int ml = getInteger (s.getMarginLeft());
  int mr = getInteger (s.getMarginRight());
  int pl = getInteger (s.getPaddingLeft());
  int pr = getInteger (s.getPaddingRight());

  int pxs = e.getClientWidth() - ml - mr - pl - pr - 2 * b;

  myButton.setWidth(pxs + px);
 }

Please help!
Thanks!

Magnus

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



Re: onKeyPress Even Firefox 3.6.12

2010-11-26 Thread Thomas Broyer


On 25 nov, 23:16, Gangaram ajitengin...@gmail.com wrote:
  GWT 2.1.0/ APP ENGINE 1.3.8/Google plugin eclipse 3.5

 This is partial code from from tutorial StockWatcher.

 // Listen for keyboard events in the input box.
                     newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() 
 {
                       public void onKeyPress(KeyPressEvent event) {
                         if (event.getCharCode() == KeyCodes.KEY_ENTER) {
                           addStock();
                         }
                       }
                     });

 I came across a unique problem on event hander  onKeyPress. This event
 works fine in IE but not on Firefox 3.6.12.

 How can I make it work for the said Firefox version?

Use KeyDown or KeyUp instead of KeyPress.

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



How to handle redirection to original URL after login redirection

2010-11-26 Thread Starman
My use case:

Send the user an email with a link to get him back into the app to a
specific item and operation. Eg, 
http://appid.appspot.com/host#!edit-item;id=someid
(host is a servlet mapping that calls my dynamic jsp gwt module host
page.)
The user clicks on the link, gets redirected to the login page as he
is not authentified. After login, he is redirected again to the
original URL.
I am using GWTP. My backend is Java on App Engine with Spring and
Spring Security.

Just found out that the history token, kept as an anchor in the URL,
never gets sent to the server. Sadly, that's part of the HTTP protocol
and there's no way around that.

However, with server side security intercepting a protected resource,
showing a login screen, and then redirecting to the original URL
(minus the anchor part), I obviously will return to the default page
for my GWT module.

So I guess that a stand-alone, html (or jsp) based login page is now
out of the question. Unless I encode the history token on the email
URL as query parameters and reprocess them if present while doing
navigations.

I don't have hard requirements to protect the GWT module. I could have
a GWT view for the login page.

Has someone done this (a GWT based login page in the same module)
using Spring Security on the server side?

Thank you,

Remy

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



Re: Comet and GWT problem

2010-11-26 Thread mP
@Noor

Take a look at your posts, you have given hardly any clues about what
has gone wrong - not even a stacktrace. Sit back and ask yourself what
else can i say that would be helpful. At a glance it seems that your
doing a GET to the wrong URL maybe it should be a PUT, dunno.

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



Re: Comet and GWT problem

2010-11-26 Thread Noor

Hi MP,

have use tried the gwt comet, does it works??

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



Re: using hyperlink to process commands?

2010-11-26 Thread Jeff Schwartz
History, History tokens, links and ValueChangeHandler work hand in hand to
provide psuedo navigation within the client code. The Google GWT docs cover
all these in detail and offer numerous code samples too.

In short, add a history token can procedurally be added to History causing
the url in the browser to change to reflect the token in the form of
#valueoftoken. In conjunction with this, your value change handler is
notified of the history changed state passing the token in a
ValueChangeEvent object. Your code can then process the event notifications
and act accordingly. Links are a declarative way of changing the history
state and also cause value change events to be fired so you can use either
of these patterns in your application.

Jeff

On Fri, Nov 26, 2010 at 9:00 AM, Magnus alpineblas...@googlemail.comwrote:

 The commands should open some panels, so they are on the client.

 I want to present a list of items, and one click on one item should
 open the details.

 Can you please describe your method with the History tokens?

 Thanks
 Magnus

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




-- 
*Jeff Schwartz*

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



Re: Comet and GWT problem

2010-11-26 Thread Noor
I am getting this error when using the gwt-comet


[WARN] 405 - GET /trycomet/greet?t=2UGMNJc=45 (127.0.0.1) 1470 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
1.9.2.12) Gecko/20101026 Firefox/3.6.12
  Accept: application/comet
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Referer: http://127.0.0.1:/TryComet.html?gwt.codesvr=127.0.0.1:9997
  Cookie: JSESSIONID=964bqzlrkbll
   Response headers
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 1470
com.google.gwt.user.client.rpc.StatusCodeException: 405 html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1/
titleError 405 HTTP method GET is not supported by this URL/title
/head
bodyh2HTTP ERROR: 405/h2preHTTP method GET is not supported by
this URL/pre
pRequestURI=/trycomet/greet/ppismalla href=http://
jetty.mortbay.org/Powered by Jetty:///a/small/i/pbr/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/

/body
/html

at
net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.onReceiving(HTTPRequestCometTransport.java:
150)
at
net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.onLoaded(HTTPRequestCometTransport.java:
139)
at net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.access
$1(HTTPRequestCometTransport.java:136)
at net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport
$2.onReadyStateChange(HTTPRequestCometTransport.java:112)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)

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



Re: Activities versus presenters - best practise

2010-11-26 Thread matttai
I think everyone is misinterpreting the statement in the documentation
Activities are analogous to presenters

the exact definition of analogous is : similar or equivalent in some
respects though otherwise dissimilar

the key part of what people are missing being 'otherwise dissimilar'

it seems that everyone is taking that statement as having said both
activities and presenters being similar only...!

On Nov 27, 1:01 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 26 nov, 14:40, Raphael André Bauer raphael.andre.ba...@gmail.com
 wrote:

  Hi,

  just a simple best-practise question.

  We are using GWT 2.1, mappers, activities and views. Everything works 
  nicely.

  But sometimes we want to use activities (aka presenters) and views
  without a mapper. We could switch from an activity back to good old
  presenter and a custom view interface that exposes eg. Widget
  asWidget() or so.

  But we could also stick to activities and their start(...) method. Of
  course the activity would not be managed and would have no life cycle.
  On the other hand it would be only a single programming model and we
  would not need to define our own view interface.

 I don't understand that last bit. Activities don't define any view
 interface (Activity != MVP, contrary to what the doc says); any
 Widget implements IsWidget.

  Does anybody have an advice how to handle that best?

 If you go with the Activity model, developers will expect their life-
 cycle to be respected, which means adding tests that your container
 is not breaking it.
 If you don't use Activity, it'll be clear for the developer that the
 life-cycle is different.

 Other than the life-cycle though, I can't find any difference between
 the two approaches.

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



Re: Comet and GWT problem

2010-11-26 Thread Richard
This is a cross post. The original is here
http://groups.google.com/group/gwt-comet/browse_thread/thread/c154c425911222c5

From Richard.

On Nov 27, 8:17 am, Noor baken...@gmail.com wrote:
 I am getting this error when using the gwt-comet

 [WARN] 405 - GET /trycomet/greet?t=2UGMNJc=45 (127.0.0.1) 1470 bytes
    Request headers
       Host: 127.0.0.1:
       User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
 1.9.2.12) Gecko/20101026 Firefox/3.6.12
       Accept: application/comet
       Accept-Language: en-us,en;q=0.5
       Accept-Encoding: gzip,deflate
       Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
       Keep-Alive: 115
       Connection: keep-alive
       Referer:http://127.0.0.1:/TryComet.html?gwt.codesvr=127.0.0.1:9997
       Cookie: JSESSIONID=964bqzlrkbll
    Response headers
       Content-Type: text/html; charset=iso-8859-1
       Content-Length: 1470
 com.google.gwt.user.client.rpc.StatusCodeException: 405 html
 head
 meta http-equiv=Content-Type content=text/html;
 charset=ISO-8859-1/
 titleError 405 HTTP method GET is not supported by this URL/title
 /head
 bodyh2HTTP ERROR: 405/h2preHTTP method GET is not supported by
 this URL/pre
 pRequestURI=/trycomet/greet/ppismalla href=http://
 jetty.mortbay.org/Powered by Jetty:///a/small/i/pbr/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/
 br/

 /body
 /html

         at
 net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.onReceiving(HTT 
 PRequestCometTransport.java:
 150)
         at
 net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.onLoaded(HTTPRe 
 questCometTransport.java:
 139)
         at net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.access
 $1(HTTPRequestCometTransport.java:136)
         at net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport
 $2.onReadyStateChange(HTTPRequestCometTransport.java:112)
         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
         at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
 157)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
 rReturn(BrowserChannelServer.java:
 326)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:
 207)
         at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 126)
         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
         at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
         at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
 ava:
 91)
         at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
         at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
         at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
         at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
 157)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
 lServer.java:
 281)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 531)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 352)
         at java.lang.Thread.run(Thread.java:662)

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



Some instruction on how to use Gilead and GWT

2010-11-26 Thread Noor
Hi, Finally I've my gilead working with gwt. Initially when u will try
setting this up, u will get my problems. That's a way of how I
proceed, in case someone is getting any problem, u can just send me a
mail

1. First ensure that you have all the appopriate jars. I am using one
of the specific jars gilead4gwt-1.3.2.1839.jar and not the adaptwe4gwt
because i am getting some errors with this. These are the jars I am
using
(add these as reference libraries to your project and lib in war file)
   antlr-2.7.6.jar
   antlr-runtime-3.1.3.jar
asm-3.2.jar
beanlib-5.0.2beta.jar
beanlib-hibernate-5.0.2beta.jar
cglib-2.2.jar
commons-lang-2.2.jar
dom4j-1.6.1.jar
gilead4gwt-1.3.2.1839.jar
gilead-core-1.3.2.1839.jar
gilead-hibernate-1.3.2.1839.jar
gwt-servlet.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
hibernate-core.jar
hibernate-jpa-2.0-api.jar
hsqldb.jar
javassist-3.4.GA.jar
jta-1.1.jar
log4j-1.2.15.jar
postgresql-9.0-801.jdbc4.jar
slf4j-api-1.5.8.jar
slf4j-log4j12-1.5.8.jar
xstream-1.3.jar

2. Then follow the guide about class extending and implementing at
http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html

3. Ensure that your mapping file and configuration are 100 % accurate
as because of this u may get lots of errors

4. I have a good example of gilead which I have created that works 100
%. In case u want the program, send me a mail at baken...@gmail.com,
i'll forward u the example i created

If u are running into any specific problem, just let me know. To
program with gwt, you've got to understand the project structure very
well and know adding module to the project. U can learn more about
organising gwt project at 
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html

regards
Noor

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



Re: Some instruction on how to use Gilead and GWT

2010-11-26 Thread Noor

One more thing, in the list of libraries above, u may not use some
just as hsqldb.jar  or postgresql-9.0-801.jdbc4.jar  if u are using
another database

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



[gwt-contrib] Re: Added error handling for exceptions that can occur when logging messages are sent over the wire ... (issue1149801)

2010-11-26 Thread rdayal

Thanks for the review; updated as per your comments.


http://gwt-code-reviews.appspot.com/1149801/diff/1/3
File dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java
(right):

http://gwt-code-reviews.appspot.com/1149801/diff/1/3#newcode139
dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java:139: An
exception occured while attempting to send a response message., e);
On 2010/11/25 03:29:19, scottb wrote:

Just to be clear what logger is this going to go to?  Because if

it's going

to try to go to the GPE logger, you could trigger an infinite error

loop.
No, I was assuming that this would go to the ConsoleLogger. I guess it
would be better to be more explicit here; I'll change it to
getConsoleLogger().

http://gwt-code-reviews.appspot.com/1149801/diff/1/5
File
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java
(right):

http://gwt-code-reviews.appspot.com/1149801/diff/1/5#newcode150
dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java:150:
t.printStackTrace(System.err);
On 2010/11/25 03:29:19, scottb wrote:

The zero-arg version goes to System.err, unless you just want to be

real

explicit here.

Ah, I didn't know that, but I did want to be explicit :).

http://gwt-code-reviews.appspot.com/1149801/show

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


[gwt-contrib] Re: Added error handling for exceptions that can occur when logging messages are sent over the wire ... (issue1149801)

2010-11-26 Thread rdayal

http://gwt-code-reviews.appspot.com/1149801/show

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