datable jsf collection

Asked

Viewed 28 times

1

I have a question in jsf, I have a collection in my Bean List,I am printing it in a datable, but in my object Professional I have a collection of services, I wanted to print the collection of services that he also acts on a datatable, how do I do it?!

1 answer

0

Make two table to print the professional list and another to print the service Collection. In the professional table put a command button, which when pressed passes the object to bean and renders the services of that professional. There is something similar in the showcase of the first faces, take a look at the first table of this link: https://www.primefaces.org/showcase/ui/data/datatable/selection.xhtml

  • I’ll try to explain it properly. I have a Professional class in which have a collection of services that it provides, in the view I have a datable have columns that print the attributes of the professional(name,address,tel) however in a datable column wanted to put a commandbutton on what is clicked retrieve the Profisisonal object and print the list of services that it provides, I tried to base myself on this example quoted above, but he of the overflow when printing the collection, must be why he’s not iterating....

Browser other questions tagged

You are not signed in. Login or sign up in order to post.