Examples of FacesBean


Examples of org.apache.myfaces.trinidad.bean.FacesBean

                                                            item,
                                                            converter,
                                                            valuePassThru,
                                                            index);

    FacesBean bean = getFacesBean(component);
    ResponseWriter rw = context.getResponseWriter();

    // Render a <br> if necessary (in "vertical" alignment)
    if (renderBreak)
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

  {
    Object submitted = super.getSubmittedValue(context, component);
    if ((submitted == null) || "".equals(submitted))
      return submitted;

    FacesBean bean = getFacesBean(component);
    if (getSecret(bean))
    {
      if (XhtmlConstants.SECRET_FIELD_DEFAULT_VALUE.equals(submitted))
      {
        // if there was a previously submitted value then return it.
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

  protected boolean shouldRenderId(
    FacesContext context,
    UIComponent  component)
  {
    // If there's partial triggers, always render an ID if possible
    FacesBean bean = getFacesBean(component);
    if ((_partialTriggersKey != null) &&
        (bean.getProperty(_partialTriggersKey) != null))
    {
      return true;
    }

    return super.shouldRenderId(context, component);
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

                                    item,
                                    converter,
                                    valuePassThru,
                                    index);

    FacesBean bean = getFacesBean(component);
    ResponseWriter rw = context.getResponseWriter();

    // Render a <br> if necessary (in "vertical" alignment)
    if (renderBreak)
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

  }

  protected FacesBean createFacesBean(
    String rendererType)
  {
    FacesBean bean = FacesBeanFactory.createFacesBean(getClass(),
                                                      rendererType);
    UIXFacesBean uixBean = (UIXFacesBean) bean;
    uixBean.init(this, getBeanType());
    return uixBean;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

  }

  private void _init(
    String rendererType)
  {
    FacesBean oldBean = _facesBean;
    _facesBean = createFacesBean(rendererType);
    if (oldBean != null)
      _facesBean.addAll(oldBean);

    _attributes = new ValueMap(_facesBean);
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

    _component = component;
  }

  public Object getValue(UIXRenderingContext context)
  {
    FacesBean bean = _component.getFacesBean();
    // Try to get an explicit Converter
    Converter converter = (Converter)
      bean.getProperty(UIXValue.CONVERTER_KEY);

    // OK, no explicit converter, look at the ValueBinding
    if (converter == null)
    {
      ValueBinding binding = bean.getValueBinding(UIXValue.VALUE_KEY);
      if (binding != null)
      {
        FacesContext fContext = (context == null) ?
          FacesContext.getCurrentInstance() : context.getFacesContext();
        Class<?> type = binding.getType(fContext);
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

    }
  }

  protected boolean isExpandAllEnabled(UIComponent component)
  {
    FacesBean bean = getFacesBean(component);
    Object bool =
      bean.getProperty(_expandAllEnabledKey);
    if (bool == null)
      bool = _expandAllEnabledKey.getDefault();

    return Boolean.TRUE.equals(bool);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

    renderer.encodeEnd(context, component);
  }

  protected Renderer createRenderer(final UIComponent component)
  {
    final FacesBean bean = new ComponentFacesBean(component);
    return new CommandLinkRenderer()
    {
      @Override
      public FacesBean getFacesBean(UIComponent comp)
      {
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.FacesBean

    createRenderer(component).encodeEnd(context, component);
  }

  protected Renderer createRenderer(final UIComponent component)
  {
    final FacesBean bean = new ComponentFacesBean(component);
    return new FormRenderer()
    {
      @Override
      public FacesBean getFacesBean(UIComponent comp)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.