Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iteration using a4j without a collection

 
Pho Nghi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if this can be done but I wanted some verification.
Is it possible to use a4j to iterate if you don't have a collection? For example, if you know the number of iterations but don't have a collection. I just want to print out a certain number of characters using a4j and not use the JSTL for each tag.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a4j even has an Iterator, I missed it.

You actually do have a collection, it's just a collection of characters. Just because it's a range and not a random sequence doesn't make it any less of a collection.

It's really not that much trouble to set up a datamodel for a collection of characters. There's probably at least 5 different and relatively easy ways to do it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic