related to component development.

Hi folks,

A very basic jsf question relating to component development. In the component class should all the instance variables have bean type getter and setter property ?

If the answer to the previous question is no ,then from a design perspective which instance variables shouldn't have a bean type getter and seter property ? Some clarifications may be helpful for me to comprehend the problem.

[419 byte] By [subhrajyotia] at [2007-11-26 18:38:59]
# 1

Well, it's not required to have a getter/setter for all your component properties. HOWEVER, it's a very good idea to have it anyways.

You do not need getters and setters for temporary variables, and public static fields. Basically, ask yourself if the user of your component class could potentially ever need use of the property. If yes, then make a getter and setter.

CowKing

IamCowKinga at 2007-7-9 6:13:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...