Hover Functionality

2013-04-04 Thread bongy_Cabs
Hi,

I extend a gwt celltable to create a custom celltable, i register the 
sinkevents ie onmouseover/onmouseout.
when you hover on the row of the table the row data is populated on the 
hover widget(custom hover popup panel).
its works as it supose to do on development mode but once deployed on 
tomcat when you move the mouse over different rows on the celltable it
does not update the hover data on the popup panel unless you click away 
from the table(loose focus) and the hover again on the row.



Thanks,
Bongy


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




Re: GWT Designer - MenuBar

2013-04-04 Thread Michael Prentice
The links in this discussion show that this was fixed on Jan 16th, 2013.

http://code.google.com/p/gwt-designer/source/detail?r=99

But it is not clear from the change or the issue in what version this fix 
was delivered. I would guess 2.5.1?

On Wednesday, April 3, 2013 2:28:14 PM UTC-4, polyg...@gmail.com wrote:
>
> Same problem here. Is there a solution??
>

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




Re: Upload a file - special characters are converted to html chars?

2013-04-04 Thread Thomas Broyer


On Thursday, April 4, 2013 10:36:20 PM UTC+2, Jens wrote:
>
> As far as I know, GWT posts/submits to an iframe and then reads the 
> iframe's content which you access through event.getResults(). So after a 
> form submit is complete the iframe contains your server response. If you 
> don't send back the uploaded file from server to client, 
> SubmitCompleteEvent.getResults() will not contain your file contents.
>
> Its probably your server that sends back the & or you simply have a 
> content type set on your server response which causes the browser to 
> automatically escape your returned String because before GWT gives the 
> result to you, it will end up in an iframe. 
> For example I am used to return JSON if I need a more complex response 
> from the server after submitting a form. Without the correct content type 
> some browsers will return "JSON" on 
> SubmitCompleteEvent.getResults().
>

SubmitCompleteEvent#getResults() is the body.innerHTML from the iframe, so 
the & is totally expected.

Other than that you can still decode the html entities without regex by 
> using a hidden div element + innerHTML and then read back the rendered 
> text: http://stackoverflow.com/a/1912522
>

If you must support browsers that don't have FormData (and thus cannot use 
XMLHttpRequest), then yes it's the only solution. And be very careful what 
your server sends in the response (make sure you escape & as & and < as 
< if you don't want to lose data) 

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




Re: Upload a file - special characters are converted to html chars?

2013-04-04 Thread Jens
As far as I know, GWT posts/submits to an iframe and then reads the 
iframe's content which you access through event.getResults(). So after a 
form submit is complete the iframe contains your server response. If you 
don't send back the uploaded file from server to client, 
SubmitCompleteEvent.getResults() will not contain your file contents.

Its probably your server that sends back the & or you simply have a 
content type set on your server response which causes the browser to 
automatically escape your returned String because before GWT gives the 
result to you, it will end up in an iframe. 
For example I am used to return JSON if I need a more complex response from 
the server after submitting a form. Without the correct content type some 
browsers will return "JSON" on SubmitCompleteEvent.getResults().

I would check the server code.

Other than that you can still decode the html entities without regex by 
using a hidden div element + innerHTML and then read back the rendered 
text: http://stackoverflow.com/a/1912522

-- J.

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




Upload a file - special characters are converted to html chars?

2013-04-04 Thread membersound
Hi,

I'm reading a file using file chose dialog (by GWT FileUpload).. Therefore 
on the client side I created a form that has the content of the file as a 
String in its SubmitCompleteEvent.

Problem: already on the client side (before sending the content to the 
server), special characters like '&' are incorrectly read as eg '&'. So 
somehow replaced with the HTML character implementation.

Question: Why, and more important: how can I prevent this? If I can't 
prevent this, this would mean I'd have to run a regex against all special 
characters the could occur in a file, and replace their html 
representation. That would be kind of senseless...

 @UiField FormPanel uploadForm;

 @UiHandler("uploadForm")
void onSubmitForm(SubmitCompleteEvent evt) {  
Sysout(evt.getResults()); //prints: &
 }


Thanks

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




Error in Totoe XML Parser.

2013-04-04 Thread skippy
This code works fine for me in IE but fails in Firefox.
I get the error Bad format on namespace decleration(s) given.

String namespaces = "xmlns:default=\"http://code.google.com/p/totoe\";
"+ "xmlns:Group=\"http://code.google.com/p/totoe/Group\";
"
+ "xmlns:Item=\"http://code.google.com/p/totoe/Item\"; ";

dataGroupDocument = new XmlParser().parse(dataGroup,namespaces);

XML us like this:

  
31MEB0009
Miss Taylor R Williams
1
BANTMEK
987-00-0082


  


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




Re: Problems adding Click Handler to Grid

2013-04-04 Thread skippy
I am using GWT 2,4 if that helps.


On Apr 4, 10:35 am, skippy  wrote:
> I am trying to add a Click Handler to a Grid object, but it never
> fires.
>
> tableData.addClickHandler(new ClickHandler()
> {
>      public void onClick(ClickEvent event)
>      {
>         Window.alert("I am here");
>       }
>
> });
>
> Any ideas would be great.
>
> Thanks

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




Re: Here we go again ... Firefox 20

2013-04-04 Thread Williame
My suggestion is to use the Esr version of Firefox.  17.0.5 I think is 
latest.

http://www.mozilla.org/en-US/firefox/organizations/all.html

They are supposed to be for enterprise to use in place of the rapid 
releases and should be updated only every 5-6 major firefox versions, so 
good for months at a time for gwt dev.

Of course, you will of course need to use the latest firefox for any 
"before-go-live" deployment, but at least your dev environment can avoid 
breaking every 6 weeks.

-William


On Thursday, April 4, 2013 10:18:42 AM UTC-5, Boris Brudnoy wrote:
>
> Awesome, thank you. My folly was not checking the Add-ons page before 
> trying the upgrade. 
>
> (Arguably Firefox could introduce some sort of a prompt that there are new 
> plugin versions available and offer to restart Firefox, which I haven't 
> done in a while).
>
> Boris Brudnoy
> Founder and Web App Architect, Healthometry™
> http://www.healthometry.com
> M: 416-831-3999
>
>
> On Thu, Apr 4, 2013 at 10:54 AM, Thomas Broyer 
> > wrote:
>
>>
>> On Thursday, April 4, 2013 4:26:52 PM UTC+2, Boris Brudnoy wrote:
>>>
>>> Hi there, 
>>>
>>> Today the Firefox browser prompted me with the next recommended upgrade, 
>>> version 20, and told me that the GWT Dev Mode plugin would be clobbered. I 
>>> haven't seen anyone else post about FF20 and so hopefully this'll be the 
>>> post to follow update once the GWT team publishes the compatible DM plugin 
>>> revision.
>>>
>>
>> Brian published the plugin earlier this week, in time for the 20.0 
>> release: 
>> https://code.google.com/p/google-web-toolkit/issues/detail?id=8084 
>>  
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-web-toolkit/drxEbm3vJps/unsubscribe?hl=en
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

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




Re: Changes Opacity for vertical scrollbar inside 2.4 DataGrid?

2013-04-04 Thread Andrea Boscolo
Good, another two suggestions:

- if you do not want opacity/transition, simply use 
NativeVerticalScrollbar.Resources as-is;
- in order to reliably know the right scrollbar width/height (in case you 
want to stick with a native scrollbar), you can use the static methods 
AbstractNativeScrollbar.getNativeScrollbarWidth() for the vertical 
scrollbar, and AbstractNativeScrollbar.getNativeScrollbarHeight() for the 
horizontal one.

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




Problems adding Click Handler to Grid

2013-04-04 Thread skippy
I am trying to add a Click Handler to a Grid object, but it never
fires.

tableData.addClickHandler(new ClickHandler()
{
 public void onClick(ClickEvent event)
 {
Window.alert("I am here");
  }
});

Any ideas would be great.

Thanks

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




Re: Here we go again ... Firefox 20

2013-04-04 Thread Boris Brudnoy
Awesome, thank you. My folly was not checking the Add-ons page before
trying the upgrade.

(Arguably Firefox could introduce some sort of a prompt that there are new
plugin versions available and offer to restart Firefox, which I haven't
done in a while).

Boris Brudnoy
Founder and Web App Architect, Healthometry™
http://www.healthometry.com
M: 416-831-3999


On Thu, Apr 4, 2013 at 10:54 AM, Thomas Broyer  wrote:

>
> On Thursday, April 4, 2013 4:26:52 PM UTC+2, Boris Brudnoy wrote:
>>
>> Hi there,
>>
>> Today the Firefox browser prompted me with the next recommended upgrade,
>> version 20, and told me that the GWT Dev Mode plugin would be clobbered. I
>> haven't seen anyone else post about FF20 and so hopefully this'll be the
>> post to follow update once the GWT team publishes the compatible DM plugin
>> revision.
>>
>
> Brian published the plugin earlier this week, in time for the 20.0
> release:
> https://code.google.com/p/google-web-toolkit/issues/detail?id=8084
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/drxEbm3vJps/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Here we go again ... Firefox 20

2013-04-04 Thread Thomas Broyer

On Thursday, April 4, 2013 4:26:52 PM UTC+2, Boris Brudnoy wrote:
>
> Hi there, 
>
> Today the Firefox browser prompted me with the next recommended upgrade, 
> version 20, and told me that the GWT Dev Mode plugin would be clobbered. I 
> haven't seen anyone else post about FF20 and so hopefully this'll be the 
> post to follow update once the GWT team publishes the compatible DM plugin 
> revision.
>

Brian published the plugin earlier this week, in time for the 20.0 release: 
https://code.google.com/p/google-web-toolkit/issues/detail?id=8084 

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




Here we go again ... Firefox 20

2013-04-04 Thread Boris Brudnoy
Hi there, 

Today the Firefox browser prompted me with the next recommended upgrade, 
version 20, and told me that the GWT Dev Mode plugin would be clobbered. I 
haven't seen anyone else post about FF20 and so hopefully this'll be the 
post to follow update once the GWT team publishes the compatible DM plugin 
revision.

Cheers,

Boris

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




Re: Changes Opacity for vertical scrollbar inside 2.4 DataGrid?

2013-04-04 Thread RAJ

Hi Andrea,
Thanks a lot for the reply. I have tried your suggestions and it worked 
perfectly. I am copying code here so that others can use it if needed.

--As you said, following code is part of constructor of the class which 
extends DataGrid

 final CustomScrollPanel  scrollPanel = (CustomScrollPanel ) 
headerPanel.getContentWidget();
 NativeVerticalScrollbar.Resources resources = 
GWT.create(VerticalResources.class);
 NativeVerticalScrollbar nativeVerticalScrollbar = new 
NativeVerticalScrollbar( resources);

 scrollPanel.setVerticalScrollbar(nativeVerticalScrollbar, 16);


VerticalResources is the resources I declared as following:
public interface VerticalResources extends 
NativeVerticalScrollbar.Resources
{
@Override
@Source( { "CustomNativeVerticalScrollbarTransparent.css", 
NativeVerticalScrollbar.Style.DEFAULT_CSS } )
NativeVerticalScrollbar.Style nativeVerticalScrollbarStyle();
}


and the CSS file is as follows:
@def OPACITY_DURATION 350ms;

.nativeVerticalScrollbar {
  opacity: 1.0;
  filter: literal("alpha(opacity = 100)");
  -webkit-transition: opacity OPACITY_DURATION;
  -moz-transition: opacity OPACITY_DURATION;
  -o-transition: opacity OPACITY_DURATION;
  transition: opacity OPACITY_DURATION;
}

.nativeVerticalScrollbar:hover {
  opacity: 1.0;
  filter: literal("alpha(opacity = 100)");
}




On Wednesday, April 3, 2013 1:40:45 PM UTC-4, Andrea Boscolo wrote:
>
> DataGrid uses a CustomScrollPanel for its data table. Such panel uses 
> transparent-style native scrollbars, but the resources used 
> (NativeVerticalScrollbar.ResourcesTransparant) are hardcoded in the 
> CustomScrollPanel constructor. I guess you can:
>
> - extend the DataGrid to obtain a reference of the inner 
> CustomScrollPanel. See [1] on how to do that;
> - extend the default NativeVerticalScrollbar.ResourcesTransparant to 
> provide your own style (or use the no-op NativeVerticalScrollbar.Resources 
> to remove any opacity);
> - in the extended DataGrid constructor, after super(), use the 
> CustomScrollPanel reference to set up a new scrollbar using the method 
> setVerticalScrollbar(...) passing in a new NativeHorizontalScrollbar with 
> your new resources.
>
> The same applies for the horizontal scrollbar.
>
> Or you can look at the DOM and figure out some hack to obtain the 
> scrollbar container (as you tried).
>
> [1] 
> https://groups.google.com/forum/#!msg/google-web-toolkit/cdB07DEtmXU/9TNb72MI3Q4J

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




Re: Window onfocus/onblur events.

2013-04-04 Thread Jens
Check out http://stackoverflow.com/a/1060034

Its pure JavaScript but it shouldn't be hard to adapt it to GWT.

-- J.

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




Re: Window onfocus/onblur events.

2013-04-04 Thread Nano Elefant
I'm struggling now since days trying to determine if the browser window is 
inactive. There's probably a reason why GWT does not support this, but I 
must implement it non the less. Can you please tell me how it can be done?
Eric's "code" above, does not even call the notifyOnFocus/notifyOnBlur 
methods (OSX, neither Chrome nor FF), so I need an other (i.e. working) 
solution.
Any advice is welcome.
Thank you.

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




Re: Sorting icons needs to right align in DataGrid

2013-04-04 Thread Bhumika Thaker
To show sorting icons left align, applied below style. It works.

.cellTableStyle th > div:first-child {
margin-right: 15px;
}
.cellTableStyle th div div:first-child {
left: 50%;
margin-left: 100%;
}


On Monday, 4 March 2013 10:41:57 UTC+5:30, Bhumika Thaker wrote:
>
> Hi,
> I use sorting in 
> datagrid.
>  
> The sorting icons display on left align default. I needs to show it on 
> right. How can I set it on right align? see below image for "No" column.
>
>
> 
>
> Thanks In Advance.
>
>

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