Validator in dataTable - bug?
Hi,
I am using validators in a dataTable, and it works, but in some cases the behaviour is not adequate.
Some code first :
--
<h:dataTable value='#{apps}' var='app'>
<h:column>
<f:facet name='header'>
<h:outputText value='#{msgs.name}' />
</f:facet>
<h:message for='appname' style='color:red;'/>
<h:inputText value='#{app.name}' id='appname' required='true' >
<f:validator .... />
</h:inputText>
</h:column>
....
--
As I said - the validation works fine. What is strange is that if a validator is used outside a dataTable, and validation fails, then any new values in the dataTable are lost!! UNLESS (as is here) there is a validator on some field in the dataTable - then if validation fails in the dataTable (regardless if validation outside fails or not) values in the table are preserved, butthen when correct values are entered in the table and validation inside the dataTable succeeds, but fails outside - the validated values on the row in question of the dataTable disappear!!!!! (they are not displayed when the page is reloaded).
Seams like a bug?
Is there any way to correct that behaviour, e.g. to force the values in the table that are still not in the model to be kept on the page after outside validation fails and page reloads?
Thanks for any suggestions!
Message was edited by:
***-uk

