Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can we represent a matrix like structure in jsf.

 
chetan padhye
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

How can we represent a matrix like structure in jsf.

It will have x number of rows and y number of columns. Both x and y are dynamic.

so it should be some thing like below .

-------------A B C D . . .

X------------ o o o o . . .

Y------------ o o o o . . .

Z------------ o o o o . . .

.------------ . . . . . . .

.------------ . . . . . . .



1) Using data table we can have columns oriented structure , i mean we can have iterate over any number of rows rendering respective data

but in this case we do not have number of column fixed rather they are dynamic .

Is there any possible solution in jsf for this

This is how we can have iterate over column


<h:column>
<h:dataTable border="1" value="#{nested}" var="item">
<h:column>
<hutputText value="#{nested.rowIndex}" />
</h:column>
<h:column>
<hutputText value="#{item}" />
</h:column>
</h:dataTable>
</h:column>


Thanks in advance
 
Kavita Tipnis
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Build a datatable programatically,in that case you can have as many columns you want
 
Pari Gandhi
Greenhorn
Posts: 10
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic