Re: java.util.Date clientside incorrect timezone

2018-10-31 Thread Slava Pankov
For properly working with timezones you have to use ZonedDateTime.
It's emulated for GWT, see https://github.com/slavap/gwt-joda-java-time

On Tuesday, October 30, 2018 at 5:49:25 AM UTC-7, Edson Richter wrote:
>
> Did you find a solution?
>
>
>
> Em quinta-feira, 6 de novembro de 2014 10:18:13 UTC-2, Stepan escreveu:
>>
>> hello everyone!
>>
>> I have a strange problem with dates. when i work in dev mode all is ok, 
>> but when i work in web mode i have problems on client side. 
>>
>> i have this code on the client side(App gwt + gxt). 
>>
>> private static Logger log = Logger.getLogger("DateUtils");
>> .
>> log.log(Level.INFO, to + " " + from);
>> return (int) ((to.getTime() - from.getTime()) / MILLIS_IN_DAY);
>>
>> This code write in chrome console when i  am use two dates:
>>
>> Thu Nov 06 14:48:34 GMT+300 2014 DateUtils
>>
>> INFO: Fri Jan 09 00:00:00 GMT+400 2015 Tue Jan 06 00:00:00 GMT+300 2015 
>>
>>
>> in Russia we have transition 26 october and  now in Moscow, we have 
>> always timezone GMT +3 (in the past has been the time zone GMT +4).
>> i am apply to java tzupdater and on server side all it is ok. problem 
>> only on client side in java.util.Date
>>
>

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


Re: Plug in External Application to GWT

2018-10-31 Thread Slava Pankov
Just use iframe for hosting external app inside of the panel of your GWT 
app.

On Thursday, October 25, 2018 at 3:25:56 PM UTC-7, Vishal Mistry wrote:
>
>
>
> On Thursday, 25 October 2018 20:12:49 UTC+11, Jens wrote:
>>
>> If that external application produces a HTML page then yes, you could 
>> display this HTML page in an HTML iframe within a GWT application. 
>> Otherwise you must rebuild the UI of the external application in your GWT 
>> app and query the external application for data that you use to fill the UI 
>> of your GWT app. Querying for data can either happen directly from the GWT 
>> app using HTTP requests or indirectly by first querying a HTTP server you 
>> implement which in turn asks your external application somehow to provide 
>> the data.
>>
>> While you program in Java when using GWT, at the end you just get a 
>> JavaScript application. So in GWT you can only do what a Web Browser / 
>> Node.Js allows you to do. Or put differently: If you can't solve your issue 
>> using plain JavaScript + HTML then you can't solve it using GWT.
>>
>> -- J.
>>
>
> Thanks a lot Jens for your quick response on my post...much appreciated  
>

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


Re: StackPanel Toggle

2018-10-31 Thread Hossein
@Rogelio, Thanks for your input. Please see animated gif 
here: http://www.AppyBuilder.com/temp/stackpanel.gif
It uses StackPanel. However, Stackpanel, by default opens-up the 1st panel. 
What I like to do is to be able to toggle and expand OR collapse (e.g. User 
Interface panel). 

So, what you are saying is that I need to overwrite the default behavior?

Thanks,
-Hossein.

On Wednesday, October 31, 2018 at 2:16:14 PM UTC-4, Rogelio Flores wrote:
>
> Ok, I forgot about the StackPanel, which already does what you want, 
> except you have to click on the header of each "stacked" panel, so I assume 
> what you want is to click on the "body" of the panel (?) or add the ability 
> to open multiple panels at the same time (?). I don't think StackPanel (or 
> better, you should use StackLayoutPanel), support either of these two 
> capabilities. To create that behavior, see if you can extend and overwrite 
> the default behavior of StackPanel, otherwise, you might want to consider 
> other widget libraries such as DominoUI which already has a Collapse 
> component that supports multiple subpanels to be opened at the same time 
> for example. I don't know of any widget that supports clicking anywhere to 
> collapse/expand:
>
>
> https://dominokit.github.io/domino-ui-demo/index.html?theme=indigo#components/collapse
>
>
> On Tuesday, October 30, 2018 at 6:43:02 PM UTC-6, Hossein wrote:
>>
>> @Rogelio,
>>
>> Thanks for your response. Please see attached. How would I create that 
>> behavior myself? Any help would be appreciated.
>>
>> Thanks
>>
>> On Tuesday, October 30, 2018 at 7:13:51 PM UTC-4, Rogelio Flores wrote:
>>>
>>> Of course you can always create that behavior yourself, or you could 
>>> simply put your panel inside a DisclosurePanel:
>>>
>>>
>>> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwDisclosurePanel
>>>
>>>
>>> On Monday, October 29, 2018 at 2:56:31 PM UTC-6, Hossein wrote:

 Is it possible to toggle the StackPanel; i.e. clicking will open; and 
 consecutive click will collapse.

 Thanks,
 Hossein.

>>>

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


Re: StackPanel Toggle

2018-10-31 Thread Rogelio Flores
Ok, I forgot about the StackPanel, which already does what you want, except 
you have to click on the header of each "stacked" panel, so I assume what 
you want is to click on the "body" of the panel (?) or add the ability to 
open multiple panels at the same time (?). I don't think StackPanel (or 
better, you should use StackLayoutPanel), support either of these two 
capabilities. To create that behavior, see if you can extend and overwrite 
the default behavior of StackPanel, otherwise, you might want to consider 
other widget libraries such as DominoUI which already has a Collapse 
component that supports multiple subpanels to be opened at the same time 
for example. I don't know of any widget that supports clicking anywhere to 
collapse/expand:

https://dominokit.github.io/domino-ui-demo/index.html?theme=indigo#components/collapse


On Tuesday, October 30, 2018 at 6:43:02 PM UTC-6, Hossein wrote:
>
> @Rogelio,
>
> Thanks for your response. Please see attached. How would I create that 
> behavior myself? Any help would be appreciated.
>
> Thanks
>
> On Tuesday, October 30, 2018 at 7:13:51 PM UTC-4, Rogelio Flores wrote:
>>
>> Of course you can always create that behavior yourself, or you could 
>> simply put your panel inside a DisclosurePanel:
>>
>>
>> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwDisclosurePanel
>>
>>
>> On Monday, October 29, 2018 at 2:56:31 PM UTC-6, Hossein wrote:
>>>
>>> Is it possible to toggle the StackPanel; i.e. clicking will open; and 
>>> consecutive click will collapse.
>>>
>>> Thanks,
>>> Hossein.
>>>
>>

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


Re: Dynamic SelectionCell

2018-10-31 Thread Rogelio Flores
I misunderstood your question to mean that you just wanted to make data 
dynamic in your table, which looks like you already are, except for the 
SelectionCell.

Looks like SelectionCell can only get its list of available options in its 
constructor, so what I would try is getting the updated list of options 
from the server (or wherever you get them) before getting the new values to 
display on the table, replace the SelectionCell with the new values in your 
table, and then get the values to display on the table immediately after 
(assuming you get a new list of options for the SelectionCell every time 
you get a new list of values for the table).


On Wednesday, October 31, 2018 at 3:04:20 AM UTC-6, Ousti Driss wrote:

> Can you elaborate ? 
> I managed to update all the columns with the response I got from the 
> servlet, except the one with the selection cell,
> this is how I instanciate a SelectionCell
> Column categoryColumn = new Column(new 
> SelectionCell(list)) {
> }
> where list is a List,
> therefore all my rows have list as value in the categoryColumn ...
>
> On Wednesday, October 31, 2018 at 12:22:43 AM UTC+1, Rogelio Flores wrote:
>>
>> Of course it is possible, just look at the CellTable in the GWT Showcase:
>>
>> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellTable
>>
>> Instead of a DataProvider as in the example, you probably want an 
>> AsyncDataProvider which gets the data from the server through your servlet.
>>
>>
>> On Monday, October 29, 2018 at 9:38:52 AM UTC-6, Ousti Driss wrote:
>>>
>>> Hi everyone!!
>>> I have a cell table which contains three rows.
>>> I added a selection cell column,
>>> the problem is the contents of this columns is static, I need something 
>>> similar, but instead of being static I can update it with the response I 
>>> get from my servlet
>>> is such thing possible? 
>>> Thanks !! 
>>>
>>

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


Re: Dynamic SelectionCell

2018-10-31 Thread Ousti Driss
Can you elaborate ? 
I managed to update all the columns with the response I got from the 
servlet, except the one with the selection cell,
this is how I instanciate a SelectionCell
Column categoryColumn = new Column(new 
SelectionCell(list)) {
}
where list is a List,
therefore all my rows have list as value in the categoryColumn ...

On Wednesday, October 31, 2018 at 12:22:43 AM UTC+1, Rogelio Flores wrote:
>
> Of course it is possible, just look at the CellTable in the GWT Showcase:
>
> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellTable
>
> Instead of a DataProvider as in the example, you probably want an 
> AsyncDataProvider which gets the data from the server through your servlet.
>
>
> On Monday, October 29, 2018 at 9:38:52 AM UTC-6, Ousti Driss wrote:
>>
>> Hi everyone!!
>> I have a cell table which contains three rows.
>> I added a selection cell column,
>> the problem is the contents of this columns is static, I need something 
>> similar, but instead of being static I can update it with the response I 
>> get from my servlet
>> is such thing possible? 
>> Thanks !! 
>>
>

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