1

I'm facing this problem when using Richfaces 4.x... what I have is a datatable in edit mode so where the user can insert data using textboxes or radioButtons. The table needs to have a maximun of 10 rows per page reason why I also use a rich:Datascroller to paginate.

Suppose I'm on page 1 and there are validation errors on page 3, when the user clicks the save button JSF sends the entire table. However, since only the values of page 1 are visible it bypasses validations for rows on page 3. Any ideas how can I avoid this problem?. Thanks a lot.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Pablo
  • 3,433
  • 7
  • 44
  • 62
  • So what is the problem exactly? You want it to validate page 3 even when you are on page 1, is it? – Niks Jan 04 '12 at 05:06
  • Yes, that's the problem, since in page 3 I have some required=true fields. – Pablo Jan 04 '12 at 15:08
  • What render type do you have on the `Save` or `Update` button? I think If you use `render="@table"`, it would validate your page 3 fields as well. – Niks Jan 04 '12 at 15:21
  • No, it's not. I'm executing the whole table, especified by the table id. Don't think it would be different to use @table or is it? – Pablo Jan 04 '12 at 15:29
  • Ohh..Yes you are right. It wouldn't make any difference! hmm.. – Niks Jan 04 '12 at 15:52

0 Answers0