From 461e793abc5be91036231738e85b83bd744b6fbe Mon Sep 17 00:00:00 2001
From: Sonia Zorba <zorba@oats.inaf.it>
Date: Tue, 27 Mar 2018 11:32:19 +0200
Subject: [PATCH] Little bugfix

---
 TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchema.java | 5 ++++-
 TASMAN-webapp/src/main/webapp/index.xhtml                | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchema.java b/TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchema.java
index 29da308..c8b2a85 100644
--- a/TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchema.java
+++ b/TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchema.java
@@ -325,7 +325,10 @@ public class TapSchema implements EntitiesContainer<Schema>, Serializable {
      */
     @Override
     public List<String> getAddableChildrenNames() {
-        return TSMUtil.getAddableChildrenNames(schemas);
+        List<String> addables = TSMUtil.getAddableChildrenNames(schemas);
+        addables = new ArrayList<>(addables); // list returned by previous method is unmodified
+        addables.remove(getName()); // TAP_SCHEMA insertion must be managed by TASMAN
+        return addables;
     }
 
     /**
diff --git a/TASMAN-webapp/src/main/webapp/index.xhtml b/TASMAN-webapp/src/main/webapp/index.xhtml
index baefb22..1fb3a66 100644
--- a/TASMAN-webapp/src/main/webapp/index.xhtml
+++ b/TASMAN-webapp/src/main/webapp/index.xhtml
@@ -25,7 +25,7 @@
                                         <div class="form-group">
                                             <h:outputLabel for="username" class="col-sm-3 control-label">Username</h:outputLabel>
                                             <div class="col-sm-9">
-                                                <h:inputSecret class="form-control" id="username" value="#{login.username}" onkeypress="credentials.loginClicked(event)" required="true" requiredMessage="Insert the username" />
+                                                <h:inputText class="form-control" id="username" value="#{login.username}" onkeypress="credentials.loginClicked(event)" required="true" requiredMessage="Insert the username" />
                                                 <p class="text-danger"><h:message for="username"/></p>
                                             </div>
                                         </div>
-- 
GitLab