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 29da3082f360df46c0b093a53e5e3a4d9b99e3be..c8b2a85fb18210dc2eddeef5d4283a83408fe1bb 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 baefb22bae5c747c480097ae98eeef933be06450..1fb3a667a58b755a237740c410f3a8d9233182db 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>