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

Juraj Húska commented on RF-13216:
----------------------------------

I can reproduce the original issue as well. The popup panel can not be closed 
when firstly not rendered, then rendered via an ajax update.

However, as you stated in 
[this|https://issues.jboss.org/browse/RF-13216?focusedCommentId=12807033&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12807033]
 comment, it does not seem to be a bug, but rather expected behavior.

I have pushed the facelets reproducing the issue 
[here|https://github.com/richfaces/richfaces-qa/tree/RF-13216]. Please see:
* [orginal reporter 
sample|https://github.com/richfaces/richfaces-qa/blob/RF-13216/metamer/application/src/main/webapp/components/richPopupPanel/rf-13216-original.xhtml]
 - *issue reproduced*
* [using also panelGroup 
sample|https://github.com/richfaces/richfaces-qa/blob/RF-13216/metamer/application/src/main/webapp/components/richPopupPanel/rf-13216-withPanelGroup.xhtml]
 - *issue reproduced*
* [domElementAttachment to form 
sample|https://github.com/richfaces/richfaces-qa/blob/RF-13216/metamer/application/src/main/webapp/components/richPopupPanel/rf-13216-domElementAttachmentForm.xhtml]
 - *as expected, it works* - the popup panel can be closed
* [separate forms 
sample|https://github.com/richfaces/richfaces-qa/blob/RF-13216/metamer/application/src/main/webapp/components/richPopupPanel/rf-13216-separateForms.xhtml]
 - *does not work*, it should according the already referenced comment.

Please, let me know if I should update some of the facelets anyhow ?

Steps to reproduce:
# load the original reproducer: 
http://localhost:8080/metamer/faces/components/richPopupPanel/rf-13216-original.xhtml
# click on the button: "switch on"
# an ajax update is made and the popup panel is rendered
# click switch off
# an ajax call is fired, however, the respective {{action}} method of the 
button is not called, thus the popup panel is not closed
                
> PoupPanel doesn't disappear when rendered="false" and rerender it.
> ------------------------------------------------------------------
>
>                 Key: RF-13216
>                 URL: https://issues.jboss.org/browse/RF-13216
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-output
>    Affects Versions: 4.3.3
>            Reporter: Takayuki Konishi
>            Assignee: Juraj Húska
>              Labels: gss
>         Attachments: rf3_3_4-modalpanel.zip, rf4_3_3-popuppanel.zip
>
>
> If you use the richfaces popupPanel in the default  
> domElementAttachment="body" mode it will not disappear under specific 
> conditions.
> {code:xml} 
>     <h:body title="page 1">
>         <a4j:outputPanel id="myPanel">
>             <rich:popupPanel domElementAttachment="body" show="true" 
> rendered="#{test.showPopup}">
>                 <h:form>
>                     <a4j:commandButton action="#{test.switchPopup()}" 
> value="switch off" render="myPanel"/>
>                 </h:form>
>             </rich:popupPanel>
>             <h:form>
>                 <a4j:commandButton action="#{test.switchPopup()}" 
> value="switch on" render="myPanel"/>
>             </h:form>
>         </a4j:outputPanel>
>     </h:body>
> {code} 
> In Richfaces 3.3.x, on the other hand, there was a component cleanup system 
> ({{memory.js _cleanComponentNodes}}) which was responsible to remove 
> components after ajax calls if the component was removed from the current 
> view. 
> Therefore the above example (revert {{popupPanel}} to {{modalPanel}}) works 
> in RF3.3.4.Final.
> Note:
> In case {{domElementAttachment="parent"}}, it will show [the other JSF2 
> bug|https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-790] where the 
> view state was lost, therefore you must click the action button twice to 
> really call the function.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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