[richfaces-issues] [JBoss JIRA] (RF-12860) AccordionItem.js with error cause browser crash

Jan Papousek (JIRA) jira-events at lists.jboss.org
Tue Mar 26 06:39:41 EDT 2013


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

Jan Papousek commented on RF-12860:
-----------------------------------

I've added some code you've mentioned to my sample.

{code}
<h:form>
    <rich:extendedDataTable
            value="#{testBean.people}" var="person" style="width:500px"
            rows="10" sortMode="multi" selectionMode="multiple"
            tableState="#{testBean.state}" noDataLabel="No Data"
            onselectionchange="alert('selection change');">
        <f:facet name="header">
            <h:outputText value="People"/>
        </f:facet>
        <rich:column sortBy="#{person.firstname}" width="250px">
            <f:facet name="header">First Name</f:facet>
            #{person.firstname}
        </rich:column>
        <rich:column sortBy="#{person.secondname}" width="250px">
            <f:facet name="header">Second Name</f:facet>
            #{person.secondname}
        </rich:column>
        <a4j:ajax event="selectionchange" listener="#{testBean.selectionListener}" />
    </rich:extendedDataTable>

    <rich:accordion switchType="ajax" width="500px" style="margin-top: 50px">
        <rich:accordionItem header="First item">...</rich:accordionItem>
        <rich:accordionItem header="Second item">...</rich:accordionItem>
        <rich:accordionItem header="Second item">...</rich:accordionItem>
    </rich:accordion>
</h:form>
{code}

Still I am not able to reproduce the issue. Could you provide one of these?

# my sample application available on https://github.com/papousek/richfaces-sanbox/tree/RF-12860 updated to reproduce the issue, or
# minimal xhtml page + backing bean reproducing issue
                
> AccordionItem.js with error cause browser crash
> -----------------------------------------------
>
>                 Key: RF-12860
>                 URL: https://issues.jboss.org/browse/RF-12860
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-output
>    Affects Versions: 4.3.0.Final
>         Environment: JBOSS7/JSF2/FirefoxESR10 or Chrome25.0.1
>            Reporter: David Lee
>            Assignee: Jan Papousek
>              Labels: javascript, rich:accordionItem
>             Fix For: 4.3.2
>
>
> Put the rich:accordionItem and rich:extendedDataTable on same page,
> and just click on any column for sort.
> The firebug will show an error:
> items[i].__header is not a function
> [Break On This Error] 	
> h -= items[i].__header().outerHeight();
> Looks like accordionItem.js line48 been triggered when sort:
> $(document).one("javascriptServiceComplete", function () {
> item.__fitToHeight(item.getTogglePanel());
> }); 
> And after this happened, my whole thing crashed.
> Now more sortable or click for any action.

--
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


More information about the richfaces-issues mailing list