i followed this approach JSF doesn't support cross-field validation, is there a workaround? to have a multicomponent validator. In my case six input fields inside each row in a datatable(primefaces). Validation process seems to work right but strange thing is, when i only have one row, the form is submitted, validated, backing bean populated and so on. When i have more than one row,, the form is submitted, validated, but save method on backing is not called. Debug in browser prints in http response:
class java.lang.NumberFormatException>>
And using a phase listener to log component life cycle i see this:
2014-09-30/23:23:25.579/BST DEBUG LifeCycleListener:24:[http-apr-8080-exec-4] - START PHASE RESTORE_VIEW 1 2014-09-30/23:23:25.581/BST DEBUG LifeCycleListener:24:[http-apr-8080-exec-4] - START PHASE RESTORE_VIEW 1 2014-09-30/23:23:25.697/BST DEBUG LifeCycleListener:19:[http-apr-8080-exec-4] - END PHASE RESTORE_VIEW 1 2014-09-30/23:23:25.701/BST DEBUG LifeCycleListener:19:[http-apr-8080-exec-4] - END PHASE RESTORE_VIEW 1 2014-09-30/23:23:25.702/BST DEBUG LifeCycleListener:24:[http-apr-8080-exec-4] - START PHASE RENDER_RESPONSE 6 2014-09-30/23:23:25.702/BST DEBUG LifeCycleListener:24:[http-apr-8080-exec-4] - START PHASE RENDER_RESPONSE 6 2014-09-30/23:23:26.270/BST DEBUG LifeCycleListener:19:[http-apr-8080-exec-4] - END PHASE RENDER_RESPONSE 6 2014-09-30/23:23:26.270/BST DEBUG LifeCycleListener:19:[http-apr-8080-exec-4] - END PHASE RENDER_RESPONSE 6
I'm not using any converter, just my custom validator. What am i doing wrong? Thanks