Package org.omnifaces.context

Examples of org.omnifaces.context.OmniPartialViewContext.addArgument()


      if (!(namesValues[i] instanceof String)) {
        String type = (namesValues[i]) != null ? namesValues[i].getClass().getName() : "null";
        throw new IllegalArgumentException(String.format(ERROR_ARGUMENT_TYPE, type, namesValues[i]));
      }

      context.addArgument((String) namesValues[i], namesValues[i + 1]);
    }
  }

  /**
   * Add the given mapping of data arguments to the current ajax response. They are as JSON object available by
View Full Code Here


   */
  public static void data(Map<String, Object> data) {
    OmniPartialViewContext context = OmniPartialViewContext.getCurrentInstance();

    for (Entry<String, Object> entry : data.entrySet()) {
      context.addArgument(entry.getKey(), entry.getValue());
    }
  }

}
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.