The problem occured when I added
Code: Select all
window.location.href =
javax.faces.model.NoRowAvailableException, I've traced it down to a request variable that seems to be the problem, but when I try to set it the ajaxevent that updates the dropdownbox stops working.
I thing I've work my self into a bad loop here, I thing there is a better solution but I don know what.
Code: Select all
<h:selectOneMenu value="#{OperatorController.eventPk}">
<f:selectItems value="#{ElectionEventController.electionEventList}" var="n" itemLabel="#{n.id}" itemValue="#{n.pk}"/>
<p:ajax event="change" action="#{OperatorController.clearAndReload}" onsuccess="document.form.submit();"/>
</h:selectOneMenu>
Code: Select all
<p:dataTable id="datatable" binding="#{OperatorController.dataTable}" value="#{OperatorController.operatorList}" update="createNew" onselectComplete="window.location.href = 'viewOperator.xhtml';" var="operator" border="1" selectionMode="single" selection="${OperatorController.currentOperator}" paginator="true" rows="10">
/Stefan