Package org.omnifaces.model.tree

Examples of org.omnifaces.model.tree.TreeModel


   * @return The callback result.
   */
  @SuppressWarnings("rawtypes") // For TreeModel. We don't care about its actual type anyway.
  private <R> R process(FacesContext context, Callback.ReturningWithArgument<R, Tree> callback) {
    Tree tree = getClosestParent(this, Tree.class);
    TreeModel originalModelNode = tree.getCurrentModelNode();

    try {
      return callback.invoke(tree);
    }
    finally {
View Full Code Here


   * @param callback The callback to be invoked.
   * @return The callback result.
   */
  private <R> R process(FacesContext context, PhaseId phaseId, TreeModel node, Callback.Returning<R> callback) {
    Object[] originalVars = captureOriginalVars(context);
    TreeModel originalModelNode = currentModelNode;
    pushComponentToEL(context, null);

    try {
      setCurrentModelNode(context, node);
      return callback.invoke();
View Full Code Here

TOP

Related Classes of org.omnifaces.model.tree.TreeModel

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.