Tabnine Logo
PathValidator
Code IndexAdd Tabnine to your IDE (free)

How to use
PathValidator
in
com.ocpsoft.pretty.faces.config.mapping

Best Java code snippets using com.ocpsoft.pretty.faces.config.mapping.PathValidator (Showing top 20 results out of 315)

origin: com.ocpsoft/prettyfaces-jsf2

  private PathValidator copy(PathValidator pathValidator)
  {
   PathValidator result = new PathValidator();
   result.setIndex(pathValidator.getIndex());
   result.setOnError(pathValidator.getOnError());
   result.setValidatorIds(pathValidator.getValidatorIds());
   result.setValidatorExpression(pathValidator.getValidatorExpression());
   return result;
  }
}
origin: ocpsoft/prettyfaces

public List<String> getValidatorIdList()
{
  List<String> result = new ArrayList<String>();
  if (hasValidators())
  {
    String[] ids = validatorIds.split(" ");
    Collections.addAll(result, ids);
  }
  return result;
}
origin: ocpsoft/prettyfaces

PathValidator pathValidator = new PathValidator();
pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
 pathValidator.setValidatorExpression(new ConstantExpression(validationAnnotation.validator()));
origin: com.ocpsoft/prettyfaces-jsf2

PathValidator currentPathValidator = new PathValidator();
String currentValidatorId = "";
try
      for (String id : pv.getValidatorIdList())
        validator.validate(context, new NullComponent(), coerced);
      if (pv.getValidatorExpression() != null)
        elUtils.invokeMethod(context, pv.getValidatorExpression().getELExpression(),
            new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
            new Object[] { context, new NullComponent(), coerced });
      + "] on mappingId [" + mapping.getId() + "] to type in location [" + currentParameter.getExpression()
      + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
  handleValidationFailure(context, e.getFacesMessage(), currentPathValidator.getOnError());
      + "] on mappingId [" + mapping.getId() + "] parameter [" + currentParameter.getExpression()
      + "] at position [" + currentParameter.getPosition() + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Return a list of validators that belong to the given parameter.
*/
public List<PathValidator> getValidatorsForPathParam(final PathParameter param)
{
 List<PathValidator> result = new ArrayList<PathValidator>();
 for (PathValidator pv : pathValidators)
 {
   if (pv.getIndex() == param.getPosition())
   {
    result.add(pv);
   }
 }
 return result;
}
origin: ocpsoft/rewrite

private void mergeValidators(UrlMapping parent, UrlMapping child)
{
 List<PathValidator> result = new ArrayList<PathValidator>();
 List<PathValidator> validators = new ArrayList<PathValidator>();
 validators.addAll(parent.getPathValidators());
 validators.addAll(child.getPathValidators());
 int i = 0;
 for (PathValidator pv : validators)
 {
   PathValidator temp = copy(pv);
   temp.setIndex(i++);
   result.add(temp);
 }
 child.setPathValidators(result);
}
origin: ocpsoft/prettyfaces

PathValidator pathValidator = new PathValidator();
pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
 pathValidator.setValidatorExpression(new ConstantExpression(validationAnnotation.validator()));
origin: ocpsoft/rewrite

PathValidator currentPathValidator = new PathValidator();
String currentValidatorId = "";
try
      for (String id : pv.getValidatorIdList())
        validator.validate(context, new NullComponent(), coerced);
      if (pv.getValidatorExpression() != null)
        elUtils.invokeMethod(context, pv.getValidatorExpression().getELExpression(),
            new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
            new Object[] { context, new NullComponent(), coerced });
      + "] on mappingId [" + mapping.getId() + "] to type in location [" + currentParameter.getExpression()
      + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
  handleValidationFailure(context, e.getFacesMessage(), currentPathValidator.getOnError());
      + "] on mappingId [" + mapping.getId() + "] parameter [" + currentParameter.getExpression()
      + "] at position [" + currentParameter.getPosition() + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
origin: ocpsoft/prettyfaces

/**
* Return a list of validators that belong to the given parameter.
*/
public List<PathValidator> getValidatorsForPathParam(final PathParameter param)
{
 List<PathValidator> result = new ArrayList<PathValidator>();
 for (PathValidator pv : pathValidators)
 {
   if (pv.getIndex() == param.getPosition())
   {
    result.add(pv);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

private void mergeValidators(UrlMapping parent, UrlMapping child)
{
 List<PathValidator> result = new ArrayList<PathValidator>();
 List<PathValidator> validators = new ArrayList<PathValidator>();
 validators.addAll(parent.getPathValidators());
 validators.addAll(child.getPathValidators());
 int i = 0;
 for (PathValidator pv : validators)
 {
   PathValidator temp = copy(pv);
   temp.setIndex(i++);
   result.add(temp);
 }
 child.setPathValidators(result);
}
origin: ocpsoft/prettyfaces

  private PathValidator copy(PathValidator pathValidator)
  {
   PathValidator result = new PathValidator();
   result.setIndex(pathValidator.getIndex());
   result.setOnError(pathValidator.getOnError());
   result.setValidatorIds(pathValidator.getValidatorIds());
   result.setValidatorExpression(pathValidator.getValidatorExpression());
   return result;
  }
}
origin: com.ocpsoft/prettyfaces-jsf2

PathValidator pathValidator = new PathValidator();
pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
 pathValidator.setValidatorExpression(new ConstantExpression(validationAnnotation.validator()));
origin: ocpsoft/prettyfaces

PathValidator currentPathValidator = new PathValidator();
String currentValidatorId = "";
try
      for (String id : pv.getValidatorIdList())
        validator.validate(context, new NullComponent(), coerced);
      if (pv.getValidatorExpression() != null)
        elUtils.invokeMethod(context, pv.getValidatorExpression().getELExpression(),
            new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
            new Object[] { context, new NullComponent(), coerced });
      + "] on mappingId [" + mapping.getId() + "] to type in location [" + currentParameter.getExpression()
      + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
  handleValidationFailure(context, e.getFacesMessage(), currentPathValidator.getOnError());
      + "] on mappingId [" + mapping.getId() + "] parameter [" + currentParameter.getExpression()
      + "] at position [" + currentParameter.getPosition() + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
origin: com.ocpsoft/prettyfaces-jsf2

public List<String> getValidatorIdList()
{
  List<String> result = new ArrayList<String>();
  if (hasValidators())
  {
    String[] ids = validatorIds.split(" ");
    Collections.addAll(result, ids);
  }
  return result;
}
origin: ocpsoft/prettyfaces

/**
* Return a list of validators that belong to the given parameter.
*/
public List<PathValidator> getValidatorsForPathParam(final PathParameter param)
{
 List<PathValidator> result = new ArrayList<PathValidator>();
 for (PathValidator pv : pathValidators)
 {
   if (pv.getIndex() == param.getPosition())
   {
    result.add(pv);
   }
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

private void mergeValidators(UrlMapping parent, UrlMapping child)
{
 List<PathValidator> result = new ArrayList<PathValidator>();
 List<PathValidator> validators = new ArrayList<PathValidator>();
 validators.addAll(parent.getPathValidators());
 validators.addAll(child.getPathValidators());
 int i = 0;
 for (PathValidator pv : validators)
 {
   PathValidator temp = copy(pv);
   temp.setIndex(i++);
   result.add(temp);
 }
 child.setPathValidators(result);
}
origin: ocpsoft/rewrite

  private PathValidator copy(PathValidator pathValidator)
  {
   PathValidator result = new PathValidator();
   result.setIndex(pathValidator.getIndex());
   result.setOnError(pathValidator.getOnError());
   result.setValidatorIds(pathValidator.getValidatorIds());
   result.setValidatorExpression(pathValidator.getValidatorExpression());
   return result;
  }
}
origin: ocpsoft/rewrite

PathValidator pathValidator = new PathValidator();
pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
 pathValidator.setValidatorExpression(new ConstantExpression(validationAnnotation.validator()));
origin: ocpsoft/prettyfaces

PathValidator currentPathValidator = new PathValidator();
String currentValidatorId = "";
try
      for (String id : pv.getValidatorIdList())
        validator.validate(context, new NullComponent(), coerced);
      if (pv.getValidatorExpression() != null)
        elUtils.invokeMethod(context, pv.getValidatorExpression().getELExpression(),
            new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
            new Object[] { context, new NullComponent(), coerced });
      + "] on mappingId [" + mapping.getId() + "] to type in location [" + currentParameter.getExpression()
      + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
  handleValidationFailure(context, e.getFacesMessage(), currentPathValidator.getOnError());
      + "] on mappingId [" + mapping.getId() + "] parameter [" + currentParameter.getExpression()
      + "] at position [" + currentParameter.getPosition() + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
origin: ocpsoft/prettyfaces

public List<String> getValidatorIdList()
{
  List<String> result = new ArrayList<String>();
  if (hasValidators())
  {
    String[] ids = validatorIds.split(" ");
    Collections.addAll(result, ids);
  }
  return result;
}
com.ocpsoft.pretty.faces.config.mappingPathValidator

Most used methods

  • <init>
  • getIndex
  • getOnError
  • getValidatorExpression
  • getValidatorIdList
  • getValidatorIds
  • hasValidators
  • setIndex
  • setOnError
  • setValidatorExpression
  • setValidatorIds
  • setValidatorIds

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • String (java.lang)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text plugins
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