• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we define a counter variable in jsf?

 
Adi Wanik
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
is there any variable we can define in <a4j:repeat > loop so that i can give numbers to the errors..like : "error1" "error2"... i want these 1 and 2 and 3 etc to be shown with each error...i am using rowKeyVar="idx" to give the row numbers of input fields..but when i am using the same idx to give numbers to the errors in the same loop, it is not accepting..infact value 'idx' is never read..please help....
<a4j:repeat value="#{DIALOG.DATA.dayModel.breaks}" var="key" first="1" rowKeyVar="idx" >...this is the way i am using...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic