In the example here :
http://wiki.apache.org/myfaces-data/attachments/WorkingWithLargeTables/attachments/myfaces-cars.zip
there is a method wich fill and create a datamodel:
protected PageableData createPageableData() {
List cars = new ArrayList();
for(int i = 0; i < getRows(); ++i) {
The information on this page [1] can be very useful too,
Cheers!
Bruno
[1] http://wiki.apache.org/myfaces/WorkingWithLargeTables
On 7/4/06, Cosma Colanicchia <[EMAIL PROTECTED]> wrote:
What do you mean with "load only 5 rows by time"? If it stands for
"load ony 5 rows by time *from the databa
What do you mean with "load only 5 rows by time"? If it stands for
"load ony 5 rows by time *from the database*", then extending
DataModel is the right way to go.
If you simply want to display 5 rows for page, and you don't mind
loading the whole table just to see the first page, then you don't
n
Well I'm been working with a datatable and a datascroller,
what I want is to load only 5 rows by time.
Cosma Colanicchia wrote:
Alexandre, can you specify some more details about what you're trying
to do?
Cosma
2006/7/4, Alexandre Jaquet <[EMAIL PROTECTED]>:
I only need to work with :
da
Alexandre, can you specify some more details about what you're trying to do?
Cosma
2006/7/4, Alexandre Jaquet <[EMAIL PROTECTED]>:
I only need to work with :
datatable.setRowIndex (5);
datatable.getRowData();
when I want to extend the component ?
Thanks for your time passed ro responding :)
I only need to work with :
datatable.setRowIndex (5);
datatable.getRowData();
when I want to extend the component ?
Thanks for your time passed ro responding :)
Cagatay Civici wrote:
Hi,
As Cosma explained before, all the control is done using a datamodel,
even if you bind a list object as
Nice explanation it's clear right now many thx
Cosma Colanicchia wrote:
Only some components are UIData. Think it as a set of component
"families", there are UICommand that includes commandLink and
commandButton, or UIInput with inputText and selectManyListbox, and
others.
UIData components usu
Hi,As Cosma explained before, all the control is done using a datamodel, even if you bind a list object as the value of a uidata, it is wrapped as a ListDataModel object. For example when you call datatable.setRowIndex
(5);datatable.getRowData();At UIData, it leads togetDataModel().setRowIndex(5);g
Only some components are UIData. Think it as a set of component
"families", there are UICommand that includes commandLink and
commandButton, or UIInput with inputText and selectManyListbox, and
others.
UIData components usually display data as a list or in a tabular
format, and they are designed
Well Cosma first thanks for your explanation, if I understand well, all
components have to extend UIData and we can set to every components a
dataModel?
Cosma Colanicchia wrote:
Hi Alexandre,
it's simple, JSF defines a DataModel class that is used by UIData
componentes (like the data table).
Hi Alexandre,
it's simple, JSF defines a DataModel class that is used by UIData
componentes (like the data table). Note that it is allowed the usage
of some other types (for example java.util.List) because DataModel
implementations that wraps it are available automatically picked.
Basically, the
Hi,
I want to understand how work DataTable any good documentation ? I want
to understand the cars-demo example :
http://wiki.apache.org/myfaces/WorkingWithLargeTables
regards
12 matches
Mail list logo