Re: synchronization problem with rpc calls

2013-11-12 Thread Paul Robinson
In the callback for the click on the hyperlink, disable the hyperlink so it
can't be clicked twice. In your RPC callback, you can enable it again in
the onFailure method. Presumably it should stay disabled in your onSuccess
method.

That will stop people from asking for two games with a double click, but
won't stop separate people from asking for the same game at the same time.
If that's also possible then you still need some server code to make sure
only one game can be created for an invitation.

If you are storing invitations in a database then you can use the database
to track whether an invitation has been used yet. Just make sure you use
transactions with the database so you perform atomic operations.

HTH
Paul

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


synchronization problem with rpc calls

2013-11-12 Thread Magnus
Hi,

my chess application allows users to create game invitations to other 
users. To accept such an invitation, the invited user has to click on a 
hyperlink/anchor called "Accept". This will trigger a RPC call to the 
server, and the server will create a new game based on the invitation.

However, sometimes two games are created for the same invitation, with 
nearly the same starting time. The starting times differ in less than a 
second.

My assumption is the following: The invited user made a double click on the 
hyperlink, which caused the browser to generate two rpc calls. Is this 
possible? I would have expected that a browser will not generate a second 
HTTP request while another one is pending? Would you agree that this the 
explanation for the problem?

If so, then there is a piece of code on the server that gets executed in 
different threads, i. e. in parallel, potentially. So we need a kind of 
semaphore, to detect if we are actually creating a game for an invitation, 
where another game is already created in another thread.

What would be a good, elegant approach to do that? In theory we need some 
atomic test-and-set method. In single-threaded code we used a static 
variable. But how do we do this in muti-threaded GWT/RPC-code?

Thanks
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: Best practice for injecting environment-specific settings

2013-11-12 Thread Jens


> And unfortunately we don't have the ability to change this because a 
> customer is loading our script.
>

Then you don't have a host page under your control anyways or am I wrong?
 

>  Other thoughts?
>

You could "misuse" GWT's I18N Constants interface. It basically maps a 
typically Java properties file to an interface. Then you only have to tell 
your build tool to either rewrite the properties file based on the 
environment (e.g. maven/gradle/ant resource filtering) or you just use a 
small script that copies services_dev.properties -> services.properties 
prior GWT compilation.

http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/Constants.html

-- 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: Best practice for injecting environment-specific settings

2013-11-12 Thread Geoffrey Arnold
Thanks Thomas.  `Dictionary` is almost exactly what we need, however our
GWT JavaScript is being loaded in an anonymous function so the variables
aren't being set at `Window` scope.  And unfortunately we don't have the
ability to change this because a customer is loading our script.  Other
thoughts?


On Tue, Nov 12, 2013 at 3:45 AM, Thomas Broyer  wrote:

> Use a "dynamic host page":
> http://www.gwtproject.org/articles/dynamic_host_page.html
>
> On Monday, November 11, 2013 7:47:22 PM UTC+1, geoffre...@gmail.com wrote:
>>
>> Hello,
>>
>> What is the best practice for injecting/configuring environment-specific
>> settings inside GWT-generated JavaScript?  For example, we have a series of
>> JSONP services hosted across a series of servers, and the hostnames/ports
>> of those servers are different across our development/test/production
>> environments.  My guess is `DataResource` is the preferred method, however
>> adding another round-trip to the server seems like a bit of overkill.  Is
>> there another way?
>>
>> Thanks in advance,
>> Geoff.
>>
>  --
> 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.
>

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

2013-11-12 Thread Thomas Broyer
see https://code.google.com/p/google-web-toolkit/issues/detail?id=6144

On Tuesday, November 12, 2013 8:03:06 PM UTC+1, Sergio Antonio Ochoa 
Martinez wrote:
>
> Hola me podrian ayudar en como puedo modificar los estilos de Datagrid.
> Encontre una forma que es esta
>
> public interface DataGridResources extends DataGrid.Resources {
> @Source(value = { DataGrid.Style.DEFAULT_CSS, 
> "com/openkm/frontend/public/dataGrid.css" })
> DataGrid.Style dataGridStyle();
> }
>
> pero aparte de esta puedo hacerlo de otra forma.
>
> por ejemplo como se cambia los estilos de un splitPanel 
>
> /* splitter layout*/
> .gwt-SplitLayoutPanel-HDragger {
> background-image: url(img/separator_points.gif);
> background-repeat: no-repeat;
> background-position: 50% 50%;
> cursor: col-resize;
> font-family: "Small Fonts";
> font-size: 4px;
> background-color: #E5E5E1;
> horizontal-align: 50%;
> border: 0px; 
> width: 10px;
> }
>
> solo modifico esto y lo añado a mi estilo que esta añadido a todo mi 
> proyecto.
>
> Saludos espero se entienda
>
>
>

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

2013-11-12 Thread Sergio Antonio Ochoa Martinez
Hola me podrian ayudar en como puedo modificar los estilos de Datagrid.
Encontre una forma que es esta

public interface DataGridResources extends DataGrid.Resources {
@Source(value = { DataGrid.Style.DEFAULT_CSS, 
"com/openkm/frontend/public/dataGrid.css" })
DataGrid.Style dataGridStyle();
}

pero aparte de esta puedo hacerlo de otra forma.

por ejemplo como se cambia los estilos de un splitPanel 

/* splitter layout*/
.gwt-SplitLayoutPanel-HDragger {
background-image: url(img/separator_points.gif);
background-repeat: no-repeat;
background-position: 50% 50%;
cursor: col-resize;
font-family: "Small Fonts";
font-size: 4px;
background-color: #E5E5E1;
horizontal-align: 50%;
border: 0px; 
width: 10px;
}

solo modifico esto y lo añado a mi estilo que esta añadido a todo mi 
proyecto.

Saludos espero se entienda


-- 
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-rawhistory on github

2013-11-12 Thread Andy
I should have mentioned that the example I showed above was for Safari. 
Firefox does something different:

A link for:

fun/(&)(&)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85

becomes:

Safari/Chrome: fun/(&)(&)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅
Firefox: fun/(&)(&)(&)(%26)/(#)/(+)(+)( )(%2B)(%20)/禅

So if you use GWT Anchors or generate links server-side, the value of 
History.getToken() depends on the browser.

-Andy

On Tuesday, November 12, 2013 8:10:31 AM UTC-5, Andy wrote:
>
> No, I haven't. Thanks for the link!
>
> From a quick glance at the code, it's use of location.hash and 
> encode/decode will likely still cause issues for us. Over the next few 
> days, I'll try to create a version of my demo that uses the new code.
>
> It could be that my expectations are wrong, but I spent a long time back 
> in June 2010 trying to work around the issues we encountered. The example I 
> posted gives you a good idea of the challenge.
>
> A link for:
>
> fun/(&)(&)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85
>
> becomes:
>
> fun/(&)(&)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅
>
> %25 %23 %20 and the utf8 char are decoded, but + %26 and %2B are not.
>
> I'm admittedly not an expert in proper hash encode/decode, but the above 
> result seems wrong. I suspect it's something subtle in the combination of 
> HTML decode of the href= attribute and URL decode of that value.
>
> -Andy
>
> On Tuesday, November 12, 2013 4:38:25 AM UTC-5, Thomas Broyer wrote:
>>
>> Have you seen https://gwt-review.googlesource.com/5356 ?
>>
>> On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:
>>>
>>> For a while I've been planning to move our gwt-traction library over to 
>>> github. Over the weekend, I decided to start with RawHistory.
>>>
>>> RawHistory is a module that I suspect few people are using. It used to 
>>> have a note at the bottom saying that someday I'd explain exactly what it 
>>> did. As part of moving it to github, I implemented a demo.
>>>
>>> https://github.com/andykellr/gwt-rawhistory
>>>
>>> I'd appreciate any feedback, particularly if you've also run into 
>>> history token encode/decode issues.
>>>
>>> -Andy
>>>
>>> https://code.google.com/p/gwt-traction/
>>>
>>>

-- 
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: Chained ListEditors

2013-11-12 Thread almagnit
Big thanks Thomas You're absolutely right

вторник, 12 ноября 2013 г., 13:43:31 UTC+4 пользователь Thomas Broyer 
написал:
>
> From the code you sent me by mail, the problem is that you're editing B 
> with a 'null' c and then call listEditor.setValue(newList) as an attempt to 
> assign B.c. This won't work.
> You have to assign a non-empty list to B.c *before* you edit it (i.e. 
> just after the context.create(B.class), before you hand the B proxy to the 
> list for editing).
> This is because the list passed to ListEditor#setValue is modified 
> in-place, it's never assigned to the edited field. This is the same for all 
> editors with the exception of LeafValueEditors.
>
> On Monday, November 11, 2013 10:50:24 AM UTC+1, almagnit wrote:
>>
>> Flush results: http://pastebin.com/En8Ughnj
>> Is obtained that the object B was added to the object A, and object C 
>> still remains in the array editedProxies
>>
>> понедельник, 11 ноября 2013 г., 3:47:05 UTC+4 пользователь almagnit 
>> написал:
>>>
>>> I have multiple entities with a one-to-many relations, such as:
>>> A { List b; }
>>>
>>> B { List c; }
>>>
>>> C { some fields }
>>>
>>> I'm trying to edit these entities by the editors
>>> AEditor extends Editor {
>>>  BListEditor b...
>>> }
>>>
>>> BListEditor implements IsEditor>> BListEditor.BItemEditor>>{
>>>   BItemEditor implements Editor{
>>> CListEditor c...
>>>   }
>>> }
>>>
>>> CListEditor implements IsEditor>> CListEditor.CItemEditor>>{
>>>   CItemEditor implements Editor{}
>>> }
>>>
>>> In the UI it looks like:
>>> A - Container with fields and list of items B(list of grids)
>>> B - Container with combobox and grid - C
>>> C - editable grid
>>>
>>> So when I try to edit an already saved data it works fine.
>>> But if I dynamically create B and C, then while saving list B.c == null
>>>
>>> *Why RF doesn't send list of CListEditor?*
>>>
>>

-- 
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-rawhistory on github

2013-11-12 Thread Andy
That's a great reference. It doesn't really explain what I'm seeing, but 
it's well written.

On Tuesday, November 12, 2013 8:18:10 AM UTC-5, Juan Pablo Gardella wrote:
>
> FYI URL encoding: 
> http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-
> url-encoding
>
>
> 2013/11/12 Andy >
>
>> No, I haven't. Thanks for the link!
>>
>> From a quick glance at the code, it's use of location.hash and 
>> encode/decode will likely still cause issues for us. Over the next few 
>> days, I'll try to create a version of my demo that uses the new code.
>>
>> It could be that my expectations are wrong, but I spent a long time back 
>> in June 2010 trying to work around the issues we encountered. The example I 
>> posted gives you a good idea of the challenge.
>>
>> A link for:
>>
>> fun/(&)(&)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85
>>
>> becomes:
>>
>> fun/(&)(&)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅
>>
>> %25 %23 %20 and the utf8 char are decoded, but + %26 and %2B are not.
>>
>> I'm admittedly not an expert in proper hash encode/decode, but the above 
>> result seems wrong. I suspect it's something subtle in the combination of 
>> HTML decode of the href= attribute and URL decode of that value.
>>
>> -Andy
>>
>>
>> On Tuesday, November 12, 2013 4:38:25 AM UTC-5, Thomas Broyer wrote:
>>>
>>> Have you seen https://gwt-review.googlesource.com/5356 ?
>>>
>>> On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:

 For a while I've been planning to move our gwt-traction library over to 
 github. Over the weekend, I decided to start with RawHistory.

 RawHistory is a module that I suspect few people are using. It used to 
 have a note at the bottom saying that someday I'd explain exactly what it 
 did. As part of moving it to github, I implemented a demo.

 https://github.com/andykellr/gwt-rawhistory

 I'd appreciate any feedback, particularly if you've also run into 
 history token encode/decode issues.

 -Andy

 https://code.google.com/p/gwt-traction/

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


Re: gwt-rawhistory on github

2013-11-12 Thread Juan Pablo Gardella
FYI URL encoding:
http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-
url-encoding


2013/11/12 Andy 

> No, I haven't. Thanks for the link!
>
> From a quick glance at the code, it's use of location.hash and
> encode/decode will likely still cause issues for us. Over the next few
> days, I'll try to create a version of my demo that uses the new code.
>
> It could be that my expectations are wrong, but I spent a long time back
> in June 2010 trying to work around the issues we encountered. The example I
> posted gives you a good idea of the challenge.
>
> A link for:
>
> fun/(&)(&)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85
>
> becomes:
>
> fun/(&)(&)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅
>
> %25 %23 %20 and the utf8 char are decoded, but + %26 and %2B are not.
>
> I'm admittedly not an expert in proper hash encode/decode, but the above
> result seems wrong. I suspect it's something subtle in the combination of
> HTML decode of the href= attribute and URL decode of that value.
>
> -Andy
>
>
> On Tuesday, November 12, 2013 4:38:25 AM UTC-5, Thomas Broyer wrote:
>>
>> Have you seen https://gwt-review.googlesource.com/5356 ?
>>
>> On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:
>>>
>>> For a while I've been planning to move our gwt-traction library over to
>>> github. Over the weekend, I decided to start with RawHistory.
>>>
>>> RawHistory is a module that I suspect few people are using. It used to
>>> have a note at the bottom saying that someday I'd explain exactly what it
>>> did. As part of moving it to github, I implemented a demo.
>>>
>>> https://github.com/andykellr/gwt-rawhistory
>>>
>>> I'd appreciate any feedback, particularly if you've also run into
>>> history token encode/decode issues.
>>>
>>> -Andy
>>>
>>> https://code.google.com/p/gwt-traction/
>>>
>>>  --
> 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.
>

-- 
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-rawhistory on github

2013-11-12 Thread Andy
No, I haven't. Thanks for the link!

>From a quick glance at the code, it's use of location.hash and 
encode/decode will likely still cause issues for us. Over the next few 
days, I'll try to create a version of my demo that uses the new code.

It could be that my expectations are wrong, but I spent a long time back in 
June 2010 trying to work around the issues we encountered. The example I 
posted gives you a good idea of the challenge.

A link for:

fun/(&)(&)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85

becomes:

fun/(&)(&)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅

%25 %23 %20 and the utf8 char are decoded, but + %26 and %2B are not.

I'm admittedly not an expert in proper hash encode/decode, but the above 
result seems wrong. I suspect it's something subtle in the combination of 
HTML decode of the href= attribute and URL decode of that value.

-Andy

On Tuesday, November 12, 2013 4:38:25 AM UTC-5, Thomas Broyer wrote:
>
> Have you seen https://gwt-review.googlesource.com/5356 ?
>
> On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:
>>
>> For a while I've been planning to move our gwt-traction library over to 
>> github. Over the weekend, I decided to start with RawHistory.
>>
>> RawHistory is a module that I suspect few people are using. It used to 
>> have a note at the bottom saying that someday I'd explain exactly what it 
>> did. As part of moving it to github, I implemented a demo.
>>
>> https://github.com/andykellr/gwt-rawhistory
>>
>> I'd appreciate any feedback, particularly if you've also run into history 
>> token encode/decode issues.
>>
>> -Andy
>>
>> https://code.google.com/p/gwt-traction/
>>
>>

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


Animate CellList (adding and removing objects via ListDataProvider)

2013-11-12 Thread Benjamin Tillman
Is it possible to animate a CellList when a new object is added to or 
removed from the list wrapped by a ListDataProvider? At the moment, the 
item just instantly appears, but since I'm using the CellList as a menu, 
I'd like to make it a little more obvious that a menu item is now 
available/unavailable.

Regards,
Ben.

-- 
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: Best practice for injecting environment-specific settings

2013-11-12 Thread Thomas Broyer
Use a "dynamic host page": 
http://www.gwtproject.org/articles/dynamic_host_page.html

On Monday, November 11, 2013 7:47:22 PM UTC+1, geoffre...@gmail.com wrote:
>
> Hello,
>
> What is the best practice for injecting/configuring environment-specific 
> settings inside GWT-generated JavaScript?  For example, we have a series of 
> JSONP services hosted across a series of servers, and the hostnames/ports 
> of those servers are different across our development/test/production 
> environments.  My guess is `DataResource` is the preferred method, however 
> adding another round-trip to the server seems like a bit of overkill.  Is 
> there another way?
>
> Thanks in advance,
> Geoff.
>

-- 
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: Chained ListEditors

2013-11-12 Thread Thomas Broyer
>From the code you sent me by mail, the problem is that you're editing B 
with a 'null' c and then call listEditor.setValue(newList) as an attempt to 
assign B.c. This won't work.
You have to assign a non-empty list to B.c *before* you edit it (i.e. just 
after the context.create(B.class), before you hand the B proxy to the list 
for editing).
This is because the list passed to ListEditor#setValue is modified 
in-place, it's never assigned to the edited field. This is the same for all 
editors with the exception of LeafValueEditors.

On Monday, November 11, 2013 10:50:24 AM UTC+1, almagnit wrote:
>
> Flush results: http://pastebin.com/En8Ughnj
> Is obtained that the object B was added to the object A, and object C 
> still remains in the array editedProxies
>
> понедельник, 11 ноября 2013 г., 3:47:05 UTC+4 пользователь almagnit 
> написал:
>>
>> I have multiple entities with a one-to-many relations, such as:
>> A { List b; }
>>
>> B { List c; }
>>
>> C { some fields }
>>
>> I'm trying to edit these entities by the editors
>> AEditor extends Editor {
>>  BListEditor b...
>> }
>>
>> BListEditor implements IsEditor> BListEditor.BItemEditor>>{
>>   BItemEditor implements Editor{
>> CListEditor c...
>>   }
>> }
>>
>> CListEditor implements IsEditor> CListEditor.CItemEditor>>{
>>   CItemEditor implements Editor{}
>> }
>>
>> In the UI it looks like:
>> A - Container with fields and list of items B(list of grids)
>> B - Container with combobox and grid - C
>> C - editable grid
>>
>> So when I try to edit an already saved data it works fine.
>> But if I dynamically create B and C, then while saving list B.c == null
>>
>> *Why RF doesn't send list of CListEditor?*
>>
>

-- 
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-rawhistory on github

2013-11-12 Thread Thomas Broyer
Have you seen https://gwt-review.googlesource.com/5356 ?

On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:
>
> For a while I've been planning to move our gwt-traction library over to 
> github. Over the weekend, I decided to start with RawHistory.
>
> RawHistory is a module that I suspect few people are using. It used to 
> have a note at the bottom saying that someday I'd explain exactly what it 
> did. As part of moving it to github, I implemented a demo.
>
> https://github.com/andykellr/gwt-rawhistory
>
> I'd appreciate any feedback, particularly if you've also run into history 
> token encode/decode issues.
>
> -Andy
>
> https://code.google.com/p/gwt-traction/
>
>

-- 
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: Changing css without recompiling

2013-11-12 Thread Ed
See: http://stackoverflow.com/questions/9147548/gwt-inject-css-on-runtime
And search for StyleInjector (class) in this forum.

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