I suggest that you try TablePane. JSF DataTable is more like TablePane
than TableView, because with JSF DataTable you include real editable
components, just as TablePane does.
If you surround it with a ScrollPane, it's almost like a TableView, only
headers are missing. You can simulate that with a row of PushButtons,
the only thing that you don't get for free is column resizing.
Dirk.
Taro App wrote
Hi Greg,
As I understand, a TablePane is a layout container in which you
arrange components, and a TableView is a data view in which you show
collection data. I want the latter, so I was trying to make it
editable. Sorry for my confusing explanation, but JSF DataTable does a
similar thing as TableView does, but I can make it all rows editable
at the same time. I'm creating a prototype of an order entry
application. Pivot's Form is perfect for order header data. For order
line data, I wanted to use a TableView. But as I wrote before, I
didn't succeed. Any help?
apptaro
On Mon, Jun 7, 2010 at 8:47 PM, Greg Brown <[email protected]> wrote:
TableView row editors are really only meant to edit one row at a time. What you
describe sounds like it might actually be more of a use case for a TablePane.
On Jun 6, 2010, at 10:25 PM, Taro App wrote:
Hi,
I'm trying to create an editable table using Pivot's TableView. Pivot
supports TableView.RowEditor which enables one row to be editable when
double clicked, but I want to make all rows editable at the same time,
similar to input components in a dataTable in JSF, or input elements
in a table in HTML. I think it can be done with a custom
TableView.CellRenderer. To begin, I tried using
TableViewBooleanCellRenderer and TableViewTextAreaCellRenderer so I
can make editable table with checkboxes and text areas, but it didn't
work as I expected; checkboxes and text areas are disabled. I tried
setting TableView.isEnabled = true, TableViewBooleanCellRenderer
.isCheckboxDisabled = false, TableViewTextAreaCellRenderer .isEditable
= true, but it didn't fix the issue. Does anyone know how I should
proceed?
apptaro