Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Steven Wood   on Sep 21 In Java Category.

  
Question Answered By: Stacie Martin   on Sep 21

If you are using myfaces implementation use tomahawk <t:dataTable />
tag therefore its rowIndexVar attribute works  as i in your given
example refer to the following link for tag reference:

myfaces.apache.org/tomahawk/tagreference.html

In case you are using standard JSF or your utilized implementation of
JSF doesn't have any facility like above ,still you can use the
following trick, declare loop  index in your bean class and define
getter , setter and increment methods for it. Explore the details of
this solution and the way you can use these methods.

Another solution is available if you are using JSF 1.2 that is to use
JSTL mixed with your JSF tags. I hope it helps.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Problem with JSF creating a loop Or get search suggestion and latest updates.


Tagged: