I have following nested ui:repeat's. Previously the outer loop was using a c:forEach which worked as expected.
Now i want to use it with omnifaces of:createIntegerArray(1, 7)
or using it with omnifaces <o:importConstants>
function which is not working.
public static final int[] INTEGER_ARRAY = new int[]{1, 2, 3, 4, 5, 6, 7};
public List<String> getValues(int i);
<ui:repeat var="i" value="#{Bean.INTEGER_ARRAY}">
#{i}
<ui:repeat var="value" value="#{bean.getValues(i)}">
#{value}
</ui:repeat>
</ui:repeat>
The parameter i
is always 0 or null in the bean method but is printed out correctly in the jsf view.