-
1. Re: scrollableDataTable with custom row layout: possible?
ilya_shaikovsky Jan 22, 2010 5:40 AM (in response to xck3001)Are you bound to columns in scrollableDataTable
yes
in order to create custom layouts for iteration data use just a4j:repeat. Unfortunatelly you will lost ajax scrolling capability and will just have to use something like datascroller or just implement scrolling on your own.
-
2. Re: scrollableDataTable with custom row layout: possible?
xck3001 Jan 22, 2010 8:28 AM (in response to ilya_shaikovsky)Thanks for clearification. One question to verify before I give the team the bad news:
A solution with 1 column and custom rendering of these cells is impossible, too? Can you display images in a column?
Maybe our CSS expert can trick something with classes for each columns...
-
3. Re: scrollableDataTable with custom row layout: possible?
ilya_shaikovsky Jan 22, 2010 10:58 AM (in response to xck3001)any content supported inside the column cells. The only thing you will need to adjust - cell height. It's fixed in order scrolling functionality properly works. -
4. Re: scrollableDataTable with custom row layout: possible?
benli Apr 13, 2010 9:55 AM (in response to ilya_shaikovsky)Hi,
It will be OK for me to have fixed height for each row in the srollable data table. But can I give the fixed height in JSP, and how to define the row height, or there is noway to define the row height at all?
Thanks.
-
5. Re: scrollableDataTable with custom row layout: possible?
benli Apr 13, 2010 11:41 AM (in response to ilya_shaikovsky)Hi,
I figure out how to increase the row height by using style. However, my applet in the cell is cutoff (please see the attachment). How can I make sure the applet is showing in full?
<style>
.scrolls{
width:400px;
height:700px;
overflow:auto;
}
.row {height: 160px
}
</style><rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="2" height="400px"
width="700px" id="carList" rows="40" rowClasses="row" columnClasses="col"
value="#{dataTableScrollerBean.allCars}" var="category" sortMode="single"
sortOrder="#{dataTableScrollerBean.order}"
selection="#{dataTableScrollerBean.selection}">-
CutOffApplet.JPG 11.1 KB
-