first of all I'm using Primefaces. I have a dialog with fields such as inputText, selectOneMenu, selectCheckboxMenu. But I also have a field where i have something like this:
<p:row>
<p:column styleClass="addLabelColumn addLabel">
<p:outputLabel value="Pracownik: " />
</p:column>
<p:column styleClass="addLabel addEmployeeLabelColumn">
<h:outputText id="employeeValue" value="#{accountModel.account.employee}" />
</p:column>
<p:column>
<p:commandButton type="button" id="employee" value="Wybierz"
onclick="PF('chooseEmployeeDlg').show()"/>
</p:column>
</p:row>
CommandButton opens the dialog with datatable, where user can choose row with Employee and then click OK, so that the outputText is updated with selectedObject string representation.
<p:commandButton value="OK!" onclick="PF('chooseEmployeeDlg').hide()" update="accountAssignGrid" />
accountAssignGrid is the surrounding panelGrid, where all of the fields are located. My problem is that the outputText is only updated when validation of all fields is successfull. If I don't write something correct into validated fields, the employeeValue outputText is not updated. I want the outputText to be updated always when the accountModel.account.employee changes or when user clicks OK button in the dialog with Employee datatable.
So my final question is: How to update only the outputText without submitting and validating the whole form?