Tabnine Logo
UIWebsocket$PropertyKeys
Code IndexAdd Tabnine to your IDE (free)

How to use
UIWebsocket$PropertyKeys
in
javax.faces.component

Best Java code snippets using javax.faces.component.UIWebsocket$PropertyKeys (Showing top 8 results out of 315)

origin: javax.faces/javax.faces-api

/**
 * <p>
 * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any.
 * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of
 * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code>
 * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument
 * exception.
 * </p>
 *
 * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, 
 * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value
 * is not an instance of <code>Serializable</code>.
 * @throws NullPointerException If <code>name</code> is <code>null</code>.
 */
@Override
public void setValueExpression(String name, ValueExpression binding) {
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) {
      throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user));
    }
  }
  super.setValueExpression(name, binding);
}
origin: eclipse-ee4j/mojarra

/**
 * <p>
 * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any.
 * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of
 * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code>
 * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument
 * exception.
 * </p>
 *
 * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, 
 * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value
 * is not an instance of <code>Serializable</code>.
 * @throws NullPointerException If <code>name</code> is <code>null</code>.
 */
@Override
public void setValueExpression(String name, ValueExpression binding) {
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) {
      throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user));
    }
  }
  super.setValueExpression(name, binding);
}
origin: jboss/jboss-javaee-specs

/**
 * <p>
 * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any.
 * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of
 * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code>
 * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument
 * exception.
 * </p>
 *
 * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, 
 * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value
 * is not an instance of <code>Serializable</code>.
 * @throws NullPointerException If <code>name</code> is <code>null</code>.
 */
@Override
public void setValueExpression(String name, ValueExpression binding) {
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) {
      throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user));
    }
  }
  super.setValueExpression(name, binding);
}
origin: org.glassfish/jakarta.faces

/**
 * <p>
 * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any.
 * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of
 * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code>
 * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument
 * exception.
 * </p>
 *
 * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, 
 * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value
 * is not an instance of <code>Serializable</code>.
 * @throws NullPointerException If <code>name</code> is <code>null</code>.
 */
@Override
public void setValueExpression(String name, ValueExpression binding) {
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) {
      throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user));
    }
  }
  super.setValueExpression(name, binding);
}
origin: org.glassfish/javax.faces

/**
 * <p>
 * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any.
 * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of
 * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code>
 * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument
 * exception.
 * </p>
 *
 * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, 
 * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value
 * is not an instance of <code>Serializable</code>.
 * @throws NullPointerException If <code>name</code> is <code>null</code>.
 */
@Override
public void setValueExpression(String name, ValueExpression binding) {
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) {
      throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user));
    }
  }
  super.setValueExpression(name, binding);
}
origin: eclipse-ee4j/mojarra

/**
 * <p>
 * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any.
 * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of
 * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code>
 * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument
 * exception.
 * </p>
 *
 * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, 
 * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value
 * is not an instance of <code>Serializable</code>.
 * @throws NullPointerException If <code>name</code> is <code>null</code>.
 */
@Override
public void setValueExpression(String name, ValueExpression binding) {
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) {
      throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user));
    }
  }
  super.setValueExpression(name, binding);
}
origin: javax/javaee-web-api

/**
 * <p>
 * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any.
 * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of
 * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code>
 * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument
 * exception.
 * </p>
 *
 * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, 
 * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value
 * is not an instance of <code>Serializable</code>.
 * @throws NullPointerException If <code>name</code> is <code>null</code>.
 */
@Override
public void setValueExpression(String name, ValueExpression binding) {
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) {
      throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user));
    }
  }
  super.setValueExpression(name, binding);
}
origin: org.apache.myfaces.core/myfaces-api

public void setValueExpression(java.lang.String name, javax.el.ValueExpression binding)
{
  if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) 
  {
    throw new IllegalArgumentException(name);
  }
  if (PropertyKeys.user.toString().equals(name)) 
  {
    Object user = binding.getValue(getFacesContext().getELContext());
    if (user != null && !(user instanceof Serializable)) 
    {
      throw new IllegalArgumentException("f:websocket 'user' attribute does not represent a valid user identifier because it is not Serializable.");
    }
  }
  super.setValueExpression(name, binding);
}
javax.faces.componentUIWebsocket$PropertyKeys

Javadoc

Properties that are tracked by state saving.

Most used methods

  • toString

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
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