congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SharedUtils
Code IndexAdd Tabnine to your IDE (free)

How to use
SharedUtils
in
javax.faces.application

Best Java code snippets using javax.faces.application.SharedUtils (Showing top 20 results out of 315)

origin: javax/javaee-web-api

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: com.sun.faces/jsf-api

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: com.sun.faces/jsf-api

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: javax/javaee-web-api

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: javax.faces/javax.faces-api

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: javax.faces/javax.faces-api

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: org.glassfish/javax.faces

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: org.glassfish/javax.faces

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: org.glassfish/jakarta.faces

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: org.glassfish/jakarta.faces

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: jboss/jboss-javaee-specs

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: eclipse-ee4j/mojarra

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: eclipse-ee4j/mojarra

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: eclipse-ee4j/mojarra

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: eclipse-ee4j/mojarra

static Map<String, List<String>> evaluateExpressions(FacesContext context, Map<String, List<String>> map) {
  if (map != null && !map.isEmpty()) {
    Map<String, List<String>> ret = new HashMap<String, List<String>>(map.size());
    for (Map.Entry<String, List<String>> entry : map.entrySet()) {
      ret.put(entry.getKey(), evaluateExpressions(context, entry.getValue()));
    }
    
    return ret;
  }
  
  return map;
}
 
origin: jboss/jboss-javaee-specs

static boolean isMixedExpression(String expression) {
  if (null == expression) {
    return false;
  }
  // if it doesn't start and end with delimiters
  return (!(expression.startsWith("#{") && expression.endsWith("}")))
       && isExpression(expression);
}
origin: javax.faces/javax.faces-api

/**
 * <p class="changed_added_2_0">Construct an absolute URL suitable for a
 * "redirect" to this <code>NavigationCase</code> instance using {@link
 * javax.faces.application.ViewHandler#getRedirectURL} on the path
 * portion of the url.</p>
 *
 * @param context the {@link FacesContext} for the current request
 * @return the redirect URL.
 * @throws MalformedURLException if the process of constructing the
 * URL causes this exception to be thrown.
 */
public URL getRedirectURL(FacesContext context) throws MalformedURLException {
  ExternalContext extContext = context.getExternalContext();
  return new URL(extContext.getRequestScheme(),
      extContext.getRequestServerName(),
      extContext.getRequestServerPort(),
      context.getApplication().getViewHandler().getRedirectURL(context,
                                   getToViewId(context),
                                   SharedUtils.evaluateExpressions(context, getParameters()),
                                   isIncludeViewParams()));
}
origin: javax/javaee-web-api

static List<String> evaluateExpressions(FacesContext context, List<String> values) {
   if (!values.isEmpty()) {
     List<String> ret = new ArrayList<String>(values.size());
     Application app = context.getApplication();
     for (String val : values) {
       if (val != null) {
         String value = val.trim();
         if (isExpression(value)) {
           value = app.evaluateExpressionGet(context,
                            value,
                            String.class);
         }
         ret.add(value);
       }
     }
          return ret;
   }
   return values;
 }
origin: org.glassfish/javax.faces

/**
 * <p class="changed_added_2_0">
 * Construct an absolute URL suitable for a "redirect" to this <code>NavigationCase</code>
 * instance using {@link javax.faces.application.ViewHandler#getRedirectURL} on the path portion
 * of the url.
 * </p>
 *
 * @param context the {@link FacesContext} for the current request
 * @return the redirect URL.
 * @throws MalformedURLException if the process of constructing the URL causes this exception to
 *             be thrown.
 */
public URL getRedirectURL(FacesContext context) throws MalformedURLException {
  ExternalContext extContext = context.getExternalContext();
  return new URL(
    extContext.getRequestScheme(), 
    extContext.getRequestServerName(), 
    extContext.getRequestServerPort(),
    context.getApplication().getViewHandler().getRedirectURL(
      context, getToViewId(context), evaluateExpressions(context, getParameters()), isIncludeViewParams()));
}
origin: com.sun.faces/jsf-api

static List<String> evaluateExpressions(FacesContext context, List<String> values) {
   if (!values.isEmpty()) {
     List<String> ret = new ArrayList<String>(values.size());
     Application app = context.getApplication();
     for (String val : values) {
       if (val != null) {
         String value = val.trim();
         if (isExpression(value)) {
           value = app.evaluateExpressionGet(context,
                            value,
                            String.class);
         }
         ret.add(value);
       }
     }
          return ret;
   }
   return values;
 }
javax.faces.applicationSharedUtils

Most used methods

  • evaluateExpressions
  • isExpression

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • Kernel (java.awt.image)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JOptionPane (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now