Is there any FacesConfirm like FacesMessage? I need to pass a confirmation dialog instead of message.
FacesMessage msg = new FacesMessage("The version " + version + " is already exists.", " The import data will replace the existing data.");
FacesContext.getCurrentInstance().addMessage(null, msg);
No. You could however render a
<script>conditionally.Or you could use a 3rd party JSF component library which uses similar mechanism, such as PrimeFaces’
<p:confirmDialog>.