Package org.apache.myfaces.trinidad.bean

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


    }

    @Override
    public void saveRowState(UIComponent child)
    {
      FacesBean bean = ((UIXShowDetail)child).getFacesBean();
      _disclosed = (Boolean)bean.getLocalProperty(UIXShowDetail.DISCLOSED_KEY);
    }
View Full Code Here


    }

    @Override
    public void restoreRowState(UIComponent child)
    {
      FacesBean bean = ((UIXShowDetail)child).getFacesBean();
      bean.setProperty(UIXShowDetail.DISCLOSED_KEY, _disclosed);
    }
View Full Code Here

  @Override
  public final void decode(
    FacesContext facesContext,
    UIComponent  component)
  {
    FacesBean facesBean = getFacesBean(component);
    String clientId = null;
    if (facesBean != null)
    {
      clientId = decodeBehaviors(facesContext, component, facesBean);
    }
View Full Code Here

      RenderingContext rc = RenderingContext.getCurrentInstance();
      if (rc == null)
        throw new IllegalStateException(_LOG.getMessage(
          "NO_RENDERINGCONTEXT"));

      FacesBean bean = getFacesBean(component);

      beforeEncode(context, rc, component, bean);
      encodeBegin(context, rc, component, bean);
    }
  }
View Full Code Here

    RenderingContext rc = RenderingContext.getCurrentInstance();
    if (rc == null)
      throw new IllegalStateException(_LOG.getMessage(
        "NO_RENDERINGCONTEXT"));

    FacesBean bean = getFacesBean(component);
    RuntimeException re = null;
    try
    {
      if (getRendersChildren())
      {
View Full Code Here

    final TableRenderingContext tContext,
    final UIComponent           component
    ) throws IOException
  {
    ResponseWriter writer = context.getResponseWriter();
    FacesBean bean = getFacesBean(component);
    //
    // no nested tables, so end the previous table and start a
    // new one
    //
    writer.endElement("table");
View Full Code Here

  public Object getConvertedValue(
    FacesContext context,
    UIComponent  component,
    Object       submittedValue) throws ConverterException
  {
    FacesBean bean = getFacesBean(component);
    Converter converter = getConverter(component, bean);
    if (converter == null)
      converter = getDefaultConverter(context, component, bean);

    if (converter != null)
View Full Code Here

   */
  protected boolean wasSubmitted(
    FacesContext context,
    UIComponent  component)
  {
    FacesBean bean = getFacesBean(component);
    return !getDisabled(component, bean) && !getReadOnly(context, component, bean);
  }
View Full Code Here

  }

  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

    TableRenderingContext trc,
    UIComponent component,
    boolean useDivider
    ) throws IOException
  {
    FacesBean bean = getFacesBean(component);
    boolean hasAllDetails = ((trc.getDetail() != null) &&
                             getAllDetailsEnabled(component, bean));

    boolean needsDivider = false;
      if (trc.hasSelectAll())
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.bean.FacesBean

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.