aspose file tools*
The moose likes JSF and the fly likes Can we define a counter variable in jsf? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Can we define a counter variable in jsf?" Watch "Can we define a counter variable in jsf?" New topic
Author

Can we define a counter variable in jsf?

Adi Wanik
Greenhorn

Joined: Feb 15, 2011
Posts: 7
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can we define a counter variable in jsf?