Tuesday, September 28, 2010

ADF Iterator's RangeSize Property

RangeSize property does not control the number of rows displayed in a table based on the collection. In fact, the rich table in ADF 11g actually will display as many rows as can fit into the available space physically allocated to the table component, so all the range size controls is the number of AJAX transactions that are required to populate the table as the user scrolls up and down. You can set it to -1 if you want to get all records at once.

Tuesday, September 14, 2010

Which Collection Should be used when?

* Use Vector if there are multiple threads and ArrayList if there is only a single thread.

* Use Hashtable if there are multiple threads and HashMap if there is only a single thread.

* Use StringBuffer if there are multiple threads and StringBuilder if there is only a single thread.

For explanation visit Skeleton Coder

Sunday, September 12, 2010

Html Host Page In GWT

For every GWT application, a html hosted page is required. This hosted page starts the GWT application. This hosted html page can be generated from Servlet or JSP.

Sunday, September 5, 2010

Creating more than one folder as client in GWT

The package does not necessarily have to be called “client,” and in fact, you can specify multiple packages to be considered for JavaScript by modifying your <module> by adding an extra <source path=""> tag. The client package is simply an implicit default value to help you out. See the full definition of modules here: http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.Fundamentals.html#Modules.
In GWT, package structure is divided in three folders: client, public, and server. Everything in client folder is converted to javascript. public folder contains resources like css and images while server folder contains services.
Moreover, all domain objects are placed in client folder as POJOs.