Package org.olat.ims.qti.container

Examples of org.olat.ims.qti.container.HttpItemInput


      String value = ureq.getParameter(paramKey);
      if (st.countTokens() == 4) {
        String itemType = st.nextToken();
        String itemIdent = st.nextToken();
        String responseID = st.nextToken();
        HttpItemInput itemInput = (HttpItemInput) result.getItemInput(itemIdent);
        if (itemInput == null) {
          itemInput = new HttpItemInput(itemIdent);
          result.addItemInput(itemInput);
        }
        // 'dummy' type is used to make sure iteminput is constructed for
        // all items. it does not provide any response data
        if (itemType.equals("qti")) itemInput.putSingle(responseID, value);
      }
      // refactoring to new setFormDirty() javascript method sends now an additional param "olat_fosm" which has no tokens inside
      // so assertExc. is useless.
      //else {
      //  throw new AssertException ("not 4 tokens in form name: orig='"+paramKey+"'");
View Full Code Here

TOP

Related Classes of org.olat.ims.qti.container.HttpItemInput

Copyright © 2018 www.massapicom. 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.