Ersteres (Nuclos API, Server-Regel):
z.B. mit
throw new BusinessException("Dies ist eine Fehlermeldung mit OK-Knopf");
Zweiteres z.B. mit
if (InputContext.getInstance().isSupported()) {
Object value = InputContext.getInstance().get("org.nuclet.dialogantwort");
if (value == null) {
InputSpecification spec;
spec = new InputSpecification(InputSpecification.CONFIRM_YES_NO, "org.nuclet.dialogantwort", "Sind Sie sicher?");
throw new InputRequiredException(spec);
} else {
if (InputSpecification.YES != ((Integer)value).intValue()) {
throw new BusinessException("Dann eben nicht.");
}
}
}