DeckLayoutPanel not displaying below banner

2018-04-19 Thread Patrick May
I have a simple GWT app with a top level UI configured in UiBinder like 
this:


http://dl.google.com/gwt/DTD/xhtml.ent";>


  

  

  
Some H3 Text
Some H2 Text
  

  

  
  

  

 

The CSS is:


.banner {
float: left;
width: 100%;
background-image: url("images/blue-banner.jpg");
background-size: 100%;
}
.banner h2 {
font-size:  60px;
font-family: "Helvetica Neue", "Arial", "Helvetica";
font-weight: 700;
color: #fff;
text-shadow: 3px 3px 3px #000;
margin-top: 3px;
text-align: right;
}
.banner h3 {
font-family: "Helvetica Neue", "Arial", "Helvetica";
margin: 20px 0px 0px 0px;
color: #fff;
font-size: 30px;
text-align: right;
}
.banner-text-left {
float: left;
text-align: left;
margin-left: 20px;
}

.main-deck {
width: 100%;
}
 

The code inserts this simple panel into the DeckLayoutView:


http://dl.google.com/gwt/DTD/xhtml.ent";>


  

  Test Placeholder
  

  

 

When I run the app in devmode, I see the banner and the two text strings, 
but no DeckLayoutView. How do I get that to appear?


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8.0 RC2 is here!

2017-07-21 Thread Patrick Tessier
I'm upgrading from 2.7 to 2.8.1 now, but it seems I'm running into the same 
issue as Tony.  I'm using AppEngine on the server side, which is in the 
same IntelliJ/Maven module as the GWT code.  When launching devmode from 
IntelliJ, I get "Couldn't load project from Super Dev Mode server at...", 
with HTTP 500 "

java.lang.NoSuchMethodError: 
javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;"
on the codeserver.

I was convinced that I could rearrange the GWT/AppEngine dependencies in the 
IntelliJ module and
 get it working, but that appears to not be the case.  So I assume that to 
*run* them separately
 would have to mean splitting the client and server sides into separate pom.xml 
within the project
and splitting the dependencies. Correct?

Thanks


On Friday, September 9, 2016 at 2:14:46 AM UTC-5, Thomas Broyer wrote:
>
> First, you don't *have* to split your project, you have to *run* them 
> separately (but then you'll probably have to tweak the classpath of each a 
> bit).
>
> Then, GWT RPC isn't a blocker for splitting your project (see my 
> modular-webapp archetype at 
> https://github.com/tbroyer/gwt-maven-archetypes)
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Patrick May
On Friday, October 2, 2015 at 12:15:05 PM UTC-4, Thomas Broyer wrote:
>
>
> All subpanels have their height and width set to 100% by their containing 
>> panels.
>>
>
> Don't do that. ProvidesResize panels do set the size of their children.
>

Thanks for the pointer.  I removed all of those.
 

> *Observed Behavior*
>>
>> When the "Budget" menu item is clicked, the DockLayoutPanel is displayed, 
>> with its header Label, the DataGrid column headers are displayed, but the 
>> DataGrid rows do not appear.
>>
>
> Possibly related to https://github.com/gwtproject/gwt/issues/4694 (or 
> similar bug).
> Try calling forceLayout() on the DockLayoutPanel when you switch to it in 
> the DeckLayoutPanel.
>

That did it!

Thank you very much,

Patrick

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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.
For more options, visit https://groups.google.com/d/optout.


Re: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Patrick May
On Friday, October 2, 2015 at 9:48:59 AM UTC-4, Juan Pablo Gardella wrote:
>
> try set height in pixels
>

Okay, I tried that and the data still doesn't appear.  However, I resizing 
the browser window, even with the 100% height, does cause the data to 
appear.  Calling the DataGrid's onResize() method, even in a 
ScheduledCommand from the container's onLoad() method, does not cause the 
data to be displayed.

Where can I report this as a bug?

Thanks again.
 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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.
For more options, visit https://groups.google.com/d/optout.


Re: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Patrick May
On Friday, October 2, 2015 at 9:48:59 AM UTC-4, Juan Pablo Gardella wrote:
>
> try set height in pixels
>
>
 I'll give it a try, but that's not really a robust approach.  GWT should 
be able to calculate the area it needs.  Setting explicit sizes seems error 
prone and inelegant.

Thanks for the response.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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.
For more options, visit https://groups.google.com/d/optout.


GWT DataGrid does not display, CellTable does

2015-10-01 Thread Patrick May
My application consists of a SplitLayoutPanel that has a StackLayoutPanel 
with two menu selections on the left and a DeckLayoutPanel on the right. 
 The DeckLayoutPanel has two subpanels, one a SimpleLayoutPanel containing 
a Label and one a DockLayoutPanel containing a Label and another 
SimpleLayoutPanel.  The last SimpleLayoutPanel contains a DataGrid.

SplitLayoutPanel (TestUI)
  |
  + StackLayoutPanel
  |   |
  |   + CellList (Profile)
  |   |
  |   + CellList (Admin)
  |
  + DeckLayoutPanel
  |
  + SimpleLayoutPanel
  |   |
  |   + Label
  |
  + DockLayoutPanel (BudgetPanel)
  |
  + Label
  |
  + SimpleLayoutPanel (LedgerPanel)
  |
  + DataGrid

All subpanels have their height and width set to 100% by their containing 
panels.

The code is all available here: 
 https://github.com/patrickmay/data-grid-issue/tree/master/TestUI

*Expected Behavior*

The expected behavior is that clicking on the "Budget" menu item in the 
StackLayoutPanel will show the BudgetPanel, including the LedgerPanel's 
DataGrid.


*Observed Behavior*

When the "Budget" menu item is clicked, the DockLayoutPanel is displayed, 
with its header Label, the DataGrid column headers are displayed, but the 
DataGrid rows do not appear.

When a Label is added to the south area of the DockLayoutPanel, the 
application compiles but nothing is displayed, not even the top level 
StackLayoutPanel.

When the DataGrid is replaced with a CellTable, the data is displayed 
(although the height of each row is much more than necessary to hold the 
data).


*Questions*

What needs to be done to get the DataGrid to display as expected?

How can the rows be styled to have a smaller height?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8.0 ?

2015-05-14 Thread Patrick Tucker
Why not use the 2.8 snapshot?

On Wednesday, May 13, 2015 at 12:49:16 PM UTC-4, Michael Joyner wrote:
>
> Any status reports on when any GWT 2.8.0 RC's will start being available? 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


how to correctly remove element in gwt (both `DOM.isOrHasChild` & `DOM.removeChild` were deprecated)?

2015-01-03 Thread Patrick Tucker
The code is open source, you can just look at what the 2 functions do and use 
it instead.  I'm pretty sure they both are just 1 liners.  Also, last I looked 
the deprecation java doc indicates what should be used instead.  They generally 
are really good about doing that.

If memory serves me right you will just call removeChild(element) on your body 
element.  I don't recall what the other is.

As a side note, you should save your returned elements to a variable to reduce 
calls to the DOM.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Request factory performance much worse than RPC

2014-08-17 Thread Patrick Tucker
I'm not sure if this will help but your dto probably shouldn't implement both 
Serializable and IsSerializable.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Styling DataGrid headers

2014-07-30 Thread Patrick May
I've configured my DataGrid with a custom CSS file like so:

  public interface UsersDataGridResources extends DataGrid.Resources
  {
@Source({DataGrid.Style.DEFAULT_CSS,"usersDataGrid.css"})
DataGrid.Style dataGrid();
  }

  private static final int DEFAULT_PAGE_SIZE = 50;
  private static final UsersDataGridResources usersDataGridResources
= GWT.create(UsersDataGridResources.class);
  static { usersDataGridResources.dataGrid().ensureInjected(); }

  private DataGrid usersGrid_
= new DataGrid(DEFAULT_PAGE_SIZE,usersDataGridResources);

I've specified a normal font in usersDataGrid.css:

.dataGridHeader {
  font-weight: normal !important;
  text-decoration: none !important;
}

This isn't being reflected in what I see when the grid is rendered.  I'm 
specifying the column headers as simple strings, not Cells.  Is there a 
different property I need to configure?

Thanks,

Patrick

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: UiRenderer with numeric getter

2014-07-14 Thread Patrick Tucker
Yeah, that is what I was able to figure out.  I'm hoping there is a way to 
convert the value to a string inline or another ui: class to use.
 
Thanks for the response!
 

On Monday, July 14, 2014 1:42:02 PM UTC-4, Jens wrote:

> com.google.gwt.uibinder.elementparsers.UiTextInterpreter, line 60:
>
> String fieldRef = elem.consumeStringAttribute("from");
>
> So I would say you must use String with  .
>
> -- 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.
For more options, visit https://groups.google.com/d/optout.


UiRenderer with numeric getter

2014-07-14 Thread Patrick Tucker
For some reason I can't seem to find anything on this, no group posts, 
nothing in the gwtproject.com tutorials, or google search.
 
What I have is a UiRenderer that points to an Object that has a 
getter whose return type is Integer.  When I try to use this getter in a 
ui:text element's for attribute I get an error indicating that a string is 
required.
 
The XML is similar to the following:
 

 
1
 
 
 
I really don't want to change the return type to String or write a 
decorator that returns String instead.  Seems like there should be some 
other way to make this work?
 
Thanks,
Pat

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: update from 2.4 to 2.5 : uibinder.elementparsers.LazyPanelParser.parse(LazyPanelParser.java:40) error

2014-07-14 Thread Patrick Tucker
http://code.google.com/p/google-web-toolkit/issues/detail?id=8825

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: update from 2.4 to 2.5 : uibinder.elementparsers.LazyPanelParser.parse(LazyPanelParser.java:40) error

2014-07-14 Thread Patrick Tucker
I just ran into this and I'm wondering why a ui:field is required?  In our 
case, the object is self contained and after creation isn't 
referenced by the code that creates the object.  Is this requirement really 
necessary??
 
I know the workaround is easy, its just that making us developers 
troubleshoot an error that seems to be a completely valid use case with 
very little info seems wrong.  If nothing else maybe a better error message 
should be output?
 

On Monday, November 5, 2012 9:51:37 AM UTC-5, Thomas Broyer wrote:

> Looking at the code for LazyPanelParser at line 40, it seems like you'd 
> have this exception if you do not have a @UiField for the LazyPanel in your 
> owner class.
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


JSNI function and DevMode

2014-07-02 Thread Patrick Tucker
You have 2 single quotes after PAGE??

Also, not that it should matter here, but why isn't your export function static?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Connecting a DataGrid to a JSON source

2014-05-31 Thread Patrick May
I'm looking through the examples and tutorials for DataGrid and, frankly, 
it's a mess.  I want to display JSON data that is being updated from the 
server.  The whole TextColumn mechanism is a lot of overhead that is 
difficult to abstract away.

Is there any alternative that provides similar functionality but is easier 
to use and that integrates well with the rest of GWT?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: How to debug "TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')"?

2014-05-30 Thread Patrick May
On Friday, May 30, 2014 1:15:18 PM UTC-4, Jens wrote:

> While trying to get a widget to display in a div, I'm getting this error:
>>
>> [Error] TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')
>> G (ui.nocache.js, line 2)
>> onScriptLoad (ui.nocache.js, line 16)
>>
>> What is the best way to figure out exactly what is going on in this case?
>>
>
> Looks like a Nullpointer. Maybe your div isn't available yet? In general 
> compile with PRETTY style so the JavaScript methods have similar names as 
> your Java code. Then you Chrome Dev Tools and stop on any uncaught 
> exception.
>
> But if its the RootPanel.get("ui") thing then I would guess 
> RootPanel.get("ui") might return null. Make sure your "ui" container is in 
> the DOM at the time your GWT app starts.
>
> -- J.
>

Thanks, I'll make sure to use PRETTY.
 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: DockLayoutPanel displays in body, not in div

2014-05-30 Thread Patrick May
On Friday, May 30, 2014 11:13:57 AM UTC-4, Patrick May wrote:

> On Friday, May 30, 2014 4:58:40 AM UTC-4, Jens wrote:
>
>> LayoutPanels are meant to be put into other LayoutPanels. RootPanel or 
>> anything you get with RootPanel.get() isn't a LayoutPanel. So if you 
>> have a DockLayoutPanel you should put it into a RootLayoutPanel. 
>>
>> RootLayoutPanel doesn't do any magic though. It just puts a LayoutPanel 
>> into the  using RootPanel.get().add(layoutPanel) that fills the 
>> entire space. When you now call RootLayoutPanel.get() you are getting that 
>> LayoutPanel back and thus your DockLayoutPanel would be added to the 
>> LayoutPanel. In addition RootLayoutPanel listens for window resize events 
>> and calls a special onResize() method that all LayoutPanels have and which 
>> causes them to recalculate some sizes. As this involves some overhead you 
>> should only use LayoutPanels to define your general app structure. 
>>
>> In your example you should be able to see the DockLayoutPanel if your 
>> container that has the "ui" id has a fixed size and either 
>> position:absolute or position:relative applied.
>>
>> -- J.
>>
>
> Thanks for the explanation.  My goal is to have the DockLayoutPanel in a 
> div, because I have other elements in my page so I can't give the whole 
> body to the DockLayoutPanel.  If I understand you correctly, the only way I 
> can accomplish this is to set my div to have position:absolute or 
> position:relative and to fix it's size.  I don't know the size to fix -- 
> I'd just like it to take whatever it needs.  Is there any way to accomplish 
> that?
>
> Thanks again,
>
> Patrick
>

I just tried wrapping the DockLayoutPanel in a VerticalPanel and it 
displays in the div just fine.

Not knowing why this works makes me nervous, though.
 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


How to debug "TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')"?

2014-05-30 Thread Patrick May
While trying to get a widget to display in a div, I'm getting this error:

[Error] TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')
G (ui.nocache.js, line 2)
onScriptLoad (ui.nocache.js, line 16)

What is the best way to figure out exactly what is going on in this case?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: DockLayoutPanel displays in body, not in div

2014-05-30 Thread Patrick May
On Friday, May 30, 2014 4:58:40 AM UTC-4, Jens wrote:

> LayoutPanels are meant to be put into other LayoutPanels. RootPanel or 
> anything you get with RootPanel.get() isn't a LayoutPanel. So if you 
> have a DockLayoutPanel you should put it into a RootLayoutPanel. 
>
> RootLayoutPanel doesn't do any magic though. It just puts a LayoutPanel 
> into the  using RootPanel.get().add(layoutPanel) that fills the 
> entire space. When you now call RootLayoutPanel.get() you are getting that 
> LayoutPanel back and thus your DockLayoutPanel would be added to the 
> LayoutPanel. In addition RootLayoutPanel listens for window resize events 
> and calls a special onResize() method that all LayoutPanels have and which 
> causes them to recalculate some sizes. As this involves some overhead you 
> should only use LayoutPanels to define your general app structure. 
>
> In your example you should be able to see the DockLayoutPanel if your 
> container that has the "ui" id has a fixed size and either 
> position:absolute or position:relative applied.
>
> -- J.
>

Thanks for the explanation.  My goal is to have the DockLayoutPanel in a 
div, because I have other elements in my page so I can't give the whole 
body to the DockLayoutPanel.  If I understand you correctly, the only way I 
can accomplish this is to set my div to have position:absolute or 
position:relative and to fix it's size.  I don't know the size to fix -- 
I'd just like it to take whatever it needs.  Is there any way to accomplish 
that?

Thanks again,

Patrick
 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


DockLayoutPanel displays in body, not in div

2014-05-29 Thread Patrick May
I have a GWT UI with a DockLayoutPanel as the root widget.  When I use 
RootLayoutPanel.get() to add it to my HTML page like this:

RootLayoutPanel.get().addStyleName("root-layout-panel");
RootLayoutPanel.get().add(dockLayoutPanel_);

it displays fine.

When I try to put it in a div like this:

RootPanel.get("ui").add(dockLayoutPanel_);

Nothing displays and I get this error in Safari:  TypeError: 'undefined' is 
not an object (evaluating 'c.gwtOnLoad')

Interestingly, I have another app that has a VerticalPanel as its root and 
I'm able to add that to a div without a problem.  Is there something odd 
about DocLayoutPanel that I'm missing?

Thanks,

Patrick

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: css background image

2014-04-06 Thread Patrick Tucker
Can you show us your HTML and any other relavent CSS?

All we can do is assume you have an element that has a class name of body.  
Have you tried setting the height and width of the body element, and maybe 
window, to 100%?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: DateBox DatePicker popup is not showing up!

2014-03-11 Thread Patrick Tucker
Maybe provide some code?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Invalid RPC Token

2014-02-28 Thread Patrick
Hi,

I am trying to get XSRF Protected Services to work with my GWT project. 
I've coded everything and am trying to test. I get a strange error in 
JavaScript Console as follows:

Uncaught com.google.gwt.user.client.rpc.RpcTokenException: Invalid RPC 
token (Invalid RpcToken type: expected 
'com.google.gwt.user.client.rpc.XsrfToken' but got 'class 
com.google.gwt.user.client.rpc.XsrfToken') 

I downloaded the GWT 2.6 code using GIT and have grepped the code. I see 
that the file that is doing this is 
com.google.gwt.user.rebind.rpc.ProxyCreator.java 
in the method generateCheckRpcTokenTypeOverride. However, I'm at a loss to 
what it means. I have checked my class path for duplicate instances of 
XsrfToken but it is only found in gwt-servlet.jar in my war file.

Any ideas? Below is the copied generateCheckRpcTokenTypeOverride method.

Thanks in advance!

Patrick


  protected void generateCheckRpcTokenTypeOverride(SourceWriter srcWriter, 
TypeOracle typeOracle,
  SerializableTypeOracle typesSentFromBrowser) {

JClassType rpcTokenType = typeOracle.findType(RpcToken.class.getName());
JClassType[] rpcTokenSubtypes = rpcTokenType.getSubtypes();

String rpcTokenImplementation = "";

for (JClassType rpcTokenSubtype : rpcTokenSubtypes) {

  if (typesSentFromBrowser.isSerializable(rpcTokenSubtype)) {

if (rpcTokenImplementation.length() > 0) {

  // >1 implematation of RpcToken, bail

  rpcTokenImplementation = "";

  break;

} else {

  rpcTokenImplementation = rpcTokenSubtype.getQualifiedSourceName();

}

  }

}

if (rpcTokenImplementation.length() > 0) {

  srcWriter.println("@Override");

  srcWriter.println("protected void checkRpcTokenType(RpcToken token) {"
);

  srcWriter.indent();

  srcWriter.println("if (!(token instanceof " + rpcTokenImplementation 
+ ")) {");

  srcWriter.indent();

  srcWriter.println("throw new RpcTokenException(\"Invalid RpcToken 
type: " + "expected '"

  + rpcTokenImplementation + "' but got '\" + " + "token.getClass() 
+ \"'\");");

  srcWriter.outdent();

  srcWriter.println("}");

  srcWriter.outdent();

  srcWriter.println("}");

}

  }

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Emulation for java.io

2014-02-09 Thread Patrick Tucker
You know you can do it in your project right?  Then when you are satisfied with 
your work, you could contribute it to the public.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT Menu Bar Sub-Menus - how to open on left hand side?

2014-02-07 Thread Patrick Tucker
Follow this issue and check out the code review and see if it fixes your 
problem:

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


On Thursday, February 6, 2014 1:49:35 PM UTC-5, BM wrote:

> So I have a menu bar on right hand side of the screen. This menu bar as 
> vertical opening and each menu items has further sub-menus (with vertical 
> opening). 
>
> The problem is when I mouse-over the menu-item to open the sub-menu, it 
> opens on right hand side of the screen putting a scroll bar in my browser. 
>
> Is there any way the sub-menus can be opened on the left hand side of the 
> menu-item?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT 2.6.0 now available

2014-02-06 Thread Patrick Tucker
It has been on central for about the same amount of time:
http://search.maven.org/#artifactdetails%7Ccom.google.gwt%7Cgwt-user%7C2.6.0%7Cjar

On Thursday, February 6, 2014 6:18:50 AM UTC-5, Ed wrote:

> The 2.6.0 is downloadable as zip through the gwtproject site (since a week 
> or so).
> But when will it be available through the central maven repo ? (I still 
> don't see it in http://mirrors.ibiblio.org/maven2/com/google/gwt/gwt-user/
> )
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How can I set correct size of widgets in a SplitLayoutPanel ?

2014-01-14 Thread Patrick Tucker
jaga was pointing out that your FlowPanel is not equipped to resize the 
DataGrid.  If you look at DataGrid it implements RequiresResize indicating 
that whatever its parent Widget is must tell it when to resize itself.  You 
could replace the FlowPanel with a LayoutPanel, 
DockLayoutPanel, HeaderPanel or a custom panel.  It really just depends on 
how you want it to act and how much overhead you are willing to accept.  If 
you went the LayoutPanel route, you wouldn't set the DataGrid's size to 
100% allowing it to calculate how many pixels it can occupy.
 

On Tuesday, January 14, 2014 7:25:35 AM UTC-5, Jostein wrote:

> Thank you for your answer
>
> May I ask what you would recommend to achieve the same as I want? I need 
> in each of the child panels (West, North and center) to have a header 
> containing title, buttons to add data etc. and a table below to view the 
> data. What kind of panels and widgets would you suggest I should use?
> Btw, I use Layout panels all the way upp to RootLayoutPanel. 
>
> Jostein
>
> kl. 21:18:29 UTC+1 mandag 13. januar 2014 skrev jaga følgende:
>>
>> While perhaps not directly related to your issue I feel it might be worth 
>> pointing out some issues regarding layout panels.
>>
>> Please make sure you read up on layout panels. See the gwt web site for 
>> an article. Also note that the DataGrid is a fussy widget which may not 
>> display unless it is both explicitly resized and placed within a layout 
>> panel itself directly. The flowpanel and flextable are not layout panels.
>>
>> James
>>
>>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-18 Thread Patrick Tucker
Also, you might want to put the resize in a timer or deferred command when 
called from onResize().

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-18 Thread Patrick Tucker
I didn't look that close at it but maybe you should use the parent element's 
client width and height instead?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-17 Thread Patrick Tucker
I took your PortalPanel class above and added it to the page using 
RootLayoutPanel.get().add(Widget)

This is what it took to get your widgets sizing properly:

 public void resetSplitters () {

// parent height

int ph = this.getParent().getOffsetHeight();

// parent width

int pw = this.getParent().getOffsetWidth();

  

slp_Outer.setWidgetSize(slp_North, ph/2);

slp_North.setWidgetSize(fp_West, pw/2);

 }


I was able to call this from both onAttach and onResize.

Hope this helps!

On Monday, December 16, 2013 2:10:26 PM UTC-5, Patrick Tucker wrote:
>
> I'm pretty sure your problem is above PortalPanel.  I will try to put all 
> of the pieces together tonight.
>
> On Monday, December 16, 2013 11:49:50 AM UTC-5, Magnus wrote:
>
>> Hi Patrick,
>>
>> nothing happens. What am I doing wrong?
>>
>> Magnus
>>
>> -
>>
>> public class PortalPanel extends Composite implements RequiresResize
>> {
>>  private static PortalPanelUiBinder uiBinder = GWT.create 
>> (PortalPanelUiBinder.class);
>>  
>>  @UiField SplitLayoutPanel slp_Outer;
>>  @UiField SplitLayoutPanel slp_North;
>>
>>  interface PortalPanelUiBinder extends UiBinder
>>  {
>>  }
>>
>>  public PortalPanel()
>>  {
>>   initWidget (uiBinder.createAndBindUi (this));
>>  }
>>
>>  public void resetSplitters ()
>>  {
>>   int pys = this.getOffsetHeight ();
>>   int ys = pys / 2;
>>   
>>   // Window.alert ("ys: " + ys); // it's a  non zero height when called 
>> from within onResize
>>   slp_North.setHeight (ys + "px");
>>  }
>>  
>>  @Override
>>  public void onResize()
>>  {
>>   resetSplitters ();
>>  }
>> }
>>
>> -
>>
>> http://dl.google.com/gwt/DTD/xhtml.ent";>
>> >  xmlns:g="urn:import:com.google.gwt.user.client.ui">
>>  
>>   
>>  
>>
>>  
>>
>>   
>>  
>> 
>>
>> 
>>  
>>   
>>  
>>
>> 
>>
>> 
>>  
>>   
>>  
>> 
>>
>>
>>   
>>   
>>
>>   
>>
>>
>> 
>>
>>
>>   
>>
>>  
>>
>>  
>>
>>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-16 Thread Patrick Tucker
I'm pretty sure your problem is above PortalPanel.  I will try to put all 
of the pieces together tonight.

On Monday, December 16, 2013 11:49:50 AM UTC-5, Magnus wrote:

> Hi Patrick,
>
> nothing happens. What am I doing wrong?
>
> Magnus
>
> -
>
> public class PortalPanel extends Composite implements RequiresResize
> {
>  private static PortalPanelUiBinder uiBinder = GWT.create 
> (PortalPanelUiBinder.class);
>  
>  @UiField SplitLayoutPanel slp_Outer;
>  @UiField SplitLayoutPanel slp_North;
>
>  interface PortalPanelUiBinder extends UiBinder
>  {
>  }
>
>  public PortalPanel()
>  {
>   initWidget (uiBinder.createAndBindUi (this));
>  }
>
>  public void resetSplitters ()
>  {
>   int pys = this.getOffsetHeight ();
>   int ys = pys / 2;
>   
>   // Window.alert ("ys: " + ys); // it's a  non zero height when called 
> from within onResize
>   slp_North.setHeight (ys + "px");
>  }
>  
>  @Override
>  public void onResize()
>  {
>   resetSplitters ();
>  }
> }
>
> -
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
>   xmlns:g="urn:import:com.google.gwt.user.client.ui">
>  
>   
>  
>
>  
>
>   
>  
> 
>
> 
>  
>   
>  
>
> 
>
> 
>  
>   
>  
> 
>
>
>   
>   
>
>   
>
>
> 
>
>
>   
>
>  
>
>  
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-15 Thread Patrick Tucker
To move the splitter, you have to change the size of its associated widget.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-12 Thread Patrick Tucker
That is what I was going to recommend but I haven't had time to sit down and 
look at all the code you provided.  Glad you were able to figure it out though.

Instead of resizing in your constructor, try overriding onAttach and call the 
resize function in there.  Make sure you call super.onAttach() before resize.  
Depending on how the parent classes are setup you may have to schedule the 
resize.

Hope that helps!

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-08 Thread Patrick Tucker
Can you provide code for the java side?

Also, I'm pretty sure SplitLayoutPanel only works in pixels.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-07 Thread Patrick Tucker
Pleasr provide some code.  You just have to make sure the parent and its 
parents are added before you ask.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-07 Thread Patrick Tucker
If its parent is already attached, you can just ask it how wide it is.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Layout with nested SplitLayoutPanel

2013-12-06 Thread Patrick Tucker
SplitLayoutPanel does not do percentages so you will have to calculate the 
center in pixels.

On Friday, December 6, 2013 12:31:17 AM UTC-5, Magnus wrote:

> Hi,
>
> I would like a panel with split bars like this:
>
> +++
> |||
> |  west  |   east |
> |||
> +++
> | |
> |center   |
> | |
> +++
>
> I believe that this is not possible with a single SplitLayoutPanel, but it 
> requires two nested SplitLayoutPanels, correct?
>
> I have realized it in UIBinder like shown below. An outer SplitPanel 
> divides the space into an upper and a lower area, and an inner SplitPanel 
> devides the upper area into a left and right side.
> Can this be done in a better way, e. g. with only one SplitLayoutPanel?
>
> Now the main question:
>
> Both split bars should be initially positioned at the middle, so that the 
> splitted areas are of same size. I tried to do this with size="50" and 
> unit="PCT", but this does not work.
>
> What can I do else?
>
> Thank you
> Magnus
>
>
>  
>
>   
>
>
> 
>  
>   
>  
>
> 
>
> 
>  
>   
>  
> 
>
>
>   
>
>   
>
>
> 
>
>
>   
>
>  
>
>  
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using Object in classes passed via GWT RPC

2013-11-10 Thread Patrick Tucker
I dont think you provided enough detail to get to the actual problem.  What 
kind of Lists are we talking about in both places?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Using Object in classes passed via GWT RPC

2013-11-09 Thread Patrick Tucker
Why do you have super() in you constructor?  Your class does not extend 
anything.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: SuggestBox and HasBlurHandlers

2013-11-08 Thread Patrick Tucker
You can listen to SelectionEvents, which fire when the user selects an item in 
the popup.  If you want the user to be able to type in a value and not select 
an item I would also listen to ValueChangeEvents.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT 2.6.0-rc1 error compiling

2013-11-08 Thread Patrick Tucker
Thanks!

On Friday, November 8, 2013 7:14:49 AM UTC-5, Cristiano wrote:

> try using the following config for gwt-maven-plugin to specify using also 
> gwt's rc1 dependencies:
>
> 
> org.codehaus.mojo
>  gwt-maven-plugin
> ${gwt.plugin.version}
>  
> 
> 
>  compile
> 
> 
>  
> 
> ...
>  
> 
> 
>  com.google.gwt
> gwt-dev
> ${gwt.version}
>  
> 
> com.google.gwt
>  gwt-codeserver
> ${gwt.version}
>  
> 
> com.google.gwt
>  gwt-user
> ${gwt.version}
> 
>  
> 
>
>
> when gwt-maven-plugin 2.6.0 will be released it will be linked to GWT 
> 2.6.0 and you will not need to override version of dependencies.
>
>
> 2013/11/8 Mark Donszelmann >
>
>> Hi
>>
>> I have no direct dependency on gwt-dev, but the 2.5.1 maven get plugin 
>> refers to gwt-dev (and user and servlet) 2.5.1. 
>>
>> Would that create the problem ?
>>
>> Is there a newer (published) version of this plugin ?
>>
>> Regards
>> Mark
>>
>> On Nov 8, 2013, at 11:59 AM, Thomas Broyer > 
>> wrote:
>>
>> Are you sure you're using gwt-dev from 2.6.0-rc1 too?
>>
>> On Thursday, November 7, 2013 11:29:57 PM UTC+1, Patrick Tucker wrote:
>>>
>>> I just switched one of my maven projects to use the new RC and am 
>>> getting the following error on compile:
>>> [INFO]Loading inherited module 'com.google.gwt.user.User'
>>> [INFO]   Loading inherited module 'com.google.gwt.animation.
>>> Animation'
>>> [INFO]  [ERROR] Element 'module' beginning on line 19 contains 
>>> unexpected attribute 'type'
>>>  
>>> Any idea what would cause this?  I tried a clean and what not with no 
>>> luck.
>>>  
>>> Thanks,
>>> Pat
>>>
>>
>> -- 
>> 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-we...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> 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-we...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> 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.
For more options, visit https://groups.google.com/groups/opt_out.


GWT 2.6.0-rc1 error compiling

2013-11-07 Thread Patrick Tucker


I just switched one of my maven projects to use the new RC and am getting 
the following error on compile:
[INFO]Loading inherited module 'com.google.gwt.user.User'
[INFO]   Loading inherited module 'com.google.gwt.animation.Animation'
[INFO]  [ERROR] Element 'module' beginning on line 19 contains 
unexpected attribute 'type'
 
Any idea what would cause this?  I tried a clean and what not with no luck.
 
Thanks,
Pat

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: SuggestBox and HasBlurHandlers

2013-11-03 Thread Patrick Tucker
Wouldn't a ValueChangeHandler be more appropriate for firing validation?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: gwt date B U G

2013-11-02 Thread Patrick Tucker
Why not use the datetimeformat to parse the date instead of reimplementing the 
wheel?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


HTMLPanel cannot remove DivElement inside its node ?

2013-11-02 Thread Patrick Tucker
Through getElement() you can retrieve the child element(s) and remove them.  I 
Believe the function is getChildNodes() or something like that.  Iterate over 
the result and remove whatever is appropriate.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: SuggestBox and HasBlurHandlers

2013-11-02 Thread Patrick Tucker
What are you actually trying to do?  Maybe we can suggest an alternative to the 
FocusHandler.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Under GWT Architecture, Should we validate InputData at Client Side or Server Side?

2013-10-30 Thread Patrick Tucker
Why do you need an EventBus in your validation code?

On Wednesday, October 30, 2013 10:05:36 AM UTC-4, Tom wrote:

> I use "public static EventBus eventBus = 
> GWT.create(SimpleEventBus.class);" in client.Utility, so it said liek 
> "eventBus can not be used in Server or somethings like that"
>
> On Thursday, October 31, 2013 12:44:19 AM UTC+11, stuckagain wrote:
>>
>> You have to make sure that the validation code is in a shared location so 
>> that GWT compilation can find it and that the server code can use the class 
>> file.
>>  
>> What is the error you are seeing ?
>>  
>>
>>
>> On Wed, Oct 30, 2013 at 2:09 PM, Tom  wrote:
>>
>>> How can Server & Client share the same Validation code in GWT?
>>>
>>> I am using GWTP platform & when i am in a Server Class (ex: *
>>> my.com.server.PostDataHandler*) & then try to use *my.com.client.Utility
>>> * class from client, then I got an error.
>>>
>>>
>>> On Wednesday, October 30, 2013 11:23:00 PM UTC+11, stuckagain wrote:
>>>
 Sometimes customers try to hack your system by changing the GET/POST 
 data to circumvent checks done in the client.
 A Server should never trust that the client can be trusted.
  
 The big advantage of GWT is that you can reuse the same code to perform 
 validation on the serverside.
  


 On Wed, Oct 30, 2013 at 11:52 AM, Jens  wrote:

> If you don't use SSL then data can always be altered during transfer. 
>  
> If you use SSL then there is still a very small chance for men in the 
> middle attacks but something serious must go wrong to make them happen. 
> For 
> example the client must accept a fake certificate for your domain, or 
> your 
> SSL key must be stolen, or the CA root certificate that signed your 
> certificate must be attacked, or the OpenSSL implementation has a bug...
>
> So if you must validate data before it is stored in the database you 
> should validate it on the server and not trust any client. Also keep in 
> mind that data coming from the client could cause SQL injection on your 
> server if you don't validate the data at all and you use it to build a DB 
> query.
>
> Client validation can be useful to avoid server requests though.
>
> -- 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-we...@**googlegroups.com.
>
> Visit this group at http://groups.google.com/**
> group/google-web-toolkit
> .
> 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-we...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> 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.
For more options, visit https://groups.google.com/groups/opt_out.


How to check if a widget got setWidgetHidden == true in SplitLayoutPanel?

2013-10-21 Thread Patrick Tucker
Looks like you should file a feature request on the issue tracker.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


SVG image usage?

2013-10-20 Thread Patrick Tucker
I don't think image sprinting makes sense for svg images.  Under the covers 
they are just XML.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Integrating Google Maps with Google Web Toolkit

2013-10-18 Thread Patrick Tucker
There is a gwt maps api.  Google Search should get you in the right 
direction.

On Sunday, June 4, 2006 3:57:20 PM UTC-4, navneet aron wrote:

> Hi,
> I'm trying to build a website using Google Web Toolkit (GWT). I would
> like to integrate this website with google maps. GWT is a java
> application and google maps exposes javascript api . Can someone please
> let me know how can I make this to work.
>
> Thanks
> Navneet
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to “setWidgetSize” for Central Widget in SplitLayoutPanel?

2013-10-16 Thread Patrick Tucker
Sorry, I forgot I had modified the class to implement the capability.
 
The issue is in the tracker.  Star it and add your input at the following 
url:
*http://code.google.com/p/google-web-toolkit/issues/detail?id=4731*<http://code.google.com/p/google-web-toolkit/issues/detail?id=4731>

On Wednesday, October 16, 2013 10:20:44 AM UTC-4, Tom wrote:

> No MinSize doesn't work either.
>
> On Thursday, October 17, 2013 12:39:41 AM UTC+11, Patrick Tucker wrote:
>>
>> Can you not get the job done with: 
>> *setWidgetMinSize*<http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/SplitLayoutPanel.html#setWidgetMinSize(com.google.gwt.user.client.ui.Widget,+int)>
>> (*Widget*<http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/Widget.html>
>>  child, 
>> int minSize)
>>
>> On Wednesday, October 16, 2013 5:34:32 AM UTC-4, Tom wrote:
>>
>>> Ok, i have a centralHTML that was put inside the  of 
>>> mySplitLayoutPanel.
>>>
>>> In UiBinder:
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>> 
>>>
>>> This code works fine mySplitLayoutPanel.setWidgetSize(westHTML,200)
>>>
>>> Ok, suppose the users drag the splitter to the right so that centralHTML 
>>> becomes 
>>> invisible. Then, to make the centralWidget visible we have to use :
>>>
>>> mySplitLayoutPanel.setWidgetSize(centralHTML,200) // but this doesn't work
>>>
>>> Some people say just set the size of the west Widget & the central one 
>>> will automatically show up. But i don't want to do that, instead i just 
>>> want to set the widget size of the central widget only. So,
>>>
>>> How to "setWidgetSize" for Central Widget in SplitLayoutPanel?
>>>
>>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to “setWidgetSize” for Central Widget in SplitLayoutPanel?

2013-10-16 Thread Patrick Tucker
Can you not get the job done with: 
*setWidgetMinSize*(*Widget*
 child, 
int minSize)

On Wednesday, October 16, 2013 5:34:32 AM UTC-4, Tom wrote:

> Ok, i have a centralHTML that was put inside the  of 
> mySplitLayoutPanel.
>
> In UiBinder:
>
> 
>
>
>
>
>
>
> 
>
> This code works fine mySplitLayoutPanel.setWidgetSize(westHTML,200)
>
> Ok, suppose the users drag the splitter to the right so that centralHTML 
> becomes 
> invisible. Then, to make the centralWidget visible we have to use :
>
> mySplitLayoutPanel.setWidgetSize(centralHTML,200) // but this doesn't work
>
> Some people say just set the size of the west Widget & the central one 
> will automatically show up. But i don't want to do that, instead i just 
> want to set the widget size of the central widget only. So,
>
> How to "setWidgetSize" for Central Widget in SplitLayoutPanel?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Why it got error when using splitLayoutPanel.getWidget(1) (centered widget) but ok if using "splitLayoutPanel.getWidget(0)" (west widget)?

2013-10-10 Thread Patrick Tucker
I believe you want getCenter()

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Sorting with AsyncDataProvider - how to lshow several columns with sorticon

2013-10-07 Thread Patrick Tucker
I would submit a feature request on the issue tracker and add a link to it 
here.

On Thursday, October 3, 2013 11:58:44 PM UTC-4, Manuel wrote:

> Hi everyone,
>
> does anyone know, how to set the sorticon on several column? 
> Actually only 1 column shows his (asc/desc) sorting Icon (a arrow) at a 
> time. But I want to show the icon on all columns that are in the 
> sort-criteria.
>
> I already know about the getColumnSortList(). But only the first column of 
> this list shows the sorting-icon. I want to let all columns in this list 
> have a sorticon.
>
> Thanks in advanced.
>
> Regards,
> Manuel
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Can we remove a Block (West, East, North or South block) of a DockLayoutPanel?

2013-10-06 Thread Patrick Tucker
Try setWidgetHidden(Widget,boolean)

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Sorting with AsyncDataProvider - how to lshow several columns with sorticon

2013-10-05 Thread Patrick Tucker
As far as I know, the current code base is not capable.  If it was, how would 
you display the sort order?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: HeaderPanel not setting height of the Content widget

2013-09-24 Thread Patrick Tucker
Ahh sorry must have misread.

On Friday, September 6, 2013 8:26:10 AM UTC-4, stuckagain wrote:

> Patrick,
>
> No, I don't know the height of the header, and I certainly don't want to 
> set it in pixel sizes in the code either. (I even have the header change 
> height depending on what the user is doing in there).
> The question was about the content widget not being resized in a 
> HeaderPanel, not the header that one works really well.
>
> But the tip from Jens fixed it for me. I now enforce relative to the 
> content container and force top,bottom,left,right at 0px. This removes the 
> need for code to do size calculations and the content is resized and 
> onResize is properly called automatically when the browser window resizes.
>
> The only problem I have is that it is a bit a hack on the HeaderPanel, 
> possible breaking in the future. It is not easy to implement a custom 
> LayoutPanel since if you look at the implementation of HeaderPanel it is 
> depending on quite a lot of internals of the Layout classes.
>
>
> On Friday, September 6, 2013 2:17:24 PM UTC+2, Patrick Tucker wrote:
>>
>> If you have a set size for your header, you most likely should be using a 
>> DockLayoutPanel.  The HeaderPanel should be used when you do not want to 
>> restrict your header or footer to a particular size and allow it to be 
>> whatever size it ends up being.
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: getting access to min-width of an element

2013-09-24 Thread Patrick Tucker
You should submit a feature request on the issue tracker.

On Monday, September 23, 2013 2:08:23 PM UTC-4, stuckagain wrote:

> Thanks,
>
> I found it as well. But it would be nice if GWT would hide these browser 
> specific things.
>
> David
>
>
> On Mon, Sep 23, 2013 at 5:17 PM, Paul  >wrote:
>
>> A quick google of "gwt getcomputedstyle" gives quite a few solutions, 
>> this one looks fine to me:
>>
>>
>> https://code.google.com/p/gwt-examples/source/browse/trunk/GoneVertical-Core/src/org/gonevertical/core/client/style/ComputedStyle.java?spec=svn3084&r=3084
>>
>> cheers
>>
>> On Monday, 23 September 2013 14:04:26 UTC+1, stuckagain wrote:
>>>
>>> Hi,
>>>
>>> I am trying to get access to the min-width style property on some widget 
>>> to be able to properly implement a layout.
>>>
>>> When I use:
>>> widget.getElement().getStyle()**.getProperty("minWidth") I always get 
>>> "" as a result.
>>>
>>> The min-width style is set like this:
>>> .myclass {
>>>   min-width: 200px;
>>> }
>>>
>>> ...
>>>
>>> I noticed that when I define the min-width as a style attribute then it 
>>> works.
>>> ...
>>>
>>> What I really need is a way to know what the computed value should be... 
>>> and this should work on IE8+ and other browsers as well.
>>>
>>> Anybody has a solution for this ?
>>>
>>> David
>>>
>>>  -- 
>> 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-we...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Connection issue(mysql)

2013-09-23 Thread Patrick Tucker
That means you already called close() on the connection that you are trying to 
use.  You should check and make sure you didn't and provide more details if 
that is the case.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT compilation performance

2013-09-08 Thread Patrick Tucker
Why would making a separate project for server-side code help?

I thought the compiler ignores server-code?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: HeaderPanel not setting height of the Content widget

2013-09-06 Thread Patrick Tucker
If you have a set size for your header, you most likely should be using a 
DockLayoutPanel.  The HeaderPanel should be used when you do not want to 
restrict your header or footer to a particular size and allow it to be whatever 
size it ends up being.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: IE10 support in Gwt

2013-09-04 Thread Patrick Tucker
Looks like your hover should be on the a element?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Implementing the Observer Pattern

2013-08-27 Thread Patrick Tucker
You will be creating your own EventBus that only handles whatever you tell it 
to.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


How can I use Incremental Command in GWT

2013-07-25 Thread Patrick Tucker
You didn't say what version of GWT you are using but DeferredCommand is 
deprecated.  You should be using Scheduler.get() and the appropriate function 
with a ScheduledCommand.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: layout panel problem, invisible panels

2013-07-10 Thread Patrick Tucker
We use them a lot for things that aren't page headers and footers.  But yes 
if I was displaying a title and a logout link or something like that in the 
header and needed to modify them on resize that would be a bad plan.

On Wednesday, July 10, 2013 12:39:22 PM UTC-4, Jens wrote:

>
> But generally we end up wanting to know about the resize to 
>> modify elements that are inside of the child widget either to reposition or 
>> resize them.
>>
>
> Hmm, just a guess, but if you have this desire then you probably use the 
> wrong widget or your CSS can be done better in header and footer. 
>
> -- 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: layout panel problem, invisible panels

2013-07-10 Thread Patrick Tucker
That is what is so nice about it.  But generally we end up wanting to know 
about the resize to modify elements that are inside of the child 
widget either to reposition or resize them.
 
It is actually an easy fix, unfortunately the new review system isn't me 
friendly.  If anyone wants to take it on you basically just need to add the 
following code to 

forceLayout():

if (header != null && header instanceof RequiresResize) { //added
   ((RequiresResize) header).onResize();
}

if (footer != null && footer instanceof RequiresResize) { //added
  ((RequiresResize) footer).onResize();
}


On Wednesday, July 10, 2013 10:32:32 AM UTC-4, Thomas Broyer wrote:

> The goal of HeaderPanel is to let the header and footer use their 
> "intrinsic size", so they shouldn't be RequiresResize widgets. Note that I 
> don't disagree making HeaderPanel implement ProvidesResize.
> Patches welcome ;-)
>
> On Wednesday, July 10, 2013 4:00:24 PM UTC+2, Patrick Tucker wrote:
>>
>> What's the harm in making it implement ProvidesResize and correctly 
>> notify all children?  I've seen this topic so many times and have had to 
>> work around it on many projects myself.
>>
>> On Wednesday, July 10, 2013 5:19:23 AM UTC-4, Thomas Broyer wrote: 
>>>
>>>
>>> The reason HeaderPanel doesn't implement ProvidesResize is because it 
>>> doesn't fulfill the contract for the header and footer widgets (that's the 
>>> whole design goal of HeaderPanel).
>>> We should probably add it to the javadoc.
>>>
>>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems with overriding .gwt-TabBarItem-selected CSS when using own CSS style instead of .gwt-TabBarItem

2013-07-10 Thread Patrick Tucker
You are adding the dependent name to the Label itself, this is not really 
what Jens was describing.
 
Your dependent style will look something like gwt-Label-lowerTabBarItem.  
This is not how your style is written.  You should be able to see that the 
style name is not as you expected with something like firebug or IE's 
developer tools.

On Wednesday, July 10, 2013 3:58:47 AM UTC-4, Goosie wrote:

> Hi Jens! :)
>
> I've tried to used addStyleName() to create a secondary style class for 
> the lower tab bar but with my usual luck it isn't working... ofc ;)
> All the labels use .gwt-TabBarItem as their stylesheet :(
>
> *This are the following labels  in the java file:*
>* Label upLabel = new Label("this is a upper tab");*
> */.../*
> *delistedLabel.addStyleDependentName("lowerTabBarItem");*
> *quotesLabel.addStyleDependentName("lowerTabBarItem");*
> *
> *
> *And the following is in the style sheet:*
> *.gwt-TabBarItem { background-color: green; }*
> *.gwt-TabBarItem-lowerTabBarItem {!important; background-color: blue; }*
>
> On Monday, July 8, 2013 4:58:37 PM UTC+2, Jens wrote:
>>
>> GWT has two kind of CSS classes: primary and dependent.
>>
>> By calling setStyleName() you have replaced all CSS classes on the 
>> TabBarItem which your custom one. This makes your custom CSS class the new 
>> primary CSS class. When selecting a TabBarItem the implementation calls 
>> tabBarItem.setStyleDependentName("selected"). Now each TabBarItem contains 
>> class=" -selected" which means you 
>> need upper/lowerTabBarItem-selected in your css file.
>>
>> Instead of setStyleName() you could use addStyleName() which does not 
>> replace existing CSS classes and instead adds your custom class name to the 
>> element. You maybe need "!important" in your CSS then to make sure no one 
>> else overrides your CSS changes defined in your custom class name. That way 
>> the primary CSS class name is still "gwt-TabBarItem" and thus 
>> ".gwt-TabBarItem-selected" will work.
>>
>>
>> -- 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems with overriding .gwt-TabBarItem-selected CSS when using own CSS style instead of .gwt-TabBarItem

2013-07-10 Thread Patrick Tucker
TabBar.addStyleDependentName("upper")
or
TabPanel.getTabBar().addStyleDependentName("upper")
or
TabBar.getElement().setId("upper")
or
TabPanel.getTabBar().getElement().setId("upper")
 
Maybe if you provide code you will get better help?  You are making us 
guess...

On Wednesday, July 10, 2013 4:03:26 AM UTC-4, Goosie wrote:

> Hi Patrick!
>
> I tried ur suggestion as well but couldn't find out how to get the two 
> different tab bars to use their style. I tried giving one of them the 
> default style but even then it would not change its color :(
>
> On Monday, July 8, 2013 4:38:28 PM UTC+2, Patrick Tucker wrote:
>>
>> Did you try giving the TabBar itself a style name like upper and lower?
>>  
>> This will allow you to do the following:
>>
>> .gwt-TabBar-upper .gwt-TabBarItem   
>>
>> .gwt-TabBar-lower .gwt-TabBarItem
>>
>> http://www.gwtproject.org/doc/latest/tutorial/style.html#dependent
>>  
>> If you gave each element an ID you could reference them by the ID like so:
>>
>> #upper.gwt-TabBar
>> #lower.gwt-TabBar 
>>
>>  
>>
>> On Monday, July 8, 2013 8:35:47 AM UTC-4, Goosie wrote:
>>
>>> Hi everyone!
>>>
>>> We are designing a website which involves two tab bars, one at the top 
>>> and one sub tab bar. For every label in the top tab bar we create a number 
>>> of labels added to that one to create different sub tab bars.
>>> Because of the fact that we started by rewriting old code, the tab bars 
>>> originally was using style from .gwt-TabBaritem. Unfortunately, we had to 
>>> avoid this use since we wanted the top tab bar and the sub tab bar to have 
>>> different colors.
>>> Instead we changed the style for every label in the tab bars with 
>>> setStyleName. 
>>>
>>> The problem now is, we can't get the ".gwt-TabBarItem-selected"-style to 
>>> work since it seems like it's being "over written" by our new specified 
>>> style sheets. 
>>>
>>> Is there anyway to create stylesheets for a selected TabBarItem if the 
>>> default .gwt style isn't used to begin with? Or can 
>>> .gwt-TabBarItem-selected be customized so that it listens to our own styles?
>>>
>>> An example of our tab bar item styles:
>>> .upperTabBarItem {
>>> color: green;
>>> font-size: 10px;
>>> font-family:'Arial Regular', Arial, sans-serif;
>>> font-weight:bold;
>>> text-align:center;
>>> color: #FF;
>>> padding: 5px 10px 0px 10px;
>>> white-space: nowrap;
>>> float: left;
>>> height: 22px;
>>>
>>> }
>>>
>>> .lowerTabBarItem {
>>> color: blue;
>>> font-size: 10px;
>>> font-family:'Times New Roman', Arial, sans-serif;
>>> text-align:center;
>>> color: #00;
>>> padding: 5px 10px 0px 10px;
>>> white-space: nowrap;
>>> float: left;
>>> height: 24px;
>>>
>>> }
>>>
>>> ...and the selected style (which now does not work):
>>> .gwt-TabBarItem-selected {
>>> cursor: default;
>>> background: white;
>>> }
>>>
>>> Thanks in advance,
>>>
>>> Goose
>>>
>>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: layout panel problem, invisible panels

2013-07-10 Thread Patrick Tucker
What's the harm in making it implement ProvidesResize and correctly notify 
all children?  I've seen this topic so many times and have had to work 
around it on many projects myself.

On Wednesday, July 10, 2013 5:19:23 AM UTC-4, Thomas Broyer wrote: 
>
>
> The reason HeaderPanel doesn't implement ProvidesResize is because it 
> doesn't fulfill the contract for the header and footer widgets (that's the 
> whole design goal of HeaderPanel).
> We should probably add it to the javadoc.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT website moved to gwtproject.org

2013-07-09 Thread Patrick Tucker
Funny, I also thought it was annoying that the menu jumped around and got so 
big depending on what you clicked.  I guess the top level links that open other 
menus adds to the confusion.  Figured it was just me though...

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems with overriding .gwt-TabBarItem-selected CSS when using own CSS style instead of .gwt-TabBarItem

2013-07-08 Thread Patrick Tucker
Did you try giving the TabBar itself a style name like upper and lower?
 
This will allow you to do the following:

.gwt-TabBar-upper .gwt-TabBarItem   

.gwt-TabBar-lower .gwt-TabBarItem

http://www.gwtproject.org/doc/latest/tutorial/style.html#dependent
 
If you gave each element an ID you could reference them by the ID like so:

#upper.gwt-TabBar
#lower.gwt-TabBar 

 

On Monday, July 8, 2013 8:35:47 AM UTC-4, Goosie wrote:

> Hi everyone!
>
> We are designing a website which involves two tab bars, one at the top and 
> one sub tab bar. For every label in the top tab bar we create a number of 
> labels added to that one to create different sub tab bars.
> Because of the fact that we started by rewriting old code, the tab bars 
> originally was using style from .gwt-TabBaritem. Unfortunately, we had to 
> avoid this use since we wanted the top tab bar and the sub tab bar to have 
> different colors.
> Instead we changed the style for every label in the tab bars with 
> setStyleName. 
>
> The problem now is, we can't get the ".gwt-TabBarItem-selected"-style to 
> work since it seems like it's being "over written" by our new specified 
> style sheets. 
>
> Is there anyway to create stylesheets for a selected TabBarItem if the 
> default .gwt style isn't used to begin with? Or can 
> .gwt-TabBarItem-selected be customized so that it listens to our own styles?
>
> An example of our tab bar item styles:
> .upperTabBarItem {
> color: green;
> font-size: 10px;
> font-family:'Arial Regular', Arial, sans-serif;
> font-weight:bold;
> text-align:center;
> color: #FF;
> padding: 5px 10px 0px 10px;
> white-space: nowrap;
> float: left;
> height: 22px;
>
> }
>
> .lowerTabBarItem {
> color: blue;
> font-size: 10px;
> font-family:'Times New Roman', Arial, sans-serif;
> text-align:center;
> color: #00;
> padding: 5px 10px 0px 10px;
> white-space: nowrap;
> float: left;
> height: 24px;
>
> }
>
> ...and the selected style (which now does not work):
> .gwt-TabBarItem-selected {
> cursor: default;
> background: white;
> }
>
> Thanks in advance,
>
> Goose
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: DateBox getDatePicker() and setCurrentMonth()

2013-06-20 Thread Patrick Tucker
When you create the DatePicker yourself, how are you creating it?  DateBox 
uses the no arg constructor...  If you are providing it with a bad model or 
something like that then it would be at fault not the DateBox or DatePicker.

On Thursday, June 20, 2013 10:42:43 AM UTC-4, Patrick Tucker wrote:
>
> In 2.5.1, I believe the earlier versions are the same, getDatePicker() 
> returns the actual DatePicker so it should work as advertised.
>
> On Thursday, June 20, 2013 5:28:39 AM UTC-4, Lukasz Plotnicki wrote:
>>
>> Hi,
>>
>> does anybody know, why I when I access the *DatePicker* of a *DateBox*via 
>> the 
>> *getDatePicker()* method and try to set it to show a specific month (via 
>> the *setCurrentMonth(Date month)* method), it simply does not work? Have 
>> I misunderstood the API? The *setCurrentMonth()* method works just fine 
>> if I use it on a *DatePicker* object I created myself.
>>
>> Looking forward to your feedback,
>> Lukasz
>>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: DateBox getDatePicker() and setCurrentMonth()

2013-06-20 Thread Patrick Tucker
In 2.5.1, I believe the earlier versions are the same, getDatePicker() 
returns the actual DatePicker so it should work as advertised.

On Thursday, June 20, 2013 5:28:39 AM UTC-4, Lukasz Plotnicki wrote:
>
> Hi,
>
> does anybody know, why I when I access the *DatePicker* of a *DateBox*via the 
> *getDatePicker()* method and try to set it to show a specific month (via 
> the *setCurrentMonth(Date month)* method), it simply does not work? Have 
> I misunderstood the API? The *setCurrentMonth()* method works just fine 
> if I use it on a *DatePicker* object I created myself.
>
> Looking forward to your feedback,
> Lukasz
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




LayoutPanel with minimum size

2013-06-19 Thread Patrick Tucker
Have you tried setting the element to overflow auto?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Am I able to write a panel that likes DockLayoutPanel with scroll bar

2013-06-04 Thread Patrick Tucker
Yes flowPanel is the object that should be scrolled when it overflows.

On Tuesday, June 4, 2013 11:29:32 AM UTC-4, Magallo wrote:

> Sorry for the question, what is 'flowPanel' in your example? Is it the 
> widget in the center of the docklayoutpanel? Or what else?
>
> On Friday, February 10, 2012 3:23:50 PM UTC+1, Patrick Tucker wrote:
>>
>> I'm not sure it makes sense to make an entire DockLayoutPanel scroll, 
>> its a LayoutPanel... 
>>
>> If you apply the appropriate overflow value (auto or scroll) to the 
>> container element that you would like to scroll, the container will 
>> scroll when the child is to big for its current size. 
>>
>> Example: 
>> dockLayoutPanel.getWidgetContainerElement(flowPanel).getStyle().setOverflowY(Overflow.AUTO);
>>  
>>
>>
>> Where dockLayoutPanel is the DockLayoutPanel that you intend to 
>> manipulate. 
>>
>> On Feb 9, 2:32 am, linhua  wrote: 
>> > What I want to do is: 
>> > 
>> > Currently, I can only add scroll panel inside the center part of 
>> > DockLayoutPanel. 
>> > 
>> > I want all the parts of DockLayoutPanel share a scroll bar. 
>> > 
>> > If can do, how to implement a such class? Which class should I extend 
>> > and what interfaces should be implemented?
>
>

-- 
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: Cell mouse in/out events fired multiple times

2013-05-13 Thread Patrick Tucker
You might also take a look at RowHoverEvent handling.  If you don't need the 
Object that is represented, this will be much easier to manage.

-- 
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: Order of instantiation in UI-Binder?

2013-05-09 Thread Patrick Tucker
I wouldn't consider providing the object via annotation a hack...
 

> @UiField(provided=true)


On Wednesday, May 8, 2013 4:25:03 PM UTC-4, membersound wrote:

> OK I see that's not as easy as I thought.
> Probably I should refactor my code instead of trying a hacky solution. 
> Thansk!
>
>
> 2013/5/8 Patrick Tucker >
>
>> Have you tried providing, in the java code, the widget that is being 
>> added to the center?  That is assuming the widget that you are adding is 
>> what you are calling to get the NPE.
>>  
>> Some code would probably go a long way in getting better guidance...
>>
>> On Tuesday, May 7, 2013 7:12:09 AM UTC-4, membersound wrote:
>>
>>> Hi,
>>>
>>> I have a SplitLayoutPanel with g:center and g:north.
>>>
>>> The north element depends on the center element, and uses it in the 
>>> contructor after initWidget() has been called.
>>> Problem: I always get a NullPointerException for the center element 
>>> used in the north element.
>>>
>>> How can I force object creation to be first the center, and then the 
>>> north element? I assume the default is just the other way around?
>>>
>>> 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: Order of instantiation in UI-Binder?

2013-05-08 Thread Patrick Tucker
Have you tried providing, in the java code, the widget that is being added 
to the center?  That is assuming the widget that you are adding is what you 
are calling to get the NPE.
 
Some code would probably go a long way in getting better guidance...

On Tuesday, May 7, 2013 7:12:09 AM UTC-4, membersound wrote:

> Hi,
>
> I have a SplitLayoutPanel with g:center and g:north.
>
> The north element depends on the center element, and uses it in the 
> contructor after initWidget() has been called.
> Problem: I always get a NullPointerException for the center element used 
> in the north element.
>
> How can I force object creation to be first the center, and then the north 
> element? I assume the default is just the other way around?
>
> 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: mouse over tab (TabLayoutPanel) to select

2013-05-08 Thread Patrick Tucker
Instead of using add(Widget, String) to add tabs use add(Widget,Widget).  
Your second argument will be a widget that you have added a mouse over 
handler to that will instruct the TabLayoutPanel to select the appropriate 
tab by calling selectTab(int) or selectTab(Widget).

On Tuesday, May 7, 2013 1:51:49 PM UTC-4, Weihua wrote:

> Yes I meant mouseover instead of clicking. Can you provide some example 
> codes?
>
> Thank you very much.
>
>
> On Tue, May 7, 2013 at 7:41 PM, Patrick Tucker 
> > wrote:
>
>> You mean instead of clicking?  There is no reason you couldn't add that 
>> capability.  It is not out of the box though. 
>>
>

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




mouse over tab (TabLayoutPanel) to select

2013-05-07 Thread Patrick Tucker
You mean instead of clicking?  There is no reason you couldn't add that 
capability.  It is not out of the box though.

-- 
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: When modifying SimpleHtmlSanitizer.java, how to deal with (Gwt)?

2013-05-06 Thread Patrick Tucker
Unfortunately, you will have to modify simpleSanitize(String) then.  You 
will have to add further checking for when the tag equals "a".

On Monday, May 6, 2013 9:45:24 AM UTC-4, Tom wrote:

> if i put "a", then nothing happened as the system marked "Text". so 
> we need href
>
> On Monday, May 6, 2013 11:33:05 PM UTC+10, Patrick Tucker wrote:
>>
>> The XML tag's name is "a" not "a href="
>>
>> On Sunday, May 5, 2013 11:21:40 PM UTC-4, zal...@gmail.com wrote:
>>
>>> You know that SimpleHtmlSanitizer.java only accepts the following markup 
>>> ("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ul", "ol", 
>>> "li"). It is good but I want "u", "sub", "a href=" & don't want "hr", "ul", 
>>> "ol", "li". So I need to modify this class.
>>>
>>> Now look at the SimpleHtmlSanitizer.java (
>>> https://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java?r=8653)
>>>  
>>> & look at this line in that class:
>>>
>>> Arrays.asList("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", 
>>> "ul", "ol", "li"));
>>>
>>> You can guess that we can put our wished list into that line of code 
>>> right. So I modify it to:
>>>
>>> Arrays.asList("b","i", "u", "h1", "h2", "h3", "h4","a href="));
>>>
>>> Every tag in that list works fine except the "a href=". For example, 
>>> when i put the string Test hello it didn't 
>>> show correct output. The correct output should have string hello in 
>>> hyperlink.
>>>
>>> I believed that we have to use modify simpleSanitize function in 
>>> SimpleHtmlSanitizer class, we also have to use UriUtils.isSafeUri to check 
>>> if the uri is safe or not.
>>>
>>> So how to modify SimpleHtmlSanitizer in the case of>>
>>>

-- 
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: Menu Bar - hide

2013-05-06 Thread Patrick Tucker
I don't believe there is an open issue for this, might be worth filing one: 
http://code.google.com/p/google-web-toolkit/issues

On Sunday, March 17, 2013 9:50:54 AM UTC-4, Marco wrote:
>
>
> I have a strange behaviour which also occurs in GWT Showcase.
>
> http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwMenuBar
>
> In the gwt showcase there is a menubar example with the menus:
>
> File
> -
> New 
> Open
> Close
> Recent
> - Fishing in the desert.txt
> - How to tame a wild parrot
> Exit
>
>
> If I move my mouse cursor on the menu "Recent", then the submenu opens 
> with "Fishing in the desert...".
> After I move my cursor on the "Close" menu item, but the submenu with 
> "Fishing..." does not hide and keeps open.
>
> I hope that you agree that this is a very strange behaviour. Is there any 
> solution for this, maybe I have missed a property?
>

-- 
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: Modifying SimpleHtmlSanitizer.java, how to deal with (Gwt)?

2013-05-06 Thread Patrick Tucker
The XML tag's name is "a" not "a href="

On Sunday, May 5, 2013 11:23:25 PM UTC-4, Tom wrote:

> You know that SimpleHtmlSanitizer.java only accepts the following markup 
> ("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ul", "ol", 
> "li"). It is good but I want "u", "sub", "a href=" & don't want "hr", "ul", 
> "ol", "li". So I need to modify this class.
>
> Now look at the SimpleHtmlSanitizer.java (
> https://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java?r=8653)
>  
> & look at this line in that class:
>
> Arrays.asList("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", 
> "ul", "ol", "li"));
>
> You can guess that we can put our wished list into that line of code 
> right. So I modify it to:
>
> Arrays.asList("b","i", "u", "h1", "h2", "h3", "h4","a href="));
>
> Every tag in that list works fine except the "a href=". For example, when 
> i put the string Test hello it didn't show 
> correct output. The correct output should have string hello in 
> hyperlink.
>
> I believed that we have to use modify simpleSanitize function in 
> SimpleHtmlSanitizer class, we also have to use UriUtils.isSafeUri to check 
> if the uri is safe or not.
>
> So how to modify SimpleHtmlSanitizer in the case of

-- 
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: When modifying SimpleHtmlSanitizer.java, how to deal with (Gwt)?

2013-05-06 Thread Patrick Tucker
The XML tag's name is "a" not "a href="

On Sunday, May 5, 2013 11:21:40 PM UTC-4, zal...@gmail.com wrote:

> You know that SimpleHtmlSanitizer.java only accepts the following markup 
> ("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ul", "ol", 
> "li"). It is good but I want "u", "sub", "a href=" & don't want "hr", "ul", 
> "ol", "li". So I need to modify this class.
>
> Now look at the SimpleHtmlSanitizer.java (
> https://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java?r=8653)
>  
> & look at this line in that class:
>
> Arrays.asList("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", 
> "ul", "ol", "li"));
>
> You can guess that we can put our wished list into that line of code 
> right. So I modify it to:
>
> Arrays.asList("b","i", "u", "h1", "h2", "h3", "h4","a href="));
>
> Every tag in that list works fine except the "a href=". For example, when 
> i put the string Test hello it didn't show 
> correct output. The correct output should have string hello in 
> hyperlink.
>
> I believed that we have to use modify simpleSanitize function in 
> SimpleHtmlSanitizer class, we also have to use UriUtils.isSafeUri to check 
> if the uri is safe or not.
>
> So how to modify SimpleHtmlSanitizer in the case of
>

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




ClientAbortException Issue Since 2.5.1

2013-05-03 Thread James Patrick
Hey Guys,

The company I work for uses apache + gwt + tomcat7 for our site. I've been 
trying to update from gwt 2.5.0 -> 2.5.1. 
GwtSerlvet.jar used to contain the 
org.apache.catalina.connector.ClientAbortException class.  What is upgrade 
path from 2.5.0 to 2.5.1 for users who are depended on catching 
ClientAbortException (in case I've missed something)?

We put catalina.jar in the classpath to compile.  If we add it to 
WEB-INF/lib tomcat fails to deploy the app, if we don't it just doesn't 
catch that Exception and the error is just caught be a general catch-all.


*The error log for is below:*
org.apache.catalina.connector.ClientAbortException: null
at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:388)
 
~[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:462) 
~[tomcat-coyote-7.0.26.jar:7.0.26]
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366) 
~[tomcat-coyote-7.0.26.jar:7.0.26]
at 
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:413) 
~[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:401) 
~[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:91)
 
~[tomcat-catalina-7.0.26.jar:7.0.26]   

 
at com.greenfiling.util.StreamUtil.streamCopy(StreamUtil.java:23) 
~[StreamUtil.class:na]
at com.greenfiling.servlet.FileDownload.doGet(FileDownload.java:80) 
~[FileDownload.class:na]  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
[tomcat-servlet-api-3.0.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 
[tomcat-servlet-api-3.0.jar:na]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 
[tomcat-catalina-7.0.26.jar:7.0.26] 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) 
[tomcat-catalina-7.0.26.jar:7.0.26]
at 
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) 
[tomcat-coyote-7.0.26.jar:7.0.26]
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
 
[tomcat-coyote-7.0.26.jar:7.0.26]
at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
 
[tomcat-coyote-7.0.26.jar:7.0.26]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
[na:1.6.0_24]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
[na:1.6.0_24]
at java.lang.Thread.run(Thread.java:679) [na:1.6.0_24]
Caused by: java.net.SocketException: Connection reset
at 
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113) 
~[na:1.6.0_24]
at java.net.SocketOutputStream.write(SocketOutputStream.java:153) 
~[na:1.6.0_24]
at org.apache.coyote.ajp.AjpProcessor.output(AjpProcessor.java:295) 
[tomcat-coyote-7.0.26.jar:7.0.26]
at 
org.apache.coyote.ajp.AbstractAjpProcessor$SocketOutputBuffer.doWrite(AbstractAjpProcessor.java:1082)
 
~[tomcat-coyote-7.0.26.jar:7.0.26]
at org.apache.coyote.Response.doWrite(Response.java:533) 
~[tomcat-coyote-7.0.26.jar:7.0.26]
at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:383)
 
~[tomcat-catalina-7.0.26.jar:7.0.26]
... 25 common frames omitted

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

I want to use Apache Commons on the server, but the code is using the packages in gwt-dev.jar.

2013-04-28 Thread Patrick Tucker
Once on the server the jars in a directory are loaded in alphabetic order if 
not specified otherwise.  You can try renaming the jar to make it come first.

-- 
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: Hiding Tabs in TabLayoutPanel at runtime

2013-04-22 Thread Patrick Tucker
You probably should submit a feature request.

On Wednesday, July 28, 2010 11:36:15 AM UTC-4, rvns-pats wrote:

> Hi All, 
>
>   I am trying to hide and show some panels with in a TabLayout Panel 
> at runtime. 
>
>   I have the following code in my UiBInder 
>
>  
>   
> Tab1 
>  height="100%" width="100%"> g:FlowPanel> 
>  
>  
> Tab2 
>  height="100%" width="100%"> 
>  
>  
>  
>
>  And in the View i have..( passing either true or false based on 
> whether i want to show the second tab or hide it. 
>
>  myTabPanel.getTabWidget(1).setVisible(true); 
>
> And it's not hiding the tab properly.. 
>
> Any comments.. 
>
> 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: GWT - So terribly slow that makes development hard ... very hard ... extremely hard ...

2013-04-20 Thread Patrick Tucker
Do you increase the number of workers when you compile?

The arg is localWorkers.  I specify 6, 1 for each permutation, that along with 
a memory spec of 1 gig and my compiles finish in just over a minute.

-- 
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: IE10 support in Gwt

2013-04-17 Thread Patrick Tucker
There are a couple module config files that need to be updated, and at 
least 1 java file.
 
DOM.gwt.xml
UserAgent.gwt.xml
UserAgentPropertyGenerator.java
 
I also would recommend looking at DOMImplIE9.java and any parent classes to 
see what needs to be modified.
 
I must be missing something because I am still getting the promt: ... 
user.agent value (ie9) does not match the runtime user.agent value (ie10) 
...
 

On Tuesday, January 15, 2013 3:24:42 PM UTC-5, Erik Sapir wrote:

>  
> Could you tell me what are the steps required to make it work?
> I might have to modify the GWT code locally to make it compile to IE10
>

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




NumberFormat output wrong?

2013-04-15 Thread Patrick Tucker
Today I noticed that the output of my NumberFormat (GWT 2.5.0) is not what 
I thought it had been set to.  So I played with it a little and found the 
output to be inconsistent.
 
The formats:

1: NumberFormat.getFormat("#,###.##")
2: NumberFormat.getFormat("#,###.00")
3: NumberFormat.getFormat("#,##0.00")

 
The output is as follows:

1: 3.57, 0.98, 0.6
2: 3.57, .98, .60
3: 3.57, 0.98, 0.60

 The NumberFormat class doc states the following:

0 Number Yes Digit 
# Number Yes Digit, zero shows as absent 

According to the doc comments, show above, I was expect the following 
output for each format:

1: 3.57, .98, .6
2: 3.57, .98, .60
3: 3.57, 0.98, 0.60

 
 What going on here?  The output for 1 should not have the leading 0, just 
like the 2nd format.
 
Thanks,
Pat

-- 
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: Complex JSON and overlay types

2013-04-03 Thread Patrick Tucker
Do you have the freedom to change the JSON? to something like the following:
 
{"records":[{"name":"Cedric","array":["50","H","US"]},{"name":"Jean", ... 
}]}

On Tuesday, April 2, 2013 10:24:46 AM UTC-4, sebastie...@isen-lille.fr 
wrote:

>  
> Yes, it works. But the problem is that I don't know John. It can be 
> anything else. For example the JSON can be: *{"records": [{"names": 
> {"Cedric": ["50", "H", "US"], "Jean": ["50", "H", "US"]}, "style": "TR"}]} 
> *or {"records": *[{"names": {"Blabla": ["50", "H", "US"]}, "style": 
> "TR"}]}. *
>

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




Complex JSON and overlay types

2013-03-30 Thread Patrick Tucker
It looks like your array is defined at: records[0].names.John

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




"Complex" JSON Overlay

2013-03-30 Thread Patrick Tucker
Names is defined as an object not an array.

-- 
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 2.5, Developer Mode, and _FieldSerializer errors

2013-03-05 Thread Patrick Tucker
I see similar exceptions just before getting an out of memory exception. 
 Have you tried giving it more memory?

On Monday, March 4, 2013 11:55:51 PM UTC-5, Neil Buesing wrote:
>
> I have upgraded to GWT 2.5 and get this error in development mode
>
> Caused by: java.lang.Error: Unresolved compilation problem: 
> com.xxx.gwt.client.type.BaseId_FieldSerializer cannot be resolved to a type
>
> I do not get it with compiled code nor did I get these with GWT 2.4 
> (unless it was due to a real error, but then GWT compile (non dev mode 
> would fail as well).
>
> I was able to get it to work for a while, and part of the application 
> works, but when it gets to this code, it fails
>
> BaseId does implement Serializable and has a no-arg constructor.
>
> Is there any known issues with GWT 2.5 and dev mode and/or any suggestions 
> on where to look to try to figure this out? I delete the gwt-unitCache 
> directories; no changes.
>
> 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: Using Tomcat Websockets with GWT

2013-03-03 Thread Patrick Tucker
You should try using GWT.getHostPageBaseUrl() next time.  It might save you the 
headache of troubleshooting.  Its in the client version, not the shared.

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




Why doesn't this (AbsolutePanel inside a ScrollPanel) work?

2013-03-02 Thread Patrick Tucker
Try absolutePanel.getElement().getStyle().setOverflow(Overflow.AUTO) and get 
rid of the ScrollPanel.  It by default sets overflow to hidden, but it may work.

-- 
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 2.5 dev mode unable to refresh

2013-02-26 Thread Patrick Tucker
I normally see that right before an out of memory error happens.  I just 
stop and start the environment and continue on...

On Tuesday, November 13, 2012 6:52:03 PM UTC-5, Ben St. Pierre wrote:

> Hi guys,
>
> After upgrading to to GWT 2.5 I am unable to refresh my dev mode.  It 
> initially loads fine but reloading (in any browser causes the rpc mechanism 
> to throw this error...
>
> Caused by: com.google.gwt.user.client.rpc.SerializationException: 
> java.lang.RuntimeException: Unable to find class 
> com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer
>
> Any idea what would cause this?  As I said again it loads the first time 
> in dev mode but then fails after a refresh (even with no code changes).
>

-- 
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: How to invoke Java String methods from JSNI code

2013-02-15 Thread Patrick Tucker
Does str < "test" not get the result you want?

On Friday, February 15, 2013 5:53:58 AM UTC-5, alucard wrote:
>
> This does not work:
>
> private static native int test(String str) /*-{
>return s...@java.lang.String::compareTo(Ljava/lang/String;)("test");
> }-*/;
>
> It dies with the following exception:
>
> com.google.gwt.core.client.JavaScriptException: (Error) 
> @test.client.Test::test(Ljava/lang/String;)([string: 'hello']): Error 
> calling method on NPObject.
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
> at 
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
> at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
>
> Is it possible (if yes please write how) to invoke String methods from 
> JSNI?
>
> Thanks for the help.
>
>

-- 
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: KeyCodes not containing KEY_SPACE?

2013-02-10 Thread Patrick Tucker
This bothers me every now and then too.  I do not believe it is in any 
other class.
 
We have to add event handling for the space key all the time because users 
expect space to trigger events the same way the enter key does.  This is 
understandable because browsers, by default, trigger action for certain 
elements when the space bar is hit...

On Sunday, February 10, 2013 5:30:48 AM UTC-5, membersound wrote:
>
> Hi,
>
> maybe I'm missing something, but is there any 
> reasoncom.google.gwt.event.dom.client.KeyCodesdoes not contain KEY_SPACE 
> = 32?
> Is this contained in a different class? Or omitted for any reason?
>

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




  1   2   3   4   >