Al añadir una pregunta no se limpiaba el formulario.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-26 22:37:45 +01:00
parent c8b16d7295
commit 0e861e01c6

View File

@@ -102,6 +102,7 @@ public class QuestionsMBean extends ManagedBeanBase implements Serializable {
public void addNewQuestion() { public void addNewQuestion() {
getRemoteManagerMedicalTest().askQuestion(userID, this.selected.getTitle(), this.selected.getMessage()); getRemoteManagerMedicalTest().askQuestion(userID, this.selected.getTitle(), this.selected.getMessage());
this.create();
this.loadQuestions(); this.loadQuestions();
this.addFacesMessage(FacesMessage.SEVERITY_INFO, "Datos guardados", "La pregunta se registrado correctamente en el sistema."); this.addFacesMessage(FacesMessage.SEVERITY_INFO, "Datos guardados", "La pregunta se registrado correctamente en el sistema.");
} }