Wednesday, October 27, 2010

CSS Classes for ADF Faces Component

Whenever we work in ADF, we will have to customize ui components to our own theme and color scheme. Often people find it hard to find list of CSS classes for ADF components as it is not directly mentioned in Web Developers guide. Here is the link in which you can find complete list of CSS classes for all ADF components

ADF CSS Selectors

Sunday, October 24, 2010

Android Permissions

In Android, an application needs permissions from user to use certain type of resources e.g. if your application wants to have functionality to read user's contacts, then you need permission "READ_CONTACTS" permission. Similarly in order to use internet of user's device, you need "INTERNET_PERMISSION". There is a long list of permissions which you have to include if you want to use a particular type of functionality in your application. This list is documented in Manifest.permission class.

http://developer.android.com/reference/android/Manifest.permission.html

Thursday, October 14, 2010

ActionListener versus Action

Action method is used to perform navigation and ActionListener is used to perform some logic in backing bean.While it is possible to define a backing bean method that performs navigation and binds the method to the actionListener attribute, this is not best practice. Instead, application logic should be placed in the backing bean method to which the actionListener is bound. Following successful execution of that method, the ADF Faces lifecycle will call the method or control flow case specified by the action attribute. If the method bound to the actionListener fails, developers can change the action outcome to suppress navigation so that the user has the opportunity to correct the issue.

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.