-
1. Re: [IE] Datatable's cell disappear on ajax reRender
nbelaevski Aug 25, 2008 9:11 PM (in response to ronanker)Hello,
Try to re-render not the h:column, but some component inside it, e.g. wrap text into additional h:panelGroup. -
2. Re: [IE] Datatable's cell disappear on ajax reRender
ronanker Aug 26, 2008 3:14 AM (in response to ronanker)Thanks for the quick reply,
I can't rerender some component inside because in my real page I also put a styleclass on the column that is updated on rerender:<rich:column id="value" styleClass="#{row.updated ? 'updated':'NotUpdated'}">
With firefox, the code above works fine. -
3. Re: [IE] Datatable's cell disappear on ajax reRender
ronanker Aug 27, 2008 9:44 AM (in response to ronanker)If the above code is right (it seems to be), could you create a jira ? I'm not sure I'm able to do it myself.
-
4. Re: [IE] Datatable's cell disappear on ajax reRender
jbuechel Sep 4, 2008 11:06 AM (in response to ronanker)Did you find a workaround? Has there been filed a jira?
I'm facing exactly the same problem.
And the ploblem occurs really just in IE. In Chrome it works as well. -
5. Re: [IE] Datatable's cell disappear on ajax reRender
jbuechel Sep 8, 2008 9:33 AM (in response to ronanker)Is there a workaround for this issue?
I need to rerender the rich:column because the row should be shown in a different color using css.
Does anyone have an idea how to achieve this? -
6. Re: [IE] Datatable's cell disappear on ajax reRender
ronanker Sep 10, 2008 1:25 PM (in response to ronanker)No, no workaround found :(
I don't know how to put a jira (I have readonly rights).
I crossposted the issue in the RichFaces Development forum (http://jboss.com/index.html?module=bb&op=viewtopic&t=141489)
but no news :( -
7. Re: [IE] Datatable's cell disappear on ajax reRender
jbuechel Sep 11, 2008 2:57 AM (in response to ronanker)Sorry, i forgot to back post that I created a jira issue:
https://jira.jboss.org/jira/browse/RF-4430
Unfortunately they targeted it to version "wishes"..
What I do for now is:<rich:column> <!-- Due to a bug in Richfaces the rich:column it self can't be rerendered. So a containing div is used for rerendering and the corresponding styles applied. --> <s:div id="nameId" styleClass="fwc-selecteddiv-#{rowObject eq dataModelSelection}"> <s:div style="padding-top: 3px; padding-left: 6px;"> <h:outputText value="#{rowObject.name}" /> </s:div> </s:div> </rich:column>
-
8. Re: [IE] Datatable's cell disappear on ajax reRender
ilya_shaikovsky Sep 11, 2008 6:18 AM (in response to ronanker)guys.. I think you understand that column wraps the output text only within you JSP source. In generated HTML there is no "column" wrapper. Agree? In theory we could generate all the td elements ids and put them into reRender in this case - but this is future request and not an issue of current implementation. So just put table Id in reRender to solve this right now.
-
9. Re: [IE] Datatable's cell disappear on ajax reRender
jbuechel Sep 11, 2008 8:56 AM (in response to ronanker)Sorry maybe my lacking english doesn't allow me to get some points..
1.
Yes, I do agree, of course.
The HTML TD elements are generated with the rich:column id, right?
So<rich:column id="value">
results in<td id="jsf:id:stuff:index:value" ...>
Rerendering the rich:column's id is possible in firefox but it's not in IE7 due to a javascript error.. What is the expected behavior?
2.
The issue mentioned in my last post I filed as a feature request (not as bug).
3.So just put table Id in reRender to solve this right now.
Just to clarif: This will rerender the hole rich:dataTable, right?
Sorry for all the confusion.. -
10. Re: [IE] Datatable's cell disappear on ajax reRender
ronanker Sep 12, 2008 1:00 PM (in response to ronanker)Ilya,
Thanks for the reply,
Yes I'm not sure to well understand what is your matter. In my opinion, there is just a javascript error to fix in IE (I agree it's not always an easy task :) ).
Did you notice that the awaited behavior is to refresh only one cell ( td ) of the clicked row and not all the column.
This is performing very well with FF. -
11. Re: [IE] Datatable's cell disappear on ajax reRender
ilya_shaikovsky Sep 15, 2008 5:06 AM (in response to ronanker)1) you could use a4j:region in rich:column as a child and point the reRender to some components inside the column. This will cause the cells of current row to be updated after ajax request from the row.
2) you could use ajaxKeys and reRender (also pointed to the components inside the column) in order to update some set of cells from any rows.
3) you could reRender dataTable. Yes this will cause all the table to be rendered and replaced. -
12. Re: [IE] Datatable's cell disappear on ajax reRender
ronanker Jan 19, 2009 1:00 PM (in response to ronanker)FYI,
I think this is due to a limitation of IE (once again) that seems to consider TD nodes as readonly.
See https://jira.jboss.org/jira/browse/AJSF-89
The weird thing is that the jira's closed. Obviously, the workaround does not work.
See http://ajaxian.com/archives/innerhtml-gotchas
Is there someone from the richfaces team that can say if the patch has been applied or not ? -
13. Re: [IE] Datatable's cell disappear on ajax reRender
ronanker Jan 19, 2009 1:26 PM (in response to ronanker)
Perhaps the "replace" method of Prototype could help ?
http://www.prototypejs.org/api/element/replace
or jQuery.replaceWith( content )
http://docs.jquery.com/Manipulation/replaceWith#content
It would be fine to see this working as my workaround is awful. -
14. Re: [IE] Datatable's cell disappear on ajax reRender
nbelaevski Jan 19, 2009 2:25 PM (in response to ronanker)Hello,
I can confirm that it still does not work correct in 3.3.0.GA. There is a special code that should handle such case, however it doesn't work well.