I have created specific code that allow a user to load a dialog to specify some search criterias.
The code that call the dialog is
<i class="fa fa-fw fa-dot-circle-o"
onclick="PF('LoadLabelHomoVectoDialog').show();"
/>
<p:inputText
id="CertificationCodeId"
value="#{vC.postLabellingSearchCriteria.certificationCode}"
readonly="true"
/>
The user click on icon and dialogbox is displayed.
The user make some action in dialog, click on OK button and CertificationCodeId
inputText widget is filled directly using Javascript. I can see specific value in it.
Then on main page (not more in dialog), I click on SEARCH button to start a new search using criteria value found in CertificationCodeId
inputText widget.
If readonly
attribute equal "false", the widget value is correctly transmitted to ViewController on server.
If readonly
attribute equal "true", the widget value is NOT transmitted to ViewController on server.
I thought that readonly
attribute is only to prohibit user input, but not to prohibit value to be transmitted to server.
What do I wrong ?
Is that a Primefaces issue ?
There exists a answer to my problem to Validate readonly components anyway on form submit that is disctinct from what is proposed !!! What is proposed is a duplicate of the link I propose :-)