[richfaces-issues] [JBoss JIRA] Updated: (RF-4024) rich:tooltip missing ajaxchild encode code.

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Fri Jul 25 09:48:45 EDT 2008


     [ 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

        



More information about the richfaces-issues mailing list