[richfaces-issues] [JBoss JIRA] Resolved: (RF-10231) PopupPanel destroy javascript method causes client side exception: expr.replace is not a function

Gleb Galkin (JIRA) jira-events at lists.jboss.org
Mon Jan 24 10:33:50 EST 2011


     [ https://issues.jboss.org/browse/RF-10231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gleb Galkin resolved RF-10231.
------------------------------

    Resolution: Cannot Reproduce Bug


Cannot reproduce the bug. My steps to reproduce:

1. popup panel is placed on the page in form <rich:popupPanel id="popup" /> 
2. rerender popup panel with the help of  <a4j:commandLink render="popup" value="Rerender popup"/>. It causes the panel to be reattached (this.domReattached is true) 
3. navigate to http://google.com. 
No exception occurs. There is nothing in the server log and js console. 

> PopupPanel destroy javascript method causes client side exception: expr.replace is not a function
> -------------------------------------------------------------------------------------------------
>
>                 Key: RF-10231
>                 URL: https://issues.jboss.org/browse/RF-10231
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-panels-layout-themes
>    Affects Versions: 4.0.0.Milestone5
>         Environment: myfaces 2.0.3, tomcat 6
>            Reporter: James Goodfellow
>            Assignee: Gleb Galkin
>              Labels: popupPanel
>             Fix For: 4.0.0.CR1
>
>
> When the javascript method destroy on the popuppanel class is called, a javascript exception occurs:
> expr.replace is not a function
> I believe the problem is the destroy method (popupPanel.js line 166)
>    if (this.domReattached) {
>       var element = this.div;
>       var parent = element.parent();
>       if (parent) {
>          parent.remove(element);
>       }
>    }
> I believe the correct method would be parent.removeChild(element);

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list