Hi Paul

1- I did the boolean _invalidate insted the properties file (excelent) :)
2- I made a change on your dropscroller method, i used component.getId() insted
of component.getClientId(), in that way the data id was found :)

3-All works now, except for one thing: when I add a row to the dataSet, I
don´t see the last row, for example:

I have the DataTable with this info:
1 Daniel
2 Paul

Then I add Vladimir with code 3 and doesn´t appear (if I press F5 I can see
it, if I press an arrow or number link I can see it) other way not. If I add
another row with code 4 (without press f5, numbers or arrows) then the row
with the code 3 appears. If I add the code 5 the row with code 4 appears,
and so on.

Another fact, if I have the DataTable with this info:
1 Daniel
3 Paul

An I add the code 2, then the DataTable changes and shows the row with code
1 and the row with the code 2, and not the row with code 3. It means the
data is update well but the last row is not shown.

Why I didn´t notice this before?, because I have to pages, and I add data to
the  DataPage 2, but it was redirect to the DataPage 1 (beacuse of the
setFirst(0) on the dropScroller) So then i Click on the page 2 link or the
arrow and the datapage 2 was updated correctly.

I put the redirect attribute in true, in the navigation rule that goes from
the add page to the page that shows the dataPage, and it doesn´t works. Also
I put the code of the add page into the page that have the datatable (for
the dropscroller find the data component) and works the same way.

This are some System outs that I made, on the DataPagedList:

When the add button is press:

07/07/11 15:32:26 ROWINDEX: 0
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ***Fetch requested: in getRowData(), reason: rowIndex ==
page.getStartRow()
07/07/11 15:32:26 **Fetch: not required (already fetched)!
07/07/11 15:32:26 ROWINDEX: 1
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ROWINDEX: 2
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ROWINDEX: 0
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ***Fetch requested: in getRowData(), reason: rowIndex ==
page.getStartRow()
07/07/11 15:32:26 **Fetch: not required (already fetched)!
07/07/11 15:32:26 ROWINDEX: 1
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ROWINDEX: 2
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ROWINDEX: 0
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ***Fetch requested: in getRowData(), reason: rowIndex ==
page.getStartRow()
07/07/11 15:32:26 **Fetch: not required (already fetched)!
07/07/11 15:32:26 ROWINDEX: 1
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ROWINDEX: 2
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 Servidor de base de datos: jdbc/SignosPassOracleDS
07/07/11 15:32:26 EjecutaSQL: INSERT INTO IDEN_PACIENTE_2
(TIP_IDENTIFICACION, NUM_IDENTIFICACION, NOM_PACIENTE)    VALUES (0, 4, 'f')
07/07/11 15:32:26 data
07/07/11 15:32:26 dropScroller called
07/07/11 15:32:26 Requested UIC data returning:data
07/07/11 15:32:26 ROWINDEX: 0
07/07/11 15:32:26 DATASETSIZE: 3
07/07/11 15:32:26 ***Fetch requested: in getRowData(), reason: rowIndex ==
page.getStartRow()
07/07/11 15:32:26 **Fetch: required -> fetching...
07/07/11 15:32:26 EjecutaSQLRetornaRS: SELECT * FROM ( SELECT ROW_NUMBER()
OVER(ORDER BY NUM_IDENTIFICACION) LINENUM, NUM_IDENTIFICACION, NOM_PACIENTE
FROM IDEN_PACIENTE_2 ORDER BY NUM_IDENTIFICACION) WHERE LINENUM BETWEEN 0
AND 4
07/07/11 15:32:26 EjecutaSQLRetornaRS: SELECT COUNT(*) AS CANTIDAD FROM
IDEN_PACIENTE_2
07/07/11 15:32:26 ROWINDEX: 1
07/07/11 15:32:26 DATASETSIZE: 4
07/07/11 15:32:26 ROWINDEX: 2
07/07/11 15:32:26 DATASETSIZE: 4

And then when I press F5:

07/07/11 15:36:16 ROWINDEX: 0
07/07/11 15:36:16 DATASETSIZE: 4
07/07/11 15:36:16 ***Fetch requested: in getRowData(), reason: rowIndex ==
page.getStartRow()
07/07/11 15:36:16 **Fetch: not required (already fetched)!
07/07/11 15:36:16 ROWINDEX: 1
07/07/11 15:36:16 DATASETSIZE: 4
07/07/11 15:36:16 ROWINDEX: 2
07/07/11 15:36:16 DATASETSIZE: 4
07/07/11 15:36:16 ROWINDEX: 3
07/07/11 15:36:16 DATASETSIZE: 4

As you can see when I press f5 one more row is display (RowIndex 3). You cn
see also that the dropscroller is call and it works fine.

Can you help me with this, I have to present this demo on Friday for that
the company for which i Works accepts the use of JSF with tomahawk.

Paul thanks!!!! I hope you can help me with this, and remember I´m new,
sorry if maybe I didn´t do something you told me before that can fix this
problem. Thanks again, I will be waiting for your answer, thank you!!

Reply via email to