public CharSequence decorateScript(CharSequence script) {
   IVeilScope veilScope = getVeilScope();
   if (veilScope != null) {
     return "if(Wicket.Veil){"
         + VeilResources.Javascript.Generic.show(veilScope.getVeilId())
         + ";};"
         + script;
   }
   return "if(Wicket.Veil){" + VeilResources.Javascript.Generic.show("AT_body") + ";};" + script;
 }
 public CharSequence decorateOnSuccessScript(CharSequence script) {
   IVeilScope veilScope = getVeilScope();
   if (veilScope != null) {
     return script
         + ";if(Wicket.Veil){"
         + VeilResources.Javascript.Generic.toggle(veilScope.getVeilId())
         + ";};";
   }
   return script
       + ";if(Wicket.Veil){"
       + VeilResources.Javascript.Generic.toggle("AT_body")
       + ";};";
 }
 public CharSequence decorateOnFailureScript(CharSequence script) {
   IVeilScope veilScope = getVeilScope();
   String errorMessage =
       ";alert('"
           + this.veilFinder.getDefiningComponent().getString("ServerDown", null, "Server Down!")
           + "');";
   if (veilScope != null) {
     return script
         + ";if(Wicket.Veil){"
         + VeilResources.Javascript.Generic.toggle(veilScope.getVeilId())
         + ";};"
         + errorMessage;
   }
   return script
       + ";if(Wicket.Veil){"
       + VeilResources.Javascript.Generic.toggle("AT_body")
       + ";};"
       + errorMessage;
 }