(This is a long item since it's a prior private discussion)
Hi, my requirements include creating an Item Collection Table control (refer to attached picture) where a user would perform to basic operations:
"+" Key - Would add Rows to the table
"-" Key - Would remove a "selected" row from the table
The table height needs to be dynamic in that it would increase as the user adds rows (with a custom limit, say n-rows) and it would decrease when removing rows.
I'm currently using RichFaces 3.3.3 Final to develop a prototype for this. I am using the ExtendedDataTable control since it seems to have everything I need (Row Selection).
As I started using the ExtendedDataTable control I found that the Table height was not dynamic as the regular dataTable control. I also found that in JIRA Bug RF-7488 an issue that seems to point to this problem is still outstanding: https://jira.jboss.org/browse/RF-7488
Could you please recommend a way (a workaround) I can implement to achieve the behavior above within the 3.3.3 Final framework? If you could provide an example (or multiple if more than one way) I would appreciate it, since I've been looking for a solution without avail.
As a reference, I already looked at community comments:
what I saw as explained in https://jira.jboss.org/browse/RF-7488, following the directions from Bob Shanahan, the result was as in attached "Item Table Using directions from RF-7488.JPG", where scrollers are added to the entire table (including header and footer)instead of having the table height increase/decrease as items are added.
Then, I tried the following on my own:
<style type="text/css" >
The results are in "ItemCollectionTableControl - Using extdt-table-layout - height - auto.JPG". This doesn't actually get me there either since even though the scrollers are added to the table item elements (leaving out header and footer, which looks nicer), the table height behavior is still not like that of dataTable.
Do you have any other suggestions as to what to try? It sounds like a CSS solution might be the way, but I'm not sure what elements to manipulate and what properties.
I'm also attaching my source code (BusMgmtControlsTest.zip) so that you see how I'm trying to use the extendedDataTable and CSS. Hector.
BusMgmtControlsTest.zip 38.1 K