Hello O&B. I'm experiencing a problem right now. Recently, I've been doing my distributed database machine problem and self-studying JSF at the same time. Now, the problem is this, the database part is not that hard but the JSF implementation quite made itself a stumbling block. And I couldn't just roll things back since I'm almost finished and I simply want to finish this project implementing the JSF framework (in all instances – I don't want to resort to the JSP style of iterating over the arrays and have the <tr> <td>s).
Currently, I simply want to have a table within a table, I couldn't find (or have not researched enough) info about nesting tables, so I think it would be a great help if you guys can give me a code, send me a tutorial link, or give me any articles or documents that can solve this problem.
The Dummy scenario (Just to simplify things):
I have A and B classes. A has an array of B. I also have a Request Bean C, which has an array of A.
I have an init method in my JSF Java file, which populates the Request Bean C from the Dao. (So this is already with the assumption that the whole thing is populated – just the view part is not working)
Here's the scenario (I'll simplify the tags –I'll just give their name):
<table>
<table row group; sourceData= C.As; sourceVar= currentRow>
<table column>
<static text; text = currentRow.value[<field name here other than the array B>]>
</table column>
<here>
</table row group>
</table>
==This is part is definitely not working – just a rough guess on how the JSF works, thought this worked.
What I did, in the <here>:
<table column>
<table>
<table row group; sourceData= currentRow.value[Bs]>
</table row group>
</table>
</table column>
You can prolly guess what I was trying to do. This just didn't work. What I wanted to achieve:
A[0]
A.B[0]
A.B[1]
…
A[1]
…
So there, I hope I've given enough info. Thanks in advance for the help(S).
