Forums Register Login

Mulitple headings for sortable datatable column?

+Pie Number of slices to send: Send
Hi!

I have built a datatable using jsf and tomahawk. It looks somewhat simplyfied like this:



As you can see a have a backing bean called testUseCaseBean used to retrieve the transactions that populates the table. What I would like to do is to split the heading (Name / date) of this first column (only one visable in the example) and fil it with both both name and date in each row. Then I would like to be able to sort the column clicking either date or name. The problem for me is that only one header is allowed and that each sortable column only can send one value to the useCaseBean.

Does anyone know if there is a solution for this using jsf?
+Pie Number of slices to send: Send
I found the h:dataTable runs out of steam quickly when you want to perform even relative simple customizations. I found writing a custom bean was the solution for many extensions like these, or perhaps use something like the RichFaces extended datatable component.

-Cameron McKenzie
+Pie Number of slices to send: Send
I don't quite follow all that - it sounds like you want to have 1 column that acts like 2 columns. But you might want to look at the RichFaces extended datatable control. It has a fairly rich set of both formatting and sorting options, and RichFaces and Tomahawk can co-exist fairly well (I'm doing that right now).
+Pie Number of slices to send: Send
 

Tim Holloway wrote:I don't quite follow all that - it sounds like you want to have 1 column that acts like 2 columns. But you might want to look at the RichFaces extended datatable control. It has a fairly rich set of both formatting and sorting options, and RichFaces and Tomahawk can co-exist fairly well (I'm doing that right now).



Yes that is correct. I want to place the name and date in the same column with the date on top. This because I want to save table witdh as I will have a lot of more columns not introduced in the example code. Thanks for your answers, I'll look into the RichFaces extended datatable control.

/Dejmien
I was her plaything! And so was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2056 times.
Similar Threads
EL Syntax exception - javax faces el ReferenceSyntaxException
Question on how to sort tomahawk datatable
selectBooleanCheckbox
Sortable DataTable in WebSphere portal
highlight first row in datatable onload
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:57:27.