Re: GWT app looks ugly in IE6

2010-07-22 Thread lineman78
One little trick you can use is use firebug to inspect the table you
want to experiment with and copy it's html to a flat html file and
open the html file with IE and play around with it till you get it
right.  The trick is to get the html how you want it, then roll the
changes into the java code using the DOM API.  There are many little
tricks you can perform to get IE to layout tables correctly and
without actually seeing the table html I can give you 2 suggestions:

1)
FlexTable.setCellPadding(0);
FlexTable.setCellSpacing(0);

2) !!Only do this if you are not using percentages for column widths
or row heights anywhere in the table.
FlexTable.getElement().getStyle().setProperty("tableLayout", "fixed");
http://blogs.msdn.com/b/ie/archive/2005/02/10/370721.aspx
http://msdn.microsoft.com/en-us/library/ms531161.aspx

Another thing that can sometimes have an effect on how tables behave
in IE is DOCTYPE.  Google recomends standards mode for their
LayoutPanels and sometimes quirks mode can help(if you aren't using
layout panels).

On Jul 22, 8:30 pm, Magnus  wrote:
> Hi Lineman!
>
> > Make sure you specifically set cellpadding and cellspacing to
> > 0 (IE assumes non-zero for one of these, don't remember which).
>
> I already found out something: First, I only set the margin/padding
> values to 0 in the Java code, wich worked on browsers other than IE6.
> Then, I *also* set them to 0 in the stylesheet, and not it looks a
> little bit less ugly. :-)
>
> > The way that IE calculates table layout is
> > significantly different than the other browsers in some cases and I
> > think that with fairly minimal tweaking you will be able to fix these
> > issues.
>
> Ok, but how can I find all the other tweaks? I found the one above,
> but I am no CSS specialist.
> I want to avoid trying a lot of things without plan and pumping up my
> CSS...
>
> 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: Did anybody try Cross site communication?

2010-07-22 Thread V M
Hello All,

After looking to couple of examples. I figured out it's not actually cross
domain causing the issue, but "parsing" the JSON response.

Here are 2 formats i got from public APIs

A. http://twitter.com/statuses/user_timeline/twitter.json?callback=callback1

B.
http://ws.geonames.org/postalCodeLookupJSON?postalcode=94107&country=US&callback=callback1

I am using JavaScriptObject to store JSON response.

handleJson(ILcom/google/gwt/core/client/JavaScriptObject;)(requestId,jsonObj);

So far so good :-).

Now, I am casting JavaScriptObject to JsArray.

Then, To read element values from JSON.

For A, public final native String getText() /*-{return this.text}-*/;

For B, I have : public final native String getPlaceName() /*-{ return
this.placeName;  }-*/;


I could get expected results with  getText(). (which reads "text" from JSON
response)

Tried getPlaceName()  for B, unfortunately, the Method returns null.

I think i am not parsing JSON response for B properly.

Reponse for A  :

*callback1(*[{"truncated":false,"coordinates":null,"source":"web","created_at":"Thu
Jul 22 00:09:23 + 2010","in_reply_to_screen_name":null,"text":"Twitter
blog post on the service's reliability (w/ links to longer, more technical
explanations): http://bit.ly/9KuyG9

Response for B:

*callback1({"postalcodes":*[{"adminName2":"San
Francisco","adminCode2":"075","postalcode":"94107","adminCode1":"CA","countryCode":"US","lng":-122.397099,"placeName":"San
Francisco","lat":37.762147,"adminName1":"California"}]});

Only different is Reponse B is extraelment "postalcodes".

Looks like "postalcodes" element not letting JsArray parse JSON response
properly.

*I will buy you a beer if you could help me with parsing Response B ;-)*

Cheers,
V M.

On Thu, Jul 22, 2010 at 11:20 AM, rajendra dasari
wrote:

> Yah I am working on cross site communication using JSON, we are passing
> response from server
> using JSON response, and getting from client  as JSON objects.
>
> --
>
> Raj.
>
>
> On Wed, Jul 21, 2010 at 5:39 AM, VM  wrote:
>
>> Hello GWT Users,
>>
>> I just wanted to check if anybody had success with Cross domain
>> communication.
>>
>> I followed Google documentation:
>>
>> http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
>>
>> handl...@com.google.gwt.sample.stockwatcher.client.stockwatcher
>> ::handleJsonResponse(Lcom/
>> google/gwt/core/client/JavaScriptObject;)(jsonObj);
>>
>> handleJsonResponse is not getting called.
>>
>> Any thoughts?
>>
>> --
>> You received 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.
>>
>>
>  --
> You received 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.
>

-- 
You received 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 app looks ugly in IE6

2010-07-22 Thread Christian Goudreau
Do it with old natural ways in the html host file.

Cheers

On Thu, Jul 22, 2010 at 10:30 PM, Magnus wrote:

> Hi Lineman!
>
> > Make sure you specifically set cellpadding and cellspacing to
> > 0 (IE assumes non-zero for one of these, don't remember which).
>
> I already found out something: First, I only set the margin/padding
> values to 0 in the Java code, wich worked on browsers other than IE6.
> Then, I *also* set them to 0 in the stylesheet, and not it looks a
> little bit less ugly. :-)
>
> > The way that IE calculates table layout is
> > significantly different than the other browsers in some cases and I
> > think that with fairly minimal tweaking you will be able to fix these
> > issues.
>
> Ok, but how can I find all the other tweaks? I found the one above,
> but I am no CSS specialist.
> I want to avoid trying a lot of things without plan and pumping up my
> CSS...
>
> 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.
>
>


-- 
Christian Goudreau

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



Re: GWT app looks ugly in IE6

2010-07-22 Thread Magnus
Hi Lineman!

> Make sure you specifically set cellpadding and cellspacing to
> 0 (IE assumes non-zero for one of these, don't remember which).

I already found out something: First, I only set the margin/padding
values to 0 in the Java code, wich worked on browsers other than IE6.
Then, I *also* set them to 0 in the stylesheet, and not it looks a
little bit less ugly. :-)

> The way that IE calculates table layout is
> significantly different than the other browsers in some cases and I
> think that with fairly minimal tweaking you will be able to fix these
> issues.

Ok, but how can I find all the other tweaks? I found the one above,
but I am no CSS specialist.
I want to avoid trying a lot of things without plan and pumping up my
CSS...

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 app looks ugly in IE6

2010-07-22 Thread Magnus
Hi Brett,

ok, but BTW: How can one do this, i. e. determine the browser version
with GWT?

Magnus

On Jul 22, 8:03 pm, Brett Thomas  wrote:
> I think it looks classy to display a note for IE6 users that says something
> along the lines of "unfortunately our website no longer supports IE6, click
> here to learn how to upgrade"
>
> I think plenty of people have no idea what browser version they are using.
> They may know the difference between IE and Firefox, but not what version
> number it is. If a site doesn't work, they'll just say "must be because my
> computer is old" and forget about it. So, tell them what they can do to fix
> it...
>
> On Thu, Jul 22, 2010 at 2:00 PM, charlie  wrote:
> > Agreed.  It's been the bane of web developers existence for far too long.
>
> > On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau <
> > goudreau.christ...@gmail.com> wrote:
>
> >> Let's drop IE6 and IE7 support, I think it's time anyway for that.
>
> >> On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett  wrote:
>
> >>> GWT doesn't promise to make your application look the same on all
> >>> browsers. It does try its very best to make sure that the JS it produces
> >>> functions the same across browsers, and doesn't leave any nasty side
> >>> effects, leak memory, or anything like that.
>
> >>> There may be some cases where GWT will leverage CSS "tricks" on each
> >>> browser to achieve a result (although I can't think of any such cases off
> >>> the top of my head), but that doesn't mean that GWT will take steps to
> >>> ensure that all of your CSS is magically transformed into something that
> >>> works on any browser. For one thing, that's out of scope, and for another 
> >>> it
> >>> isn't possible. Some things in CSS just aren't supported, especially in
> >>> older browsers.
>
> >>> On Thu, Jul 22, 2010 at 1:35 PM, Magnus 
> >>> wrote:
>
>  Hi,
>
>  sorry for repeating:
>
>  I thought that the promise of GWT was that one never ever has to deal
>  with such problems anymore?
>
>  Why are we discussing about wether to spent time in supporting IE6
>  while the GWT compiler should do this?
>
>  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.
>
> >>>  --
> >>> You received 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.
>
> >> --
> >> Christian Goudreau
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 
>
> > --
> > You received 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.

-- 
You received 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: Add HTML tags around GWT widgets

2010-07-22 Thread Gal Dolber
in uiBinder:


this is html And here is a widget


2010/7/22 Thomas Dvornik 

> Hello,
>
> I'm creating an application that parses XML. After parsing, the
> corresponding widgets gets created and added to the page. To provide
> more customization, a user can include XHTML tags for formatting.
> These tags should go directly to the page in the spot they were
> specified. For example, lets say I have a "button" tag and the user
> writes:
>
>   
>
> the HTML should look something like
>
>   
>
> My first attempt was to do the following.
>
> dBox.add(new HTML("<"+tagName+">"));
> dBox.add(button);
> dBox.add(new HTML(""));
>
> GWT, in the case where the tagName is "b", produces
>
>   
> 
>
> Since then, I also tried overwriting methods and classes, turning
> everything into HTML then adding one HTML widget, and some other
> unsuccessful approaches. I don't want to write the GWT button code by
> hand, because that defeats the purpose of using GWT. Plus I am using a
> lot more widgets then just buttons.
>
> Does anyone know a solution to this problem or can get me pointed in
> the right direction. It seems the simplest solution is to stop GWT
> from creating the additional div tag. Ideally, the solution would also
> work for SmartGWT, although I'll take anything at this point.
>
> Thanks!
>
> Tom
>
> --
> You received 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.
>
>


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

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



Add HTML tags around GWT widgets

2010-07-22 Thread Thomas Dvornik
Hello,

I'm creating an application that parses XML. After parsing, the
corresponding widgets gets created and added to the page. To provide
more customization, a user can include XHTML tags for formatting.
These tags should go directly to the page in the spot they were
specified. For example, lets say I have a "button" tag and the user
writes:

  

the HTML should look something like

  

My first attempt was to do the following.

dBox.add(new HTML("<"+tagName+">"));
dBox.add(button);
dBox.add(new HTML(""));

GWT, in the case where the tagName is "b", produces

  


Since then, I also tried overwriting methods and classes, turning
everything into HTML then adding one HTML widget, and some other
unsuccessful approaches. I don't want to write the GWT button code by
hand, because that defeats the purpose of using GWT. Plus I am using a
lot more widgets then just buttons.

Does anyone know a solution to this problem or can get me pointed in
the right direction. It seems the simplest solution is to stop GWT
from creating the additional div tag. Ideally, the solution would also
work for SmartGWT, although I'll take anything at this point.

Thanks!

Tom

-- 
You received 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 app looks ugly in IE6

2010-07-22 Thread Mateo
Ahem... www dot makeuseof dot com/tech-fun/here-is-why-web-developers-
hate-ie6/

Agreed with Brett. Or just do like Google did: googlewavedev dot
blogspot dot com/2009/09/google-wave-in-internet-
explorer.html  ...They can use IE, but they've been warned. Then you
really don't have to worry about it anymore!

 -Mateo

On Jul 22, 12:03 pm, Brett Thomas  wrote:
> I think it looks classy to display a note for IE6 users that says something
> along the lines of "unfortunately our website no longer supports IE6, click
> here to learn how to upgrade"
>
> I think plenty of people have no idea what browser version they are using.
> They may know the difference between IE and Firefox, but not what version
> number it is. If a site doesn't work, they'll just say "must be because my
> computer is old" and forget about it. So, tell them what they can do to fix
> it...
>
>
>
> On Thu, Jul 22, 2010 at 2:00 PM, charlie  wrote:
> > Agreed.  It's been the bane of web developers existence for far too long.
>
> > On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau <
> > goudreau.christ...@gmail.com> wrote:
>
> >> Let's drop IE6 and IE7 support, I think it's time anyway for that.
>
> >> On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett  wrote:
>
> >>> GWT doesn't promise to make your application look the same on all
> >>> browsers. It does try its very best to make sure that the JS it produces
> >>> functions the same across browsers, and doesn't leave any nasty side
> >>> effects, leak memory, or anything like that.
>
> >>> There may be some cases where GWT will leverage CSS "tricks" on each
> >>> browser to achieve a result (although I can't think of any such cases off
> >>> the top of my head), but that doesn't mean that GWT will take steps to
> >>> ensure that all of your CSS is magically transformed into something that
> >>> works on any browser. For one thing, that's out of scope, and for another 
> >>> it
> >>> isn't possible. Some things in CSS just aren't supported, especially in
> >>> older browsers.
>
> >>> On Thu, Jul 22, 2010 at 1:35 PM, Magnus 
> >>> wrote:
>
>  Hi,
>
>  sorry for repeating:
>
>  I thought that the promise of GWT was that one never ever has to deal
>  with such problems anymore?
>
>  Why are we discussing about wether to spent time in supporting IE6
>  while the GWT compiler should do this?
>
>  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   cr...@googlegroups.com>
>  .
>  For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >>>  --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Google Web Toolkit" group.
> >>> To post to this group, send email to google-web-toolkit@googlegroups.com
> >>> .
> >>> To unsubscribe from this group, send email to
> >>> google-web-toolkit+unsubscr...@googlegroups.com >>>  cr...@googlegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >> --
> >> Christian Goudreau
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com >>  cr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: CSS in UIBinder or separate file?

2010-07-22 Thread Sekhar
Good point. I'm not sure though why Google does this since there's no
benefit (as far as I can see anyway). If you define a class *inside*
the style block, it makes sense to create a new class for it, but why
do it if it's being imported? I've submitted a request on this, let's
see what they say.

On Jul 22, 12:49 pm, Thomas Broyer  wrote:
> On 22 juil, 17:43, Sekhar  wrote:
>
>
>
>
>
> > Yes, separate out the common stuff into a CSS (or more, as necessary)
> > and put as much of the specific CSS as possible into the XML file.
> > Below is an example that shows this setup and its power. Note that
> > each UiBinder XML treats the definitions in the common file (color1
> > and .roundCorners in this case) as if they're local. In fact, even
> > auto-complete works to identify .roundCorners even though it isn't
> > defined locally - very cool.
>
> > E.g., here's the common file.
>
> > Project.css:
> > ...
> > @def color1 #33;
> > ...
> > .roundCorners {
> >    ...
>
> > }
>
> > Then, in each custom UiBinder XML, do this:
>
> > 
> >    .input {
> >       color: color1;
> >    }
> > 
> > ...
> > ... styleName="{style.input}" ...
> > ... styleName="{style.roundCorners}" ...
> > ...
>
> It should be noted that the "roundedCorner" here will then be
> different thatn a roundedCorner from the same CSS but in another
> CssResource/ui:style.
> That's why we have a constants.css with only @def constants, and keep
> our global styles in a global ClientBundle+CssResource, that we then
> "import" using  in the UiBinder where we need them. This
> allows us to *share* the global styles throughout the app.
>
>  class="example.client.resources.GlobalBundle" />
> 
>   .localClassName {
>     border-color: constantDefinedInTheReferencedCssFile;
>   }
> 
> ... addStyleNames="{globalBundle.globalStyle.globalClassName}
> {style.localClassName}" ...

-- 
You received 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: Gradients in css3

2010-07-22 Thread Gal Dolber
thats border radious... for gradients you need to use literal("")
See
http://code.google.com/p/google-web-toolkit/issues/detail?id=4877&can=4&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars

2010/7/22 lineman78 

> You have to escape the beginning dash.  Here is from my cssResource:
>
> @external gwt-Button, gwt-PushButton, gwt-ToggleButton;
> .gwt-Button, .gwt-PushButton, .gwt-ToggleButton {
>\-moz-border-radius: 3px;
>\-webkit-border-radius: 3px;
> }
>
> On Jul 22, 11:17 am, Jyaif  wrote:
> > Hi,
> > Is it possible to add gradients using css in GWT? I have tried adding
> > gradient with css, with java, directly into the UIBinder xml, but
> > nothing works. I know my browser supports it because I can fill a
> > simple static div.
>
> --
> You received 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.
>
>


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

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



Re: HTML5 DnD mouse events - Drop not fired, but others are

2010-07-22 Thread hbf
Harry,

Did you have any success with this?

I am struggling with the same.

Best,
Kaspar

On Jul 21, 2:55 am, Harry  wrote:
> Hey All,
>
> I've been trying to implement support for HTML5 drag 'n' drop events
> in GWT 2.0.3. Thus far i've managed to override the default DOMImpl
> with a custom class that supports the events:
>
> i've overridden :
>
>   public native int eventGetTypeInt(String eventType) to include...
>     // other events
>     case "drop": return 0x10;
>     case "dragenter": return 0x20;
>     case "dragexit": return 0x40;
>     case "dragover": return 0x80;
>
> and:
>
> protected native void sinkEventsImpl(Element elem, int bits) {
>    // other sinkers
>  if (chMask & 0x10) elem.ondrop = (bits & 0x10) ?
>
> @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
> null;
>     if (chMask & 0x20) elem.ondragenter = (bits & 0x20) ?
>
> @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
> null;
>     if (chMask & 0x40) elem.ondragexit = (bits & 0x40) ?
>
> @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
> null;
>     if (chMask & 0x80) elem.ondragover = (bits & 0x80) ?
>
> @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :
> null;
>
> As well as making Events and their associated handlers for these
> events. My problem is that in the browser (FF 3.6), dravover,
> dragexit,dragenterwork (the events are triggered at least), but
> **drop** does not.
> Has anybody had any luck achieving this, or care to share an existing
> implementation? Is there anything you notice immediately that i'm
> doing wrong?
>
> Harry

-- 
You received 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: Sizing TabLayoutPanel (replacing TabPanel)

2010-07-22 Thread Thad
Sounds like I need to hang on to the 2.0.4 source tree against the day
when TabPanel may disappear and I need to recreate it in my own
library of widgets. Fixed sizes will not do for me at all. Nor do I
like setting dialog or other widget sizes based on some percentage of
the browser window. Depending on the window size, any predefined
percentage can come out looking too cramped or too spread out.  I've
got no control over the workstation environment nor the data on the
server, so I'm comfortable with letting most panels grow as necessary.

On Jul 22, 3:16 am, Stefan Bachert  wrote:
> Hi,
>
> i recently wrote somewhat similar .
>
> TabPanel are using , the total size is defined by its children.
> TabLayoutPanel are user position:absolute, the size is defined either
> explicitly or by its parent.
>
> Stefan Bachert
> http::/gwtworld.de
>
> Inquiries for professional GWT support are welcome.
> I am sorry, I won't do free personal support.
>
> On 21 Jul., 23:51, Thad  wrote:
>
> > How to I make a TabLayoutPanel size based on the underlying widget?
>
> > I took a look at my project under 2.1.0.M2 and noticed that TabPanel
> > was deprecated.  Since I used this widget in several critical places,
> > I took a stab at replacing it with TabLayoutPanel.  PROBLEM:  None of
> > the TabLayoutPanels size correctly.  In fact, they display with no
> > size whatsoever.  While I can see them in Firebug, I see only the tab
> > text in the browser widow, not the attached widget.
>
> > I cannot use UIBuilder:  the contents of my application's tabs,
> > sometimes even the number of tabs, is determined at runtime by data
> > out of my control.  Likewise the size of a TabPanel my change, like
> > when a dialog box presents different information, or based on the
> > dimensions of a multi-tab form.  Nor can my TabPanels attach directly
> > to a RootLayoutPanel, even if I were using one.  TabPanels in my
> > application are nested (usually) in VerticalPanels (which I find are
> > more flexible for dynamic layout than FlowPanels).
>
> > I am developing and running in standards mode, and have been for over
> > 6 months.  Although the javadocs warn that TabPanels work only in
> > quirks mode, I've had no trouble with Firefox 3.6, IE7, IE8, and
> > Safari 4 and 5.  Neither have I had any trouble with CellPanels
> > (http://code.google.com/webtoolkit/doc/latest/
> > DevGuideUiPanels.html#Standards), though I did switch from DockPanel
> > to DockLayoutPanel.
>
> > TabPanel mimics a Mac/Windows UI that I'm (so far) successfully
> > recreating, and I'd hate to see them go away.

-- 
You received 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 and maven

2010-07-22 Thread dane.molotok
Yeah someone who knows more than I do needs to get the gwt-maven-
plugin site up to date (or heck, release 1.3). It's a little
misleading, the timestamp is recent but most of the information
applies to pre-GWT 2.0.

On Jul 21, 5:46 pm, Thomas Broyer  wrote:
> On Jul 21, 6:19 pm, "dane.molotok"  wrote:
>
> > Have you gone through what the Google Eclipse Plugin's FAQ[1] has?
>
> >http://code.google.com/eclipse/docs/faq.html#gwt_with_maven
>
> Thanks a lot for this link Dane! I was struggling with Maven and the
> GPE and how to integrate them. My intention was to follow gwt-maven-
> plugin's recommendation of keeping a war/ folder at the root of the
> project, but I'll switch to this approach. It requires a mvn clean
> package to first copy the JARs to WEB-INF/lib but we found out we
> needed this step too with our project layout because of Java
> ServiceProvider not finding hibernate-validator because it wasn't on
> the WEB-INF/lib (code would be found by the special DevMode
> ClassLoader, but apparently not resources), so the ServiceProvider
> call in validator-api wasn't finding the SPI for hibernate-validator.

-- 
You received 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 app development in teams

2010-07-22 Thread Thomas Broyer


On 22 juil, 17:59, Uberto Barbini  wrote:
> Hi Ben,
>
> we're working in 10 people on a big gwt project.
> Some people work in office, some remotely.
> I think the problem in your scenario is
>
> > My situation: I'm developing and debugging locally, then deploy
> > the .war file manually on my tomcat server.
>
> everything should be done automatically either by maven or by an ant task.

...or manually (by the project leader generally), but always based on
some revision on the SCM (we use Subversion), never on some local
working copy.

> Then after the commit we have a CI server (hudson) that run tests and
> deploy it in a preprod env.
> All the debug is done locally.

Same here in our new project. The old one was deployed manually: we
had a shell script on the test server that "rm workingcopy", then "svn
co", and finally "ant build install" (we used ant, we're now using
maven in our new project).

-- 
You received 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: CSS in UIBinder or separate file?

2010-07-22 Thread Thomas Broyer


On 22 juil, 17:43, Sekhar  wrote:
> Yes, separate out the common stuff into a CSS (or more, as necessary)
> and put as much of the specific CSS as possible into the XML file.
> Below is an example that shows this setup and its power. Note that
> each UiBinder XML treats the definitions in the common file (color1
> and .roundCorners in this case) as if they're local. In fact, even
> auto-complete works to identify .roundCorners even though it isn't
> defined locally - very cool.
>
> E.g., here's the common file.
>
> Project.css:
> ...
> @def color1 #33;
> ...
> .roundCorners {
>    ...
>
> }
>
> Then, in each custom UiBinder XML, do this:
>
> 
>    .input {
>       color: color1;
>    }
> 
> ...
> ... styleName="{style.input}" ...
> ... styleName="{style.roundCorners}" ...
> ...

It should be noted that the "roundedCorner" here will then be
different thatn a roundedCorner from the same CSS but in another
CssResource/ui:style.
That's why we have a constants.css with only @def constants, and keep
our global styles in a global ClientBundle+CssResource, that we then
"import" using  in the UiBinder where we need them. This
allows us to *share* the global styles throughout the app.



  .localClassName {
border-color: constantDefinedInTheReferencedCssFile;
  }

... addStyleNames="{globalBundle.globalStyle.globalClassName}
{style.localClassName}" ...

-- 
You received 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: Internet Explorer load standard.css after my CssResource

2010-07-22 Thread PhilBeaudoin
Thanks Christian, excellent idea!

   Philippe

On Jul 21, 3:49 pm, Christian Goudreau 
wrote:
> Use stylePrimaryName ex:
> .mesy-MainMenu {
>        color: #424242;
>        font-size: 13px;
>        cursor: pointer;
>
> }
>
> @external gwt-MenuItem;
> .mesy-MainMenu .gwt-MenuItem {
>        color: #424242;
>        font-size: 13px;
>        vertical-align: bottom;
>
> }
>
> @external gwt-MenuItem-selected;
> .mesy-MainMenu .gwt-MenuItem-selected {
>          color: #682203;
>
> }
>
> and in ui.xml
> 
>                        Nos
> produits
>                         stylePrimaryName="{res.style.mesySeparator}"> src="{res.sepMenu.getURL}"/>
>                        À
> propos
>                         stylePrimaryName="{res.style.mesySeparator}"> src="{res.sepMenu.getURL}"/>
>                        La
> livraison
>                         stylePrimaryName="{res.style.mesySeparator}"> src="{res.sepMenu.getURL}"/>
>                        Nous
> rejoindre
>                         stylePrimaryName="{res.style.mesySeparator}"> src="{res.sepMenu.getURL}"/>
>                        FAQ
>                
>
> Cheers,
>
> On Wed, Jul 21, 2010 at 6:37 PM, PhilBeaudoin
> wrote:
>
>
>
>
>
> > I want to override default styling for my dialog box, but I also want
> > to rely on CssResource and spriting. The way I do this is to define
> > @external styles in my CssResource .css file. For example:
>
> > @external .gwt-DialogBox, .Caption;
> > @sprite .gwt-DialogBox .Caption {
> >  gwt-image: 'dialogCaption';
> >  padding: 0px 4px 0px 18px;
> >  line-height: 39px;
> >  cursor: default;
> >  border-width: 0;
> >  color: #fff;
> > }
>
> > It works well under Chrome and FF but fails in IE. When looking at the
> > DOM it's clear that GWT's standard.css is loaded after the styles
> > defined in my CssResource and therefore overrides them. I believe it
> > might be related to:
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=4464
>
> > Is this supposed to be supported? If not, what's the best workaround
> > for the moment?
>
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Christian Goudreau

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



Re: Release 0.3 of gwt-platform

2010-07-22 Thread cretz
I love this library and am currently using it in a large scale
application I am writing. Keep up the good work (now off to rename all
my imports :-)

On Jul 22, 3:28 am, Peter Simun  wrote:
> Phillipe, thank you for your great work.
>
> Peter
>
> On 21. Júl, 22:50 h., PhilBeaudoin 
> wrote:
>
> > I just wanted to announce that release 0.3 of the gwt-platform MVP
> > framework is now available athttp://gwtplatform.com
>
> > It sports a number of cool new features including hierarchical history
> > tokens (for breadcrumbs) and a simple annotation-based syntax for
> > binding events to your proxies rather than your presenters.
>
> > The framework is growing in popularity, but we always welcome new
> > user's comments and proposals. And if you have any questions, I'm sure
> > you'll find the community over there to be very helpful.
>
>

-- 
You received 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 app development in teams

2010-07-22 Thread Flemming Boller
Hi Phil


What intgr. test tools are you evaluating?

I am evaluating selenium. I like selenium IDE, but I think it is a little
fragile.

/FLemming

On Thu, Jul 22, 2010 at 6:44 PM, PhilBeaudoin
wrote:

> If it's a new project and you're not tied to a specific backend, you
> could could consider deploying on AppEngine. This has been very
> efficient for our team where every developer works remotely. AppEngine
> offers a standardized built-in environment right in eclipse so
> everybody can test locally with good confidence that the behavior will
> be the same on the deployed version. We also use continuous deployment
> to a (free) AppEngine account, our continuous integration solution is
> TeamCity with a relatively simple ant script.
>
> Other practices we use and I would recommend:
> - DVCS (we use mercurial hosted on bitbucket)
> - Use a highly decoupled architecture, consider an MVP framework. (we
> use gwt-platform)
> - Heavily unit test (we use JUnit4, mockito)
> - Use DI to simplify the two above (we use GIN and Guice)
> - Use integration testing (we're still experimenting tools in this
> area)
> - Asynchronous code reviews (rietveld works really well for us)
> - Use UiBinder so that you can easily port HTML mockups to GWT.
> - Find a good tool to monitor your dev process (we use AgileZen)
>
> Cheers,
>
>Philippe
>
> On Jul 22, 8:59 am, Uberto Barbini  wrote:
> > Hi Ben,
> >
> > we're working in 10 people on a big gwt project.
> > Some people work in office, some remotely.
> > I think the problem in your scenario is
> >
> > > My situation: I'm developing and debugging locally, then deploy
> > > the .war file manually on my tomcat server.
> >
> > everything should be done automatically either by maven or by an ant
> task.
> >
> > Then after the commit we have a CI server (hudson) that run tests and
> > deploy it in a preprod env.
> > All the debug is done locally.
> > We have 2 main scripts, one for run in hosted mode and another for run
> > on jetty. CI server deploy it on a Jboss configured like in
> > production.
> >
> > hope this can help you.
> >
> > cheers
> >
> > Uberto
> >
> >
> >
> > On Thu, Jul 22, 2010 at 2:14 PM, Ben 
> wrote:
> > > Hello all
> >
> > > I'm looking for best practices in developing GWT apps. Let's assume we
> > > are 3-5 programmers working on a fairly big GWT app.
> > > I could not find any straightforward information on this. Maybe
> > > because it's absolutely clear for most developers or maybe there are
> > > just too many possible solutions.
> >
> > > I know that this is not just a GWT specific question.
> >
> > > Anyways, back to our scenario. Let's assume its an GWT app with a
> > > database behind, and using JAVA in the backend. Everything is working
> > > on Linux basis.
> >
> > > My situation: I'm developing and debugging locally, then deploy
> > > the .war file manually on my tomcat server. This works fine when
> > > working alone. Now, a couple of friends want to join in. The whole
> > > thing gets complex. What setup (e.g. server, software) would you use
> > > to handle such a scenario?
> >
> > > Here are a couple thoughts I ran into:
> >
> > > 1. Should each developer develop and debug locally (sharing files via
> > > subversion) ? There is a big down-side on this. Each developer needs
> > > to do the server configuration in order to keep the app running
> > > locally. Is there an alternative?
> >
> > > 2. How can one add server-side debug ability to the test server? On
> > > the test server runs the app in hosted mode. How can errors, warnings
> > > be stored and outputted to the developer? Is there a software or do
> > > you work with error logs?
> >
> > > 3. How can one export the files from a test server to a production
> > > server? Is there any software which supports such function?
> >
> > > I'm programming for quite a while now, but I don't have any
> > > experiences in programming together with other developers. So,
> > > basically I would love to know anything how you guys develop GWT apps
> > > in teams.
> >
> > > Please let me know if I shall be more precise.
> >
> > > Thanks for your tips!
> >
> > > benjamin
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> > > For more options, visit this group athttp://
> groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you a

Re: CSS in UIBinder or separate file?

2010-07-22 Thread PhilBeaudoin
Wow! That's good to know Thomas, thanks... I'll bring things over to
my UiBinder file.

On Jul 22, 12:34 pm, Thomas Broyer  wrote:
> On 22 juil, 18:48, PhilBeaudoin  wrote:
>
> > Just to complement the answers here... I've found the new spriting
> > mechanism of GWT (@sprite) to be really simple and useful.
> > Unfortunately, it doesn't work for UiBinder-embedded CSS styles.
> > Therefore, I rely on an external CssResource for all my styles that
> > need spriting.
>
> It definitely works!
> You have to create your ImageResource using  though, just
> like your CssResource is created implicitly with . You can
> use DataResource too, using , useful to link to GIFs for IE6,
> for instance.

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

2010-07-22 Thread SD
Thanks for the info!

On Jul 21, 6:40 pm, Thomas Broyer  wrote:
> On Jul 22, 3:07 am, SD  wrote:
>
> > Is this correct?
>
> > So, if a class like AView is instantiated using UIBinder when doing a
> > createAndBind on an xml file that has a reference to AView, and Aview
> > has an @Singleton annotation, you can have a constructor in some
> > presenter class APresenter like
>
> > @Inject
> > public APresenter(AView aView) {...
>
> > and GIN this will not result in 2 AView objects?
>
> GIN and UiBinder don't know each other. GIN will only respect
> @Singleton for what it's asked to instantiate; it doesn't prevent you
> from doing a "new AView()" in your code, which is what UiBinder will
> generate.
> As said previously, if you want a real @Singleton, make sure only GIN
> instantiates the class; and to make it work with UiBinder use either
> @UiField(provided=true) or a @UiFactory method to give UiBinder your
> GIN-managed @Singleton, instead of letting it instantiate the object.
>
> > Also, could you use
>
> > @Inject
> > public APresenter(Provider aView) {...
>
> > What would be the difference (except for calling aView.get()) in these
> > 2 ways of handling things?
>
> Lazy-instantiation: AView is only instantiated when you call the
> provider's get(). If it's a @Singleton, then only the first call to
> get() will instantiate an AView and subsequent calls will return the
> singleton instance; but it is still true that no AView would have been
> instantiated before a call to get().

-- 
You received 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: CSS in UIBinder or separate file?

2010-07-22 Thread Thomas Broyer


On 22 juil, 18:48, PhilBeaudoin  wrote:
> Just to complement the answers here... I've found the new spriting
> mechanism of GWT (@sprite) to be really simple and useful.
> Unfortunately, it doesn't work for UiBinder-embedded CSS styles.
> Therefore, I rely on an external CssResource for all my styles that
> need spriting.

It definitely works!
You have to create your ImageResource using  though, just
like your CssResource is created implicitly with . You can
use DataResource too, using , useful to link to GIFs for IE6,
for instance.

-- 
You received 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 app looks ugly in IE6

2010-07-22 Thread dane.molotok
I agree with you, but there's still the issue of when your application
has to be consumable by an enterprise, where the end user does not
have permission to install an alternative browser, upgrade the one
they have, or install the Google Chrome Frame plugin (+1).

On Jul 22, 1:03 pm, Brett Thomas  wrote:
> I think it looks classy to display a note for IE6 users that says something
> along the lines of "unfortunately our website no longer supports IE6, click
> here to learn how to upgrade"
>
> I think plenty of people have no idea what browser version they are using.
> They may know the difference between IE and Firefox, but not what version
> number it is. If a site doesn't work, they'll just say "must be because my
> computer is old" and forget about it. So, tell them what they can do to fix
> it...
>
>
>
> On Thu, Jul 22, 2010 at 2:00 PM, charlie  wrote:
> > Agreed.  It's been the bane of web developers existence for far too long.
>
> > On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau <
> > goudreau.christ...@gmail.com> wrote:
>
> >> Let's drop IE6 and IE7 support, I think it's time anyway for that.
>
> >> On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett  wrote:
>
> >>> GWT doesn't promise to make your application look the same on all
> >>> browsers. It does try its very best to make sure that the JS it produces
> >>> functions the same across browsers, and doesn't leave any nasty side
> >>> effects, leak memory, or anything like that.
>
> >>> There may be some cases where GWT will leverage CSS "tricks" on each
> >>> browser to achieve a result (although I can't think of any such cases off
> >>> the top of my head), but that doesn't mean that GWT will take steps to
> >>> ensure that all of your CSS is magically transformed into something that
> >>> works on any browser. For one thing, that's out of scope, and for another 
> >>> it
> >>> isn't possible. Some things in CSS just aren't supported, especially in
> >>> older browsers.
>
> >>> On Thu, Jul 22, 2010 at 1:35 PM, Magnus 
> >>> wrote:
>
>  Hi,
>
>  sorry for repeating:
>
>  I thought that the promise of GWT was that one never ever has to deal
>  with such problems anymore?
>
>  Why are we discussing about wether to spent time in supporting IE6
>  while the GWT compiler should do this?
>
>  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   cr...@googlegroups.com>
>  .
>  For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >>>  --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Google Web Toolkit" group.
> >>> To post to this group, send email to google-web-toolkit@googlegroups.com
> >>> .
> >>> To unsubscribe from this group, send email to
> >>> google-web-toolkit+unsubscr...@googlegroups.com >>>  cr...@googlegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >> --
> >> Christian Goudreau
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com >>  cr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Regarding google visualization(Annotated Timeline)

2010-07-22 Thread gourineni rakesh
Hi,

 Thank You Nicky.I am new to Visualization.Can u plz tell me how to set the
m_vpMainPanel width and height ...

Regards,
Rakesh.

On Fri, Jul 16, 2010 at 2:58 PM, Nicky  wrote:

> The error says it all. set m_vpMainPanel width and height explicitly.
> >
> > com.google.gwt.core.client.JavaScriptException: (Error): Container width
> is
> > zero. Expecting a valid width.
> >  fileName:
> http://www.google.com/uds/api/visualization/1.0/e9f5bea2f5fcf88c5d872...
> >  lineNumber: 604
> >  stack: Error("Container width is zero. Expecting a valid width.")@:0
>
> --
> You received 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.
>
>

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



Creating a separate GWT servlet page

2010-07-22 Thread Irving Ruan
Hello,

Right now, I have my main web app displaying just fine on the page
when I run it through Eclipse GWT plugin.

When I navigate to http://127.0.0.1:/WebApp.html?gwt.codesvr=127.0.0.1:9997
I see my main page.

Now, I want to add an admin page where special users can edit stuff,
which basically necessitates that I need another page view. While I do
know how to create UIs, my problem is that I'm not sure how to
instantiate the page in my web.xml or WebApp.gwt.xml.

Here's what my web.xml contains:



   
  
rpcServlet
com.app.server.RPCCoreServiceImpl
  

  
rpcServlet
/webapp/rpcService
  


  
  
WebApp.html
  






What would I need to change in my web.xml or WebApp.gwt.xml to be able
to instantiate a class, such as AdminPanel.java, as a page I can
navigate to and see? How would I be able to map that to my local URL
http://127.0.0.1:/WebApp.html?gwt.codesvr=127.0.0.1:9997



Thanks in advance,
Irving

-- 
You received 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: support F5 to load current page

2010-07-22 Thread Thomas Broyer


On 22 juil, 20:05, Ahmed Shoeib  wrote:
> what do you mean by showing another "page" than the expected one

I hope the same as when you originally said "now after pressing the f5
button it return to the first page in my
projects".

> how to know this this is the problem

Debug, I mean with breakpoints and step-by-step.

> how to know that the user press refresh button or F5 ?

AFAICT, you can't.

-- 
You received 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 Validation Framework

2010-07-22 Thread Thomas Broyer


On 22 juil, 20:19, Nirmal  wrote:
> Hi,
> I am analysing various Validation Framework for use with GWT and would
> like to collect opinions of the group.
>
> Validation Requirements:
> 1) Individual fields values (value in textbox should be alphanumeric
> or from specified list)
> 2) Group validation on values in multiple fields (two fields should
> have specific or same values)
> 3) Conditional validation (if value in field1 is x then value in
> field2 should be y)
>
> I have come across the following options:
> 1) GWT Validation (http://code.google.com/p/gwt-validation/)
> 2) GWT-VL (http://gwt-vl.sourceforge.net/)

Just so you know, there's work at Google to bring JSR-303 support
right into GWT:
https://wave.google.com/wave/waveref/googlewave.com/w+yAUzf_-lA

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



Places, Activities, and bookmarking History

2010-07-22 Thread Jason Thrasher
Digging around in 2.1.M2's Places and Activities, I'd like to start
implementing some bookmarking features based on History tokens.  Where
can I go to learn about GWT's roadmap for this, and possibly some
hints at sample code?  (maybe somewhere in the bikeshed that I haven't
looked?)

thanks,
Jason

-- 
You received 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: Gradients in css3

2010-07-22 Thread lineman78
You have to escape the beginning dash.  Here is from my cssResource:

@external gwt-Button, gwt-PushButton, gwt-ToggleButton;
.gwt-Button, .gwt-PushButton, .gwt-ToggleButton {
\-moz-border-radius: 3px;
\-webkit-border-radius: 3px;
}

On Jul 22, 11:17 am, Jyaif  wrote:
> Hi,
> Is it possible to add gradients using css in GWT? I have tried adding
> gradient with css, with java, directly into the UIBinder xml, but
> nothing works. I know my browser supports it because I can fill a
> simple static div.

-- 
You received 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 app looks ugly in IE6

2010-07-22 Thread lineman78
GWT does not promise that all renderings look the same, but instead
gives you the tools to do so efficiently.  For example, IE does not
render borders around empty cells in a table, but FF and webkit do.
It is up to you to set the CSS to tell IE to also render them.  The IE
widgets do promise to do what they can to make them behave
consistently across browsers and provide the most efficient
implementation, but the only thing that promises consistent rendering
is the new layout panels.  It is up to you to write the CSS for all
the browser quirks.  The way that IE calculates table layout is
significantly different than the other browsers in some cases and I
think that with fairly minimal tweaking you will be able to fix these
issues.  Make sure you specifically set cellpadding and cellspacing to
0 (IE assumes non-zero for one of these, don't remember which).

On Jul 22, 12:03 pm, Brett Thomas  wrote:
> I think it looks classy to display a note for IE6 users that says something
> along the lines of "unfortunately our website no longer supports IE6, click
> here to learn how to upgrade"
>
> I think plenty of people have no idea what browser version they are using.
> They may know the difference between IE and Firefox, but not what version
> number it is. If a site doesn't work, they'll just say "must be because my
> computer is old" and forget about it. So, tell them what they can do to fix
> it...
>
> On Thu, Jul 22, 2010 at 2:00 PM, charlie  wrote:
> > Agreed.  It's been the bane of web developers existence for far too long.
>
> > On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau <
> > goudreau.christ...@gmail.com> wrote:
>
> >> Let's drop IE6 and IE7 support, I think it's time anyway for that.
>
> >> On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett  wrote:
>
> >>> GWT doesn't promise to make your application look the same on all
> >>> browsers. It does try its very best to make sure that the JS it produces
> >>> functions the same across browsers, and doesn't leave any nasty side
> >>> effects, leak memory, or anything like that.
>
> >>> There may be some cases where GWT will leverage CSS "tricks" on each
> >>> browser to achieve a result (although I can't think of any such cases off
> >>> the top of my head), but that doesn't mean that GWT will take steps to
> >>> ensure that all of your CSS is magically transformed into something that
> >>> works on any browser. For one thing, that's out of scope, and for another 
> >>> it
> >>> isn't possible. Some things in CSS just aren't supported, especially in
> >>> older browsers.
>
> >>> On Thu, Jul 22, 2010 at 1:35 PM, Magnus 
> >>> wrote:
>
>  Hi,
>
>  sorry for repeating:
>
>  I thought that the promise of GWT was that one never ever has to deal
>  with such problems anymore?
>
>  Why are we discussing about wether to spent time in supporting IE6
>  while the GWT compiler should do this?
>
>  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.
>
> >>>  --
> >>> You received 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.
>
> >> --
> >> Christian Goudreau
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 
>
> > --
> > You received 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.

-- 
You received 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://group

Re: DevMode slower than GwtShell?

2010-07-22 Thread Jason Thrasher
Hi Bjorn,
Yikes, no, we haven't had the same experience.  You might look to how
a Roo project is configuring everything, as I found some good hints in
there while playing with Roo that I'm now using in our main build for
our GWT components.  Those Roo apps start right up in dev mode, and
while they are simple, it is 1's or 10's of seconds seconds, not
minutes.

Jason


On Jul 22, 7:29 am, Björn  wrote:
> Hi,
>
> we are currently upgrading from 1.5.3 to 2.1.m2. With 1.5.3 (GwtShell)
> our application started in 6 minutes time. With DevMode it needs more
> than 8 minutes. 6 minutes to start the GWT Development Mode window and
> 2 minutes to initialy start the browser.
>
> Is this plausible? Has anyone made the same experience while changing
> from the GwtShell to DevMode? Do we simply have a configuration
> problem?
>
> We are using the default JettyLauncher. The lib folder is empty, so
> the JettyLauncher has to dynamically look for class files and jars on
> the system classpath.
>
> Is there a way to start things faster?
>
> cheers,
>
> Björn

-- 
You received 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: Focus problems moving from RootPanel to RootLayoutPanel

2010-07-22 Thread Thad
Thanks. That was exactly the cure--do hide/show on the RootLayoutPanel
vs the widget inside.

On Jul 21, 6:54 pm, Thomas Broyer  wrote:
> On Jul 21, 8:32 pm, Thad  wrote:
>
>
>
> > I'm testing moving my application from a RootPanel to
> > RootLayoutPanel.  Given my layout, it's not a 1-to-1 swap, and the end
> > result is some focusing problems with my logon from.
>
> > My HTML page contains an  for GWT history, an  that
> > serves as target for downloading files (so I don't have to open a
> > browser window), a  for logging on, and a  for my
> > application that RootPanel.get(String) retrieves.  The logon form's
> > action is attached via JSNI.  The HTML page carries and onload()
> > script that focuses the cursor in the username field.  After logon,
> > the form is hidden and the application  shows.  On logout, I hide
> > and clear the main panel and show the logon form.  This works fine in
> > all browsers.
>
> > However RootLayoutPanel has no get(String) method.  So I call
> > get().add(new ScrollPanel(myAppPanel)), bypassing the old .  This
> > *seems* to work well, but if the user clicks *anywhere* on the page,
> > the form loses focus.  The focus cannot be regained unless the user
> > tabs through the browser window waiting for the username to highlight.
>
> > Looking in Firebug, I think the problem is a  of GWT's making:
> >  
>
> > Is that's what's doing it?  What is this  for?  How can I get
> > around this focus problem, or do I need to stick with RootPanel?
>
> The div is probably the RootLayoutPanel itself. Can't you show/hide
> the RootLayoutPanel to show/hide the app and hide/reveal the login
> form? Another idea: use position absolute (or relative) and a high z-
> index on your login form to make it appear in front of the
> RootLayoutPanel.

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



Best Validation Framework

2010-07-22 Thread Nirmal
Hi,
I am analysing various Validation Framework for use with GWT and would
like to collect opinions of the group.

Validation Requirements:
1) Individual fields values (value in textbox should be alphanumeric
or from specified list)
2) Group validation on values in multiple fields (two fields should
have specific or same values)
3) Conditional validation (if value in field1 is x then value in
field2 should be y)

I have come across the following options:
1) GWT Validation (http://code.google.com/p/gwt-validation/)
2) GWT-VL (http://gwt-vl.sourceforge.net/)

Regards,
Nirmal

-- 
You received 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: support F5 to load current page

2010-07-22 Thread Ahmed Shoeib
what do you mean by showing another "page" than the expected one

how to know this this is the problem

how to know that the user press refresh button or F5 ?


On Jul 22, 1:49 am, Thomas Broyer  wrote:
> On Jul 21, 7:27 pm, Ahmed Shoeib 
> wrote:
>
> > i use History.fireCurrentHistoryState() on the first page module load
>
> > what can i do ???
>
> Debug, step-by-step, and find where you're doing something wrong so
> that the "first page" shows instead of the one corresponding to the
> history token.
> Sorry but without seeing the code, it's impossible to tell (we don't
> even now if the history token is changed to something else –which
> could help debug by setting a breakpoint within History– or keeping
> the token as-is but just showing another "page" than the expected one)

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



Re: GWT app looks ugly in IE6

2010-07-22 Thread Brett Thomas
I think it looks classy to display a note for IE6 users that says something
along the lines of "unfortunately our website no longer supports IE6, click
here to learn how to upgrade"

I think plenty of people have no idea what browser version they are using.
They may know the difference between IE and Firefox, but not what version
number it is. If a site doesn't work, they'll just say "must be because my
computer is old" and forget about it. So, tell them what they can do to fix
it...

On Thu, Jul 22, 2010 at 2:00 PM, charlie  wrote:

> Agreed.  It's been the bane of web developers existence for far too long.
>
>
> On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau <
> goudreau.christ...@gmail.com> wrote:
>
>> Let's drop IE6 and IE7 support, I think it's time anyway for that.
>>
>>
>> On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett  wrote:
>>
>>> GWT doesn't promise to make your application look the same on all
>>> browsers. It does try its very best to make sure that the JS it produces
>>> functions the same across browsers, and doesn't leave any nasty side
>>> effects, leak memory, or anything like that.
>>>
>>> There may be some cases where GWT will leverage CSS "tricks" on each
>>> browser to achieve a result (although I can't think of any such cases off
>>> the top of my head), but that doesn't mean that GWT will take steps to
>>> ensure that all of your CSS is magically transformed into something that
>>> works on any browser. For one thing, that's out of scope, and for another it
>>> isn't possible. Some things in CSS just aren't supported, especially in
>>> older browsers.
>>>
>>>
>>> On Thu, Jul 22, 2010 at 1:35 PM, Magnus wrote:
>>>
 Hi,

 sorry for repeating:

 I thought that the promise of GWT was that one never ever has to deal
 with such problems anymore?

 Why are we discussing about wether to spent time in supporting IE6
 while the GWT compiler should do this?

 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.


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

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

2010-07-22 Thread emurmur
I've been using Restlet starting at 1.x and now at 2.0 in my appengine
project, which has been in production for about 6 months.  Much of my
UI is written using Adobe Flex.  I recently attempted to use GWT for
part of the UI and had some problems, but there is a work-around and
both the GWT and the Restlet team have accepted bugs in their issue
trackers.  The problem only happens in the development server.  GWT
writes a system property that overwrites the default xml
TransformerFactory.  This causes an exception in Restlet if you use an
XML Representation.  There is a simple workaround.  See issue 4267 at,
http://code.google.com/p/google-web-toolkit/issues/detail?id=4267.
Please go to that issue and star it so it gets some attention.  If you
use JSON or another format, you should not have any issues at all,
this is an XML problem only.

As for Restlet, I think it is an excellent package.  Very
comprehensive.  Manning Publications has an early review version of a
book by the authors called "Restlet in Action".  Version 2.0 is at the
release candidate phase and it is very stable.  Other than the GWT bug
in the development mode (which is a GWT bug, not a Restlet bug), I
have had no issues.

On Jul 22, 8:11 am, michael  wrote:
> Hello.
>
> Right now I am setting up a new project, that uses GWT at the client
> side. This time I have to use rest for the server communication.
> Shouldn't be any problem doing that with GWT.
>
> But I looked around and found restlet, offered fromhttp://www.restlet.org.
> Does someone have experience with this in a large GWT-project? I
> wonder which advantages it offers compared to using the
> RequestBuilder? Is version 2.0 of it stable enough to be used?
>
> Thanks,
> Michael

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



Re: GWT app looks ugly in IE6

2010-07-22 Thread charlie
Agreed.  It's been the bane of web developers existence for far too long.

On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Let's drop IE6 and IE7 support, I think it's time anyway for that.
>
>
> On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett  wrote:
>
>> GWT doesn't promise to make your application look the same on all
>> browsers. It does try its very best to make sure that the JS it produces
>> functions the same across browsers, and doesn't leave any nasty side
>> effects, leak memory, or anything like that.
>>
>> There may be some cases where GWT will leverage CSS "tricks" on each
>> browser to achieve a result (although I can't think of any such cases off
>> the top of my head), but that doesn't mean that GWT will take steps to
>> ensure that all of your CSS is magically transformed into something that
>> works on any browser. For one thing, that's out of scope, and for another it
>> isn't possible. Some things in CSS just aren't supported, especially in
>> older browsers.
>>
>>
>> On Thu, Jul 22, 2010 at 1:35 PM, Magnus wrote:
>>
>>> Hi,
>>>
>>> sorry for repeating:
>>>
>>> I thought that the promise of GWT was that one never ever has to deal
>>> with such problems anymore?
>>>
>>> Why are we discussing about wether to spent time in supporting IE6
>>> while the GWT compiler should do this?
>>>
>>> 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-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-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.
>>
>
>
>
> --
> Christian Goudreau
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 


-- 
You received 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: Caution: SmartGwt loadup size is big

2010-07-22 Thread Nirmal
Any experiences on performance/download size with GWT Mosaic??


Regards,
Nirmal

On Jul 22, 9:15 am, Shawn Brown  wrote:
> > Is GXT any different in this aspect? Does it support code-splitting? (Unless
> > it is only an alias of one of those you mentioned.)
>
> Yes it does.
>
> http://things-that-i-noticed.blogspot.com/2010/07/gxt-mvc-code-splitt...
>
> Shawn

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

2010-07-22 Thread Christian Goudreau
Let's drop IE6 and IE7 support, I think it's time anyway for that.

On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett  wrote:

> GWT doesn't promise to make your application look the same on all browsers.
> It does try its very best to make sure that the JS it produces functions the
> same across browsers, and doesn't leave any nasty side effects, leak memory,
> or anything like that.
>
> There may be some cases where GWT will leverage CSS "tricks" on each
> browser to achieve a result (although I can't think of any such cases off
> the top of my head), but that doesn't mean that GWT will take steps to
> ensure that all of your CSS is magically transformed into something that
> works on any browser. For one thing, that's out of scope, and for another it
> isn't possible. Some things in CSS just aren't supported, especially in
> older browsers.
>
>
> On Thu, Jul 22, 2010 at 1:35 PM, Magnus wrote:
>
>> Hi,
>>
>> sorry for repeating:
>>
>> I thought that the promise of GWT was that one never ever has to deal
>> with such problems anymore?
>>
>> Why are we discussing about wether to spent time in supporting IE6
>> while the GWT compiler should do this?
>>
>> 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.
>>
>>
>  --
> You received 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.
>



-- 
Christian Goudreau

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



Re: GWT app looks ugly in IE6

2010-07-22 Thread Isaac Truett
GWT doesn't promise to make your application look the same on all browsers.
It does try its very best to make sure that the JS it produces functions the
same across browsers, and doesn't leave any nasty side effects, leak memory,
or anything like that.

There may be some cases where GWT will leverage CSS "tricks" on each browser
to achieve a result (although I can't think of any such cases off the top of
my head), but that doesn't mean that GWT will take steps to ensure that all
of your CSS is magically transformed into something that works on any
browser. For one thing, that's out of scope, and for another it isn't
possible. Some things in CSS just aren't supported, especially in older
browsers.


On Thu, Jul 22, 2010 at 1:35 PM, Magnus wrote:

> Hi,
>
> sorry for repeating:
>
> I thought that the promise of GWT was that one never ever has to deal
> with such problems anymore?
>
> Why are we discussing about wether to spent time in supporting IE6
> while the GWT compiler should do this?
>
> 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.
>
>

-- 
You received 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 app looks ugly in IE6

2010-07-22 Thread Magnus
Hi,

sorry for repeating:

I thought that the promise of GWT was that one never ever has to deal
with such problems anymore?

Why are we discussing about wether to spent time in supporting IE6
while the GWT compiler should do this?

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: How to catch ctrl +/- in GWT

2010-07-22 Thread cokol
u just register the keypressedhandler on the body element and when
fired check if control key is pressed and corresponding characters are
pressed.


Actually its always better to scale images in percentage ratgherr than
giving absolute sizes then this job is done by browser  automativally

On Jul 21, 11:09 pm, Mark Donszelmann 
wrote:
> Hi
>
> I created a page using GWT, which resizes properly. I catch the resize event 
> and manage to resize all images in the page as required.
>
> However, if one does ctrl-plus or ctrl-minus (or command-plus, command-minus) 
> to zoom into / out of the page, I would like to catch that event to be able 
> to resize the pictures and fit them again. Anybody know how to catch these 
> events ?
>
> Regards
> Mark Donszelmann
> CERN

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



Gradients in css3

2010-07-22 Thread Jyaif
Hi,
Is it possible to add gradients using css in GWT? I have tried adding
gradient with css, with java, directly into the UIBinder xml, but
nothing works. I know my browser supports it because I can fill a
simple static div.

-- 
You received 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 app looks ugly in IE6

2010-07-22 Thread RPB
To any who might be interested, these statistics on browser usage are
normally kept quite up to date:

http://www.w3schools.com/browsers/browsers_stats.asp

On Jul 22, 8:32 am, Stefan Bachert  wrote:
> Hi,
>
> I would not spend the time.
>
> IE6 is primary used by companies using old software not willing to
> upgrade. It is a pain to support IE6 and such customer do not pay for
> service.
>
> Your customers are rather private. You could expect from them to
> download a modern browser like FF or Chrome.
> (If not already done)
>
> Stefan Bachert
> http::/gwtworld.de
>
> Inquiries for professional GWT support are welcome.
> I am sorry, I won't do free personal support.
>
> On 21 Jul., 18:11, Magnus  wrote:
>
>
>
> > Hi,
>
> > my GWT app works great under current browsers, but it looks ugly under
> > IE6:http://www.lfstad-chess-club.de:8080/ics/
>
> > Should I spent effort in finding out the reasons or isn't it worth the
> > work?
>
> > 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: Intercepting a paste from the clipboard

2010-07-22 Thread cokol
why do u want to do that?if a user pastes text via context menu u
would not get it anyway. I would go for this:let paste the text and in
ur onchange handler u would trigger a scan for inserted text and
simulate the keyevents for each charachter entered.but again please
tell us ur idea :)

On Jul 22, 5:28 pm, Jim Douglas  wrote:
> You can't do this in any reliable cross-browser way.  The following
> code works only in IE and WebKit.  It fails in Firefox because there's
> no reliable way to retrieve the pasted text in Firefox (there are
> unreliable ways involving the Mozilla security manager).  It fails in
> Opera and Mobile Safari (iOS) because they don't fire the ONPASTE
> event.
>
> But if you want to give it a shot, the basic strategy would be:
>
> (1) Subclass the TextArea.
>
> (2) Do this:
>
>         sinkEvents(Event.ONPASTE);
>
> (3) Add this:
>
>     public static native String getClipboardData(Event event)
>     /*-{
>         var text = "";
>
>         // This should eventually work in Firefox:
>         //https://bugzilla.mozilla.org/show_bug.cgi?id=407983
>         if (event.clipboardData) // WebKit (Chrome/Safari)
>         {
>             try
>             {
>                 text = event.clipboardData.getData("Text");
>                 return text;
>             }
>             catch (e)
>             {
>                 // Hmm, that didn't work.
>             }
>         }
>
>         if ($wnd.clipboardData) // IE
>         {
>             try
>             {
>                 text = $wnd.clipboardData.getData("Text");
>                 return text;
>             }
>             catch (e)
>             {
>                 // Hmm, that didn't work.
>             }
>         }
>
>         return text;
>     }-*/;
>
> (4) Add this:
>
>     @Override
>     public void onBrowserEvent(Event event)
>     {
>         super.onBrowserEvent(event);
>         switch (event.getTypeInt())
>         {
>             case Event.ONPASTE:
>             {
>                 event.preventDefault();
>                 String text = getClipboardData(event);
>                 for (int i = 0; i < text.length(); ++i)
>                 {
>                     doCharacter(text.charAt(i)); // this is your code
> to process the character
>                 }
>                 break;
>             }
>         }
>     }
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...)http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...)
>
> On Jul 21, 8:08 am, Catorcio  wrote:
>
> > I have a TextArea widget and I need to be able to discern when the
> > user pastes text in it from the clipboard (instead of typing at the
> > keyboard). I would like to be able to block the paste action, get the
> > text to be pasted and simulate that the user has typed at the keyboard
> > that text (i.e. I would like to simulate KeyPressEvents because I have
> > already in place a KeyPressHandler that does the processing I need ).
> > Any idea? Thanks.

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



Re: Does GWT have a status bar?

2010-07-22 Thread cokol
yeah u'll become a master thru practice :) put ur stuff in a
DeoratorPanel then u can assign some 3d corner images via CSS et
voila.refer to javadoc for that panel to get hints about CSS classes
to change

On Jul 22, 5:18 pm, David Vree  wrote:
> Its just that I am new to all this!   But taking your lead, I have
> created a horizontal panel, added left or right justified cells and
> within the cell added a label.
>
> So far so good, but how did they achieve the 3d box effect around
> their label?
>
> On Jul 22, 10:48 am, cokol  wrote:
>
> > isnt it simply a Composite of a panel and a lable? :-)
>
> > i mean it would take you half an hour at most to write your own with
> > some smart API, or better yet, take extGWTs api for it
>
> > On 22 Jul., 16:36, David Vree  wrote:
>
> > > I'm looking for something exactly like the Ext GWT toolbar status:
>
> > >http://www.sencha.com/examples/pages/toolbar/statustoolbar.html
>
> > > But am trying (if I can) to avoid the inclusion of a third party
> > > library (and the additional learning, size, and instability).

-- 
You received 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: CSS in UIBinder or separate file?

2010-07-22 Thread PhilBeaudoin
Just to complement the answers here... I've found the new spriting
mechanism of GWT (@sprite) to be really simple and useful.
Unfortunately, it doesn't work for UiBinder-embedded CSS styles.
Therefore, I rely on an external CssResource for all my styles that
need spriting.

On Jul 22, 8:43 am, Sekhar  wrote:
> Yes, separate out the common stuff into a CSS (or more, as necessary)
> and put as much of the specific CSS as possible into the XML file.
> Below is an example that shows this setup and its power. Note that
> each UiBinder XML treats the definitions in the common file (color1
> and .roundCorners in this case) as if they're local. In fact, even
> auto-complete works to identify .roundCorners even though it isn't
> defined locally - very cool.
>
> E.g., here's the common file.
>
> Project.css:
> ...
> @def color1 #33;
> ...
> .roundCorners {
>    ...
>
> }
>
> Then, in each custom UiBinder XML, do this:
>
> 
>    .input {
>       color: color1;
>    }
> 
> ...
> ... styleName="{style.input}" ...
> ... styleName="{style.roundCorners}" ...
> ...
>
> On Jul 21, 5:18 pm, David Vree  wrote:
>
>
>
> > If I understand you correctly, I can put the CSS that pertains
> > directly to the UIBinder there...and the more general stuff I put in
> > the CSS fileand they'll both get picked up?  I assume here that
> > the stuff in the UIBinder XML file has precendence?
>
> > On Jul 21, 6:50 pm, Sekhar  wrote:
>
> > > Having the CSS inside XML makes it WAY more modular and convenient to
> > > tweak the UI. When I started, the common file was small, but as the
> > > project grew it became unmanageable, forcing me to switch to CSS in
> > > XML. I'm now a happy camper. You can pool common elements (e.g.,
> > > globals like colors, etc.) and source it in your different style
> > > blocks.
>
> > > I don't believe it's possible to use sprites in the XML however, since
> > > the CSS file and the bundle need to work in pairs as I understand. I
> > > really hope I'm wrong on this, could someone confirm one way or the
> > > other?
>
> > > On Jul 21, 2:21 pm, David Vree  wrote:
>
> > > > I'm new to UI Binder and see that it is possible to set CSS styles
> > > > within the binder file.  I've always understood a best practice to be
> > > > to separate these out into a single CSS file.  Why (or when) would I
> > > > put CSS in the UIBinder XML file?

-- 
You received 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 app development in teams

2010-07-22 Thread PhilBeaudoin
If it's a new project and you're not tied to a specific backend, you
could could consider deploying on AppEngine. This has been very
efficient for our team where every developer works remotely. AppEngine
offers a standardized built-in environment right in eclipse so
everybody can test locally with good confidence that the behavior will
be the same on the deployed version. We also use continuous deployment
to a (free) AppEngine account, our continuous integration solution is
TeamCity with a relatively simple ant script.

Other practices we use and I would recommend:
- DVCS (we use mercurial hosted on bitbucket)
- Use a highly decoupled architecture, consider an MVP framework. (we
use gwt-platform)
- Heavily unit test (we use JUnit4, mockito)
- Use DI to simplify the two above (we use GIN and Guice)
- Use integration testing (we're still experimenting tools in this
area)
- Asynchronous code reviews (rietveld works really well for us)
- Use UiBinder so that you can easily port HTML mockups to GWT.
- Find a good tool to monitor your dev process (we use AgileZen)

Cheers,

Philippe

On Jul 22, 8:59 am, Uberto Barbini  wrote:
> Hi Ben,
>
> we're working in 10 people on a big gwt project.
> Some people work in office, some remotely.
> I think the problem in your scenario is
>
> > My situation: I'm developing and debugging locally, then deploy
> > the .war file manually on my tomcat server.
>
> everything should be done automatically either by maven or by an ant task.
>
> Then after the commit we have a CI server (hudson) that run tests and
> deploy it in a preprod env.
> All the debug is done locally.
> We have 2 main scripts, one for run in hosted mode and another for run
> on jetty. CI server deploy it on a Jboss configured like in
> production.
>
> hope this can help you.
>
> cheers
>
> Uberto
>
>
>
> On Thu, Jul 22, 2010 at 2:14 PM, Ben  wrote:
> > Hello all
>
> > I'm looking for best practices in developing GWT apps. Let's assume we
> > are 3-5 programmers working on a fairly big GWT app.
> > I could not find any straightforward information on this. Maybe
> > because it's absolutely clear for most developers or maybe there are
> > just too many possible solutions.
>
> > I know that this is not just a GWT specific question.
>
> > Anyways, back to our scenario. Let's assume its an GWT app with a
> > database behind, and using JAVA in the backend. Everything is working
> > on Linux basis.
>
> > My situation: I'm developing and debugging locally, then deploy
> > the .war file manually on my tomcat server. This works fine when
> > working alone. Now, a couple of friends want to join in. The whole
> > thing gets complex. What setup (e.g. server, software) would you use
> > to handle such a scenario?
>
> > Here are a couple thoughts I ran into:
>
> > 1. Should each developer develop and debug locally (sharing files via
> > subversion) ? There is a big down-side on this. Each developer needs
> > to do the server configuration in order to keep the app running
> > locally. Is there an alternative?
>
> > 2. How can one add server-side debug ability to the test server? On
> > the test server runs the app in hosted mode. How can errors, warnings
> > be stored and outputted to the developer? Is there a software or do
> > you work with error logs?
>
> > 3. How can one export the files from a test server to a production
> > server? Is there any software which supports such function?
>
> > I'm programming for quite a while now, but I don't have any
> > experiences in programming together with other developers. So,
> > basically I would love to know anything how you guys develop GWT apps
> > in teams.
>
> > Please let me know if I shall be more precise.
>
> > Thanks for your tips!
>
> > benjamin
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: problem accessing one composite from another - Urgent help needed if possible

2010-07-22 Thread cokol
hi.from architectonical perspective,the response IS A  part of your
wrapping composite therefore ur maininterface should also manage
it.just put the response widget inside

On Jul 22, 6:20 pm, dlynch  wrote:
> Hi Everybody,
>
> I am learning GWT just and am really stuck on a problem.
>
> I have created a new composite which contains several panels. In some
> of the panels I have other seperate composites of which one is a
> search which contains a TextBox and a Button.
>
> So basically i have a mainInterface.java which is a composite
> containing my panels for layout. I also have a search.java which is a
> composite containing just a TextBox and a button which calls my server
> and gets a response. I want to display the response inside one of the
> panels in my mainInterface but I cannot see how I can do that as it is
> a sepperate class.
>
> Am I thinking about this all wrong? Should my mainInterface not call a
> sepperate Search composite but rather just have the button and textbox
> directly there?
>
> Kind Regards
> 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.



Re: Serializable objects lost during Async call

2010-07-22 Thread cokol
hi.actually impossible.for me it worked out.could u provide more
information on the subclasses. or the fields are marked transient or
such.

On Jul 22, 6:00 pm, "Kevin (Yau) Leung"  wrote:
> I'm using GWT 2.0.3 and have encountered a problem during async rpc.
>
> I have a serializable class containing a number of other serializable
> class.  E.g.
>
> class Parent implements java.io.Serializable {
>   private ChildA childA;
>   private ChildB childB;
>   private ChildC childC;
>   private ChildD childD;
> ..
>
> }
>
> each of the Child classes are also serializable and can be passed over
> async rpc without any problem.  However, when I pass this class over
> async rpc, no matter it's from server to client or vice versa.  Some
> of the child instances will get lost and become null.  It's very
> annoying as whenever a new variable is added to that Parent class, a
> different combination of child instances will get lost.
>
> I'm using that parent class to maintain the state of the application
> when closing and opening the app.  Of coz I can pass each child
> instance individually in a single rpc when saving the states to the
> server.  But when retrieving the states back from the server, it will
> be extremely messy to call 10 different async rpc and check if all
> child instances are ready on each and every onSuccess method.
>
> I didn't receive any warning or exception during compile or run time.
>  I'm not sure if it's a bug of GWT or it's simply not supported.  Can
> anyone suggest what should I do to fix it or get around with it?
> Thanks.
>
> Yau

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



problem accessing one composite from another - Urgent help needed if possible

2010-07-22 Thread dlynch
Hi Everybody,

I am learning GWT just and am really stuck on a problem.

I have created a new composite which contains several panels. In some
of the panels I have other seperate composites of which one is a
search which contains a TextBox and a Button.

So basically i have a mainInterface.java which is a composite
containing my panels for layout. I also have a search.java which is a
composite containing just a TextBox and a button which calls my server
and gets a response. I want to display the response inside one of the
panels in my mainInterface but I cannot see how I can do that as it is
a sepperate class.

Am I thinking about this all wrong? Should my mainInterface not call a
sepperate Search composite but rather just have the button and textbox
directly there?

Kind Regards
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.



Serializable objects lost during Async call

2010-07-22 Thread Kevin (Yau) Leung
I'm using GWT 2.0.3 and have encountered a problem during async rpc.

I have a serializable class containing a number of other serializable
class.  E.g.

class Parent implements java.io.Serializable {
  private ChildA childA;
  private ChildB childB;
  private ChildC childC;
  private ChildD childD;
..
}

each of the Child classes are also serializable and can be passed over
async rpc without any problem.  However, when I pass this class over
async rpc, no matter it's from server to client or vice versa.  Some
of the child instances will get lost and become null.  It's very
annoying as whenever a new variable is added to that Parent class, a
different combination of child instances will get lost.

I'm using that parent class to maintain the state of the application
when closing and opening the app.  Of coz I can pass each child
instance individually in a single rpc when saving the states to the
server.  But when retrieving the states back from the server, it will
be extremely messy to call 10 different async rpc and check if all
child instances are ready on each and every onSuccess method.

I didn't receive any warning or exception during compile or run time.
 I'm not sure if it's a bug of GWT or it's simply not supported.  Can
anyone suggest what should I do to fix it or get around with it?
Thanks.

Yau

-- 
You received 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 app development in teams

2010-07-22 Thread Uberto Barbini
Hi Ben,

we're working in 10 people on a big gwt project.
Some people work in office, some remotely.
I think the problem in your scenario is

> My situation: I'm developing and debugging locally, then deploy
> the .war file manually on my tomcat server.

everything should be done automatically either by maven or by an ant task.

Then after the commit we have a CI server (hudson) that run tests and
deploy it in a preprod env.
All the debug is done locally.
We have 2 main scripts, one for run in hosted mode and another for run
on jetty. CI server deploy it on a Jboss configured like in
production.

hope this can help you.

cheers

Uberto

On Thu, Jul 22, 2010 at 2:14 PM, Ben  wrote:
> Hello all
>
> I'm looking for best practices in developing GWT apps. Let's assume we
> are 3-5 programmers working on a fairly big GWT app.
> I could not find any straightforward information on this. Maybe
> because it's absolutely clear for most developers or maybe there are
> just too many possible solutions.
>
> I know that this is not just a GWT specific question.
>
> Anyways, back to our scenario. Let's assume its an GWT app with a
> database behind, and using JAVA in the backend. Everything is working
> on Linux basis.
>
> My situation: I'm developing and debugging locally, then deploy
> the .war file manually on my tomcat server. This works fine when
> working alone. Now, a couple of friends want to join in. The whole
> thing gets complex. What setup (e.g. server, software) would you use
> to handle such a scenario?
>
> Here are a couple thoughts I ran into:
>
> 1. Should each developer develop and debug locally (sharing files via
> subversion) ? There is a big down-side on this. Each developer needs
> to do the server configuration in order to keep the app running
> locally. Is there an alternative?
>
> 2. How can one add server-side debug ability to the test server? On
> the test server runs the app in hosted mode. How can errors, warnings
> be stored and outputted to the developer? Is there a software or do
> you work with error logs?
>
> 3. How can one export the files from a test server to a production
> server? Is there any software which supports such function?
>
> I'm programming for quite a while now, but I don't have any
> experiences in programming together with other developers. So,
> basically I would love to know anything how you guys develop GWT apps
> in teams.
>
> Please let me know if I shall be more precise.
>
> Thanks for your tips!
>
> benjamin
>
> --
> You received 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.
>
>

-- 
You received 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: CSS in UIBinder or separate file?

2010-07-22 Thread Sekhar
Yes, separate out the common stuff into a CSS (or more, as necessary)
and put as much of the specific CSS as possible into the XML file.
Below is an example that shows this setup and its power. Note that
each UiBinder XML treats the definitions in the common file (color1
and .roundCorners in this case) as if they're local. In fact, even
auto-complete works to identify .roundCorners even though it isn't
defined locally - very cool.

E.g., here's the common file.

Project.css:
...
@def color1 #33;
...
.roundCorners {
   ...
}

Then, in each custom UiBinder XML, do this:


   .input {
  color: color1;
   }

...
... styleName="{style.input}" ...
... styleName="{style.roundCorners}" ...
...

On Jul 21, 5:18 pm, David Vree  wrote:
> If I understand you correctly, I can put the CSS that pertains
> directly to the UIBinder there...and the more general stuff I put in
> the CSS fileand they'll both get picked up?  I assume here that
> the stuff in the UIBinder XML file has precendence?
>
> On Jul 21, 6:50 pm, Sekhar  wrote:
>
>
>
> > Having the CSS inside XML makes it WAY more modular and convenient to
> > tweak the UI. When I started, the common file was small, but as the
> > project grew it became unmanageable, forcing me to switch to CSS in
> > XML. I'm now a happy camper. You can pool common elements (e.g.,
> > globals like colors, etc.) and source it in your different style
> > blocks.
>
> > I don't believe it's possible to use sprites in the XML however, since
> > the CSS file and the bundle need to work in pairs as I understand. I
> > really hope I'm wrong on this, could someone confirm one way or the
> > other?
>
> > On Jul 21, 2:21 pm, David Vree  wrote:
>
> > > I'm new to UI Binder and see that it is possible to set CSS styles
> > > within the binder file.  I've always understood a best practice to be
> > > to separate these out into a single CSS file.  Why (or when) would I
> > > put CSS in the UIBinder XML file?

-- 
You received 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: Intercepting a paste from the clipboard

2010-07-22 Thread Jim Douglas
You can't do this in any reliable cross-browser way.  The following
code works only in IE and WebKit.  It fails in Firefox because there's
no reliable way to retrieve the pasted text in Firefox (there are
unreliable ways involving the Mozilla security manager).  It fails in
Opera and Mobile Safari (iOS) because they don't fire the ONPASTE
event.

But if you want to give it a shot, the basic strategy would be:

(1) Subclass the TextArea.

(2) Do this:

sinkEvents(Event.ONPASTE);

(3) Add this:

public static native String getClipboardData(Event event)
/*-{
var text = "";

// This should eventually work in Firefox:
// https://bugzilla.mozilla.org/show_bug.cgi?id=407983
if (event.clipboardData) // WebKit (Chrome/Safari)
{
try
{
text = event.clipboardData.getData("Text");
return text;
}
catch (e)
{
// Hmm, that didn't work.
}
}

if ($wnd.clipboardData) // IE
{
try
{
text = $wnd.clipboardData.getData("Text");
return text;
}
catch (e)
{
// Hmm, that didn't work.
}
}

return text;
}-*/;

(4) Add this:

@Override
public void onBrowserEvent(Event event)
{
super.onBrowserEvent(event);
switch (event.getTypeInt())
{
case Event.ONPASTE:
{
event.preventDefault();
String text = getClipboardData(event);
for (int i = 0; i < text.length(); ++i)
{
doCharacter(text.charAt(i)); // this is your code
to process the character
}
break;
}
}
}


http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/Widget.html#sinkEvents(int)
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/Event.html#ONPASTE
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/Widget.html#onBrowserEvent(com.google.gwt.user.client.Event)

On Jul 21, 8:08 am, Catorcio  wrote:
> I have a TextArea widget and I need to be able to discern when the
> user pastes text in it from the clipboard (instead of typing at the
> keyboard). I would like to be able to block the paste action, get the
> text to be pasted and simulate that the user has typed at the keyboard
> that text (i.e. I would like to simulate KeyPressEvents because I have
> already in place a KeyPressHandler that does the processing I need ).
> Any idea? 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: GWT Plugin for IE

2010-07-22 Thread Isaac Truett
Joyce,

You only need the GWT developer plugin for development. Nothing in GWT
requires an end-user to install a plugin.

- Isaac

On Thu, Jul 22, 2010 at 3:35 AM, Joyce  wrote:

> Hi,
>
> I am a software engineer and am currently new to GWT.
>
> I would like to ask if it is necessary to install Missing Pluging for
> Web browser in order to view GWT applications?
>
> What if my client does not have internet access to install plugin?
>
> Btw if it is just javascript why do you need to download plugin?
> Shouldnt it be normal html page?
>
> Your advise is truly appreciated.
>
> Regards
> Joyce
>
> --
> You received 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.
>
>

-- 
You received 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: Did anybody try Cross site communication?

2010-07-22 Thread rajendra dasari
Yah I am working on cross site communication using JSON, we are passing
response from server
using JSON response, and getting from client  as JSON objects.

--

Raj.

On Wed, Jul 21, 2010 at 5:39 AM, VM  wrote:

> Hello GWT Users,
>
> I just wanted to check if anybody had success with Cross domain
> communication.
>
> I followed Google documentation:
>
> http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
>
> handl...@com.google.gwt.sample.stockwatcher.client.stockwatcher
> ::handleJsonResponse(Lcom/
> google/gwt/core/client/JavaScriptObject;)(jsonObj);
>
> handleJsonResponse is not getting called.
>
> Any thoughts?
>
> --
> You received 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.
>
>

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



Re: Does GWT have a status bar?

2010-07-22 Thread David Vree
Its just that I am new to all this!   But taking your lead, I have
created a horizontal panel, added left or right justified cells and
within the cell added a label.

So far so good, but how did they achieve the 3d box effect around
their label?

On Jul 22, 10:48 am, cokol  wrote:
> isnt it simply a Composite of a panel and a lable? :-)
>
> i mean it would take you half an hour at most to write your own with
> some smart API, or better yet, take extGWTs api for it
>
> On 22 Jul., 16:36, David Vree  wrote:
>
> > I'm looking for something exactly like the Ext GWT toolbar status:
>
> >http://www.sencha.com/examples/pages/toolbar/statustoolbar.html
>
> > But am trying (if I can) to avoid the inclusion of a third party
> > library (and the additional learning, size, and instability).

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



Restlet

2010-07-22 Thread michael
Hello.

Right now I am setting up a new project, that uses GWT at the client
side. This time I have to use rest for the server communication.
Shouldn't be any problem doing that with GWT.

But I looked around and found restlet, offered from http://www.restlet.org.
Does someone have experience with this in a large GWT-project? I
wonder which advantages it offers compared to using the
RequestBuilder? Is version 2.0 of it stable enough to be used?


Thanks,
Michael

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



Intercepting a paste from the clipboard

2010-07-22 Thread Catorcio
I have a TextArea widget and I need to be able to discern when the
user pastes text in it from the clipboard (instead of typing at the
keyboard). I would like to be able to block the paste action, get the
text to be pasted and simulate that the user has typed at the keyboard
that text (i.e. I would like to simulate KeyPressEvents because I have
already in place a KeyPressHandler that does the processing I need ).
Any idea? Thanks.

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



GWT app development in teams

2010-07-22 Thread Ben
Hello all

I'm looking for best practices in developing GWT apps. Let's assume we
are 3-5 programmers working on a fairly big GWT app.
I could not find any straightforward information on this. Maybe
because it's absolutely clear for most developers or maybe there are
just too many possible solutions.

I know that this is not just a GWT specific question.

Anyways, back to our scenario. Let's assume its an GWT app with a
database behind, and using JAVA in the backend. Everything is working
on Linux basis.

My situation: I'm developing and debugging locally, then deploy
the .war file manually on my tomcat server. This works fine when
working alone. Now, a couple of friends want to join in. The whole
thing gets complex. What setup (e.g. server, software) would you use
to handle such a scenario?

Here are a couple thoughts I ran into:

1. Should each developer develop and debug locally (sharing files via
subversion) ? There is a big down-side on this. Each developer needs
to do the server configuration in order to keep the app running
locally. Is there an alternative?

2. How can one add server-side debug ability to the test server? On
the test server runs the app in hosted mode. How can errors, warnings
be stored and outputted to the developer? Is there a software or do
you work with error logs?

3. How can one export the files from a test server to a production
server? Is there any software which supports such function?

I'm programming for quite a while now, but I don't have any
experiences in programming together with other developers. So,
basically I would love to know anything how you guys develop GWT apps
in teams.

Please let me know if I shall be more precise.

Thanks for your tips!

benjamin

-- 
You received 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: Can you use GWT with the spring framework (spring mvc)?

2010-07-22 Thread Ashton Thomas
Yes, Google has recently partnered with VMWare/Spring and the Roo
project. http://www.springsource.org/roo

Roo will get you up and running with a Spring backend and GWT frontend
in no time

I'm trying to learn everything myself:
https://docs.google.com/document/edit?id=16K0xZ3YpAl9_ph-HhNHxTGyMCwR1ntPi7gP1FY3fpUk&hl=en#

On Jul 20, 11:19 pm, Gitted  wrote:
> Can you use GWT with the spring framework (spring mvc)?

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



Running HTML

2010-07-22 Thread pongad
 I'm not sure if there is already an answer to this somewhere, but
since I can't find one, I shall take the liberty to post this
question. I am new to all this, so sorry in advance for a newbie
question :)
 I don't entirely understand the mechanics of running a GWT webapp. My
guess is that GlassFish creates a virtual server on my computer, so
that when I debug or run my web, the browser gets data from GlassFish,
which is the "localhost:8080." Is this correct?
 Also, when I debug or run the web (I use NetBeans), the web works
fine. However, when I run the welcomeGWT.html directly, the HTML part
of the page works fine, but the javascript part didn't run. Is is a
normal behavior? If so, is there an easy to explain why launching the
html directly won't work? If not, what can I do to fix it?

Thanks in advance,
Mike

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



1.7 -> 2.0 upgrade docs

2010-07-22 Thread Neil
Hi, does anyone have a link to the docs for upgrading from gwt 1.7 to
2.0? The one at http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html
is already for 2.0 -> 2.1 M2.

-- 
You received 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: Did anybody try Cross site communication?

2010-07-22 Thread Uberto Barbini
we're doing it putting a servlet on server side that behave as a
proxy. So gwt client call servletproxy with a parameter with the
wanted url and the servlet reply with the content

Uberto

On Thu, Jul 22, 2010 at 12:02 PM, George Georgovassilis
 wrote:
> There are some libraries which handly cross site RPC, but they all
> have one or another drawback.
>
> You can read on here [1]
>
> [1] http://development.lombardi.com/?p=611
>
> On Jul 21, 2:09 am, VM  wrote:
>> Hello GWT Users,
>>
>> I just wanted to check if anybody had success with Cross domain
>> communication.
>>
>> I followed Google documentation:
>>
>> http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
>>
>> handl...@com.google.gwt.sample.stockwatcher.client.stockwatcher::handleJsonResponse(Lcom/
>> google/gwt/core/client/JavaScriptObject;)(jsonObj);
>>
>> handleJsonResponse is not getting called.
>>
>> Any thoughts?
>
> --
> You received 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.
>
>

-- 
You received 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 catch ctrl +/- in GWT

2010-07-22 Thread Mark Donszelmann
Hi

I created a page using GWT, which resizes properly. I catch the resize event 
and manage to resize all images in the page as required. 

However, if one does ctrl-plus or ctrl-minus (or command-plus, command-minus) 
to zoom into / out of the page, I would like to catch that event to be able to 
resize the pictures and fit them again. Anybody know how to catch these events ?

Regards
Mark Donszelmann
CERN

-- 
You received 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 Plugin for IE

2010-07-22 Thread Joyce
Hi,

I am a software engineer and am currently new to GWT.

I would like to ask if it is necessary to install Missing Pluging for
Web browser in order to view GWT applications?

What if my client does not have internet access to install plugin?

Btw if it is just javascript why do you need to download plugin?
Shouldnt it be normal html page?

Your advise is truly appreciated.

Regards
Joyce

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



Re: Does GWT have a status bar?

2010-07-22 Thread cokol
isnt it simply a Composite of a panel and a lable? :-)

i mean it would take you half an hour at most to write your own with
some smart API, or better yet, take extGWTs api for it

On 22 Jul., 16:36, David Vree  wrote:
> I'm looking for something exactly like the Ext GWT toolbar status:
>
> http://www.sencha.com/examples/pages/toolbar/statustoolbar.html
>
> But am trying (if I can) to avoid the inclusion of a third party
> library (and the additional learning, size, and instability).

-- 
You received 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 to use css in uibinder?

2010-07-22 Thread asianCoolz
if i putin every  class.ui.xml  . does
the mean the browser will repeatably make request to server to grab
the same css? or it reuse the same css file?

-- 
You received 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: CSS in UIBinder or separate file?

2010-07-22 Thread asianCoolz
what is the conclusion ? use unique http://groups.google.com/group/google-web-toolkit?hl=en.



best practice to use css in uibinder?

2010-07-22 Thread asianCoolz
may i know what is the best practice for using css in UIBinder?
should i include
 insider every  MyClass.ui.xml ?

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



Does GWT have a status bar?

2010-07-22 Thread David Vree
I'm looking for something exactly like the Ext GWT toolbar status:

http://www.sencha.com/examples/pages/toolbar/statustoolbar.html

But am trying (if I can) to avoid the inclusion of a third party
library (and the additional learning, size, and instability).

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



Re: How to vertically center content inside an HTMLPanel

2010-07-22 Thread David Vree
On Jul 22, 2:39 am, cokol  wrote:
> make sure the HTMLPanel itself has a maximum extended height of this
> parent, so set panels height to 100%
>

I set the height to 100% but it didn't move the button.  For now, I've
just set the top margin and right margin to the correct number of
pixels.  A complete hack

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



DevMode slower than GwtShell?

2010-07-22 Thread Björn
Hi,

we are currently upgrading from 1.5.3 to 2.1.m2. With 1.5.3 (GwtShell)
our application started in 6 minutes time. With DevMode it needs more
than 8 minutes. 6 minutes to start the GWT Development Mode window and
2 minutes to initialy start the browser.

Is this plausible? Has anyone made the same experience while changing
from the GwtShell to DevMode? Do we simply have a configuration
problem?

We are using the default JettyLauncher. The lib folder is empty, so
the JettyLauncher has to dynamically look for class files and jars on
the system classpath.

Is there a way to start things faster?

cheers,

Björn

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



Re: How to fix this GAE-related problem: Must be called from a blob upload callback request.

2010-07-22 Thread Alexander Orlov
This is the file
http://code.google.com/p/loxal/source/browse/src/loxal/lox/service/meta/server/BlobUploadSvcImpl.scala?repo=lox

that throws this exception. I've tried it with its doGet and doPost
methods — same result.

On Jul 21, 5:48 pm, Alexander Orlov  wrote:
> I'm trying to persist blobs using GAE and assign them to the user who
> has uploaded the blob.
> I've took the following sample code as a starting point:
>
> http://code.google.com/intl/en-US/appengine/docs/java/blobstore/overv...
>
> Uploading blobs works fine as you can see here: lox.loxal.org >
> "Create Task"
>
> To assign a blob to a certain user I need the blob's BlobKey... So I
> try to use this (Scala code)...
>
>   val req: HttpServletRequest = this.getThreadLocalRequest
>   val blobs: java.util.Map[java.lang.String, BlobKey] =
> blobstoreService.getUploadedBlobs(req)
>   val blobKey: BlobKey = blobs.get("myFile")
>
> ...in the server-side code to return the BlobKey. But
>
>   val blobs: java.util.Map[java.lang.String, BlobKey] =
> blobstoreService.getUploadedBlobs(req)
>
> throws this exception:
>
>   Caused by: java.lang.IllegalStateException: Must be called from a
> blob upload callback request.
>
> How can I use HttpServletRequest data in server-side code without
> getting this exception?

-- 
You received 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: Google's Way ! reinventing the wheel

2010-07-22 Thread ChrisK
Java does support plural forms of some kind in the ChoiceFormat method
which combined with MessageFormat can be used in conjunction with
resource bundles. While the GWT way is similar it's not the same.
Making it the same would add benefit for any developers creating other
Java based application:

http://download.oracle.com/docs/cd/E17476_01/javase/1.5.0/docs/api/java/text/ChoiceFormat.html


On Jul 11, 6:58 am, Luis Daniel Mesa Velasquez
 wrote:
> you need ConstantsWithLookup... i think... or check 
> this...http://codeherding.blogspot.com/look at the end for the archive and
> then find the intro then select the i18n section.
>
> On Jul 10, 2:51 pm, Stefan Bachert  wrote:
>
> > Hi,
>
> > First of all i18n of GWT is using property file like classical java,
> > but during compile time.
> > Not using the file directly during runtime is quite obvious: the app
> > live in the browser and has no direct access to the file systems.
>
> > You could write a generic approach to download properties files from
> > server.
> > This has at least 3 drawbacks
> > a) It is slow
> > b) It does not check whether a constant is used at all
> > c) It may be a security whole.
>
> > There are enough good reasons to do i18n not exactly like java does.
>
> > I feel quite confortable with GWT i18n.
>
> > Stefan Bacherthttp://gwtworld.de
>
> > On 10 Jul., 04:52, Aladdin  wrote:
>
> > > All I want is to create I18N support in my application , it has been
> > > three days and it's now 5:37 am because the GWT team want invent new
> > > language other than Java.
>
> > > So my question , why instead   of using the Java's regular resource
> > > bundle the GWT team go with their imagination and invent new way , so
> > > experts Java developers  have to learn new APIs and methods ... give
> > > us a break !!!
>
> > > All I want is old fashion properties file that users can add new
> > > locals to my application without having to recompile the code .
>
> > > ClientBundle , Dictionary , Constants ... blah ... blah ... blah ..
>
> > > GWT is a great product , but please just give us Java ,because when
> > > you say it's Java it's not only the syntax , it's the library ... this
> > > what took me 10 years to master not how to write if ..else
> > > statement ...
>
> > > Or just call it GWT++
>
> > > Aladdin
>
>

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

2010-07-22 Thread Thomas Broyer


On 22 juil, 11:21, Paul Grenyer  wrote:
> Hi All
>
> I've got a bit of a problem opening new tabs. I found the following link:
>
> http://brainreaders.blogspot.com/2009/10/open-new-tab-in-gwt.html
>
> and from that I've derived:
>
>     private static native void getURL(String url)
>     /*-{
>         $wnd.open(url,'target=_blank')
>     }-*/;
>
> It works perfectly with firefox, but in Internet Explorer I get:
>
> ---
> Message from webpage
> ---
> UncaughtExceptioncom.google.gwt.core.client.JavaScriptException:
> (Error): Invalid argument.
>  number: -2147024809
>  description: Invalid argument.
> ---
> OK
> ---
>
> I'm somewhat lost. I suspect it doesn't like the url type, maybe. Can
> anyone tell me what I need to do, please?

The second argument *is* the target, so you don't need the
"target=" (and that's what generates the error; just tried it in IE8's
Developer Tools):
  window.open(url, "_blank");
But actually, Window.open(String,String,String) in GWT is just that;
you don't need JSNI:
  Window.open(url, "_blank", "");
You can use either the empty string or null as the third argument if
you don't need specific features.

-- 
You received 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: (Random can't be used in a static method) ?????

2010-07-22 Thread cokol
watch out! you cannot make new Random() on GWT's type otherwise your
IDE would pull in Javas implementation, so only Random.getNext() works

make sure your Random is imported from com.google rather than
java.util

On 22 Jul., 12:50, Shawn Brown  wrote:
>  Actually if com.google.gwt.user.client.Random is in a static method
> called by a static method it fails.
>
> com.google.gwt.user.client.Random in a static method called by a
> non-static method works fine.
>
> Seems a little flakey to me but ... I'm probably just not as smart as you!
>
> Shawn

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

2010-07-22 Thread John
(Sorry for the late reply - I wasn't getting notified of responses in
my email ...)

What it ended up being is that I had forgotten to uncheck the Use
Google App Engine box :/
A little annoying to have to switch back and forth when I'm debugging
to when I'm testing it deployed, but at least it works.

On Jul 18, 10:38 am, Thomas Broyer  wrote:
> On 16 juil, 20:52, John  wrote:
>
>
>
>
>
> > I'm attempting to deploy my gwt project on tomcat and am getting an
> > error in the log file.  I've read the other posts regarding deploying
> > on tomcat and have been unable to fix my problem using them.
>
> > The error I'm getting is:
>
> > SEVERE: Error loading WebappClassLoader
> >   delegate: false
> >   repositories:
> > --> Parent Classloader:
> > org.apache.catalina.loader.standardclassloa...@2ba11b
> >  agt.fathom.ifathom.server.IFathomServiceImpl
> > java.lang.ClassNotFoundException:
> > agt.fathom.ifathom.server.IFathomServiceImpl
> >         at
> > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja 
> > va:
> > 1436)
>
> > I compiled my project and copied the contents of the war folder into /
> > webapps/ifathom giving me a directory structure of:
>
> > /webapps/ifathom
> >   - WEB-INF
> >          - classes
> >              - 
>
> Er, just to make things clear, you're of course deploying the *.class
> for your server-side code, not the *.java?

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

2010-07-22 Thread Paul Grenyer
Hi

On Thu, Jul 22, 2010 at 12:51 PM, Paul Robinson  wrote:
> No need for jsni.
>
> Try:
> Window.open("http://www.itv-f1.com/";, "_blank", "");

I had that before, it didn't give me tabbed browsing in IE.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

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

2010-07-22 Thread Paul Grenyer
Hi

On Thu, Jul 22, 2010 at 12:49 PM, cokol  wrote:
> you dont need to target a blank window, since anyway its a new one by
> default, so just skip the second parameter to $wnd.open() or if you
> still want to then do like
>
> $wnd.open(url,'_blank');

I just tried that independently and it works! Thanks. The only issue
is that in FireFox you get a new tab and in IE you get a new browser
instance, but I can live with that.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

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

2010-07-22 Thread Paul Robinson
No need for jsni.

Try:
Window.open("http://www.itv-f1.com/";, "_blank", "");

HTH
Paul

Paul Grenyer wrote:
> Hi
>
> On Thu, Jul 22, 2010 at 11:57 AM, cokol  wrote:
>   
>> hi, try it as follows:
>>
>> private static native void getURL(String url)
>>/*-{
>>$wnd.open('' + url,'target=_blank')
>>}-*/;
>>
>> 
>
> Thanks! Unfortunately that didn't work either. Just to see what
> happens, I tried:
>
>  private static native void getURL(String url)
> /*-{
>   $wnd.open('http://www.itv-f1.com/','target=_blank');
> }-*/;
>
> and I get the same error, which suggests to me maybe it's not the string type.
>
>   

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

2010-07-22 Thread cokol
you dont need to target a blank window, since anyway its a new one by
default, so just skip the second parameter to $wnd.open() or if you
still want to then do like

$wnd.open(url,'_blank');


br,

On 22 Jul., 13:30, Paul Grenyer  wrote:
> Hi
>
> On Thu, Jul 22, 2010 at 11:57 AM, cokol  wrote:
> > hi, try it as follows:
>
> > private static native void getURL(String url)
> >    /*-{
> >        $wnd.open('' + url,'target=_blank')
> >    }-*/;
>
> Thanks! Unfortunately that didn't work either. Just to see what
> happens, I tried:
>
>  private static native void getURL(String url)
>     /*-{
>         $wnd.open('http://www.itv-f1.com/','target=_blank');
>     }-*/;
>
> and I get the same error, which suggests to me maybe it's not the string type.
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com
> b: paulgrenyer.blogspot.com
> t: pjgrenyer

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

2010-07-22 Thread Paul Grenyer
Hi

On Thu, Jul 22, 2010 at 11:57 AM, cokol  wrote:
> hi, try it as follows:
>
> private static native void getURL(String url)
>    /*-{
>        $wnd.open('' + url,'target=_blank')
>    }-*/;
>

Thanks! Unfortunately that didn't work either. Just to see what
happens, I tried:

 private static native void getURL(String url)
/*-{
$wnd.open('http://www.itv-f1.com/','target=_blank');
}-*/;

and I get the same error, which suggests to me maybe it's not the string type.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: Mouse Over Image

2010-07-22 Thread George Georgovassilis
You might do it with some CSS provided that you are not targeting IE6.

1. Make a div with fixed dimensions
2. Put the label and the image into the div
3. The initial style for the label should be absolute positioning and
hidden. You can play with margins to place the label anywhere ove rthe
image
4. Use the :hover pseudoclass to display the label

The downside is that you need a copy of the label in every image.

But before you go too far: are you sure the image's alt="" attribute
(gwt jargon: title) doesn't suffice?

On Jul 21, 10:16 pm, nacho  wrote:
> Hi, i want to do the following, i want to display a label when the
> user passes the mouse over the image and i want to hide the label when
> the user takes out the mouse from the image. Just like a toolkit.
>
> What i did is the following, what am i missing?
>
> final Label lblRecyclerBin = new Label("Recycler Bin");
>                 lblRecyclerBin.setVisible(false);
>
>                 RootPanel.get().add(lblRecyclerBin);
>
>                 final Image imgRecyclerBin = new 
> Image("images/icons/trashcan.png");
>                 imgRecyclerBin.setHeight("40px");
>                 imgRecyclerBin.setWidth("40px");
>                 imgRecyclerBin.setStylePrimaryName("reflex");
>
>                 imgRecyclerBin.addMouseOverHandler(new MouseOverHandler() {
>                         public void onMouseOver(MouseOverEvent arg0) {
>                                 lblRecyclerBin.setVisible(true);
>
>                                 
> RootPanel.get().setWidgetPosition(lblRecyclerBin,
> imgRecyclerBin.getAbsoluteLeft(), imgRecyclerBin.getAbsoluteTop());
>                         }
>                 });

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

2010-07-22 Thread cokol
hi, try it as follows:

private static native void getURL(String url)
/*-{
$wnd.open('' + url,'target=_blank')
}-*/;

On 22 Jul., 11:21, Paul Grenyer  wrote:
> Hi All
>
> I've got a bit of a problem opening new tabs. I found the following link:
>
> http://brainreaders.blogspot.com/2009/10/open-new-tab-in-gwt.html
>
> and from that I've derived:
>
>     private static native void getURL(String url)
>     /*-{
>         $wnd.open(url,'target=_blank')
>     }-*/;
>
> It works perfectly with firefox, but in Internet Explorer I get:
>
> ---
> Message from webpage
> ---
> UncaughtExceptioncom.google.gwt.core.client.JavaScriptException:
> (Error): Invalid argument.
>  number: -2147024809
>  description: Invalid argument.
> ---
> OK
> ---
>
> I'm somewhat lost. I suspect it doesn't like the url type, maybe. Can
> anyone tell me what I need to do, please?
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com
> b: paulgrenyer.blogspot.com
> t: pjgrenyer

-- 
You received 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: (Random can't be used in a static method) ?????

2010-07-22 Thread Shawn Brown
 Actually if com.google.gwt.user.client.Random is in a static method
called by a static method it fails.

com.google.gwt.user.client.Random in a static method called by a
non-static method works fine.

Seems a little flakey to me but ... I'm probably just not as smart as you!

Shawn

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



(Random can't be used in a static method) ?????

2010-07-22 Thread Shawn Brown
is this as expected (Random can't be used in a static method) ?

public static void test() {  // static method
Log.info("random int "+Random.nextInt(6));
}

->throws a java.lang.UnsatisfiedLinkError:
com.google.gwt.user.client.Random.nextInt(I)I

BUT ...

com.google.gwt.user.client.Random;

public void test() { // non-static method
Log.info("random int: "+Random.nextInt(6));


->IS OK!!!


- a l s o --


java.util.Random random = new Random;

public static void test() {  // static method
Log.info("random int "+random.nextInt(6));
}

->throws a nullpointer

BUT ...



public void test() {  // not static
Log.info("random int "+random.nextInt(6));
}

->is fine!!!



Aaah.  Damn, I just re-factored for hours and made a static
reusable utility class...


Why can't I do that by the way?


Shawn

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



Open source study

2010-07-22 Thread Albatros
Hi

I'm working on researching open source from a pure economic
perspective, and with GWT being a pretty high profile open source
project I would like to ask ? questions.
I fully understand if you do not want to or do not have time to answer
any or all of them

Was the decision to make GWT open source economically based?

How large a percentage of the code base do you expect was contributed
rather than developed in-house?

Do you think that GWT boosted your secondary sales like Google Maps
Premium?

Thanks an advance
  Jes

-- 
You received 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: Did anybody try Cross site communication?

2010-07-22 Thread George Georgovassilis
There are some libraries which handly cross site RPC, but they all
have one or another drawback.

You can read on here [1]

[1] http://development.lombardi.com/?p=611

On Jul 21, 2:09 am, VM  wrote:
> Hello GWT Users,
>
> I just wanted to check if anybody had success with Cross domain
> communication.
>
> I followed Google documentation:
>
> http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
>
> handl...@com.google.gwt.sample.stockwatcher.client.stockwatcher::handleJsonResponse(Lcom/
> google/gwt/core/client/JavaScriptObject;)(jsonObj);
>
> handleJsonResponse is not getting called.
>
> Any thoughts?

-- 
You received 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: $_POST is empty when request made using RequestBuilder

2010-07-22 Thread malrawi
Thanks everyone very nice tips and links.

Salk31& Cokol, you were right, I didn't need the "?", PHP page
wouldn't get the first parameter because of the "?"

VM, nice article and very smart hack... but it got me wondering
whether I will be able to maintain status on the server (using
sessions), especially after I read the other hack on how to use the
iframe name to store information.

I am lucky that I am controlling both the PHP pages and GWT
application, and both will be running from the same domain and server,
so I tried deploying both on the same server and they communicate
perfectly with no hassle using RequestBuilder. These issues are raised
when I try to run the GWT application through Eclipse.

I could be wrong, but it seems like no matter what technique you use
to send a cross server POST request, will give you a lot of pain
especially if you are interested in maintaining status...

Thanks a bunch.
Musab


On Jul 21, 4:08 pm, cokol  wrote:
> hi!
>
> so if you really need to go for HTTP POST rather than get, then do so,
> remove the '?' from post body, these would be required for CGI doing
> GET but not in this case.
>
> you dont need to go for JSNI!! SOP cannot be workarounded on the
> client solely. You have to write simple gateway service which you call
> from the client (via RequestBuilder or XMLHttpRequest) and the data is
> posted via socket from the backend to the destination server.
>
> also refer to this 
> howto:http://code.google.com/intl/de-DE/webtoolkit/doc/latest/FAQ_Server.ht...
>
> greets,
>
> On 21 Jul., 13:55, malrawi  wrote:
>
>
>
> > Hello Again,
>
> > For a second I thought the I managed to solve the SOP by following and
> > applying Google's tutorial found 
> > inhttp://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
>
> > But I realized that I was doing a GET request and not a POST
> > request :/
> > So I guess I am back to square 1.
>
> > I read somewhere on the net that JNSI works only for GET request... Is
> > this correct?
> > Is there a way to make a POST request to a PHP page (port 80) without
> > violating the SOP? a link to an example or manual would be really
> > great.
>
> > Thanks again for the help and tips.
> > Musab
>
> > On Jul 20, 3:35 pm, malrawi  wrote:
>
> > > Thanks Rob,
> > > The problem was because I wasn't encoding the URL, Now when I think
> > > about it, it is kind of strange because the logs show that  a request
> > > was sent but the only problem was with the $_POST, You would expect
> > > not being able to send the request if you don't encode the url and not
> > > send a request with no parameters.
>
> > > What was interesting too, the fact that getStatusCode() returned 0. I
> > > checked the group and it seems that it has something to do with SOP
> > > (correct me please if I am wrong). Would having the GWT application in
> > > the same folder as the PHP project solve this issue?
> > > Please, are there any other work arounds to the SOP issue?
>
> > > Thanks again
> > > Musab
>
> > > On Jul 19, 5:09 pm, RPB  wrote:
>
> > > > Apologies if this is a double-post, the thread didn't seem to update
> > > > the first time.
>
> > > > I don't see anything in particular that is wrong with your code, but
> > > > the following works for me if you want to give it a try:
>
> > > > public void postPHPRequest(String url, String postData){
> > > >                 url = URL.encode(url);
> > > >                 RequestBuilder builder = new 
> > > > RequestBuilder(RequestBuilder.POST,
> > > > url);
>
> > > >             try {
> > > >               builder.setHeader("Content-Type", "application/x-www-form-
> > > > urlencoded");
> > > >               @SuppressWarnings("unused")
> > > >              Requestreq = builder.sendRequest(postData, new
> > > > RequestCallback() {
>
> > > >                 public void onError(Requestrequest, Throwable 
> > > > exception) {
> > > >                         fireErrorEvent("Failed to send therequest: " +
> > > > exception.getMessage());
> > > >                 }
>
> > > >                 public void onResponseReceived(Requestrequest, Response
> > > > response) {
> > > >                   String output = response.getText();
>
> > > >                 }
> > > >               });
> > > >             } catch (RequestException e) {
> > > >                 fireErrorEvent("Failed to send therequest: " + 
> > > > e.getMessage());
> > > >             }
> > > >         }
>
> > > > You can look at 'output' which should display any echos you have in
> > > > your PHP. Hopefully this will help you debug out what is happening.
> > > > If this doesn't work check that you are not violating the SOP (same
> > > > origin policy). There are other threads on this forum with more info
> > > > on this.
>
> > > > Good luck,
> > > > Rob
>
> > > > On Jul 18, 1:44 pm, malrawi  wrote:
>
> > > > > Hi,
> > > > > I am really new to GWT, I tried searching the net for hours to get an
> > > > > answer to my problem with no luck. Here is what I am doing:
> 

Opening

2010-07-22 Thread Paul Grenyer
Hi All

I've got a bit of a problem opening new tabs. I found the following link:

http://brainreaders.blogspot.com/2009/10/open-new-tab-in-gwt.html

and from that I've derived:

private static native void getURL(String url)
/*-{
$wnd.open(url,'target=_blank')
}-*/;

It works perfectly with firefox, but in Internet Explorer I get:

---
Message from webpage
---
UncaughtExceptioncom.google.gwt.core.client.JavaScriptException:
(Error): Invalid argument.
 number: -2147024809
 description: Invalid argument.
---
OK
---

I'm somewhat lost. I suspect it doesn't like the url type, maybe. Can
anyone tell me what I need to do, please?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: Needing help, building a Login

2010-07-22 Thread Ladislav Gazo
Hi Alex,

maybe you would be interested in integrating security with login on
the client and server side. If so you can check acris-security module
at - http://acris.googlecode.com/

BR,
Laco

On 21. Júl, 16:41 h., AlexG 
wrote:
> Hi @ all,
>
> I want to build a Suer-Management System, where Users can Login und
> persist personal Data.
> I found this article below, as a little how-to-guide.
>
> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> What I want, is to save a session id on the client, recieved from the
> server when logging in. Then for
> future RPC´s I want to automatically send the session-Id whit it, to
> identify the users.
> In the tutorial they say, send the session-Id within the payload of
> future RPC.
>
> My question is, how can I do this? How can I modify the payload, to
> send the session-Id with the RPC?
> The following question will be, how can I read this Id from the
> payload on the server?
>
> It would be nice if someone can help me.
>
> Greets
> Alex

-- 
You received 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: Release 0.3 of gwt-platform

2010-07-22 Thread Peter Simun
Phillipe, thank you for your great work.

Peter

On 21. Júl, 22:50 h., PhilBeaudoin 
wrote:
> I just wanted to announce that release 0.3 of the gwt-platform MVP
> framework is now available athttp://gwtplatform.com
>
> It sports a number of cool new features including hierarchical history
> tokens (for breadcrumbs) and a simple annotation-based syntax for
> binding events to your proxies rather than your presenters.
>
> The framework is growing in popularity, but we always welcome new
> user's comments and proposals. And if you have any questions, I'm sure
> you'll find the community over there to be very helpful.

-- 
You received 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: Needing help, building a Login

2010-07-22 Thread AlexG
Thank you cokol,

I think I got, what I needed.
Thanks for your help!

Greets Alex


On 21 Jul., 22:11, cokol  wrote:
> hi, you dont need to care for session ids, unless cookies are
> disabled, since almost every servlet container (tomcat, appengine,etc)
> creates a new sessionid for every request it does not recognize and
> this sessionid is sent back with a cookie. from now on, the browser
> automatically sends a cookie for EVERY request from the page,
> including RPC calls - so you just save whatever you want on the
> serverside via request.getSession().setAttribute("USER",user); it will
> work out
>
> if you want to support users with cookies disabled, this would be a
> bit tricky and needs some conventions
>
> On 21 Jul., 16:41, AlexG  wrote:
>
> > Hi @ all,
>
> > I want to build a Suer-Management System, where Users can Login und
> > persist personal Data.
> > I found this article below, as a little how-to-guide.
>
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> > What I want, is to save a session id on the client, recieved from the
> > server when logging in. Then for
> > future RPC´s I want to automatically send the session-Id whit it, to
> > identify the users.
> > In the tutorial they say, send the session-Id within the payload of
> > future RPC.
>
> > My question is, how can I do this? How can I modify the payload, to
> > send the session-Id with the RPC?
> > The following question will be, how can I read this Id from the
> > payload on the server?
>
> > It would be nice if someone can help me.
>
> > Greets
> > Alex
>
>

-- 
You received 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: CSS in UIBinder or separate file?

2010-07-22 Thread Ed
> Why (or when) would I put CSS in the UIBinder XML file?
Because other people like HTML/CSS experts understand CSS files and
not the GWT xml format.

-- 
You received 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: EclEmma + GwtTestCase + GwtGenerator exception

2010-07-22 Thread Gal Dolber
Forgot the example:

Under a GWTTestCase..

public void testFailureGenerator() {
try {
 GWT.create(BadInterface.class);
} catch (RuntimeException e)  {
 return;
}
fail();
}

2010/7/22 Gal Dolber 

> Hi, I am working on a gwtTestCase that call a gwtGenerator and do
> something, no matter what.
> I downloaded and patched eclEmma to work with gwt and it works fine.
> The problem I have is when I try to test a gwtGenerator failure, the test
> goes ok, it captures the exception ok, but eclEmma is not marking the code
> before the exception happen in green.
>
> It doesn't sound like a big problem, but even if I still make those tests,
> I don't know what failure cases I am really testing, and well.. I want to
> see 100% in emma report :)
>
> Is there anything to do here or thats just the way eclEmma works?
>
> --
> http://ajax-development.blogspot.com/
>



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

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



EclEmma + GwtTestCase + GwtGenerator exception

2010-07-22 Thread Gal Dolber
Hi, I am working on a gwtTestCase that call a gwtGenerator and do something,
no matter what.
I downloaded and patched eclEmma to work with gwt and it works fine.
The problem I have is when I try to test a gwtGenerator failure, the test
goes ok, it captures the exception ok, but eclEmma is not marking the code
before the exception happen in green.

It doesn't sound like a big problem, but even if I still make those tests, I
don't know what failure cases I am really testing, and well.. I want to see
100% in emma report :)

Is there anything to do here or thats just the way eclEmma works?

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

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



Re: Can you use GWT with the spring framework (spring mvc)?

2010-07-22 Thread Stefan Bachert
Hi,

we had hane this discussion already this year.
In general any Spring GUI technique does not make sense with GWT.
Even Spring Roo is doing either Spring MVC or GWT.

Stefan Bachert
http::/gwtworld.de

Inquiries for professional GWT support are welcome.
I am sorry, I won't do free personal support.



On 21 Jul., 05:19, Gitted  wrote:
> Can you use GWT with the spring framework (spring mvc)?

-- 
You received 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 app looks ugly in IE6

2010-07-22 Thread Stefan Bachert
Hi,

I would not spend the time.

IE6 is primary used by companies using old software not willing to
upgrade. It is a pain to support IE6 and such customer do not pay for
service.

Your customers are rather private. You could expect from them to
download a modern browser like FF or Chrome.
(If not already done)

Stefan Bachert
http::/gwtworld.de

Inquiries for professional GWT support are welcome.
I am sorry, I won't do free personal support.



On 21 Jul., 18:11, Magnus  wrote:
> Hi,
>
> my GWT app works great under current browsers, but it looks ugly under
> IE6:http://www.lfstad-chess-club.de:8080/ics/
>
> Should I spent effort in finding out the reasons or isn't it worth the
> work?
>
> 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: Compiler Bug in 2.1.0.m2

2010-07-22 Thread Björn
Hi Olivier,

thanks for your quick response and your workaround. It works!

cheers,

Björn

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



  1   2   >