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

How to use
PrettyURLBuilder
in
com.ocpsoft.pretty.faces.util

Best Java code snippets using com.ocpsoft.pretty.faces.util.PrettyURLBuilder (Showing top 20 results out of 315)

origin: ocpsoft/rewrite

protected String buildUrl(FacesContext context, UIComponent component, UrlMapping urlMapping) {
 return context.getExternalContext().getRequestContextPath()
       + urlBuilder.build(urlMapping, true, urlBuilder.extractParameters(component));
}
origin: ocpsoft/prettyfaces

/**
* Build a Pretty URL for the given Mapping ID and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, List)} instead.
*/
@Deprecated
public String build(final UrlMapping urlMapping, final List<UIParameter> parameters)
{
 return build(urlMapping, false, parameters);
}
origin: ocpsoft/rewrite

PrettyURLBuilder builder = new PrettyURLBuilder();
result = contextPath + builder.build(m, true, uiParams);
break;
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, Map)} instead.
*/
@Deprecated
public String build(final UrlMapping mapping, final Map<String, String[]> parameters)
{
 return build(mapping, false, parameters);
}
origin: com.ocpsoft/prettyfaces-jsf2

PrettyURLBuilder builder = new PrettyURLBuilder();
result = contextPath + builder.build(m, true, uiParams);
break;
origin: ocpsoft/prettyfaces

UrlMapping urlMapping = prettyConfig.getMappingById(mappingId);
String prettyHref = urlBuilder.build(urlMapping, true, urlBuilder.extractParameters(component));
String contextPath = context.getExternalContext().getRequestContextPath();
String href = (relative == null || "false".equals(relative)) ? contextPath + prettyHref : prettyHref;
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, Object...)} instead.
*/
@Deprecated
public String build(final UrlMapping mapping, final Object... parameters)
{
 return build(mapping, false, parameters);
}
origin: ocpsoft/rewrite

PrettyURLBuilder builder = new PrettyURLBuilder();
result = contextPath + builder.build(mapping, true, uiParams);
origin: ocpsoft/rewrite

UrlMapping urlMapping = prettyConfig.getMappingById(mappingId);
String prettyHref = urlBuilder.build(urlMapping, true, urlBuilder.extractParameters(component));
String contextPath = context.getExternalContext().getRequestContextPath();
String href = (relative == null || "false".equals(relative)) ? contextPath + prettyHref : prettyHref;
origin: ocpsoft/rewrite

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, Object...)} instead.
*/
@Deprecated
public String build(final UrlMapping mapping, final Object... parameters)
{
 return build(mapping, false, parameters);
}
origin: ocpsoft/prettyfaces

PrettyURLBuilder builder = new PrettyURLBuilder();
result = contextPath + builder.build(m, true, uiParams);
break;
origin: com.ocpsoft/prettyfaces-jsf2

  @Override
  public void encodeBegin(final FacesContext context, final UIComponent component) throws IOException
  {
   super.encodeBegin(context, component);
   if (!component.isRendered())
   {
     return;
   }

   UrlBuffer urlBuffer = (UrlBuffer) component;
   String var = (String) urlBuffer.getAttributes().get("var");

   String mappingId = (String) component.getAttributes().get("mappingId");
   if (mappingId == null)
   {
     throw new PrettyException("Mapping id was null when attempting to build URL for component: "
         + component.toString() + " <" + component.getClientId(context) + ">");
   }

   PrettyContext prettyContext = PrettyContext.getCurrentInstance(context);
   PrettyConfig prettyConfig = prettyContext.getConfig();
   UrlMapping urlMapping = prettyConfig.getMappingById(mappingId);

   String href = context.getExternalContext().getRequestContextPath()
        + urlBuilder.build(urlMapping, true, urlBuilder.extractParameters(component));

   context.getExternalContext().getRequestMap().put(var, href);
  }
}
origin: ocpsoft/rewrite

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, RequestParameter...)} instead.
*/
@Deprecated
public String build(final UrlMapping mapping, final RequestParameter... parameters)
{
 return build(mapping, false, parameters);
}
origin: ocpsoft/prettyfaces

PrettyURLBuilder builder = new PrettyURLBuilder();
result = contextPath + builder.build(m, true, uiParams);
break;
origin: ocpsoft/prettyfaces

UrlMapping urlMapping = prettyConfig.getMappingById(mappingId);
String prettyHref = urlBuilder.build(urlMapping, true, urlBuilder.extractParameters(component));
String contextPath = context.getExternalContext().getRequestContextPath();
String href = (relative == null || "false".equals(relative)) ? contextPath + prettyHref : prettyHref;
origin: ocpsoft/rewrite

/**
* Build a Pretty URL for the given Mapping ID and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, List)} instead.
*/
@Deprecated
public String build(final UrlMapping urlMapping, final List<UIParameter> parameters)
{
 return build(urlMapping, false, parameters);
}
origin: com.ocpsoft/prettyfaces-jsf2

+ urlBuilder.build(urlMapping, true, urlBuilder.extractParameters(component));
origin: ocpsoft/prettyfaces

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, Map)} instead.
*/
@Deprecated
public String build(final UrlMapping mapping, final Map<String, String[]> parameters)
{
 return build(mapping, false, parameters);
}
origin: ocpsoft/prettyfaces

+ urlBuilder.build(urlMapping, true, urlBuilder.extractParameters(component));
origin: ocpsoft/prettyfaces

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @deprecated Use {@link #build(UrlMapping, boolean, Object...)} instead.
*/
@Deprecated
public String build(final UrlMapping mapping, final Object... parameters)
{
 return build(mapping, false, parameters);
}
com.ocpsoft.pretty.faces.utilPrettyURLBuilder

Javadoc

A utility class for building Pretty URLs.

Most used methods

  • <init>
  • build
    Build a Pretty URL for the given UrlMapping and parameters.
  • extractParameters
    Extract any UIParameter objects from a given component. These parameters are what PrettyFaces uses t

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • ImageIO (javax.imageio)
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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