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

[1749 byte] By [ing-uka] at [2007-10-3 1:44:18]
# 1
Evening i am facing the same problemi nee to get the IDs of the component in the Datable how can i achieve that
su511g3a at 2007-7-14 18:42:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
> i nee to get the IDs of the component in the Datable> how can i achieve thatJust get the Object reference itself by getRowData(). Also see http://balusc.xs4all.nl/srv/dev-jep-dat.html how to use datatables.
BalusCa at 2007-7-14 18:42:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...