Seam/jsf/richfaces/facelets concurrent rendering problem with Ajax requests
Issue
- We encounter unexpected behaviour in our ajax enabled Seam application. We are using a richfaces datatable backed by a session scoped bean exposing a seam datamodel and datamodelselection. A user can click on a row after which a detail page is displayed. On page-load we fire a jsFunction ajax call that loads some data in the background. When it is finished some values in the model are updated (using the session scoped bean, so access to the model is synchronized). The problem seems to arise when the datatable (or individual fields in the table) is re-rendered. When the user clicks a row at exactly the moment that rerendering is in progress the selected row (in datamodelselection) becomes uncertain and can be any row in the table. Clicks before or after the rerender always use the correct selected row.
Environment
- JBoss Enterprise Application Platform (EAP) 4.3.0_CP07
- Seam 2.0.2.GA
- Facelets 1.1.15-jsf1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
