Re: Performance Differences IE 8 Vs FF 3.x

2011-06-02 Thread Mittal
Screen also has real estate issue - I dont think I can use CellList
but its good suggestion John ! I was thinking -- instead of fetching
all the data and setting into suggestion box (oracle etc..)  - fetch
the data by making RPC calls when user enters few characters of data
and set it into suggestion box but it could make application chatty !

Mittal


On Jun 2, 9:00 am, John LaBanca  wrote:
> Are you are putting 4,000 items in a ListBox?  Thats a lot of data to show
> on the client.  Even scrolling becomes difficult at that point.
>
> Alternatively, can you use a CellList with paging to break up the items into
> smaller chunks?
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
>
>
>
>
> On Thu, Jun 2, 2011 at 6:44 AM, Mittal  wrote:
> > Thomas - is it due rendering engine of IE 8 versus that of FF or
> > Chrome - which shows such difference in terms of response time ?
>
> > Mittal
>
> > On Jun 2, 6:04 am, Thomas Broyer  wrote:
> > > With such numbers ("1 list box has 4000 elements and one suggestion box
> > has
> > > 7000 elements"), the culprit is undoubtedly IE, and you can't do anything
> > > about it.
>
> > --
> > 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.

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



Re: Performance Differences IE 8 Vs FF 3.x

2011-06-02 Thread Mittal
Thomas - is it due rendering engine of IE 8 versus that of FF or
Chrome - which shows such difference in terms of response time ?

Mittal

On Jun 2, 6:04 am, Thomas Broyer  wrote:
> With such numbers ("1 list box has 4000 elements and one suggestion box has
> 7000 elements"), the culprit is undoubtedly IE, and you can't do anything
> about it.

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



Performance Differences IE 8 Vs FF 3.x

2011-06-01 Thread Mittal
I have one particular use case when there is significant difference in
terms of response time between IE8 Vs FF 3.x

IE 8 = 25-35 seconds response time
FF 3.x = 5 - 8 seconds response time.

Rest of the application seems to be OK in IE 8.

In this particular use case, I am making 1 RPC which in data access
layer makes 5 database calls and returns the data to java class that
corresponds to ui.xml  Java class then populates the data returned
into 4 list boxes and 1 suggestion box- there is no additional
processing of data other than getting it from data access layer. The
data is returned from data access layer pretty fast
In terms of data, 1 list box has 4000 elements and one suggestion box
has 7000 elements.

Event to above use case is selection of row from cell table and
clicking on edit button - this performs very well in FF and Chrome but
has slower performance in IE 8

Any pointers why this could be happen ?

Mittal

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



Re: Passing data from Dialog Box

2011-04-05 Thread Mittal
Can you share any examples - how you are sending data back from Dialog
Box to window that opened dialog box.

Mittal

On Apr 5, 3:11 am, Alexandre Ardhuin 
wrote:
> If you use a com.google.gwt.user.client.ui.DialogBox to collect data. Thus
> you are still in the same window.
>
> Alexandre
>
> 2011/4/5 Mittal 
>
>
>
>
>
>
>
> > I have following use case,
>
> > Master Form - has button called "Add Row" - that shall open Dialog Box
> > to collect data, lets say First Name , Last Name etc.
> > When Dialog Box is closed or based on some other event how to I send
> > this data captured to parent window that opened Dialog Box ? This
> > operation of Add Row can be used multiple times.
>
> > Any help or pointers shall be appreciated.
>
> > Mittal
>
> > --
> > 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.

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



Passing data from Dialog Box

2011-04-04 Thread Mittal
I have following use case,

Master Form - has button called "Add Row" - that shall open Dialog Box
to collect data, lets say First Name , Last Name etc.
When Dialog Box is closed or based on some other event how to I send
this data captured to parent window that opened Dialog Box ? This
operation of Add Row can be used multiple times.

Any help or pointers shall be appreciated.

Mittal

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



Sending data from Servlet to RPC class

2011-03-08 Thread Mittal
I have following use case,

- upload csv file which may have invalid data
- If invalid data is found, business service shall return list of
error value objects
- display error value objects to user
- if no invalid data is found, business service shall return list of
some other value objects
- display other value objects to user

I am using gwt fileupload widget and fileupload servlet - to upload
csv data from UI to Server. -
UIBinder java class does form post to fileupload servlet
This is all good

My question is,
How do I send back error value objects from fileupload servlet to
UIBinder java class ?

Do, I have to store error value objects or some other value objects in
session and then write some RPC class that shall read these objects
from session and make them available to UIBinder java class

Mittal

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



Re: execute same code for different widget event handle

2010-12-16 Thread Mittal
Use following,

@UiHandler(("streetName"'somethingelse'))

Mittal

On Dec 16, 8:30 am, Subhrajyoti Moitra  wrote:
> a funny workaround.
>
> @UiHandler("streetName")
> void handleStreetNameKeyPress(KeyPressEvent  e) {
>        handleCommonKeyPressEvent(e);}
>
> @UiHandler("streetNumber")
> void handleStreetNameKeyPress(KeyPressEvent  e) {
>     handleCommonKeyPressEvent(e);
>
> }
>
> private void     handleCommonKeyPressEvent(KeyPressEvent e){
>    //some common code..
>
> }
>
> will this do? i am using this way to handle common handler issues.
>
> Thanks,
> Subhro.
>
> On Thu, Dec 16, 2010 at 6:15 PM, pieceovcake  wrote:
> > this works great
>
> > @UiHandler("streetName")
> > void handleStreetNameKeyPress(KeyPressEvent  e) {
> > // code
> > }
>
> > but i want to execute the same handleStreetNameKeyPress triggered from
> > another field on the page
> > something like this
>
> > @UiHandler("streetNumber")
> > @UiHandler("streetName")
> > void handleStreetNameKeyPress(KeyPressEvent  e) {
> > // code
> > }
>
> > how do i write this?
>
> >  --
> > 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-tool...@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.

-- 
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-tool...@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: How to handle application state ?

2010-12-06 Thread Mittal
Jeff,

I agree on creating a share object and storing into HashMap on client
side. But how do I share this HashMap on client side among different
screens such as Header, Navigation etc.  (Other than passing HashMap
to these screens via some setter methods)


Mittal

On Dec 6, 11:23 am, Jeff Schwartz  wrote:
> You shouldn't have to query for the information more than once but you do
> need to store it some place and like I said, you have several options. If
> you want to store it on the client and have the information persist even
> after the user closes the browser (across sessions) then you can use
> cookies. But first you need to get the data to the client.
>
> If I were coding this I'd define a serializable class in a shared gwt folder
> that matches the data model for the information that I want to bring down
> and use on the client. I'd then create a remote service (such as a GWT
> RemoteService) that on the server queries for the data and outputs the data
> to the data structure I defined in the shared folder as per the above and
> which then returns an instance of that class to the client. The client, upon
> receiving the result back from the server, would store the result in a
> HashMap for in some other data structure I designed to store data on the
> client or in cookies if I wanted to use the information across sessions.
>
> You have lots of options but they all follow a similar pattern to the above.
>
> Jeff
>
>
>
> On Mon, Dec 6, 2010 at 10:52 AM, Mittal  wrote:
> > Yes, its application state for a "User". Why do I need to query server
> > information every time for a user, I think I should able to create
> > client side object such as UserProfile, populate it from server side
> > once user logs in and then pass client side UserProfile object where
> > its required such as Header or Navigation pages.
>
> > - Mittal
>
> > On Dec 6, 9:47 am, Jeff Schwartz  wrote:
> > > In your case the state you want to preserve seems to be associated with a
> > > particular user, not the application, so you can use either cookies or
> > > servlet session state to persist the information when the user logs in
> > and
> > > you can then query the information when displaying tabs or reacting to
> > other
> > > user interface events.
>
> > > Jeff
>
> > > On Mon, Dec 6, 2010 at 9:39 AM, Mittal  wrote:
> > > > Here's the use case we are dealing with,
>
> > > > SSO token shall be received by GWT application.
> > > > SSO token shall have user profile and role information.
> > > > Once I have read SSO token, I would like to use User Profile
> > > > information to be available in header page and Role information in
> > > > navigation page to control who see's what in terms of functionality
> > > > (tabs).
>
> > > > How do I store or hold token information as an application state ?
>
> > > > - Mittal
>
> > > > --
> > > > 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-tool...@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.
>
> > > --
> > > *Jeff Schwartz*
>
> > --
> > 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-tool...@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.
>
> --
> *Jeff Schwartz*

-- 
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-tool...@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: How to handle application state ?

2010-12-06 Thread Mittal
Yes, its application state for a "User". Why do I need to query server
information every time for a user, I think I should able to create
client side object such as UserProfile, populate it from server side
once user logs in and then pass client side UserProfile object where
its required such as Header or Navigation pages.

- Mittal

On Dec 6, 9:47 am, Jeff Schwartz  wrote:
> In your case the state you want to preserve seems to be associated with a
> particular user, not the application, so you can use either cookies or
> servlet session state to persist the information when the user logs in and
> you can then query the information when displaying tabs or reacting to other
> user interface events.
>
> Jeff
>
>
>
> On Mon, Dec 6, 2010 at 9:39 AM, Mittal  wrote:
> > Here's the use case we are dealing with,
>
> > SSO token shall be received by GWT application.
> > SSO token shall have user profile and role information.
> > Once I have read SSO token, I would like to use User Profile
> > information to be available in header page and Role information in
> > navigation page to control who see's what in terms of functionality
> > (tabs).
>
> > How do I store or hold token information as an application state ?
>
> > - Mittal
>
> > --
> > 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-tool...@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.
>
> --
> *Jeff Schwartz*

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



How to handle application state ?

2010-12-06 Thread Mittal
Here's the use case we are dealing with,

SSO token shall be received by GWT application.
SSO token shall have user profile and role information.
Once I have read SSO token, I would like to use User Profile
information to be available in header page and Role information in
navigation page to control who see's what in terms of functionality
(tabs).

How do I store or hold token information as an application state ?

- Mittal

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



CellTable and multiple editable columns

2010-12-02 Thread Mittal
I am using CellTable with simple pager to show ArrayList
contacts. There are multiple columns that are editable mostly using
EditTextCell. I have implemented FieldUpdater for editable columns.
But I do not want to make server side save/update call each time there
is change made to particular editable column.

I would like to collect all the updates, lets say in
ArrayList modifiedContacts and send it server side by using
some kind of Save Contacts button.

I am able to do this if I keep only one column editable, but moment I
add multiple columns as editable, I start getting duplicate objects in
my ArrayList modifiedContacts since each editable column is
implementing FieldUpdater.

When 2 or more columns of same row are updated, FieldUpdater of each
column is fired, storing duplicate objects in  ArrayList
modifiedContacts.

I could use Set instead of ArrayList to store unique contact objects
but is there better way to do this ?

Thanks
Mittal

-- 
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-tool...@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 new App Development

2010-10-16 Thread Mittal
Thanks Gaurav !!!

On Oct 14, 10:57 pm, masterGaurav  wrote:
> Hi Mittal,
>
> Great question!
>
> For my applications, I have pure-GWT as well as pure-SmartGWT
> approaches.
> I have particularly not used the MVP pattern as is available on the
> website... but definitely, something like that. It is an
> implementation of MVP pattern.
>
> I have created a slightly different event-bus... more of a global-
> event publish-subcribe mechanism combined with command pattern.
>
> What goes without saying is if you want to develop a larger
> application, MVP pattern is there to stay. Stick to it... exact
> implementation of the pattern can be application based.
>
> -Gauravwww.mastergaurav.com
>
> On Oct 15, 4:15 am, Mittal  wrote:
>
> > What is the most common approach followed for new App development
> > using GWT
>
> > 1) Only GWT widgets/api
> > 2) GWT widgets/api and MVP Pattern
> > 3) GWT widgets/api and guit
> > 4) Smart GWT widgets/api and (MVP or guit)
>
> > I have done few sample/demo applications using GWT widgets/api and MVP
> > pattern. Just wanted to get feel what approaches others are using ?
>
> > - Mittal

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



GWT new App Development

2010-10-14 Thread Mittal
What is the most common approach followed for new App development
using GWT

1) Only GWT widgets/api
2) GWT widgets/api and MVP Pattern
3) GWT widgets/api and guit
4) Smart GWT widgets/api and (MVP or guit)

I have done few sample/demo applications using GWT widgets/api and MVP
pattern. Just wanted to get feel what approaches others are using ?

- Mittal

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



TextBox.setFocus(true) not working

2009-02-18 Thread Mittal Thakkar

Hi,
I have created an application in which i want to set focus on the
textbox on the load of the panel; i am using TextBox.setFocus(true)
but it doesnot work. I tried different ways wiz using DiferredCommand
and onLoad(); but no go.

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



Re: Third party libraries for GWT

2009-02-18 Thread Mittal Thakkar
Hi,
Thanks for ur suggestion but is it possible to avoid using EXT GWT and make
it work with only GWT itself

On Wed, Feb 18, 2009 at 4:48 PM, Antonio Leonforte <
antonio.leonfo...@fhoster.com> wrote:

>
> We are using Ext GWT and we are happy with it...
> >
>


-- 
Regards,
Mittal Thakkar

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