Lay out of a page using JSF tags

Hi,

In my Backing Bean called "bean". I have a setters and getters methods like,

public ArrayList<CustomerBean> getCustomer()

{

return this.fCust;

}

public void setCustomer(ArrayList<CustomerBean> cBean)

{

this.fCust = cBean;

}

Can i access Arraylist elements like this:

<h:outputText value="{bean.customer[0].name}">

[408 byte] By [indira_need_helpa] at [2007-11-15]
# 1
Try it! =)CowKing
IamCowKinga at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 2
Ya I tried but it doesn't work. Anyone please help me
indira_need_helpa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 3
This should just work. Please elaborate "it doesn't work" then we can help you further.
BalusCa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 4
I tried that code but it was not working i dont know why?
indira_need_helpa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 5
Do you get any errors on screen or in the system log? Which JSF version are you using?
BalusCa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 6
Ya it is working Thank u
indira_need_helpa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 7
What was the cause then?
BalusCa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 8
I checked the size of the arraylist it was showing "null". So there is a problem in my code it was not fetching the records in to that ArrayList.So now working. Thank u
indira_need_helpa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...