Codota Logo
UrlBuffer.getAttributes
Code IndexAdd Codota to your IDE (free)

How to use
getAttributes
method
in
com.ocpsoft.pretty.faces.component.UrlBuffer

Best Java code snippets using com.ocpsoft.pretty.faces.component.UrlBuffer.getAttributes (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: ocpsoft/prettyfaces

String var = (String) urlBuffer.getAttributes().get("var");
String relative = (String) urlBuffer.getAttributes().get("relative");
origin: ocpsoft/prettyfaces

String var = (String) urlBuffer.getAttributes().get("var");
String relative = (String) urlBuffer.getAttributes().get("relative");
origin: ocpsoft/rewrite

String var = (String) urlBuffer.getAttributes().get("var");
String relative = (String) urlBuffer.getAttributes().get("relative");
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);
  }
}
com.ocpsoft.pretty.faces.componentUrlBuffergetAttributes

Popular methods of UrlBuffer

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • scheduleAtFixedRate (ScheduledExecutorService)
    • getSupportFragmentManager (FragmentActivity)
      Return the FragmentManager for interacting with fragments associated with this activity.
    • requestLocationUpdates (LocationManager)
    • Color (java.awt)
      The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
    • Point (java.awt)
      A point representing a location in (x, y) coordinate space, specified in integer precision.
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • Iterator (java.util)
      An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
    • StringTokenizer (java.util)
      The string tokenizer class allows an application to break a string into tokens. The tokenization met
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now