Hi Shaun,
Shaun Campbell wrote:
I have a scenario which I would have thought would have been
straightforward. I have a backing bean which provides a list of data
which I am able to display to my web page using:
<h:dataTable value="#{jobsBean.jobs}" var="job"
styleClass="jobs" cellspacing="0"
cellpadding="0" border="0"
rowClasses="odd,even"
columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column">
This all works fine but what I want to do now is do the same thing from
the job variable to print out a sub list for each job. My job class has
a getOps() method which returns another list which I want to display.
No matter what I try to do to access this list I get an error.
Can you paste here this error of yours?
In your case I would use Tomahawks dataList for #{jobsBean.jobs}, and
for every job I would put dataTable with value=#{job.ops}.
Regards
Jacek Bilski