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.


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.


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.


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.




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.




Re: How to download a file from server without browser opening new window?

2013-02-07 Thread Patrick Tucker
You realize you are telling it to open in a new, "_blank", window?  If you 
tell it to open in "_self" you won't see the extra window open.  This 
brings on another issue though, if the browser decides the file can be 
opened internally, your user will end up losing their current 
state, assuming the app is not setup to reload correctly.

On Friday, February 1, 2013 10:57:06 AM UTC-5, membersound wrote:

> Hi,
>
> I created a servlet that provides a downloadable file (from String 
> content) by writing to the ServletOutputStream.
> On the client side, I trigger the file download by an Anchor with:
>
> Window.open(GWT.getModuleBaseURL() + "MyServlet", "_blank", "");
>
> It works fine, BUT it seems to open a new browser window, which is somehow 
> directly closed. After this the file download dialog is show.
> How can I prevent this flickering of a new browser window? Can't I achieve 
> this somehow inline?
>

-- 
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: Enabled disabled GWT ValueListBox

2013-01-20 Thread Patrick Tucker
http://code.google.com/p/google-web-toolkit/issues/detail?id=6112
 
Star the issue so you can get notified when the capability is added.

On Saturday, January 19, 2013 12:51:43 PM UTC-5, Luis Costa wrote:

> Hi all,
> I'm using GWT 2.5 and I'm wondering if there's an easy way to enabled / 
> disabled ValueListBox, after a careful look:
>
> DateBox, TextBox implements com.google.gwt.user.client.ui.HasEnabled but 
> in other hand ValueListBox dosent
> I could extend com.google.gwt.user.client.ui.ValueListBox and implement 
> com.google.gwt.user.client.ui.HasEnabled doing:
>
> @Override
> public void setReadOnly(boolean readOnly) {
> DOM.setElementPropertyBoolean(getElement(), "disabled", readOnly);
> }
>
> @Override
> public boolean isReadOnly() {
> return DOM.getElementPropertyBoolean(getElement(), "disabled");
> }
>
> But is there realy necessary?
> Is  there a easy and logic way of doing this (disabled enabled)?
>
> Many thanks,
> Luis.
>

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



Re: addClickHandler vs addClickListener

2012-12-19 Thread Patrick Tucker
That would be nice...
 
On Tuesday, December 18, 2012 4:02:55 PM UTC-5, Jens wrote:

> addClickListener is deprecated and will probably be removed soon.
>

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



Issue with HeaderPanel content height in Safari and Chrome

2012-11-26 Thread Patrick Tucker
I have a layout that uses HeaderPanel that is having trouble in Safari and 
Chrome on Windows 7.
 
I traced the problem to the footer content widget having a min-height value 
of 20px.  If I remove this value the calculations work as expected.  If you 
look in ResizeLayoutPanel.ImplStandard you can see that minHeight gets 
added in the init function for non IE browsers and the comment indicates 
that the style is added for proper scrollbar functionality.
 
Basically what is happeing is the browser is rendering the content widget 
smaller than it should because of this 20px minimum.  In IE the 
implementation does not have the 20 pixel minimum.
 
I can remove the 20px and the calculations work fine.  If I manually add 
the 20px min height in IE 9's dev tools, the layout seems to mimic the 
Safari/Chrome problem.  The other option, that I can think of, would be to 
grab the hieght of the headerpanel itself and subtract the header height 
and footer height.  This seems like a bad idea...
 
Does HeaderPanel even need to use ResizeLayoutPanel because Footers don't 
normally scroll themselves?
 
Is there a better way to trick these browsers into scrolling properly so 
that my layout doesn't get messed up?
 
Any thoughts on what I should do?
 
Thanks,
Pat

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



Re: enable/disable widgets?

2012-11-26 Thread Patrick Tucker
You really should take a look at the "Known Implementing Classes":
http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/client/ui/HasEnabled.html

On Thursday, June 24, 2010 1:08:51 AM UTC-4, Magnus wrote:

> Hello, 
>
> I actually needed the functionality in the widget class to let my own 
> "Form" class enable/disable all its child widgets at the same time. 
>
> However, I made this workaround and it's ok for me at the moment: 
>
>  public void setEnabled (boolean e) 
>  { 
>   Iterator itr = grd.iterator (); // grd is a FlexTable which 
> contains my form controls 
>
>   while (itr.hasNext ()) 
>   { 
>Widget w = itr.next (); 
>
>if (w instanceof TextBox) 
>{ 
> TextBox t = (TextBox) w; 
> t.setEnabled (e); 
>} 
>
>if (w instanceof PasswordTextBox) 
>{ 
> PasswordTextBox t = (PasswordTextBox) w; 
> t.setEnabled (e); 
>} 
>
>   ... 
>   } 
>  }

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



why no getTabBar() in TabLayoutPanel?

2012-11-01 Thread Patrick Tucker
Have you tried providing your own widget instead of text in the tab and make it 
capable of being disabled?

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



Re: Issue with TabLayoutPanel in 2.5.0 RC1 & RC2

2012-10-17 Thread Patrick Tucker
I may be one the wrong track here, but why are you providing  "tabPanel_"?
 
The error is because the the tab does not exist.  I did not try to run your 
code but maybe providing the TabLayoutPanel is the root of the problem.  If 
you aren't doing anything special to an Object, there is no need to provide 
the Object.
 
If you add the "-gen foldername" option to the compiler you can look at the 
compiled java code and see what the actual problem is.

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



Re: CellTree: Changing the default "no data" message for empty nodes

2012-10-02 Thread Patrick Tucker
It appears that there is not.
 
Pretty disappointing, I was hoping to use CellTree in my new project... 
thought in my case I do not want the message at all, which is also not 
possible.

On Tuesday, March 8, 2011 3:27:36 PM UTC-5, aarnott wrote:

> Is there a way with the CellTree to change the default "no data" 
> message when a tree node is empty? 
>
> Maybe I'm taking the wrong approach, but I am using an RPC to load the 
> children of a particular node once it is opened and when the loading 
> is happening, the node shows the "no data" message. I'd prefer to 
> change the message to something like "Loading..." :-). Otherwise, I 
> can always add a child cell that has the loading message and then 
> remove it when the real children are loaded, but that seems clunky. 
>
> --Andrew

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



Re: Disclosure panel open/close events fire before the widget is actually opened or closed

2012-09-19 Thread Patrick Tucker
Looks like fireEvents() should be moved to the animation's onComplete().  
Have you checked the issue tracker for a similar report?  It might be worth 
filing one if there is not already an issure for this.
 
No that this is a good solution, but have you tried using a DeferredCommand?

On Wednesday, September 19, 2012 4:18:30 AM UTC-4, Rasha ElSayed wrote:

> Hi all, 
>
> I am using Disclosure panel in my project and on open/close, I do some 
> layout calculations in which I need the height of the panel.
>
> My code is something like this
>  disclosurePanel.addOpenHandler(new OpenHandler() {
> @Override
> public void onOpen(OpenEvent arg0) {
>adjustPageLayout(pageLayout);
> }
>   });
>
> The problem is that the open event is fired before the disclosure panel is 
> actually opened, which means that the height of the panel is still as if it 
> is closed (Header-only height). This gives me wrong numbers when I 
> call adjustPageLayout
>
> Any idea how to deal with this?
>
> Best regards,
> Rasha 
>

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



Re: change DateBox default time

2012-09-07 Thread Patrick Tucker
They chose to set it to noon because certain timezones do not have a 0 at 
day light savings time.  If you set the time to 0 on one of 
these date/timezone combinations, if I understood correctly, the date will 
roll back and not forward.  Causing the date to be set to the previous day 
instead of the correct day.
 
I'm not sure I agree with the solution but it is probably the simplest 
solution with the least amount of overhead.  It is what it is...
 
I don't recall where this was recorded, but if you do some digging there 
are issues or threads out there with more information.  Also, the problem 
has been recorded in the issue tracker: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4785

On Friday, September 7, 2012 9:33:08 AM UTC-4, Andrei wrote:

> Jens,
>
> You were right about DatePicker setting dates to noon. I created an issue:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=7650
>
> It's a minor problem, of course, since you can always do
>
> Long date = datePicker.getValue().getTime(); 
> return new Date(date - date % (24 * 60 * 60 * 1000));
>
> to set any date object to midnight. Still, it was a headache as I was 
> implementing time zone management in my app. Thank you for pointing this 
> issue.
>
> Andrei
>

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



[gwt-2.5-rc1] Cannot reference a field before it is defined

2012-07-22 Thread Patrick Tucker
Code sample?

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



Question on Best Startegy to make a table where first row and first column has fixed size cell and then all the other inner cells can have variaty of cell sizes

2012-07-15 Thread Patrick Tucker
The colorful cells will have to be spans or something with similar properties.

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



Re: DateBox doesn't update "today" when the day changes?

2012-07-10 Thread Patrick Tucker
I believe the only way to do it now is to create a new DatePicker.

On Tuesday, July 10, 2012 4:05:10 AM UTC-4, Ashley Collins wrote:

> I have a long lived application which uses a date picker and the 
> highlighted cell representing "today" does not update overnight (css style  
> datePickerDayIsToday).
>
> Is there way of kicking it to update? Or should it happen naturally?
>
> Any ideas welcome.
>
> Thanks.
> Ashley
>

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



Re: Disabling selection in CellTable/DataGrid

2012-06-21 Thread Patrick Tucker
Did you not get what you wanted from the noselectionmodel?

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



Re: Set title on specific dates in DatePicker

2012-05-12 Thread Patrick Tucker
http://gwt-code-reviews.appspot.com/1702804/

On Thursday, May 10, 2012 11:08:29 PM UTC-4, Brandon Donnelson wrote:

> Your awesome Patrick!!!
>
>  http://code.google.com/p/google-web-toolkit/issues/detail?id=7367 hows 
> this work. 
>
> Brandon
>
>>

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



  1   2   3   >