File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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...
 
 
subject: Can we define a counter variable in jsf?