congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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