Examples of CmsXmlContentValueSequence


Examples of org.opencms.xml.content.CmsXmlContentValueSequence

      // Load the xmlcontent containing the options
      CmsFile xmlfile = cms.readFile(cms.readResource(getConfiguration()));
      xmlcontent = CmsXmlContentFactory.unmarshal(cms, xmlfile);
     
      // loop through the options
      CmsXmlContentValueSequence seq = xmlcontent.getValueSequence("Option", locale);
      int count = seq.getElementCount();
      for (int i = 1; i <= count; i++) {
        String value = getValue(VALUE_ELEMENT, i);
        String text = getValue(TEXT_ELEMENT, i);
        CmsSelectWidgetOption option = new CmsSelectWidgetOption(value, false, text);
        options.add(option);
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.