Codota Logo
SharedUtils
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Runner (org.openjdk.jmh.runner)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now