Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Recursion  RSS feed

 
Karamjeet singh
Ranch Hand
Posts: 52
Flex jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any way to do recursion in jsf(xhtml file), i don't want to use rich faces or prime faces. I googled it but i didn't found anything.

Thanks for your any help.
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you want to?

What do you mean by "recursion" here?
 
Karamjeet singh
Ranch Hand
Posts: 52
Flex jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to do recursion on menu where i am showing nested items(<ul><li>) and categories for creating set of nested ul and li html markup
 
Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. You could make a custom EL method that returns an html formatted string.
2. You could use element binding and link it to an element model constructed using JSF API.

In both cases you'll be working on Java level that supports recursion.
 
Karamjeet singh
Ranch Hand
Posts: 52
Flex jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Akaine, I'll try it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!