This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a page with two components. The first component is an HTML input text component that requires a value (h:inputText with required="true"). The second component is an HTML data table (h:dataTable) that contains a column with an input text field (the latter required property is set to false).
If the end-user fills in a number of rows in the data table, but does not fill in the input text field that is not part of the table, when the page is submitted, in the validation phase, the input text field which requires some value will cause validation to fail. The application will stay on the current page (possibly printing out some error messages if the appropriate JSF tags have been specified). This is expected. But I don't expect all text entered in the data table to disappear when the page is re-rendered which is what is happening right now. Is there a way to prevent this from happening? I'd hate to force the user to re-enter all of the tables data.
Other input text field that are not part of a table are not cleared when a validation error occurs. The case of input field within data table seems to be an exception to this rule.
I had the impression that this problem would get fixed in JSF 1.2, but I still see the same behavior in the latest 1.2 RI (1.2_03).