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

Gleb Galkin commented on RF-10221:
----------------------------------

James, some refactoring happened, so don't use showPopupPanel(), 
hidePopupPanel() since it will be hidden in future. 
You can use in JavaScript RichFaces.$('popup').show(); or 
RichFaces.$('popup').hide(); instead. Also you can use 
#{rich:component('popup')}.show(), #{rich:component('popup')}.hide() that is 
more suitable since you can use in rich:component your popup id and all 
necessary JS code will be generated by RF. 

> Error when opening a popup panel
> --------------------------------
>
>                 Key: RF-10221
>                 URL: https://issues.jboss.org/browse/RF-10221
>             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 I call show or hide for a popup panel I get the following error: "fn is 
> undefined" from firefox.
> I believe the offening code is:  (in popupPanel.js)
>    showPopupPanel : function (id, opts, event) {
>       $(document).ready(richfaces.$(id).show());
>    },
>    hidePopupPanel : function (id, opts, event) {
>       $(document).ready(richfaces.$(id).hide());
>    }
>               
> It should probably be something more like:
>    showPopupPanel : function (id, opts, event) {
>       $(document).ready( function() { richfaces.$(id).show() } );
>    },
>    hidePopupPanel : function (id, opts, event) {
>       $(document).ready( function(){ richfaces.$(id).hide() } );
>    }

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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to