rowSelectListener and onselectComplete multiple calls

UI Components for JSF
Post Reply
User avatar
wikisky
Posts: 53
Joined: 16 Jul 2010, 17:30
Location: Oakville,ON
Contact:

29 Aug 2010, 21:28

Something strangle with row selection is going on in 2.2.
First I noticed that selectedRow randomly reset to null after rendering pop up dialog on select event.
I noticed also that dataTable fires multiple rowSelectListener events by multiple ajax calls (means something is not right in javascript)
The repeating number of calls is growing from from row click to click.
Using FireFox 3.6.8, PF 2.2-M1-SPANSHOT, Glassfish 3.0.1
BTW, thanks for the new rowStyleClass feature

Code: Select all

                    <p:dataTable id="merchantsList" var="row" value="#{merchantsBean.list}"
                                 rowStyleClass="#{row.status eq 0?'row-status-inactive' : row.status eq -1 ? 'row-status-deleted' : ''}"
                                 dynamic="true" paginator="true" paginatorPosition="both" rows="20"
                                 paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                 rowsPerPageTemplate="10,20,50,100"
                                 selection="#{merchantsBean.selectedRow}"
                                 selectionMode="single"
                                 onRowSelectUpdate="recordViewPanel"
                                 onRowSelectComplete="recordViewDialog.show()"
                                 rowSelectListener="#{merchantsBean.onRecordSelect}">

User avatar
wikisky
Posts: 53
Joined: 16 Jul 2010, 17:30
Location: Oakville,ON
Contact:

30 Aug 2010, 02:19

More details.
The duplicate ajax calls seems to be accumulated after I refresh dataTable. I.e. I have an update on dialog's onCloseUpdate:

Code: Select all

                <p:dialog widgetVar="recordViewDialog"
                          modal="true" closeOnEscape="true" draggable="true" resizable="true" width="700"
                          header="Merchant Record"
                          closeListener="#{merchantsBean.onCloseMerchantDialog}" onCloseUpdate="merchantsList" >

kemalsekerci
Posts: 3
Joined: 11 Aug 2010, 22:21

01 Oct 2010, 20:41

i have a same error. multiple request sending when i have selected row.
pls help

callahan
Posts: 768
Joined: 27 May 2010, 22:52

01 Oct 2010, 21:27

Hi,

I'd imagine that the issue discussed above is the same as the issue discussed here http://primefaces.prime.com.tr/forum/vi ... f=3&t=4531

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 61 guests