Jhakda Velu

Ranch Hand
+ Follow
since Feb 26, 2008
Merit badge: grant badges
For More
Mother Earth
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jhakda Velu

Try to find out what may cause Nullpointer Exception in line 10 of your code, what could be null there? Also, why do you think line 7 will help in skipping lines 8-18.
Try to test your line 7 if condition with values 1992, 1995 and 2010.

I believe you are assuming that nobelPrizeWinners.get(year) will give proper value for years 1993-2009.

10 years ago
Glad to know that your issue is resolved

I used spring around 2 years back, back then it was Spring 2.x, and came to forum to find out how I would fare now.
11 years ago
Did you set order property for the resolvers you added? Something like this


Lower value has higher priority


Jhakda
11 years ago
Can you post how you have added view resolvers? If no order is specified, i think InternalViewResolver will be used. If you post more details, someone may be able to help.
11 years ago
I think you may need TilesConfigurer for proper functioning.
11 years ago
You would need some script to add the fields on click of button and assign an id to it. You may look at these posts for further help

Page with dynamic fields
Another Example

11 years ago
Thanks for the information. I am currently going through the tutorial. Also, agree that join works better than my approach.

@Steve: The directive given to me was not to make the threads I create for Step A to be synchronous. Step A and Step B should be synched, with Step A being done by multiple threads. However, I will surely keep your input in mind if I need to build a synchronous activity.

Thanks to all
Jhakda
Thank you for the response.
Based on your suggestion, here is what I pan to do:

Suppose there are 10n files to be processed, and I decide to allocate 10 files per thread, so I will create 'n' threads and add to a collection.
Then I keep checking each thread's state to see if the execution is complete( using getState()), if so, start Process B. Else wait.

Does the above seem good enough? You do you have a better approach, about which you can give some hints?

Thanks once again

Jhakda
I have a batch job which has 2 steps, Step A and Step B. Step B should always execute after A is complete. Step A involves processing many files, the names of which we get as a list. Now I have been asked to divide step A into multiple threads, each of which will execute a finite number of files. If I start multiple threads, how do I ensure that Step B starts only after all threads processing step A have completed?

Thanks

Jhakda
Hi Nitin
Thank you for your help.

I do not see a major issue with call to server. Its the rendering that is taking time.
When data is refreshed, that comes up really fast.

All users have IE8 as the browser, no control over that.

Thanks
Jhakda
13 years ago
GWT
Hi
Thanks for your reply.
Here is what we do:
1. We use RequestBuilder to make calls to our service
2. On receiving response(JSON string), we create the required UI.

If i am refreshing data for the same screen(say, onchange of a combo box value), the refresh is very fast.

We use various widgets, like fieldsets, comboboxes, grid etc and we put it on our formPanel

I find the page working fast in Firefox, but very slow in IE8.
Users will be using IE8

Thank you
Jhakda
13 years ago
GWT
Hi

Maneesh Godbole wrote:Is this on dev or hosted mode?



I've tested this both in dev as well as hosted mode. In dev mode, its even more slow. In hosted mode, it takes around 7 secs for page to load. Service layer takes 50-75ms to process and fetch data.
I have put logger in my onResponseReceived method and i can say that it takes no less than 6 sec for rendering.

Warm Regards
Jhakda
13 years ago
GWT
Hi All
I am using GWT 2.x and find that the rendering of my page takes really long time. Once rendered, if i refetch data for the entire page again, it is done in milli seconds

I find that the myContainer.layout() method takes max time.

I have set the sizes of all components in one shot after adding to the container to avoid redundant rendering as pointed out by google here
Google Speed tracer Redundant layout example

As already stated, If i relaod data for the page. it si refreshed very fast(<150ms ).

Any tips to resolve this sluggishness are welcome

Warm Reg
Jhakda
13 years ago
GWT
Hi All
I got the form submit part working. From my form panel, which i named formPanel, all i need to do is to call the submit method.

All widgets whose name is set using the widget.setName("shouldMatchAttributeNameOfDTO") matches that of the DTO will get set in the respective attributes. As we used Spring, all i had to do in my controller is to write a method


where Person is the data transfer object.

However, i where i am still stuck is holding the data in my 2 panels. My First panel has generic info about a person like name age etc and the second panel has address details. I am able to save both panels individually, but if i enter data in my first panel and traverse to the address panel, only the address portion gets saved. I also loose the data which i enter in the panel once i navigate to the other panel.

If someone has thoughts on how to do this, i would be most eager to know.

Thanks in advance\
Jhakda
14 years ago
GWT
Hi All
I'm starting with GWT app and was wondering how we would go about binding form fields to form just like struts . Say i have a Person object which has name age sex Adress ( which itself has addline1,line2 city and country). Say i were to use this for my page and the generic person details like name age etc displayed as a tree node and the adress details displayed on another node. I need to save/ display these. I know how to do this in struts spring etc but not sure about GWT. I do not want to bind each field like a normal servlet/jsp app by getting it using request params. Also, another issue i foresee is that, say a user enters only name and goes to the address node to fill address, once he come back to the first node, the name he entered should be present.

I need a starting point from which i can take off on my own. Starting to look at editors.
Any help on this would be appreciated.

Warm Regards
Jhakda
14 years ago
GWT