I am implementing infinite scrolling using jquery waypoints and jsf following link . I have prerender for one of the xhtml on which infinite scrolling is required . Now, as waypoint sends ajax request so why for every scroll it is calling prerender that means whole page is getting refeshed. Please let me know how to solve this.
preRenderView is called on every ajax request
5.9k views Asked by Rahul Singh At
1
There are 1 answers
Related Questions in AJAX
- window.location.href redirects but is causing problems on the webpage
- Js variable to php using ajax
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- how do I change a URL with form to include additional selection
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Opening modal through Update button with specified ID using ajax
- Events disappear randomly for full calendar module
- Ajax call reloads page in FrontAccounting, a PHP ERP solution
- Add newly added record to select2 element
- AJAX query cascading dropdown in django
- Failed to load resource: the server responded with a status of 403 () - SCRIPT - WordPress
- Maintaining search and sort state across paginated results in web application
- Getting POST 500 Internal server error while sending request via ajax call
- Wordpress server side datatable filtering
- Having a problem in datatables and fullcalendar scripts
Related Questions in JSF
- Calling custom AuthenticationHandler from Faces bean throws IllegalStateException: Cannot change buffer size after data has been written
- Force security constraint managed 403 error when hitting restricted page with h:commandLink
- primefaces component id not found in update
- LazyDataModel, custom filter with search button
- How to use SelectManyCheckbox with ArrayList as HashMap value
- how to surpress logging of jsf "There are some unhandled FacesMessages"
- SelectManyCheckbox returns array of Object[] instead of ArrayList
- My dialog component on PrimeFaces can't render a list on first click
- How to retrieve posted data via FacesContext
- I'm using JSF and after a timer expires, I want to display a warning
- Why print result is blank?
- PrimeFaces centering searchbar on menubar
- JSF: p:fileUpload requiredmessage is apearing on click of another button
- How can I make sure that JSF works?
- Is there an already-made template project using Spring, JSF, PrimeFaces, SOAP and MySQL?
Related Questions in PRIMEFACES
- primefaces component id not found in update
- LazyDataModel, custom filter with search button
- How to use SelectManyCheckbox with ArrayList as HashMap value
- Primefaces DataTable RowGroup with HeaderRow : how to reverse order?
- SelectManyCheckbox returns array of Object[] instead of ArrayList
- My dialog component on PrimeFaces can't render a list on first click
- Why print result is blank?
- PrimeFaces centering searchbar on menubar
- Is there an already-made template project using Spring, JSF, PrimeFaces, SOAP and MySQL?
- Frozen Columns in JSF Primefaces
- Slow page load after updating primefaces(-extension) from 6.2 to 8
- WildFly primefaces Fileupload customization (Encrypted tempFile)
- DuplicateIdException - myfaces 3.02, primefaces 13.0.0, TomEE 9.1
- Removing Axis Below Bars in Horizontal Bar Chart using PrimeFaces V8 HorizontalBarChartModel, JSF
- Primefaces dataTable reset after Submit button click
Related Questions in INFINITE-SCROLL
- Understanding Scroll Anchoring Behavoir
- Duplicate data is repeating in infinite scroll in react.js
- How can i make a infinite horizontal scroll that recibes input from mouse wheel with Javascript & React
- infinite scroll of primereact multiselect
- More optimize way to find whether user likes the post or not in infinite post feed
- ref not pointing to new item after re-render reacjs
- Apollo Client fetchMore doesn't merge previous and fetchMoreResult correctly in React app
- Creating Infinite horizontall scrolling ( like Ring )
- stack divs horizontally inside infinite div
- Loading an infinite table by incrementing page dynamically in htmx
- React InfiniteScroll issue
- React Native with RTK Query Pagination issue
- Smooth scrolling is causing extra pages to scroll unexpectedly
- Exception with PageController in Flutter: "A PagingController was used after being disposed"
- What is the best practice for scraping infinite scroll (one time scraping / progressing scraping)?
Related Questions in PRERENDERVIEW
- Prerender not detecting token with IIS with angularjs
- Best Way to Do a Data List View Refresh in JSF?
- JSF <ui:include> contains page with preRenderView event not trigger in <h:body>
- preRenderView not working during a method call
- URL redirection not working on preRenderView event
- Filter - Error Rendering View[/Error.xhtml] java.lang.NullPointerException
- ui:include includes page before prerender event jsf
- <f:event type="preRenderView"> in template client not invoked
- Faces messages not shown when preRenderView event jumps to another view in nested backing bean
- When to use preRenderView versus viewAction?
- JSF "cache" some preloaded variables
- using redirect links with angularjs and prerender.io
- jsf dispatch in preRenderView error
- JSF 2 redirect to first page on back button or URL copy paste (no Authentication involved)
- Clicking on commandLink is invoking preRenderView again
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You seem to think that the
preRenderViewevent is invoked only once during the construction of the view and not invoked on subsequent requests on the same view. This is untrue. ThepreRenderViewevent is invoked right before rendering of the view. The view is rendered on every request. This also includes ajax requests (how else should it produce the necessary HTML output for ajax requests?). So the behavior which you're seeing is fully expected. You was simply using the wrong tool for the job.You should either be using the
@PostConstructmethod of a@ViewScopedbean,or be adding a negation check on
FacesContext#isPostback()in the pre render view event listenerSee also: