This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm using ajax anywhere in my Struts Application. Using this im loading the drop down lists using struts index pattern. Here the drop down list contains 150 or more values. After loading the page with ajax anywhere im submiting the form , Here I'm getting the out of memory error.Is this is the Ajax anywhere problem? Because we are loading the dropdown lists with ajax anywhere[large data] If i remove the ajax anywhere calls im not getting any errors.
Providing more information about where the OOM error is coming from would be the most helpful. It would also be a useful diagnostic to know if you get the same OOM error if you request the page directly (as opposed to via Ajax).
rajanikanth bhagavan kanth
Joined: May 20, 2008
Hi, In my application i have to load the all the employees of organization in dropdown list.So it is loading almost all 10000's of data in dropdownlist.At the time of loading its throwing like out of memory.This employee list is populated i.e loaded when i select department type from other dropdown list.For this i used the ajax call.If i remove the ajax call and submited the entair form im not getting any errors succesfully im able to load the dropdown list.My doubt is that ajax will not support huge data?
First of all, loading 10,000 elements into a drop-down list is a Really Bad Idea--it's essentially unusable.
Second of all, you're still not saying anything about the nature of the OOM error. Is it the server that's giving the error? If so--increaase the memory allocated to your application. If you're getting the results from the database and mapping them into an ORM layer, like Hibernate, then see if you can restrict the data being retrieved from the database.