[
https://jira.jboss.org/jira/browse/RF-4164?page=com.atlassian.jira.plugin...
]
Yurii Kartsev commented on RF-4164:
-----------------------------------
Any good news about this bug?
I've noticed that the scrollableDataTable is reRendered well if it's reRendered
only BY ITSELF.
But If it's in an a4j:outputPanel and in h:form, and we reRender whole outputPanel -
then the header disappears and I can't make any selection in the table.
My another concrete example(hope it helps to understand the reason):
The table header disappears after I press this menu Item:
<rich:contextMenu attached="false" id="personnelDataTable_Menu"
disableDefaultMenu="false" submitMode="ajax"> <rich:menuItem
value="#{muiBundle.menuDelete}"
action="#{menuMan.deleteFakePersonnel}"
reRender="personnelDataTableForm_OutputPanel"/>
</rich:contextMenu>
What does it do: method deleteFakePersonnel just deletes one record from database and
returns null.
Then a4j:outputPanel is reRendered with the scrollableDataTable, and headers are gone.
SDT is here:
<a4j:outputPanel id="personnelDataTableForm_OutputPanel">
<h:form id="personnelDataTable_Form">
<rich:scrollableDataTable id="personnelDataTable"
rowKeyVar="rkv" binding="#{personnelSDTableMan.sdTable}"
rows="0"
selection="#{personnelSDTableMan.scrollableDataTableSelection}"
onRowMouseOver="this.style.backgroundColor='#B5CEFD'"
onRowMouseOut="this.style.backgroundColor='#{org.richfaces.SKIN.tableBackgroundColor}'"
rowClasses="sdt_row1,sdt_row2"
selectedClass="sdt_row_selected"
activeClass="sdt_row_active" width="100%" height="400px"
columnClasses="sdt_col" frozenColCount="1"
value="#{amBean.employeeListMan.personnelEmployees}"
var="employee" sortMode="single"
style="margin:0px;padding-top:10px;">
...
</rich:scrollableDataTable>
...
You know, it seems that the second phase of table rendering process is gone, because when
the page normally loads, scrollable data table was always rendered like A: Show the table;
B: Show headers; Now after I reRender outputPanel - works only A.
Is it hard to solve the problem? I can give you any debug information I have for it. Thank
you very much in advance!
scrollableDataTable and rich:columns - header disappears after
rerender(RF-3796 link) + last column collapses: in detail analysis, logs
---------------------------------------------------------------------------------------------------------------------------------------
Key: RF-4164
URL:
https://jira.jboss.org/jira/browse/RF-4164
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Windows XP SP2
Firefox 2.0.0.16
jdk1.6.0_07
JBoss 4.2.2 GA
jsf-1.2_07-b03-FCS
facelets-1.1.14
v.3.2.2-SNAPSHOT SVN $Revision: 8947 $ $Date: 2008-06-07 08:39:49 -0400 (Sat, 07 Jun
2008) $
Reporter: Yurii Kartsev
Assignee: Konstantin Mishin
Fix For: Future
Attachments: after-page-loads.jpg,
after-table-reRendered-after-record-deletion.jpg, case1.zip, case2.zip, src.zip
Good afternoon.
I've found similar issue, but it's closed and not full, like mine. So I've
decided to create a new one and link old one to id.
By the way(maybe it will help you), after reloading the page(F5), the table first appears
corrupted(withoud headers and with collapsed last column) for a few seconds, then it
changes to normal.
I have two cases:
1. Table became corrupted after removing a record from scrollable datatable and
reRendering it. (consequenses: headers disappear + last column collapses)
It was done using rich:contextMenu with reRendering scrollable data table.
2. Table became corrupted after reRendering scrollable datatable with a different data.
(consequense: last column collapses)
It was done using a4j:support in h:selectOneMenu with reRendering scrollable data table.
These cases were done with all the logs and screenshots savings: JBoss DEBUG log, a4j:log
and Firebug data.
Please, take a look at it:
CASE 1. All the logs and screenshots you can see in the case1.zip
--------------------- description ----------------------
firebug - folder with firebug copypasted data
screens - 2 screens(before/after)
a4j_log.log - a4j:log from the loaded page (CONTAINS ERRORS)
JBOSS_ajax_delete.log - JBoss log after selecting "Delete" on the record
JBOSS_load.log - JBoss log while loading the page
-------------------------------------------
CASE 2. All the logs and screenshots you can see in the case2.zip
--------------------- description ----------------------
firebug - folder with firebug copypasted data
screens - 2 screens(before/after)
a4j_log.log - a4j:log from the loaded page (CONTAINS ERRORS)
JBOSS_ajax_select.log - JBoss log after selecting records type
JBOSS_load.log - JBoss log while loading the page
-------------------------------------------
SOURCE page in xhtml you can find in src.zip.
I hope you'll solve the bug. Thank you in advance!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira