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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we define a counter variable in jsf?
 
Similar Threads
Value of "idx" is not printing in the tag <f:attribute name="fieldRef" value="#{idx}"/>
a4j:command link in h:datatable refreshed datatable even when not reRendered
need help on jsf error message
Generating Unique Random Numbers in JAVA
a4j:repeat and generated Id problem