From 7f1364321a1d35d1af747529d143d85edaa1eb4f Mon Sep 17 00:00:00 2001 From: Heiko Braun Date: Tue, 24 Jul 2012 16:39:18 +0200 Subject: [PATCH] show required fields in description view --- .../jboss/as/console/client/tools/DescriptionView.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java b/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java index 449d590e83..7cfcc4c243 100644 --- a/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java +++ b/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java @@ -112,8 +112,14 @@ public void updateDescription(ModelNode address, ModelNode description) public void onAttribute(String name, String description, String type, boolean required) { attributeBuilder.appendHtmlConstant(""); - attributeBuilder.appendHtmlConstant("").appendEscaped(name).appendHtmlConstant(""); - attributeBuilder.appendHtmlConstant("").appendEscaped(type).appendHtmlConstant(""); + attributeBuilder.appendHtmlConstant(""); + attributeBuilder.appendEscaped(name); + attributeBuilder.appendHtmlConstant(""); + attributeBuilder.appendHtmlConstant(""); + attributeBuilder.appendEscaped(type); + String requiredSuffix = required ? " (*)" : ""; + attributeBuilder.appendEscaped(requiredSuffix); + attributeBuilder.appendHtmlConstant(""); attributeBuilder.appendHtmlConstant(""); attributeBuilder.appendHtmlConstant("");