Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6906421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:18:27+00:00 2026-05-27T08:18:27+00:00

I am using ui:repeat tag and I have set varstatus=current.I try to display the

  • 0

I am using ui:repeat tag and I have set varstatus=”current”.I try to display the row index using the below command, but nothing is getting displayed.

   <h:outputText value="#{current.index}"/>

I would like to display the row index.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:18:29+00:00Added an answer on May 27, 2026 at 8:18 am

    It was introduced in Facelets 2.x. Given the fact that it doesn’t work, you’re using Facelets 1.x.

    Facelets 2.x is not standalone available. It is embedded in JSF 2.x. If you can, upgrade to JSF 2.x. If you can’t, then you’ve either to wrap the model in a custom model which holds the index as well, or to grab <c:forEach> instead if your view markup allows it (it’s a view build time tag, not a view render time tag), or to grab Tomahawk’s <t:dataList> instead which has a rowIndexVar attribute for this purpose.


    Update as per the comments, you turn out to be using RichFaces. In that case, you can also use the <rich:dataList> or <a4j:repeat> which offers both a rowKeyVar attribute:

    <a4j:repeat value="#{bean.items}" var="item" rowKeyVar="index">
        <p>#{index} #{item}</p>
    </a4j:repeat>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a collection I want to display using the <ui:repeat> JSF tag. What
I am using an editortemplate, I have shown partial code below. The script tag
Is it possible to have transparent background image using CSS3? background: url(../img/bg_paperlines.jpg) repeat-x; Using
Sorry if I repeat my question but I have still had no clues of
I am building a table using a <ui:repeat> tag, and its length is dynamic.
I have a facelets page with a ui:repeat tag that outputs the rows of
I have a Vf page which shows a list in a apex:repeat tag. All
I am using <ui:repeat> for displaying a list. Now I want to export whole
I am running a windows service and using a loop and Thread.Sleep to repeat
Using online interfaces to a version control system is a nice way to have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.