[richfaces-issues] [JBoss JIRA] (RF-13687) TabPanel header is not updated after switching of tabs

Brian Leathem (JIRA) issues at jboss.org
Fri Jul 4 16:39:24 EDT 2014


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

Brian Leathem commented on RF-13687:
------------------------------------

Looking at the generated HTML:

{code}
...
<td id="form:j_idt41:header:inactive" class="rf-tab-hdr rf-tab-hdr-inact rf-tab-hdr-top" style="display: table-cell;">
  <span class="rf-tab-lbl">
    <span id="form:label">5 clicks</span>
  </span>
</td>
<td id="form:j_idt41:header:active" class="rf-tab-hdr rf-tab-hdr-act rf-tab-hdr-top" style="display: none;">
  <span class="rf-tab-lbl">
    <span id="form:label">0 clicks</span>
  </span>
</td>
<td id="form:j_idt41:header:disabled" class="rf-tab-hdr rf-tab-hdr-dis rf-tab-hdr-top" style="display : none">
  <span class="rf-tab-lbl">
    <span id="form:label">0 clicks</span>
  </span>
</td>
...
{code}

One can see that the label attribute is rendered 3 times: once for each of the _active_, _inactive_, and _disabled_ tab headers.  Only one of the rendered DOM nodes is getting updated with the new value.

This is likely due to the repetition of the {{id}} attribute amongst the three rendered DOM nodes.  This is incorrect HTML, and as such the behaviour is unspecified.  Proper resolution of this issue will involve properly dealing with the active/inactive/disabled tab headers and rendering each tab header only a single time.

> TabPanel header is not updated after switching of tabs
> ------------------------------------------------------
>
>                 Key: RF-13687
>                 URL: https://issues.jboss.org/browse/RF-13687
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-output
>    Affects Versions: 4.5.0.Alpha3, 5.0.0.Alpha3, 5.0.0.Alpha4
>            Reporter: Juraj Húska
>            Assignee: Brian Leathem
>             Fix For: 4.5.0.Alpha3
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> If {{TabPanel}} header is updated dynamically with AJAX, then switching among the tabs shows not the updated value of the header, but the initial one. Its updated after refresh of the page.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the richfaces-issues mailing list