Hello folks,

I suspect I found a bug in tr:table

For a tr:tree with 'rowSelection="multiple"', when "Select None" or 
"Select All" is clicked right after the other one (for example clicking 
'Select None', then clicking 'Select All'), in IE 7, we get javaScript 
error of;

"'undefined' is null or not an object"

And hence, the selectionListener method never gets called in the managed 
bean.

However if
1) In FireFox exact same things works ok. 
2) In IE 7, if I click one of the rows in between Select None and Select 
All, it is OK.



I captured the generated code and point where it is complaining

CollectionComponent.prototype._selectedKey=a13;
CollectionComponent.prototype._selectedModeKey=a14;
CollectionComponent.prototype.getLength=function(){
        var a16=this._getBoxes();      // Error happens at this line
        return a16.length;
};
......
....
where above _getBoxes() function seems to be defined as;
CollectionComponent.prototype._getBoxes=function(){
        var a16=this.getFormElement(this._selectedKey);
        if(a16.length==(void 0))
        {
                var a20=new Array(1);
                a20[0]=a16;
                a16=a20;
        }
        return a16;
};

I'm using Trinidad  1.2.10

The related xhtml code is;

        <tr:panelGroupLayout layout="vertical">
                        <tr:table value="#{bfeIbdsDialog.ibds}" var="row"
                                selectionListener=
"#{bfeIbdsDialog.ibdSelectionListener}"
                        autoSubmit="true"
                                immediate="true"
                                id="ibdsTableId"
                                rendered="true"
                                width="100%"
                                rowSelection="multiple"
                                rows="10"
                                rowBandingInterval="1"
                                emptyText="Nothing to show"
                        summary="BFEs matching the Search Criteria">
                        <tr:column headerText="IBD #">
                                <tr:outputText value="#{row.ibdNum}" />
                        </tr:column>
                        <tr:column headerText="IBD Name">
                                <tr:outputText value="#{row.ibdName}" />
                        </tr:column>
                        </tr:table> 
            </tr:panelGroupLayout>

The selectionListener method in Managed Bean is;
        public void ibdSelectionListener(SelectionEvent _se){
                logger.info("<-->BEF ibdSelectionListener(.)" );
        }

Any idea what to do ?

Regards,
-- ilker

Information Classification: Public

Information Classification: Public

******************************************************
IMPORTANT: Any information contained in this communication is intended for the 
use of the named individual or entity. All information contained in this 
communication is not intended or construed as an offer, solicitation, or a 
recommendation to purchase any security. Advice, suggestions or views presented 
in this communication are not necessarily those of Pershing LLC nor do they 
warrant a complete or accurate statement. 

If you are not an intended party to this communication, please notify the 
sender and delete/destroy any and all copies of this communication. Unintended 
recipients shall not review, reproduce, disseminate nor disclose any 
information contained in this communication. Pershing LLC reserves the right to 
monitor and retain all incoming and outgoing communications as permitted by 
applicable law.

Email communications may contain viruses or other defects. Pershing LLC does 
not accept liability nor does it warrant that email communications are virus or 
defect free.
******************************************************

Reply via email to