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

Nick Belaevski updated RF-4024:
-------------------------------

        Fix Version/s: 3.2.2
    Affects Version/s: 3.2.2
          Description: 
on the page:
<rich:tooltip>
<h:panelGroup id="tooltipGroup">
some value outputs
</h:panelGroup>
<rich:tooltip>

<a4j:commandButton reRender="tooltipGroup" ..../>

as result tooltipGroup will not rerender and tooltipGroup missed in the 
Ajax-Update-Ids
Cause of this issue is following method in the UIToolTip class (notice else 
clause)
        public void encodeAjaxChild(FacesContext context, String path, Set ids,
                        Set renderedAreas) throws IOException {
                
                if(ids.contains(this.getClientId(context) + "content")){
                        AjaxContext ajaxContext = 
AjaxContext.getCurrentInstance(context);
                        ToolTipRenderer r = 
(ToolTipRenderer)getRenderer(context);
                        r.encodeTooltipText(context, this);
                        
ajaxContext.getAjaxRenderedAreas().add(this.getClientId(context) + "content");
                } else {
                        // todo
//                      AjaxContext ajaxContext = 
AjaxContext.getCurrentInstance(context);
//                      ajaxContext.e
                        
                }
                        
        }


  was:
on the page:
<rich:tooltip>
<h:panelGroup id="tooltipGroup">
some value outputs
</h:panelGroup>
</rich:tooltip>

<a4j:commandButton reRender="tooltipGroup" ..../>

as result tooltipGroup will not rerender and tooltipGroup missed in the 
Ajax-Update-Ids
Cause of this issue is following method in the UIToolTip class (notice else 
clause)
        public void encodeAjaxChild(FacesContext context, String path, Set ids,
                        Set renderedAreas) throws IOException {
                
                if(ids.contains(this.getClientId(context) + "content")){
                        AjaxContext ajaxContext = 
AjaxContext.getCurrentInstance(context);
                        ToolTipRenderer r = 
(ToolTipRenderer)getRenderer(context);
                        r.encodeTooltipText(context, this);
                        
ajaxContext.getAjaxRenderedAreas().add(this.getClientId(context) + "content");
                } else {
                        // todo
//                      AjaxContext ajaxContext = 
AjaxContext.getCurrentInstance(context);
//                      ajaxContext.e
                        
                }
                        
        }


             Assignee: Denis Morozov


> rich:tooltip missing ajaxchild encode code.
> -------------------------------------------
>
>                 Key: RF-4024
>                 URL: https://jira.jboss.org/jira/browse/RF-4024
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: Victor
>            Assignee: Denis Morozov
>            Priority: Critical
>             Fix For: 3.2.2
>
>
> on the page:
> <rich:tooltip>
> <h:panelGroup id="tooltipGroup">
> some value outputs
> </h:panelGroup>
> <rich:tooltip>
> <a4j:commandButton reRender="tooltipGroup" ..../>
> as result tooltipGroup will not rerender and tooltipGroup missed in the 
> Ajax-Update-Ids
> Cause of this issue is following method in the UIToolTip class (notice else 
> clause)
>       public void encodeAjaxChild(FacesContext context, String path, Set ids,
>                       Set renderedAreas) throws IOException {
>               
>               if(ids.contains(this.getClientId(context) + "content")){
>                       AjaxContext ajaxContext = 
> AjaxContext.getCurrentInstance(context);
>                       ToolTipRenderer r = 
> (ToolTipRenderer)getRenderer(context);
>                       r.encodeTooltipText(context, this);
>                       
> ajaxContext.getAjaxRenderedAreas().add(this.getClientId(context) + "content");
>               } else {
>                       // todo
> //                    AjaxContext ajaxContext = 
> AjaxContext.getCurrentInstance(context);
> //                    ajaxContext.e
>                       
>               }
>                       
>       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
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