Recursion in JSF (c:forEach vs. ui:repeat)
JSF’s built-in declarative tags are ill-suited for handling this sort of recursion. JSF builds a stateful component tree that is persisted between requests. If the view is restored in a subsequent request, the view state may not reflect changes in the model. I would favour an imperative approach. You have two options as I see … Read more