My scenario is if i change country drop down box, state drop down box have to list states according to country selection. i did this using rich:combobox with a4j support.
Now when my jsf form is submitted , validation error occurs .
After that if i change country ,but the state drop down box is showing old submitted value .
how can i make my jsf component to get the value from backing bean instead of submitted value after validation error .
When you cascade controls like that, you have to do several things. One of them is to provide a valueChangeListener for the parent control. The a4jRequest should be "immediate", "ajaxSingle", and should reRender the child control.
In the valueChangeListener in the backing bean, you need to do 2 things. One is to setup the new child selection list so that its property accessor method can retrieve it. The other is to invalidate the current child selection value. You will have problems if the selection value is a value that's not in the new selection list.
Customer surveys are for companies who didn't pay proper attention to begin with.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: how jsf component get the value from backing bean instead of submitted value after validation error