[richfaces-issues] [JBoss JIRA] (RF-5630) DataTable: sorting/filtering breaks in Safari with tooltip in HTML mode

Israel Rios (JIRA) jira-events at lists.jboss.org
Wed Aug 1 13:44:07 EDT 2012


    [ https://issues.jboss.org/browse/RF-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709253#comment-12709253 ] 

Israel Rios commented on RF-5630:
---------------------------------

It seems to be a problem with webkit implementation of document.importNode. To circumvent this problem you can use this little piece of javascript code on your template file:
{code:javascript}
if( /webkit/.test( navigator.userAgent.toLowerCase() ) ){
  var _importNode = window.document.importNode;
  window.document.importNode = function(node, deep){
    try{
      return _importNode.apply(this, arguments);
    } catch(e) {
      if( e.code == DOMException.NOT_SUPPORTED_ERR ){
        // clone and adopt
        return document.adoptNode(node.cloneNode(deep));
      }
      throw e;
    }
  };
}
{code}
                
> DataTable: sorting/filtering breaks in Safari with tooltip in HTML mode
> -----------------------------------------------------------------------
>
>                 Key: RF-5630
>                 URL: https://issues.jboss.org/browse/RF-5630
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-output
>    Affects Versions: 3.3.3.Final
>         Environment: Safari, Facelets, HTML mode
>            Reporter: Nick Belaevski
>             Fix For: 3.Future
>
>         Attachments: mcc-test.war
>
>
> 1. Try to sort the table
> 1a. Compare with common re-rendering
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> 	xmlns:ui="http://java.sun.com/jsf/facelets"
> 	xmlns:h="http://java.sun.com/jsf/html"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:rich="http://richfaces.org/rich"
> 	xmlns:a4j="http://richfaces.org/a4j">
> <a4j:log popup="false" level="ALL" style="width: 800px; height: 300px;"></a4j:log>
> <f:view contentType="text/html">
> 	<h:form id="form">
> 		<rich:dataTable id="table" value="#{forum5Bean.lotOfData}" var="item">
> 			<rich:column sortBy="#{item}">
> 				<f:facet name="header">
> 					Header
> 				</f:facet>
> 				
> 				#{item} - #{forum5Bean.time}
> 			
> 				<rich:toolTip layout="block" rendered="true">
> 				#{forum5Bean.time}
> 				</rich:toolTip>
> 			</rich:column>
> 		
> 		</rich:dataTable>
> 	
> 		<a4j:commandLink value="Re-render" reRender="table" />
> 	</h:form>
> </f:view>
> </html>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list