| Author |
display collection without getters n setters
|
chintan shah
Greenhorn
Joined: Oct 05, 2008
Posts: 7
|
|
can a collection from a backing bean be displayed on a jsf page without writing the getters n setters for the collection in the bean??? and can a jsf display a local variable in a method of a backing bean???
|
 |
Himanshu Gupta
Ranch Hand
Joined: Aug 18, 2008
Posts: 598
|
|
We have work around for that but it is not recommended. You can name you function getXXX() and in JSF page bind like value="#{beanName.XXX}". Hope this works.
|
My Blog SCJP 5 SCWCD 5
|
 |
chintan shah
Greenhorn
Joined: Oct 05, 2008
Posts: 7
|
|
|
is there any way to access a variable local to a method in the jsf page....if yes then please explain how.
|
 |
Himanshu Gupta
Ranch Hand
Joined: Aug 18, 2008
Posts: 598
|
|
The same variable you want to access can be returned by using some method. If you are comfortable with scope concept then you will get the answer by yourself. [ October 21, 2008: Message edited by: Himanshu Gupta ]
|
 |
 |
|
|
subject: display collection without getters n setters
|
|
|