Package javax.faces.component

Examples of javax.faces.component.UIComponentBase$ValueBindingAdapter


        String actual = expandIdSelector(selector, map);
        assertEquals(expected, actual);
    }

    private String expandIdSelector(String selector, final Map<String, String> clientIdMap) {
        UIComponent component = new UIComponentBase() {
            public String getFamily() {
                return null;
            }

            public UIComponent findComponent(String expr) {
                final String clientId = clientIdMap.get(expr);
                if (clientId == null) {
                    return null;
                }

                return new UIComponentBase() {
                    public String getClientId(FacesContext context) {
                        return clientId;
                    }

                    public String getFamily() {
View Full Code Here



    public void testSaveStateInPage() {

        boolean result = false;
        UIComponentBase root = null;
        String value = null;
        Phase renderResponse = new RenderResponsePhase();
        UIViewRoot page = Util.getViewHandler(getFacesContext()).createView(getFacesContext(), null);
        page.setId("root");
        page.setLocale(Locale.US);
View Full Code Here

  private UIComponentBase source;

  protected void setUp() throws Exception {
    super.setUp();

    source = new UIComponentBase() {

      public String getFamily() {
        return null;
      }};
  }
View Full Code Here

  }
 
  public void testExpandIdSelector() {
    String selector = ".class_form+#-Test .class2 #_aaaa";
   
    UIComponent component = new UIComponentBase() {
      public String getFamily() {
        // TODO Auto-generated method stub
        return null;
      }
      public UIComponent findComponent(String expr) {
        if ("-Test".equals(expr)) {
          return new UIComponentBase() {
            public String getClientId(FacesContext context) {
              return "component1";
            }
            public String getFamily() {
              // TODO Auto-generated method stub
              return null;
            }
          };
        } else if ("_aaaa".equals(expr)) {
          return new UIComponentBase() {
            public String getClientId(FacesContext context) {
              return "component2";
            }
            public String getFamily() {
              // TODO Auto-generated method stub
View Full Code Here

        String timeCls = Styles.mergeClassNames((String) timeField.getAttributes().get("styleClass"), "o_eventEditor_timeField");
        timeField.getAttributes().put("styleClass", timeCls);

        final UIComponent[][] components = new UIComponent[][]{{dateField, nbsp, timeField}};

        return new UIComponentBase() {
            @Override
            public String getFamily() {
                return null;
            }
View Full Code Here

    RequestCycle requestCycle = RequestCycle.get();
    if (requestCycle != null)
    {
      final CharSequence urlFor = requestCycle.urlFor(resolveClass, pageParameters);

      UIComponentBase c = new UIComponentBase()
      {
        public void encodeEnd(FacesContext ctx) throws IOException
        {
          ResponseWriter w = ctx.getResponseWriter();
          w.write(urlFor.toString());
View Full Code Here

    }
  }

  @Override
  public String getRendererType() {
    UIComponentBase wrappedUIComponentBase = (UIComponentBase) getWrapped();

    if (wrappedUIComponentBase != null) {
      return wrappedUIComponentBase.getRendererType();
    }
    else {
      return rendererType;
    }
  }
View Full Code Here

  }

  @Override
  public void setRendererType(String rendererType) {

    UIComponentBase wrappedUIComponentBase = (UIComponentBase) getWrapped();

    if (wrappedUIComponentBase != null) {
      wrappedUIComponentBase.setRendererType(rendererType);
    }
    else {

      // Note: This method gets called from the UIInput constructor at which time there is not yet a wrapped
      // UIInput.
View Full Code Here

TOP

Related Classes of javax.faces.component.UIComponentBase$ValueBindingAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.