Ajax event listener not executed with virtual scrolling

UI Components for JSF
Post Reply
ioihanguren
Posts: 15
Joined: 11 Feb 2016, 00:08

21 Feb 2018, 19:32

Hi,

I am using PrimeFaces 6.1 ( Mojarra JSF 2.2.6, Tomcat server) and I have a datatable with virtual scrolling.
In each row, I have a checkbox with an ajax event that executes a listener method from a bean.
It works properly without virtual scrolling, even with live scrolling (On Demand scrolling).
If I activate virtual scrolling, it works for the rows that are shown in the begining, but NOT for the new rows that are shown after I scroll down. It still works if I scroll up again and click the checkboxes from the first rows.
I don't know if it is a bug of PrimeFaces, or it's me who is doing something wrong. I would appreciate any help to fix the problema, or to get information that can help fixing it.

The datatable:

Code: Select all

<h:form id="ttForm">
      
                    <p:dataTable id="dataTableId"
                    	value="#{someBean.dataList}"
                    	var="node"
                    	rowIndexVar="rowIndex"
                    	resizableColumns="true"
                    	scrollRows="20"
                    	scrollable="true"
                    	virtualScroll="true"
                    	scrollHeight="100"
                    	rows="20">

				(... some columns...)                          
				
                              <p:column>
                                  <h:panelGroup id="column1">
                                  	<h:selectBooleanCheckbox value="#{node.managed}">
						<p:ajax
					            event="change"
					            listener="#{someBean.executeManagedAction()}"
					            process="@this"
					            partialSubmit="true" />
            				</h:selectBooleanCheckbox>
            
                                  </h:panelGroup>
                              </p:column>

                      </p:dataTable>

      </h:form>
      

Please let me know if you need more information.

Thanks in advance :D ,

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

22 Feb 2018, 00:30

Tried a 6.2-SNAPSHOT (or the 6.2-RC1/2?) Checked the releasenotes of elite releases? Checked the issue list in github?

ioihanguren
Posts: 15
Joined: 11 Feb 2016, 00:08

28 Feb 2018, 16:39

Hi, thanks for replying.

Yes, I have checked all the release notes since 6.1 and searched the issues, but I haven't seen anything like that.
How can i get 6.2 RC1 jar file? I haven't tried with that version, but I only have found the source code and I don't know how to get the jar.

Thank you very much,

ioihanguren
Posts: 15
Joined: 11 Feb 2016, 00:08

28 Feb 2018, 16:50

Oh, sorry, I guess I can create the jar following this instructions: https://github.com/primefaces/primeface ... rom-Source
I will try it and see if I still get the error with this version.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

28 Feb 2018, 16:53

Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

ioihanguren
Posts: 15
Joined: 11 Feb 2016, 00:08

01 Mar 2018, 12:29

Thanks for the link.

I've tried with the release candidate and I get the same result.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 18 guests