I have a Xpage that performs a partial refresh when a user selects a value in a combobox (onChange event). The combobox is actually a filter selector for a custom view component. This event triggers some SSJS code and performs a partial refresh. This event breaks occasionaly, probably due to XPages session being removed. The partial refresh is executed but the SSJS code that sets the viewScope variables is no longer executed. This results in the view showing all data without filter applied.
I added a print statement as the first line of the ssjs function. This print statement no longer executed.
I managed to reproduce this by restarting http with the page open.
Looking at the network tab in Chrome devtools shows status 200 on the partialRefreshPost. Also the partialrefresh id seems correct.
Any explanation?
<xe:keepSessionAlive>
from theextlib
? When you restart the http you drop every http session. So every one who is visiting your XPage will have to refresh the entrie page. – Michael Saiz