Re: tabular layout with UIBinder?

2013-07-13 Thread Thomas Broyer


On Saturday, July 13, 2013 11:44:16 PM UTC+2, Magnus wrote:
>
> Hi Thomas!
>
> Am Samstag, 13. Juli 2013 16:17:54 UTC+2 schrieb Thomas Broyer:
>>
>> But in your case, why not simply go with a  (or even s with a 
>> bunch of CSS)?
>> You might also want to replace your VerticalPanels with just s, 
>> s if you absolutely needs widgets, or just nothing (depending on 
>> context), and Labels with s or s, or even better s or 
>> just nothing.
>>
>
> Can you give me a minimal example?
>


 
  
  
  
  Einladender
  
  
  
  Eingeladener
  
  
  

  
  
  Nachricht
  
  
  
  
 

 

> (BTW, why did you enclose your Grid into an HTMLPanel?)
>>
>
> I am still new to UIBinder. I just created a new UIBinder and the 
> enclosing HTMLPanel came automatically.
>
> Maybe I am missing a UIBinder documentation...?
>

UiBinder instances are factories that generate a UI structure and glue it 
> to an owning Java class. The UiBinder interface declares two 
> parameter types:
>
>- U is the type of root element declared in the ui.xml file, returned 
>by thecreateAndBindUi call
>- O is the owner type whose @UiFields are to be filled in.
>
> Source: http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html

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




push data from server to clients

2013-07-13 Thread Gal Lavie
hello
I want when first client do action on data base (update ,delete or add) the 
server updating client b
I want that my server can push data to clients how I can do this?
I hope you understand me
thank you

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




Re: tabular layout with UIBinder?

2013-07-13 Thread Magnus
Hi Thomas!

Am Samstag, 13. Juli 2013 16:17:54 UTC+2 schrieb Thomas Broyer:
>
> But in your case, why not simply go with a  (or even s with a 
> bunch of CSS)?
> You might also want to replace your VerticalPanels with just s, 
> s if you absolutely needs widgets, or just nothing (depending on 
> context), and Labels with s or s, or even better s or 
> just nothing.
>

Can you give me a minimal example?

(BTW, why did you enclose your Grid into an HTMLPanel?)
>

I am still new to UIBinder. I just created a new UIBinder and the enclosing 
HTMLPanel came automatically.

Maybe I am missing a UIBinder documentation...?

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: StyleInjector issues in IE

2013-07-13 Thread Steve C
Added this to issue tracker as #8261


-- 
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: tabular layout with UIBinder?

2013-07-13 Thread Thomas Broyer
The Grid widget doesn't support colspans or rowspans. FlexTable does though.
But in your case, why not simply go with a  (or even s with a 
bunch of CSS)?
You might also want to replace your VerticalPanels with just s, 
s if you absolutely needs widgets, or just nothing (depending on 
context), and Labels with s or s, or even better s or 
just nothing.

(BTW, why did you enclose your Grid into an HTMLPanel?)

On Saturday, July 13, 2013 3:19:45 PM UTC+2, Magnus wrote:
>
> Hi,
>
> I want to use a tabular layout using UIBinder. 
>
> It should look contain two rows, the first one with two columns containing 
> dropdown lists, and the second one containing a textfield that spans the 
> two columns of the first row (colspan=2):
>
> [dropdownlist] [dropdownlist]
>
> [ textfield ]
>
> I tried to do it with a Grid and I added "colspan=2" manually to the 
> CustomCell tag, but without any effect (see code below).
> I also tried to use FlexTable, but GWT Designer does not let me put 
> widgets in the FlexTable.
> (For now I just use the designer's user interface to build layouts. For 
> writing UIBinder XML by hand I do not know a suitable documentation that 
> describes the tags and attributes you may use.)
>
> Tipps are welcome!
>
> Magnus
>
> -
>
> 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.




tabular layout with UIBinder?

2013-07-13 Thread Magnus
Hi,

I want to use a tabular layout using UIBinder. 

It should look contain two rows, the first one with two columns containing 
dropdown lists, and the second one containing a textfield that spans the 
two columns of the first row (colspan=2):

[dropdownlist] [dropdownlist]

[ textfield ]

I tried to do it with a Grid and I added "colspan=2" manually to the 
CustomCell tag, but without any effect (see code below).
I also tried to use FlexTable, but GWT Designer does not let me put widgets 
in the FlexTable.
(For now I just use the designer's user interface to build layouts. For 
writing UIBinder XML by hand I do not know a suitable documentation that 
describes the tags and attributes you may use.)

Tipps are welcome!

Magnus

-

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

 
  
 
 
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  
  
  
  
 
 

-- 
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 defer a method call until the return of an async server call?

2013-07-13 Thread Magnus
Hi,

thanks to all.
Yes, using the onSuccess method is the way to go. But it requires 
additional member variables and - if there were more such cases - this 
could get a little bit ugly.
But it's ok for now.

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: DataGrid on a hidden tab

2013-07-13 Thread Kartik Suba
Hey i think wat u can do is that have a another layer of panel and add the 
datagrid in that panel when the data comes. But add this new panel only 
when the tab is selected using the handler. 

what i mean to say is : I use the same thing that i have three tabs and the 
data for all the three tabs come when the first tab gets opened. So i have 
kept three panels in a class for each tab. I populate the data in all the 
datagrids and add these data grid in the respective panels. thats it. n it 
works..

On Monday, 15 August 2011 04:02:38 UTC+5:30, P.G.Taboada wrote:
>
> Hi, 
>
> I am using a DataGrid on a TabLayouPanel. As long as the the DataGrid 
> is on the viewable tab it gets rendered. As soon as it is on the 
> hidden tab it does not. 
>
> What am I doing wrong? 
>
> brgds, 
>
> Papick

-- 
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 classes aren't extensible

2013-07-13 Thread Thomas Broyer


On Saturday, July 13, 2013 1:31:37 AM UTC+2, Ed wrote:
>
> > that way you just apply your patches back when you decide to upgrade GWT
> Easy now with Git, but no so easy with SVN before ;)
>

git-svn? ;-)

But it's easy to keep *.patch files around adnre -apply them on a clean 
checkout.
That's how I worked on several fixes back in the days of SVN and Rietveld, 
before I switched to git-svn.

-- 
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: Very strange deserialization problem only in dev mode

2013-07-13 Thread Craig Mitchell
Little more information on this.  The problem occurs when the page returns 
and the url is different than it was when it left.  Eg: It has some params. 
 Note, that is still has the gwt.codesvr param.

Also, the RPC call makes it to the server, it just doesn't make it back. 
 It falls into the onFailure.

This means we can actually work around the problem by grabbing all the url 
params we need, doing the RPC, and then adding a check in the onFailure to 
the redirect to the original url without the params.

Eg:
@Override
public void onFailure(Throwable caught) {
  // Only when using the GWT plugin
  if (GWT.isProdMode() == false) {
Window.Location.replace("");
  }
}

GWT bug bypassed!  :-)


On Wednesday, 10 July 2013 17:28:43 UTC+10, Craig Mitchell wrote:
>
> I'm also getting this problem.  Only in dev mode, and only when the page 
> is returning from an external page.
>
> On our situation, we are doing OAuth.  So we redirect to an external site 
> to login, then when the external site returns, the first RPC call throws 
> a IncompatibleRemoteServiceException.
>
> The only way to get it working again, is to restart the GWT server. 
>  Refreshing, or closing and opening the browser, does not fix it.
>
> GWT 2.5.1, Eclipse, Java 1.7.
>
>
> On Sunday, January 20, 2013 1:57:14 AM UTC+11, Wayne Rasmuss wrote:
>>
>> I have an application that gives me the following error only in dev mode 
>> and only when I go directly to the place that makes this server call. When 
>> the application is compiled or if I navigate to the place that makes the 
>> call trough other places, everything works fine. I thought it might be 
>> timing issues with getting the app loaded. So, I put a Thread.sleep(1) 
>> in the service impl before I return data. It made no difference. Same 
>> behavior in all cases. Any thoughts?
>>
>>
>> WARNING: Fetch supplies failed: whatsnext.clientonly.EventSource@39cc1709
>> com.google.gwt.core.client.impl.SerializableThrowable$ThrowableWithClassName:
>>  
>> The response could not be deserialized
>> at 
>> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:221)
>> at 
>> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
>> at 
>> com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>> at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>> at 
>> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
>> at 
>> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
>> at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
>> at 
>> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
>> at 
>> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
>> at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>> at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>> at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>> at 
>> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>> at java.lang.Thread.run(Thread.java:662)
>> Caused by: 
>> com.google.gwt.core.client.impl.SerializableThrowable$ThrowableWithClassName:
>>  
>> java.lang.RuntimeException: Unable to find class 
>> com.google.gwt.user.client.rpc.core.java.lang.String_Array_Rank_1_FieldSerializer
>> at 
>> com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:164)
>> at 
>> com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114)
>> at 
>> com.google.gwt.user.client.rpc.impl.ClientSerializationSt

Re: How to avoid unnecessary divs when using UiBinder with a panel, example, HTMLPanel?

2013-07-13 Thread Ed
Design your widgets well.

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