This content has been marked as final. Show 5 replies
You can use a flag for the Required property of B and C and set the value to true in the valueChangeListener of A and B respectively. This is a workaround, but should fulfill your requirement.
Hi,1 person found this helpful
actually in the value change listener you need to call facesContext.RenderResponse() to return to the display without validating other components.
I am sorry I left this thread without any response. I actually made it work. I tried to use renderResponse but by doing that my other two lists were not being populated (it seems that it interrupted a phase).
My solution was putting the fields as mandatory and using the solution above by setting the required true/false on the valueChangeListener.
Thanks for your help
ideal way is to have this condition in field B.. showRequiredif A!=null and For c showRequiredif B!=null. and disable B if A is null and Disable C if B is null, have partial trigger for b (a change), partial trigger on c for b change1 person found this helpful
It doesnt require Value change Listener.
You are right! In that way you avoid all the validations problem and makes more sense because the fields are dependent!!! If I could, I would give you the right answer to you.