1

Let me say I have a Book Library with a list of Book. A Book has a List of Page. Page has a list of Line.

In JSF, i'm trying to display all the lines, now I'm using <h:dataTable> or <ui:repeat> to iterate through the lists. When I'm on second level of hierarchy which is page, instead of showing the properties of page as lines, netbeans only show the properties of book again as available properties

<ui:repeat value="#{bookLibrary.books}" var="book">
    <ui:repeat value="#{book.pages}" var="page">
        <ui:repeat value="#{page.???}" var="line">
        </ui:repeat>
    </ui:repeat> </ui:repeat>
3
  • I don't see anything PrimeFaces in here. And your application, does it work if you type a field manually instead of relying on code completion? Commented Aug 5, 2019 at 20:30
  • Yes, I now found out that it works if I add the field manually. Its the code completion that's leading me to believe my code is wrong Commented Aug 5, 2019 at 20:54
  • I also have the very same issue. Sadly no solution yet. Commented Jun 25, 2020 at 8:46

1 Answer 1

1

Yes, I now found out that it works if I add the field manually. Its the code completion that's leading me to believe my code is wrong

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.