Examples of contaNodi()


Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

        String ilValoreCorrente = attrValue;
        XMLBuilder theXMLconfTMP = confBean.getTheXMLValControllati();
        String thisExternalPath = attrExternalPath;
        int nodiOpzioni = theXMLconfTMP.contaNodi(thisExternalPath);
        outputField = "<select class=\"text\" name=\"[" + nameValue + "]\" id=\"" + nameValueEncoded + "\">";
        if (theXMLconfTMP.contaNodi(thisExternalPath + "[@value = '']") == 0 && (!selectAddEmptyValue.equals("") && selectAddEmptyValue.equals("yes"))) {
          outputField += "<option value=\"\" selected=\"true\">nessun valore</option>";
        }
        for (int a = 0; a < nodiOpzioni; a++) {
          outputField += "<option  value=\"" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/@value") + "\">" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/text()").replaceAll(" ", "&#160;") + "</option>";
        }
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

        String nameValueEncoded = URLEncoder.encode(nameValue, "iso-8859-1").replaceAll("%", "").replaceAll("\\*", "");
        if (attrTypology.equals("radio")) {
          String ilValoreCorrente = attrValue;
          XMLBuilder theXMLconfTMP = confBean.getTheXMLValControllati();
          String thisExternalPath = attrExternalPath;
          int nodiOpzioni = theXMLconfTMP.contaNodi(thisExternalPath);
          if (theXMLconfTMP.contaNodi(thisExternalPath + "[@value = '']") == 0 && (!selectAddEmptyValue.equals("") && selectAddEmptyValue.equals("yes"))) {
            outputField = "<input type=\"radio\" name=\"[" + nameValue + "]\" value=\"\" checked=\"true\" >nessun valore";
          }
          for (int a = 0; a < nodiOpzioni; a++) {
            outputField += "<input type=\"radio\" name=\"[" + nameValue + "]\" value=\"" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/@value") + "\">" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/text()").replaceAll(" ", "&#160;");
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

        if (attrTypology.equals("radio")) {
          String ilValoreCorrente = attrValue;
          XMLBuilder theXMLconfTMP = confBean.getTheXMLValControllati();
          String thisExternalPath = attrExternalPath;
          int nodiOpzioni = theXMLconfTMP.contaNodi(thisExternalPath);
          if (theXMLconfTMP.contaNodi(thisExternalPath + "[@value = '']") == 0 && (!selectAddEmptyValue.equals("") && selectAddEmptyValue.equals("yes"))) {
            outputField = "<input type=\"radio\" name=\"[" + nameValue + "]\" value=\"\" checked=\"true\" >nessun valore";
          }
          for (int a = 0; a < nodiOpzioni; a++) {
            outputField += "<input type=\"radio\" name=\"[" + nameValue + "]\" value=\"" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/@value") + "\">" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/text()").replaceAll(" ", "&#160;");
          }
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

          }
        } else if (attrTypology.equals("select")) {
          String ilValoreCorrente = attrValue;
          XMLBuilder theXMLconfTMP = confBean.getTheXMLValControllati();
          String thisExternalPath = attrExternalPath;
          int nodiOpzioni = theXMLconfTMP.contaNodi(thisExternalPath);
          outputField = "<select class=\"text\" name=\"[" + nameValue + "]\">";
          if (theXMLconfTMP.contaNodi(thisExternalPath + "[@value = '']") == 0 && (!selectAddEmptyValue.equals("") && selectAddEmptyValue.equals("yes"))) {
            outputField += "<option value=\"\" selected=\"true\">nessun valore</option>";
          }
          for (int a = 0; a < nodiOpzioni; a++) {
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

          String ilValoreCorrente = attrValue;
          XMLBuilder theXMLconfTMP = confBean.getTheXMLValControllati();
          String thisExternalPath = attrExternalPath;
          int nodiOpzioni = theXMLconfTMP.contaNodi(thisExternalPath);
          outputField = "<select class=\"text\" name=\"[" + nameValue + "]\">";
          if (theXMLconfTMP.contaNodi(thisExternalPath + "[@value = '']") == 0 && (!selectAddEmptyValue.equals("") && selectAddEmptyValue.equals("yes"))) {
            outputField += "<option value=\"\" selected=\"true\">nessun valore</option>";
          }
          for (int a = 0; a < nodiOpzioni; a++) {
            outputField += "<option  value=\"" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/@value") + "\">" + theXMLconfTMP.valoreNodo(thisExternalPath + "[" + (a + 1) + "]/text()").replaceAll(" ", "&#160;") + "</option>";
          }
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

      // com.regesta.dams.utility.xml.DomManager domManager = com.regesta.dams.utility.xml.DomManager.getInstance(isStatic, realPath);
      // XMLBuilder theXMLconfTMP = new XMLBuilder(domManager.getDocument(fullPath));
      System.out.println("1111 fullPath " + fullPath);
      XMLBuilder theXMLconfTMP = ConfManager.getConfXML(fullPath);// new XMLBuilder(domManager.getDocument(fullPath));
      String externalPath = theXMLconf.valoreNodo(nodoCorrente + "/@externalPath");
      int nodiOpzioni = theXMLconfTMP.contaNodi(externalPath);
      if (inputType.equals("select")) {
        out.println("<select   name=\"" + xpathCorrenteDot + "\" class=\"docEditInput\"  " + extra + ">");
        for (int a = 0; a < nodiOpzioni; a++) {
          extraPlus = "";
          if (theValue.equalsIgnoreCase(theXMLconfTMP.valoreNodo(externalPath + "[" + (a + 1) + "]/@value"))) {
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

      // XMLBuilder theXMLconfTMP = new XMLBuilder(domManager.getDocument(fullPath));
      System.out.println("2222 fullPath " + fullPath);
      XMLBuilder theXMLconfTMP = ConfManager.getConfXML(fullPath);
      // System.out.println("FormGenerator.generateCustomDataDieg()3333333333333333333333 theXMLconfTMP "+theXMLconfTMP.getXML("ISO-8859-1"));
      String externalPath = theXMLconf.valoreNodo(nodoCorrente + "/@externalPath");
      int nodiOpzioni = theXMLconfTMP.contaNodi(externalPath);
      if (inputType.equals("select")) {// title=\"" +
        // xpathCorrenteDot.replace('.',
        // '/') + "\"
        out.println("<span><select  onfocus=\"setCurrInput(this);ajaxGetValues(this,'" + fullPath + "','" + StringEscapeUtils.escapeEcmaScript(externalPath) + "')\"  name=\"" + xpathCorrenteDot + "\" class=\"docEditInput\"  " + extra + ">");
        for (int a = 0; a < nodiOpzioni; a++) {
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

        // com.regesta.dams.utility.xml.DomManager domManager = com.regesta.dams.utility.xml.DomManager.getInstance(isStatic, realPath);
        // XMLBuilder theXMLconfTMP = new XMLBuilder(domManager.getDocument(fullPath));
        System.out.println("333 fullPath " + fullPath);
        XMLBuilder theXMLconfTMP = ConfManager.getConfXML(fullPath);// new XMLBuilder(domManager.getDocument(fullPath));
        String externalPath = "/root/elemento[@name='secolo']/opzione";
        int nodiOpzioni = theXMLconfTMP.contaNodi(externalPath);
        String theValue = theXML.valoreNodo(prefix + "/date/text()");
        for (int a = 0; a < nodiOpzioni; a++) {
          String extra = "";
          if (theValue.equals(theXMLconfTMP.valoreNodo(externalPath + "[" + (a + 1) + "]/@value"))) {
            extra = "selected";
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

          // theXMLConf = new XMLBuilder(domManager.getDocument(fullPath));
        }
        // System.out.println("MultiEditingManager.execute() ilPath " + ilPath);
        // System.out.println("MultiEditingManager.execute() getIlPath " + getIlPath());
        // System.out.println("MultiEditingManager.execute() theXMLConf " + theXMLConf.getXML("ISO-8859-1"));
        if (xslFile == null && theXMLConf.contaNodi("/root/multiEditing[child::" + getElementToFind() + "]") > 0) {
          // System.out.println("MultiEditingManager.execute() theXMLConf1111111111111 " + theXMLConf.getXML("ISO-8859-1"));
          setTheXMLConf(theXMLConf);
          // ilPath = "/" + getIlPath();
          return execute();
        }
View Full Code Here

Examples of org.xdams.xml.builder.XMLBuilder.contaNodi()

                        System.out.println("###############################");
                        System.out.println("###############################");
                        System.out.println("###############################");

                      } else {
                        int countPrefix = builder.contaNodi(strPrefix);
                        for (int x = 0; x < countPrefix; x++) {
                          String newXPathToChange = strPrefix + "[" + (x + 1) + "]" + xPathToChange.substring(xPathToChange.indexOf(strPrefix) + strPrefix.length());
                          String newXpathCode = "";
                          if (isTextNode.equals("true")) {
                            newXpathCode = newXPathToChange.substring(0, newXPathToChange.lastIndexOf("/") + 1) + strCode;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.