Creating master-detail table and dialog, how to reuse same dialog for create and edit
Even if we fix your problem, this construct <p:inputText value=”#{guestList.hasSelected() ? ” : guestList.selectedGuest.name}”> is not ever going to work. It needs to reference a model property, not an empty string. You’d best just reuse the edit form and let the create button precreate an empty entity. This would simplify a lot in the view … Read more