I have several different primefaces dialogs and I’ve implemented a close listener which receives a org.primefaces.event.CloseEvent. Inside of this close event I can access the UI component which generated the close event, org.primefaces.component.dialog.Dialog.
The problem I have is that I need to access all of the input fields which are on the dialog. These input fields may be buried inside other components on the dialog. Does anyone know of an easy way (one method call) to retrieve all of the child components which are input fields recursively?
Here is the solution I was able to come up with on my own: