CellList + ListDataProvider - Refresh failing in one special scenario - Please help

2013-06-17 Thread Bharat Parikh
Problem: CellList doesn't refresh in a special scenario
GWT Version: 2.5.0
Client(s): IE version 9, Google Chrome Version 27.0.x

Description: The below code snippet works fine in all but one special 
scenario:

List listOfNotification = 
notificationListDataProvider.getList(); 
listOfNotification.remove(notification);
notificationListDataProvider.setList(listOfNotification);
notificationListDataProvider.flush();
notificationListDataProvider.refresh();

where notificationListDataProvider is the ListDataProvider associated with 
notificationCellList (A CellList object) displaying a list of Notification 
objects

The above code is executed on clicking a Delete button. The list is 
refreshed fine in all cases except the one below:
1. There are only two items in the list:
  Item1
Item2
2. User selects first item (Item1) and deletes it
3. Following is displayed on the screen:
Item2
Item2
Here, only the first instance of Item2 is selectable. I guess the second 
instance is just retained from step # 1 above and not being 
refreshed/removed from screen.

Surprisingly, this is the only scenario that fails all other are working 
fine.

I also tried notificationCellList.setRowData(), 
notificationCellList.setRowCount(), notificationCellList.redraw() after 
removing item from the list and before calling flush() and refresh() on 
listdataprovider. None of these have worked. Any help in resolving this 
issue will be highly appreciated.

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




Clientside IO with GWT

2013-06-17 Thread Alain
If you ever wanted to generate files(PDF Excel on the Client) in your GWT 
app this might be useful.

http://emitrom.com/blog/client-io

Cheers,

Alain




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




JUnitShell: Why is the log level overriden to WARN?

2013-06-17 Thread Maik Riechert
Hi,

when developing JUnit runstyles I want to do info/trace logging, e.g.:

shell.getTopLogger().log(TreeLogger.TRACE, "Letting PhantomJS fetch " + 
url);

I have to change all those logging outputs to at least WARN to see 
anything. This is caused by the following code in JUnitShell I guess:

  // Override log level to set WARN by default..
  registerHandler(new ArgHandlerLogLevel(options) {
@Override
protected Type getDefaultLogLevel() {
  return TreeLogger.WARN;
}
  });

My question is: Why? I find it very strange that I can't set a custom log 
level via command line argument or system property. What is the reasoning 
behind this and can it be changed?

Cheers
Maik

-- 
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: RequestFactory, entity Id not populated when it reaches the server?

2013-06-17 Thread GWTter
Hi,

So I went back using the dev tools, inspected the payload, and confirmed 
what I had before: the ID is not set at all in the user object payload. 
Just to make sure I wasn't crazy or missing something I created just a User 
object and tried to save it. I checked the payload in that request and 
could clearly see the ID set in the object.

I've persisted/sent entities that had field values set with other entities 
before. The only difference I can make between the two cases is that in the 
previous case the entity I was setting as the field value was from a 
request to the server (I had not created it on the client). In this case 
the booking entity is created on the client and the user entity is also 
created on the client. Could this be the reason why it's failing? maybe 
because RF only lets you add entities as fields if they already have 
stableIDs? 

Thanks again in advance.


On Monday, June 17, 2013 6:02:53 PM UTC+2, GWTter wrote:
>
> Hi Ümit,
>
> I was actually checking the payload via the DefaultRequestTransport, I 
> could see the user proxy object but I could not see the id anywhere in the 
> payload. I had also put a println in the setID method in the DTO but it was 
> never called which is what I thought was strange since the object seemed to 
> go across the wire. I haven't checked the payload more formally with 
> Chrome's developer tools, so I'll try that next like you suggested after 
> dinner and see if that clears things up, will post back. Thanks for 
> answering.
>
> On Monday, June 17, 2013 5:21:48 PM UTC+2, Ümit Seren wrote:
>>
>> For debugging: Check the RF payload with Chrome Developer Tools and put a 
>> breakpoint in the siteId() method of your backend DTO (it should be called 
>> after the object is created). 
>>
>>
>> On Monday, June 17, 2013 3:59:02 AM UTC+2, GWTter wrote:
>>>
>>> Hi all,
>>>
>>> I have the same setup as in question 
>>> https://groups.google.com/d/msg/google-web-toolkit/GUQjZ98mL7s/MoA2gEMmS28J 
>>> . 
>>> I've included the relevant code from the question below for quick 
>>> reference. My problem is that once the booking entity gets to the server 
>>> and I look for the user, the user field is not null, but the id on the user 
>>> is? Thus I can't check for the actual user. Is the user id not being set in 
>>> the payload for some reason, or is it not building the user entity 
>>> correctly on the server? Thanks a lot in advance for any help, much 
>>> appreciated.
>>>
>>> -Seth
>>>
>>> MainRequestFactory.BookingRequest bookingRequest = 
>>> reqFactory.bookingRequest(); 
>>> BookingProxy bookingProxy = 
>>> bookingRequest.create(BookingProxy.class); 
>>> UserProxy userProxy = bookingRequest.create(UserProxy.class); 
>>>
>>> userProxy.setId(12); 
>>>
>>> bookingProxy.setUser(userProxy); 
>>>
>>> Request persistRequest = 
>>> bookingRequest.persist().using(bookingProxy); 
>>> persistRequest.fire(new Receiver() { 
>>> @Override 
>>> public void onSuccess(Void response) { 
>>> GWT.log("persisted"); 
>>> } 
>>> }); 
>>>
>>

-- 
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: AWS (CDN) GWT file deployment and 'Blocked a frame with origin' issue

2013-06-17 Thread Joseph Lust
Thomas,

Sorry I didn't catch you at the GWTogether in SF last month. I owe you a 
number of beers. :)

*That did the trick*. I'll bang out an article for GWTProject.org on AWS 
(and similar) CDN deployments.

BTW, I shamefully plead ignorance on the *xsiframe* linker. I'd only used 
the linkers in the GWT 
Docs
.

Yet, a grepping against the GWT source reveals:

   - appcachelinker (sample)
   - direct_install
   - xs
   - sso
   - std
   - xsiframe

We'll need to ensure the new official 
docsinclude
 these as I've seen little documentation on most of them, or perhaps 
I'm missing something and they're not all meant for prime time yet.


Sincerely,
Joseph

-- 
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: RequestFactory, entity Id not populated when it reaches the server?

2013-06-17 Thread GWTter
Hi Ümit,

I was actually checking the payload via the DefaultRequestTransport, I 
could see the user proxy object but I could not see the id anywhere in the 
payload. I had also put a println in the setID method in the DTO but it was 
never called which is what I thought was strange since the object seemed to 
go across the wire. I haven't checked the payload more formally with 
Chrome's developer tools, so I'll try that next like you suggested after 
dinner and see if that clears things up, will post back. Thanks for 
answering.

On Monday, June 17, 2013 5:21:48 PM UTC+2, Ümit Seren wrote:
>
> For debugging: Check the RF payload with Chrome Developer Tools and put a 
> breakpoint in the siteId() method of your backend DTO (it should be called 
> after the object is created). 
>
>
> On Monday, June 17, 2013 3:59:02 AM UTC+2, GWTter wrote:
>>
>> Hi all,
>>
>> I have the same setup as in question 
>> https://groups.google.com/d/msg/google-web-toolkit/GUQjZ98mL7s/MoA2gEMmS28J 
>> . 
>> I've included the relevant code from the question below for quick 
>> reference. My problem is that once the booking entity gets to the server 
>> and I look for the user, the user field is not null, but the id on the user 
>> is? Thus I can't check for the actual user. Is the user id not being set in 
>> the payload for some reason, or is it not building the user entity 
>> correctly on the server? Thanks a lot in advance for any help, much 
>> appreciated.
>>
>> -Seth
>>
>> MainRequestFactory.BookingRequest bookingRequest = 
>> reqFactory.bookingRequest(); 
>> BookingProxy bookingProxy = 
>> bookingRequest.create(BookingProxy.class); 
>> UserProxy userProxy = bookingRequest.create(UserProxy.class); 
>>
>> userProxy.setId(12); 
>>
>> bookingProxy.setUser(userProxy); 
>>
>> Request persistRequest = 
>> bookingRequest.persist().using(bookingProxy); 
>> persistRequest.fire(new Receiver() { 
>> @Override 
>> public void onSuccess(Void response) { 
>> GWT.log("persisted"); 
>> } 
>> }); 
>>
>

-- 
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: RequestFactory, entity Id not populated when it reaches the server?

2013-06-17 Thread Ümit Seren
For debugging: Check the RF payload with Chrome Developer Tools and put a 
breakpoint in the siteId() method of your backend DTO (it should be called 
after the object is created). 


On Monday, June 17, 2013 3:59:02 AM UTC+2, GWTter wrote:
>
> Hi all,
>
> I have the same setup as in question 
> https://groups.google.com/d/msg/google-web-toolkit/GUQjZ98mL7s/MoA2gEMmS28J . 
> I've included the relevant code from the question below for quick 
> reference. My problem is that once the booking entity gets to the server 
> and I look for the user, the user field is not null, but the id on the user 
> is? Thus I can't check for the actual user. Is the user id not being set in 
> the payload for some reason, or is it not building the user entity 
> correctly on the server? Thanks a lot in advance for any help, much 
> appreciated.
>
> -Seth
>
> MainRequestFactory.BookingRequest bookingRequest = 
> reqFactory.bookingRequest(); 
> BookingProxy bookingProxy = 
> bookingRequest.create(BookingProxy.class); 
> UserProxy userProxy = bookingRequest.create(UserProxy.class); 
>
> userProxy.setId(12); 
>
> bookingProxy.setUser(userProxy); 
>
> Request persistRequest = 
> bookingRequest.persist().using(bookingProxy); 
> persistRequest.fire(new Receiver() { 
> @Override 
> public void onSuccess(Void response) { 
> GWT.log("persisted"); 
> } 
> }); 
>

-- 
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: Setting TreeItem userObject with uiBinder?

2013-06-17 Thread Pascal Heus
Tried that one but fails with
Cannot parse value: "FooKeyValue" as type java.lang.Object:  On 17/06/2013 10:55, Kulnor wrote:
>> Is there any way to set a TreeItem user object in the UI Binder XML?
>>
>> Something like 
>
> Have you tried it? (I haven't!)
> I see TreeItem has a setUserObject(Object userObj) method, so maybe it
> can 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.
For more options, visit https://groups.google.com/groups/opt_out.




FW: Muhammad

2013-06-17 Thread Muhammad

hello! http://www.eliane-mery-sculptrice.com/ozqjpwgb/hlc/ejmgt/lzdh.html   
Muhammad

-- 
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 add keydown and keyup listner to DrawingArea

2013-06-17 Thread Joel Malchiondo
I cant figure out how to add a keyboardlistner to a drawing area. i amd 
creating a simple game and would like to be able to respond to the user 
pressing buttons?

-- 
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: Fixing a column in DataGrid

2013-06-17 Thread Raphael André Bauer
On Fri, Jun 14, 2013 at 11:42 AM, Jens  wrote:
> Well, add a scroll handler to the right ScrollPanel and set the current
> scroll position on the left ScrollPanel.

Hi Jens,


thanks for that :) It worked the way you described it. With one tiny
caveat. DataGrids don't export their ScrollPanel (Maybe I got you
wrong).

I simply extended an original DataGrid and exposed their ScrollPanel like so:
public ScrollPanel getScrollPanel() {
HeaderPanel header = (HeaderPanel) getWidget();
return (ScrollPanel) header.getContentWidget();
}

This made syncing the scrolling positions of my two DataGrids quite
simple and I know have one fixed column in my datagrid.


Thanks for your help!


Best,

Raphael

-- 
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: Setting TreeItem userObject with uiBinder?

2013-06-17 Thread Philippe Lhoste

On 17/06/2013 10:55, Kulnor wrote:

Is there any way to set a TreeItem user object in the UI Binder XML?

Something like 


Have you tried it? (I haven't!)
I see TreeItem has a setUserObject(Object userObj) method, so maybe it can work.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

--
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: RequestFactory Issue 6115

2013-06-17 Thread Thomas Broyer


On Monday, June 17, 2013 10:47:56 AM UTC+2, Nermin wrote:
>
>
>
> Am Sonntag, 16. Juni 2013 23:52:08 UTC+2 schrieb Thomas Broyer:
>>
>>
>> I'll see if I can improve the documentation. Feel free to propose patches 
>> yourself though: http://www.gwtproject.org/makinggwtbetter.html#webpage
>>
>
> Thank you for your reply and the link, which is one of the best GWT 
> references I have see so far on the net. ... GREAT WORK!
>

Er, gwtproject.org is the *official* documentation for the GWT project; 
it's been initialized as a copy of developers.google.com/web-toolkit as the 
project transitions from Google to the Steering Committee.

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




Setting TreeItem userObject with uiBinder?

2013-06-17 Thread Kulnor
Is there any way to set a TreeItem user object in the UI Binder XML?

Something like 

thanks

*P


-- 
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: RequestFactory Issue 6115

2013-06-17 Thread Nermin


Am Sonntag, 16. Juni 2013 23:52:08 UTC+2 schrieb Thomas Broyer:
>
>
>
> On Friday, June 14, 2013 5:55:03 PM UTC+2, Nermin wrote:
>>
>> Hello Thomas,
>>
>> Open Session In View is the right approach to go for. Thank you for this 
>> advice!
>> I have implemented it and it works fine now.
>>
>> However, I have one question regarding OSIV-Pattern: 
>> In the Hybernate example (see link below) they *begin transaction*before 
>> doFilter() and 
>> *commit on transaction* after it.
>> https://community.jboss.org/wiki/OpenSessionInView
>>
>> I am using standard GWT setting with DataNucleus. For some reason it does 
>> not let me call em.getTransaction().begin(); and 
>> em.getTransaction().commit(); within the filter.
>> In my current implementation I can *create EntityManager* before 
>> doFilter()  and *close it* afterwards (this works), but cannot commit 
>> nor rollback transaction
>>
>
> You *should* do that (create EntityManager and close it in filter; 
> begin/commit transactions in each service method)
>
> I'll see if I can improve the documentation. Feel free to propose patches 
> yourself though: http://www.gwtproject.org/makinggwtbetter.html#webpage
>

Thank you for your reply and the link, which is one of the best GWT 
references I have see so far on the net. ... GREAT WORK!
My code works fine now thanks to OSIV-pattern.

-- 
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: Rendering/painting in IE8/IE9 is slow when compared to FireFox(21.0) and Chrome(Version 27.0.1453.110 m) using GWT.

2013-06-17 Thread Jens
Grid is implemented using a HTML . HTML tables are slow in rendering 
if you do not set table-layout:fixed; as a CSS property. You could also try 
filling the Grid off screen, e.g. when its not yet attached to the DOM so 
the browser has to do less layout/rendering.

If the above did not help then you simply push to much data into your Grid. 
In that case you can take a look at CellTable / DataGrid which are meant 
for handling this large amount of data. They achieve their speed by 
minimizing DOM operations (which are slow in older IEs) and instead 
building a huge HTML string and then set it using 
parentElement.setInnerHTML().

-- J.

Am Montag, 17. Juni 2013 09:29:55 UTC+2 schrieb ajayb...@gmail.com:
>
> Rendering/painting in IE8/IE9 is slow when compared to FireFox(21.0) and 
> Chrome(Version 27.0.1453.110 m) using GWT.
>
> During GWT Table rendering, for each Table cell, we use the below API:
>
> 1. com.google.gwt.user.client.ui.Grid.getCellFormatter().setStyleName
> 2. com.google.gwt.user.client.ui.Grid.setWidget(row, column, new 
> CATableEditableCell(this, row, column, data)) or setWidget(row, column, 
> (Widget)o)
> 3. com.google.gwt.user.client.ui.Grid.setHTML(row, column, datalink);
>
> Here are the Observations while using IE vs Fireforx:
> 1. It takes an average of 50-60 millis to format a cell in table where as 
> in FF it is taking 0-5 millis
> 2. With this overall table painting is taking time when huge data is 
> there/painted in the table
>
> Is it a known phenomena or can IE be optimized further. If yes, can you 
> pls suggest any?
>
> Thanks!!
> Ajay B
>

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




Rendering/painting in IE8/IE9 is slow when compared to FireFox(21.0) and Chrome(Version 27.0.1453.110 m) using GWT.

2013-06-17 Thread ajaybela . ab
Rendering/painting in IE8/IE9 is slow when compared to FireFox(21.0) and 
Chrome(Version 27.0.1453.110 m) using GWT.

During GWT Table rendering, for each Table cell, we use the below API:

1. com.google.gwt.user.client.ui.Grid.getCellFormatter().setStyleName
2. com.google.gwt.user.client.ui.Grid.setWidget(row, column, new 
CATableEditableCell(this, row, column, data)) or setWidget(row, column, 
(Widget)o)
3. com.google.gwt.user.client.ui.Grid.setHTML(row, column, datalink);

Here are the Observations while using IE vs Fireforx:
1. It takes an average of 50-60 millis to format a cell in table where as 
in FF it is taking 0-5 millis
2. With this overall table painting is taking time when huge data is 
there/painted in the table

Is it a known phenomena or can IE be optimized further. If yes, can you pls 
suggest any?

Thanks!!
Ajay B

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