When a form is handled in JSF, does it all happen in one thread?
问题 Say I have this piece of code <p:dataTable styleClass="scheduleTable" value="#{todaySchedule.hours}" var="hour"> <p:column headerText="Hour" styleClass="hourColumn" > #{hour.time} </p:column> </p:dataTable> and in a class called todaySchedule, have a method public List<Hour> getHours() { final List<Hour> hours = IntStream.range(0, Hour.TIME.values().length) .mapToObj($ -> new Hour()).collect(Collectors.toList()); for (int i = 0; i < 5; i++) { hours.get(i).setHour(1); } return hours; } and