I want to get some additional data when user clicks on the rowToggler, because the dataset could be large and I don't want to get it in one go.
I want the datatable to display rows and then depending on which row (or rowToggler) is clicked, I want to get the child data for that row.
Is this possible in a rowToggler? or would I just have to make it a commandLink and then perform the action?
Is there a way to perform an action in a rowToggler?
It should be possible to achieve this. The data displayed when a rowToggler opens a row is lazily loaded. This can see this with Firebug. For example, car.manufacturer and car.color are only displayed when a row is expanded is this example:
http://www.primefaces.org/showcase/ui/d ... leRows.jsf. I'd imagine that this means that car.manufacturer and car.color could be lazily loaded.
http://www.primefaces.org/showcase/ui/d ... leRows.jsf. I'd imagine that this means that car.manufacturer and car.color could be lazily loaded.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
We can add rowToggleListener="#{bean.method}" like we have for row editing (row edit listener). Feel free to create a feature request.
I will. But I think this will also help with the "subtable" feature request since I can see a use case, where the parent data row has so many children data rows, that getting them all at once might be slow. So we get the parent data and then "onclick" of the rowToggler, get the children data for that row and that row only.
Do you think I should put it as an addon to the subtable request or create a new one altogether?
Do you think I should put it as an addon to the subtable request or create a new one altogether?
PF-2.2.1 || Mojarra 2.0.3-FCS || Eclipse 3.6.1 (Helios) || Weblogic 11gR1
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I think there is already a request on subtable.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 29 guests