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

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

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

origin: com.ocpsoft/prettyfaces-jsf2

private QueryParameter copy(QueryParameter queryParameter)
{
 QueryParameter result = new QueryParameter();
 result.setExpression(queryParameter.getExpression());
 result.setName(queryParameter.getName());
 result.setOnError(queryParameter.getOnError());
 result.setOnPostback(queryParameter.isOnPostback());
 result.setValidatorExpression(queryParameter.getValidatorExpression());
 result.setValidatorIds(queryParameter.getValidatorIds());
 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

QueryParameter currentParameter = new QueryParameter();
String currentValidatorId = "";
try
   if (param.hasValidators() || (param.getValidatorExpression() != null))
     String name = param.getName();
     String el = param.getExpression().getELExpression();
        for (String id : param.getValidatorIdList())
        if (param.getValidatorExpression() != null)
         elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(),
              new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
              new Object[] { context, new NullComponent(), coerced });
        for (String id : param.getValidatorIdList())
        if (param.getValidatorExpression() != null)
         elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(),
              new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
              new Object[] { context, new NullComponent(), coerced });
  FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue()
      + "] on mappingId [" + mapping.getId() + "] to type ["
      + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]");
  handleValidationFailure(context, message, currentParameter.getOnError());
origin: ocpsoft/prettyfaces

QueryParameter queryParam = new QueryParameter();
queryParam.setName(queryParamSpec.getName());
queryParam.setOnError(queryParamSpec.getOnError());
queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " "));
queryParam.setOnPostback(queryParamSpec.isOnPostback());
  queryParam.setValidatorExpression(new ConstantExpression(queryParamSpec.getValidator()));
queryParam.setExpression(expression);
  log.trace("Registered query-param '" + queryParam.getName() + "' to '" + expression + "' in mapping: "
     + mapping.getId());
origin: com.ocpsoft/prettyfaces-jsf2

String name = injection.getName();
expression = injection.getExpression().getELExpression();
value = elUtils.getValue(context, expression);
   for (Object temp : values)
     queryParameterValues.add(new QueryParameter(name, temp.toString()));
   queryParameterValues.add(new QueryParameter(name, value.toString()));
origin: ocpsoft/prettyfaces

if (!param.isOnPostback() && isPostback)
String el = param.getExpression().getELExpression();
if ((el != null) && !"".equals(el.trim()))
 String name = param.getName();
 if (queryString.getParameterMap().containsKey(name))
origin: com.ocpsoft/prettyfaces-jsf2

param.setName(q.getName());
ValueExpression ve = elUtils.createValueExpression(context, q.getExpression().getELExpression());
param.setValueExpression("value", ve);
param.setImmediate(true);
origin: com.ocpsoft/prettyfaces-jsf2

 queryParams.add(new QueryParameter(name, tempValue));
queryParams.add(new QueryParameter(name, null));
origin: ocpsoft/prettyfaces

QueryParameter currentParameter = new QueryParameter();
String currentValidatorId = "";
try
   if (param.hasValidators() || (param.getValidatorExpression() != null))
     String name = param.getName();
     String el = param.getExpression().getELExpression();
        for (String id : param.getValidatorIdList())
        if (param.getValidatorExpression() != null)
         elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(),
              new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
              new Object[] { context, new NullComponent(), coerced });
        for (String id : param.getValidatorIdList())
        if (param.getValidatorExpression() != null)
         elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(),
              new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
              new Object[] { context, new NullComponent(), coerced });
  FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue()
      + "] on mappingId [" + mapping.getId() + "] to type ["
      + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]");
  handleValidationFailure(context, message, currentParameter.getOnError());
origin: com.ocpsoft/prettyfaces-jsf2

QueryParameter queryParam = new QueryParameter();
queryParam.setName(queryParamSpec.getName());
queryParam.setOnError(queryParamSpec.getOnError());
queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " "));
queryParam.setOnPostback(queryParamSpec.isOnPostback());
  queryParam.setValidatorExpression(new ConstantExpression(queryParamSpec.getValidator()));
queryParam.setExpression(expression);
  log.trace("Registered query-param '" + queryParam.getName() + "' to '" + expression + "' in mapping: "
     + mapping.getId());
origin: ocpsoft/prettyfaces

String name = injection.getName();
expression = injection.getExpression().getELExpression();
value = elUtils.getValue(context, expression);
   for (Object temp : values)
     queryParameterValues.add(new QueryParameter(name, temp.toString()));
   queryParameterValues.add(new QueryParameter(name, value.toString()));
origin: ocpsoft/prettyfaces

if (!param.isOnPostback() && isPostback)
String el = param.getExpression().getELExpression();
if ((el != null) && !"".equals(el.trim()))
 String name = param.getName();
 if (queryString.getParameterMap().containsKey(name))
origin: ocpsoft/prettyfaces

 queryParams.add(new QueryParameter(name, tempValue));
queryParams.add(new QueryParameter(name, null));
origin: ocpsoft/rewrite

private QueryParameter copy(QueryParameter queryParameter)
{
 QueryParameter result = new QueryParameter();
 result.setExpression(queryParameter.getExpression());
 result.setName(queryParameter.getName());
 result.setOnError(queryParameter.getOnError());
 result.setOnPostback(queryParameter.isOnPostback());
 result.setValidatorExpression(queryParameter.getValidatorExpression());
 result.setValidatorIds(queryParameter.getValidatorIds());
 return result;
}
origin: ocpsoft/rewrite

QueryParameter currentParameter = new QueryParameter();
String currentValidatorId = "";
try
   if (param.hasValidators() || (param.getValidatorExpression() != null))
     String name = param.getName();
     String el = param.getExpression().getELExpression();
        for (String id : param.getValidatorIdList())
        if (param.getValidatorExpression() != null)
         elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(),
              new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
              new Object[] { context, new NullComponent(), coerced });
        for (String id : param.getValidatorIdList())
        if (param.getValidatorExpression() != null)
         elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(),
              new Class<?>[] { FacesContext.class, UIComponent.class, Object.class },
              new Object[] { context, new NullComponent(), coerced });
  FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue()
      + "] on mappingId [" + mapping.getId() + "] to type ["
      + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]");
  handleValidationFailure(context, message, currentParameter.getOnError());
origin: ocpsoft/rewrite

QueryParameter queryParam = new QueryParameter();
queryParam.setName(queryParamSpec.getName());
queryParam.setOnError(queryParamSpec.getOnError());
queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " "));
queryParam.setOnPostback(queryParamSpec.isOnPostback());
  queryParam.setValidatorExpression(new ConstantExpression(queryParamSpec.getValidator()));
queryParam.setExpression(expression);
  log.trace("Registered query-param '" + queryParam.getName() + "' to '" + expression + "' in mapping: "
      + mapping.getId());
origin: ocpsoft/rewrite

String name = injection.getName();
expression = injection.getExpression().getELExpression();
value = elUtils.getValue(context, expression);
   for (Object temp : values)
     queryParameterValues.add(new QueryParameter(name, temp.toString()));
   queryParameterValues.add(new QueryParameter(name, value.toString()));
origin: com.ocpsoft/prettyfaces-jsf2

if (!param.isOnPostback() && isPostback)
String el = param.getExpression().getELExpression();
if ((el != null) && !"".equals(el.trim()))
 String name = param.getName();
 if (queryString.getParameterMap().containsKey(name))
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/rewrite

 queryParams.add(new QueryParameter(name, tempValue));
queryParams.add(new QueryParameter(name, null));
com.ocpsoft.pretty.faces.config.mappingQueryParameter

Most used methods

  • <init>
  • getExpression
  • getName
  • getOnError
  • getValidatorExpression
  • getValidatorIdList
  • getValidatorIds
  • getValue
  • hasValidators
  • isOnPostback
  • setExpression
  • setName
  • setExpression,
  • setName,
  • setOnError,
  • setOnPostback,
  • setValidatorExpression,
  • setValidatorIds

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Collectors (java.util.stream)
  • JOptionPane (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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