Hi civici,
Thanks you for your response, regarding the page jumping issues, here is an abbreviated code snippit.
The intended action is to sort a result set on the screen, the results are shown on the screen using partial refresh. The functionality works as expected, except for the browser window scrolling to the top and then re-focusing after the partial refresh.
Code: Select all
<h:form id="flightOptionsForm_#{headingText}">
.....
<ul class="tabs">
<c:if test="#{headingText eq 'Return'}">
<li class="#{(aggregationSearchOptions.flightOptionsConversationBean.currentInboundSortType eq 'PRICE') ? 'active' : ''} #{(aggregationSearchOptions.flightOptionsConversationBean.currentInboundSortType != 'DEPARTURE' and aggregationSearchOptions.flightOptionsConversationBean.currentInboundSortType != 'DURATION') ? 'active' : ''}"><p:commandLink immediate="true" update="flightOptionsForm_Return" id="PRICE_#{headingText}" styleClass="sort-by-price" actionListener="#{aggregationSearchOptions.sortOptions}" oncomplete="selectRadioButton( 'flightOptionsForm_#{headingText}' )" >price</p:commandLink></li>
</c:if>
</ul>
... Other components in a UI Repeat...
</form>
Also, some feedback, it would be a nice feature if the mouse pointer went to a "hour glass" after a partial submit to signify to the user that a request is in progress (This may not be primefaces responsibility but its a "nice to have" option). We have had to implement this functionality our selves. I imagine it would be a common requirement for users with long running ajax requests.
Regards
Colm