I'm having some trouble for a couple days, and we can't find on the web a good way of solving it. So i I'll put here and hope anyone can help me and others with same problem.
We have a big form with some p:selectOneMenu
components on it. When the user wants an extra option he can click on the plus button on the side of a component, to be redirected to a new page to create and save on db the new option.
We made it work very well using a keepAlive function that holds a desired object through the screens. But we have some required fields that are blocking the plus button when blank.
Switching the button to immediate="true"
doesn't really helped because then the fields are not being passed to the attributes.
So what we need is a way of passing the fields to the attributes so we can keep across screens even when some required fields are blank! Does anyone have an idea that might work?