p:ajax and dataTable problem

UI Components for JSF
Post Reply
_Anton_
Posts: 3
Joined: 24 Jan 2010, 12:43

24 Jan 2010, 13:27

I use datatable with lazy loading and dynamic pagination.

Code: Select all

     <pf:dataTable  id="dataTable" value="#{paysController.lazyDataModel}"
                               dynamic="true" var="item"
                               paginator="true" rows="100" lazy="true"
                               paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                               rowsPerPageTemplate="10,20,50,100,500"
                               selectionMode="multiple" selection="#{paysController.selectedPays}">
                .................
                     <pf:column>
                        <f:facet name="header">
                            <h:outputText value="#{bundle.ListPaysTitle_parseConfirm}"/>
                        </f:facet>
                        <h:selectBooleanCheckbox id="checkbox" value="#{item.parseConfirm}">
                            <pf:ajax event="click"/>
                        </h:selectBooleanCheckbox>
                    </pf:column>
              ..................
        <pf:dataTable>
HTML code of checkboxes after load page:

Code: Select all

<input id="dataTable:0:checkbox" type="checkbox" onclick="PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:0:j_idt73':'dataTable:0:j_idt73'});" name="dataTable:0:checkbox"/>
But when I move on next page, this code turns in:

Code: Select all

<input id="dataTable:100:checkbox" type="checkbox" onclick="PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:0:j_idt73':'dataTable:0:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:1:j_idt73':'dataTable:1:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:2:j_idt73':'dataTable:2:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:3:j_idt73':'dataTable:3:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:4:j_idt73':'dataTable:4:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:5:j_idt73':'dataTable:5:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:6:j_idt73':'dataTable:6:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:7:j_idt73':'dataTable:7:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:8:j_idt73':'dataTable:8:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:9:j_idt73':'dataTable:9:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:10:j_idt73':'dataTable:10:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:11:j_idt73':'dataTable:11:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:12:j_idt73':'dataTable:12:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:13:j_idt73':'dataTable:13:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:14:j_idt73':'dataTable:14:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:15:j_idt73':'dataTable:15:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:16:j_idt73':'dataTable:16:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:17:j_idt73':'dataTable:17:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:18:j_idt73':'dataTable:18:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:19:j_idt73':'dataTable:19:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:20:j_idt73':'dataTable:20:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:21:j_idt73':'dataTable:21:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:22:j_idt73':'dataTable:22:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:23:j_idt73':'dataTable:23:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:24:j_idt73':'dataTable:24:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:25:j_idt73':'dataTable:25:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:26:j_idt73':'dataTable:26:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:27:j_idt73':'dataTable:27:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:28:j_idt73':'dataTable:28:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:29:j_idt73':'dataTable:29:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:30:j_idt73':'dataTable:30:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:31:j_idt73':'dataTable:31:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:32:j_idt73':'dataTable:32:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:33:j_idt73':'dataTable:33:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:34:j_idt73':'dataTable:34:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:35:j_idt73':'dataTable:35:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:36:j_idt73':'dataTable:36:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:37:j_idt73':'dataTable:37:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:38:j_idt73':'dataTable:38:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:39:j_idt73':'dataTable:39:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:40:j_idt73':'dataTable:40:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:41:j_idt73':'dataTable:41:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:42:j_idt73':'dataTable:42:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:43:j_idt73':'dataTable:43:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:44:j_idt73':'dataTable:44:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:45:j_idt73':'dataTable:45:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:46:j_idt73':'dataTable:46:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:47:j_idt73':'dataTable:47:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:48:j_idt73':'dataTable:48:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:49:j_idt73':'dataTable:49:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:50:j_idt73':'dataTable:50:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:51:j_idt73':'dataTable:51:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:52:j_idt73':'dataTable:52:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:53:j_idt73':'dataTable:53:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:54:j_idt73':'dataTable:54:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:55:j_idt73':'dataTable:55:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:56:j_idt73':'dataTable:56:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:57:j_idt73':'dataTable:57:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:58:j_idt73':'dataTable:58:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:59:j_idt73':'dataTable:59:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:60:j_idt73':'dataTable:60:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:61:j_idt73':'dataTable:61:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:62:j_idt73':'dataTable:62:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:63:j_idt73':'dataTable:63:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:64:j_idt73':'dataTable:64:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:65:j_idt73':'dataTable:65:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:66:j_idt73':'dataTable:66:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:67:j_idt73':'dataTable:67:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:68:j_idt73':'dataTable:68:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:69:j_idt73':'dataTable:69:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:70:j_idt73':'dataTable:70:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:71:j_idt73':'dataTable:71:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:72:j_idt73':'dataTable:72:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:73:j_idt73':'dataTable:73:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:74:j_idt73':'dataTable:74:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:75:j_idt73':'dataTable:75:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:76:j_idt73':'dataTable:76:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:77:j_idt73':'dataTable:77:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:78:j_idt73':'dataTable:78:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:79:j_idt73':'dataTable:79:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:80:j_idt73':'dataTable:80:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:81:j_idt73':'dataTable:81:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:82:j_idt73':'dataTable:82:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:83:j_idt73':'dataTable:83:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:84:j_idt73':'dataTable:84:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:85:j_idt73':'dataTable:85:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:86:j_idt73':'dataTable:86:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:87:j_idt73':'dataTable:87:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:88:j_idt73':'dataTable:88:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:89:j_idt73':'dataTable:89:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:90:j_idt73':'dataTable:90:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:91:j_idt73':'dataTable:91:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:92:j_idt73':'dataTable:92:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:93:j_idt73':'dataTable:93:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:94:j_idt73':'dataTable:94:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:95:j_idt73':'dataTable:95:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:96:j_idt73':'dataTable:96:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:97:j_idt73':'dataTable:97:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:98:j_idt73':'dataTable:98:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:99:j_idt73':'dataTable:99:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:100:j_idt73':'dataTable:100:j_idt73'});" name="dataTable:100:checkbox"/>
It's not very good.. ;)

Servlet/3.0, JSF/2.0
Server: GlassFish v3
Primefaces 2.0.0 SNAPSHOT (22.01.2010)
Last edited by _Anton_ on 24 Jan 2010, 18:29, edited 1 time in total.

_Anton_
Posts: 3
Joined: 24 Jan 2010, 12:43

24 Jan 2010, 13:46

Update:
Even after the first loading checkbox in last row:

Code: Select all

<input id="dataTable:99:checkbox" type="checkbox" onclick="PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:0:j_idt73':'dataTable:0:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:1:j_idt73':'dataTable:1:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:2:j_idt73':'dataTable:2:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:3:j_idt73':'dataTable:3:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:4:j_idt73':'dataTable:4:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:5:j_idt73':'dataTable:5:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:6:j_idt73':'dataTable:6:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:7:j_idt73':'dataTable:7:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:8:j_idt73':'dataTable:8:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:9:j_idt73':'dataTable:9:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:10:j_idt73':'dataTable:10:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:11:j_idt73':'dataTable:11:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:12:j_idt73':'dataTable:12:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:13:j_idt73':'dataTable:13:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:14:j_idt73':'dataTable:14:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:15:j_idt73':'dataTable:15:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:16:j_idt73':'dataTable:16:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:17:j_idt73':'dataTable:17:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:18:j_idt73':'dataTable:18:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:19:j_idt73':'dataTable:19:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:20:j_idt73':'dataTable:20:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:21:j_idt73':'dataTable:21:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:22:j_idt73':'dataTable:22:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:23:j_idt73':'dataTable:23:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:24:j_idt73':'dataTable:24:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:25:j_idt73':'dataTable:25:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:26:j_idt73':'dataTable:26:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:27:j_idt73':'dataTable:27:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:28:j_idt73':'dataTable:28:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:29:j_idt73':'dataTable:29:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:30:j_idt73':'dataTable:30:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:31:j_idt73':'dataTable:31:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:32:j_idt73':'dataTable:32:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:33:j_idt73':'dataTable:33:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:34:j_idt73':'dataTable:34:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:35:j_idt73':'dataTable:35:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:36:j_idt73':'dataTable:36:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:37:j_idt73':'dataTable:37:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:38:j_idt73':'dataTable:38:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:39:j_idt73':'dataTable:39:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:40:j_idt73':'dataTable:40:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:41:j_idt73':'dataTable:41:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:42:j_idt73':'dataTable:42:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:43:j_idt73':'dataTable:43:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:44:j_idt73':'dataTable:44:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:45:j_idt73':'dataTable:45:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:46:j_idt73':'dataTable:46:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:47:j_idt73':'dataTable:47:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:48:j_idt73':'dataTable:48:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:49:j_idt73':'dataTable:49:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:50:j_idt73':'dataTable:50:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:51:j_idt73':'dataTable:51:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:52:j_idt73':'dataTable:52:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:53:j_idt73':'dataTable:53:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:54:j_idt73':'dataTable:54:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:55:j_idt73':'dataTable:55:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:56:j_idt73':'dataTable:56:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:57:j_idt73':'dataTable:57:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:58:j_idt73':'dataTable:58:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:59:j_idt73':'dataTable:59:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:60:j_idt73':'dataTable:60:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:61:j_idt73':'dataTable:61:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:62:j_idt73':'dataTable:62:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:63:j_idt73':'dataTable:63:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:64:j_idt73':'dataTable:64:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:65:j_idt73':'dataTable:65:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:66:j_idt73':'dataTable:66:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:67:j_idt73':'dataTable:67:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:68:j_idt73':'dataTable:68:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:69:j_idt73':'dataTable:69:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:70:j_idt73':'dataTable:70:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:71:j_idt73':'dataTable:71:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:72:j_idt73':'dataTable:72:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:73:j_idt73':'dataTable:73:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:74:j_idt73':'dataTable:74:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:75:j_idt73':'dataTable:75:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:76:j_idt73':'dataTable:76:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:77:j_idt73':'dataTable:77:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:78:j_idt73':'dataTable:78:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:79:j_idt73':'dataTable:79:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:80:j_idt73':'dataTable:80:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:81:j_idt73':'dataTable:81:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:82:j_idt73':'dataTable:82:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:83:j_idt73':'dataTable:83:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:84:j_idt73':'dataTable:84:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:85:j_idt73':'dataTable:85:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:86:j_idt73':'dataTable:86:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:87:j_idt73':'dataTable:87:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:88:j_idt73':'dataTable:88:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:89:j_idt73':'dataTable:89:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:90:j_idt73':'dataTable:90:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:91:j_idt73':'dataTable:91:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:92:j_idt73':'dataTable:92:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:93:j_idt73':'dataTable:93:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:94:j_idt73':'dataTable:94:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:95:j_idt73':'dataTable:95:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:96:j_idt73':'dataTable:96:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:97:j_idt73':'dataTable:97:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:98:j_idt73':'dataTable:98:j_idt73'});;PrimeFaces.ajax.AjaxRequest('/PayList/pays/List.xhtml',{formClientId:'j_idt13'},{'dataTable:99:j_idt73':'dataTable:99:j_idt73'});" name="dataTable:99:checkbox"/>
It is probable that at generation of each row the line to the onclick is added..

_Anton_
Posts: 3
Joined: 24 Jan 2010, 12:43

24 Jan 2010, 18:26

One more bug:
I go from first page of dataTable and select some rows. When I press any button, I recieve exception:

Code: Select all

java.lang.StringIndexOutOfBoundsException: String index out of range: -7
	at java.lang.String.substring(Unknown Source)
	at java.lang.String.substring(Unknown Source)
	at org.primefaces.component.datatable.DataTableRenderer.decodeMultipleSelection(DataTableRenderer.java:145)
	at org.primefaces.component.datatable.DataTableRenderer.decode(DataTableRenderer.java:63)
	at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:790)
	at javax.faces.component.UIData.processDecodes(UIData.java:980)
	at org.primefaces.component.datatable.DataTable.processDecodes(DataTable.java:309)
	at javax.faces.component.UIForm.processDecodes(UIForm.java:216)
	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1042)
	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1042)
	at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:941)
	at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
	at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
	at utils.UTFServletFilter.doFilter(UTFServletFilter.java:32)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
	at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
	at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
	at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
	at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
	at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
	at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
	at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
	at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
	at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
	at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
	at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
	at java.lang.Thread.run(Unknown Source)
DataTableRenderer.java:145:

Code: Select all

String firstRowELIndex = firstRowParamValue.trim().substring(7);
Probably ".substring(7)" superfluous because in "first" parameter number begins with the first symbol. And in request parameter "_firstRow" not setted, but "firstRowParamValue" takes from this parameter.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests