@Override public void addNewAnswerClicked() { answerDialogbox = new AnswerDialogboxImpl(); answerDialogbox.setDelegate(this); answerDriver = answerDialogbox.createEditorDriver(); AnswerRequest request = requests.answerRequest(); this.answerProxy = request.create(AnswerProxy.class); request.persist().using(answerProxy); answerProxy.setQuestion(question); answerProxy.setDateAdded(new Date()); answerProxy.setAutor(loggedUser); if (loggedUser.getIsAdmin()) { answerProxy.setIsAnswerAcceptedAdmin(true); answerProxy.setIsAnswerAcceptedAutor(false); answerProxy.setRewiewer(question.getAutor()); } else { answerProxy.setIsAnswerAcceptedAdmin(false); answerProxy.setIsAnswerAcceptedAutor(true); } answerProxy.setIsAnswerAcceptedReviewWahrer(false); answerDialogbox.setRichPanelHTML(answerProxy.getAnswerText()); answerProxy.setIsAnswerActive(false); answerDriver.edit(answerProxy, request); answerDriver.flush(); answerDialogbox.setValidityPickerValues(Arrays.asList(Validity.values())); answerDialogbox.setRewiewerPickerValues(Collections.<PersonProxy>emptyList()); requests .personRequest() .findPersonEntries(0, 50) .with(medizin.client.managed.ui.PersonProxyRenderer.instance().getPaths()) .fire( new Receiver<List<PersonProxy>>() { public void onSuccess(List<PersonProxy> response) { List<PersonProxy> values = new ArrayList<PersonProxy>(); values.add(null); values.addAll(response); answerDialogbox.setRewiewerPickerValues(values); } }); // answerDialogbox.setAutorPickerValues(Collections.<PersonProxy>emptyList()); // requests.personRequest().findPersonEntries(0, // 50).with(medizin.client.managed.ui.PersonProxyRenderer.instance().getPaths()).fire(new // Receiver<List<PersonProxy>>() { // // public void onSuccess(List<PersonProxy> response) { // List<PersonProxy> values = new ArrayList<PersonProxy>(); // values.add(null); // values.addAll(response); // answerDialogbox.setAutorPickerValues(values); // } // }); answerDialogbox.display(); }