Examples of FacesBean


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

  static UINode __getUINode(UIComponent component)
  {
    if (component instanceof UIXComponent)
    {
      FacesBean bean = ((UIXComponent) component).getFacesBean();
      if (bean instanceof UINodeFacesBean)
        return ((UINodeFacesBean) bean).getUINode();
    }

    return new UIComponentUINode(component, _FACES_NAMESPACE);
View Full Code Here

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

  private Object _getCommandChildProperty(
    UIXCommand commandChild,
    String propertyName)
  {
    FacesBean childFacesBean = commandChild.getFacesBean();
    FacesBean.Type type = childFacesBean.getType();
    PropertyKey propertyKey = type.findKey(propertyName);
    if (propertyKey == null)
    {
      if (_LOG.isSevere())
      {
        _LOG.severe(
          "Warning: NavigationLevelRenderer was looking for child property \"" +
          propertyName +
          "\" but none was found, it is likely that an unexpected child component was found (expected CommandNavigationItem).");
      }
      return null;
    }
    else
    {
      return childFacesBean.getProperty(propertyKey);
    }
  }
View Full Code Here

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

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

    if (converter != null)
View Full Code Here

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

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

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

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

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

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

    if ((height != null)&& isGecko(arc))
    {
      writer.writeAttribute("style", "border-width:0px", null);
    }

    FacesBean bean = getFacesBean(table);
    String summary = getSummary(bean);

    Object cellPadding = getTablePadding(table);
    OutputUtils.renderLayoutTableAttributes(
       context, arc, cellPadding,
View Full Code Here

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

    // get the variables needed to calculate oldStart, oldEnd,
    // newStart, newEnd.
    int rowCount = choiceBar.getRowCount();
    int rows = choiceBar.getRows();

    FacesBean bean = getFacesBean(choiceBar);
    boolean isShowAll = getShowAll(bean);

    // calculate oldStart and oldEnd
    int increment = (isShowAll && rowCount > -1) ? rowCount : rows;
    int oldStart = choiceBar.getFirst();
    int oldEnd = oldStart + increment;


    // calculate newStart and newEnd

    // initialize showAll to its default state. We will change
    // this later if the event's value is "all".
    if (isShowAll)
      bean.setProperty(_showAllKey, Boolean.FALSE);

    int newStart = -1;
    int newEnd = -1;

    if (valueParam != null)
    {
      String newStartString = valueParam.toString();

      // We get "all" if the user selected the "Show All" option.
      // If so, set showAll to true and set newStart and newEnd to
      // be the entire range.
      if (newStartString.equals(XhtmlConstants.VALUE_SHOW_ALL))
      {
        bean.setProperty(_showAllKey, Boolean.TRUE);
        newStart = 0;
        newEnd = rowCount;
      }
      else
      {
View Full Code Here

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

  private Object _convertIndexedSubmittedValue(
    FacesContext context,
    UIComponent  component,
    Object       submittedValue)
  {
    FacesBean bean = getFacesBean(component);
    Converter converter = getConverter(bean);
    if ( converter == null)
      converter = getDefaultConverter(context, bean);

    List<SelectItem> selectItems =
View Full Code Here

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

  }

  @Override
  protected void queueActionEvent(FacesContext context, UIComponent component)
  {
    FacesBean bean = getFacesBean(component);
    // If there's a non-default action, then just launch away
    if (getAction(bean) != null)
    {
      super.queueActionEvent(context, component);
    }
View Full Code Here

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

    // If we got passed a Date object, send it back to String
    // land (where it needs to be for submitted values).
    if ((returnValue instanceof Date) || fac.isConvertible(returnValue, Date.class))
    {
      FacesBean bean = getFacesBean(component);
      Converter converter = getConverter(bean);
      if (converter == null)
        converter = getDefaultConverter(context, bean);

      if (converter != null)
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.