I need to render a jsf component (Primefaces) through the Bean. I have a selectOneMenu that changes the type of person (physical / legal) and I need to render the field "CPF", since I use the same field for CPF / CNPJ and when changing the type, I need to change the input mask. >
How to do it?