Examples of FacesBean


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

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, clientId);
    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

    // 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

    {
      FacesMessage fm = MessageFactory.getMessage(context, "org.apache.myfaces.trinidad.UPLOAD");
      throw new ConverterException(fm);
    }

    FacesBean bean = getFacesBean(component);
    Converter converter = getConverter(bean);
    // support converter for the <inputFile> component
    if(converter != null)
    {
      // create a unique key (component class name + filename) and use this
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("NAVIGATIONLEVELRENDERER_NOT_FOUND_CHILD_PROPERTY", propertyName);
      }
      return null;
    }
    else
    {
      return childFacesBean.getProperty(propertyKey);
    }
  }
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.renderDataTableAttributes(
       context, arc, cellPadding,
View Full Code Here

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

      _renderEmptyCell(context, arc, tContext, physicalColumn++, null, 1);
    }

    int totalCols = tContext.getActualColumnCount();
    UIComponent table = tContext.getTable();
    FacesBean bean = getFacesBean(table);

    if (emptyTextRenderer == null)
    {
      _renderEmptyCell(context, arc, tContext, physicalColumn,
                       getEmptyText(bean), totalCols - physicalColumn);
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.