[richfaces-issues] [JBoss JIRA] Resolved: (RF-9286) jsFunction doesn't rerender composite components

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Wed Sep 8 09:26:49 EDT 2010


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

Nick Belaevski resolved RF-9286.
--------------------------------

    Fix Version/s:     (was: 4.0.0.Milestone3)
       Resolution: Won't Fix


Not a bug: AJAX component should provide root tag with ID= clientId. Wrap this into span:

<composite:implementation> 
<span id="#{cc.clientId}">
    Name: <b><h:outputText id="name" value="#{cc.attrs.value}"/></b> 
</span>
</composite:implementation> 

> jsFunction doesn't rerender composite components
> ------------------------------------------------
>
>                 Key: RF-9286
>                 URL: https://jira.jboss.org/browse/RF-9286
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-a4j-core
>    Affects Versions: 4.0.0.Milestone2
>         Environment: v.4.0.0-SNAPSHOT SVN r.19031
>            Reporter: Pavol Pitonak
>            Assignee: Nick Belaevski
>
> I have following page:
> <h:form id="form">
>             <table width="400">
>                 <tbody>
>                     <tr>
>                         <td><span onmouseover="updateName('Kate')" onmouseout="updateName('')">Kate</span></td>
>                         <td><span onmouseover="updateName('John')" onmouseout="updateName('')">John</span></td>
>                         <td><span onmouseover="updateName('Alex')" onmouseout="updateName('')">Alex</span></td>
>                     </tr>
>                     <tr>
>                         <td colspan="3">
>                             <compositecomponent:output value="#{bean.text}" id="showname"/>
>                         </td>
>                     </tr>
>                 </tbody>
>             </table>
>             <a4j:jsFunction name="updateName" render="showname">
>                 <a4j:param name="name" assignTo="#{bean.text}"/>
>             </a4j:jsFunction>
> </h:form>
> and this composite component:
> <composite:interface>
>     <composite:attribute name="value" type="java.lang.String" required="true" />
> </composite:interface>
> <composite:implementation>
>     Name: <b><h:outputText id="name" value="#{cc.attrs.value}"/></b>
> </composite:implementation>
> The function above works ok is "showname" component is h:outputText. When it's composit component, it's not re-rendered.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list