Re: Add progress bar while dataprovider is loading

2011-07-07 Thread gadev
What about *setLoadingIndicator(widget);*

-George

-- 
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/-/a3ghgfhj2NEJ.
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: New Google theme coming to GWT?

2011-07-06 Thread gadev
I am not referring to the color scheme, but instead if something similar 
such as the shape of buttons and how they get highlighted etc..

GWT has a number of themes, I currently use  inherits name=
'com.google.gwt.user.theme.clean.Clean'/ and I was wondering if something 
similar or other themes will be introduces with 2.4.


-George  
   

-- 
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/-/6YOvUTlO4tAJ.
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: GWT 2.4 - Mobile Web App

2011-07-05 Thread gadev
One of GWT 2.4 sample apps is MobileWebApp, you maybe able to find what you 
need there.

-George

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



New Google theme coming to GWT?

2011-07-05 Thread gadev
Is the new Google theme, like the one for Gmail coming to GWT?

-George

-- 
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/-/oQLYbQf0YgIJ.
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: CellTable and GAE Datastore cursors

2011-07-04 Thread gadev
Hi (Kalimera)

I am in the same situation, I am trying to display datastore data on a 
celltable. To avoid having to page back and store cursors I place the 
celltable in a scrollpanel and when scroll reaches the end I change the 
range and the asyncdataprovider makes a new call to get new records. 
Finally, I add new records at the end of the list being displayed.

However, If I wanted to use pagination and page back I would probably store 
the cursors in the asyncdataprovider.

G :-)

-- 
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/-/3TMlW-gZZZQJ.
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.



Anchor in UiBinder

2011-06-22 Thread gadev
Hi there, 

I have a mobile view of an app and when user clicks on the anchor I would 
like to launch the phones dialer.

Apparently this is the html implementation a href=tel:07822232323323
07822232323323/a 

However there is another thing to be taken into account, my view implements 
Editor? so I do not have control of how the value is being set unless I 
intercept the object before passed to the driver and change the value but 
this is not ideal.

So my questions is how can I do this in tidy manner or if it is possible to 
initialise the Anchor with href=tel:

Thanks,
G

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



UiBinder and Editors

2011-06-07 Thread gadev
Hi there, 

I am using GWT 2.3 for an application which displays user profiles. There 
are two sort of views, one view when user is viewing own profile and one 
view when user is viewing other user's profile. I currently use GWT-RPC and 
UiBinder but since it is declarative I endup having holders in the uibinder 
files and then programmatically add widgets according to some conditions. So 
there is a lot of boilerplate code, which I am trying to cleanup/remove.

I started refactoring it using Editors to map my entities to views (later on 
I will also replace GWT-RPC with RequestFactory for CRUD operations). 
However, using Editors I lose the ability to control what is added to the 
view and what not..

What are your thoughts on the matter? Fellow GWTers how have you tackled 
similar problems?

Many thanks,
G

-- 
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/-/RUc5SExqTVl6NlFK.
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: UiBinder and Editors

2011-06-07 Thread gadev
Apologies if I haven't explained myself properly.

Take for instance a form of the like:

Firstname LastName
Description
Jobtitle

When User A is editing or viewing his profile the form will me displayed in 
full, all fields and if some are empty will be displayed with default text. 
However, the user may decide to leave a field or more un-edited and save the 
form.

If another User B tries to view User A's profile, I do not want to display 
fields with default values. That is what I am referring to as control what 
to display in the view and what not.

-- 
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/-/Z3ltR3BvMVppMW9K.
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: Aw: Re: UiBinder and Editors

2011-06-07 Thread gadev
Jens this is sort of what I am doing now, I have placed holders for the 
forms in Uibinder files and then programmatically I add the form onto the 
placeholder.

My goal though is to avoid that boilerplate code and pre/post procesing and 
declare the forms using Uibinder.

I use UiBinder to declare the form, so when it comes to using Editors to map 
beans on views everything is already layed out. From there on if I wanted to 
remove something from the form I would have to do some postprocessing to 
find empty fields and remove them. Unless I create the forms 
programmatically rather than using UiBinder.

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



Display a byte[] in imageCell

2011-05-10 Thread gadev
I am using GWT 2.3 and GAE 1.4.3.

I have images stored as blobs in the datastore and wish to display
them in a CellTable. One of the columns of the CellTable has got
ImaceCell.

I extract the byte[] from the blob then I use the Base64Utils, String
image = Base64Utils.toBase64(byteArray);

and send the result to the client via GWT-RPC.

Printing directly the string on the screen, the output looks like:
data:image/jpeg;base64,_9j_4AAQSkZJR.

However, the image is not being displayed on the table, or even if use
the Image widget from GWT, such as Image img = new
Image(encodedString);

Inspecting the element on chrome shows img src=# and console
displays the following warning, Resource interpreted as Image but
transferred with MIME type text/html.

I guess for the image to be displayed the mime type should have been
image/jpeg.

Am I missing anything? Is what I am doing possible?


Thanks in advance,
G

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.