I am currently working on a timetable-software as a project at my university. We are working with JSF.
Our software has to be dynamic (specified by our teacher) in the terms of "how many days does a work-week have" and "how long is each of those days", so we have to be dynamic in our way we display things.
I wanted to use a ui:repeat-tag with a nested ui:repeat-tag, one for the days and one for the activities of each day.
The setup would have to look a bit like this:
<ui:repeat var="weekday" value="#{timetableBean.getWeekdays()}">
<ui:repeat var="acitivity" value="#{timetableBean.getActivitiesForWeekday(PARAMETER WEEKDAY)}">
// OUTPUT SOMETHING
</ui:repeat>
</ui:repeat>
My actual problem is that the variable of the weekday from the outer ui:repeat can't be used in the nested ui:repeat. I googled a lot but I could not figure out how to pass the VAR of the outer ui:repeat-tag as a param to the nested one. The "PARAM WEEKDAY" should be the actual var of the outer ui:repeat.
Does anybody have an idea? Maybe I just don't know how to use the syntax correctly here, I am just getting started.
Thanks in advance!