src/org/tiefaces/components/websheet/TieWebSheetComponent.java
@Override
    public final void encodeBegin(final FacesContext context)
            throws IOException {
        webSheetBean = (TieWebSheetBean) this.getAttributes()
                .get(TieConstants.ATTRS_WEBSHEETBEAN);
        if ((webSheetBean != null)
                && (webSheetBean.getWebFormClientId() == null)) {
            LOG.fine("WebSheet component parameter setup");
            webSheetBean.setClientId(this.getClientId());
            webSheetBean.setWebFormClientId(
                    this.getClientId() + ":" + TieConstants.COMPONENT_ID);

            String maxrows = (String) this.getAttributes()
                    .get("maxRowsPerPage");
            if ((maxrows != null) && (!maxrows.isEmpty())) {
                webSheetBean.setMaxRowsPerPage(Integer.valueOf(maxrows));
            }

            Boolean hideSingleSheetTabTitle = (Boolean) this.getAttributes()
                    .get("hideSingleSheetTabTitle");
            if (hideSingleSheetTabTitle != null) {
                webSheetBean.setHideSingleSheetTabTitle(
                        hideSingleSheetTabTitle);
            }
        }
        super.encodeBegin(context);
    }
@Override
    public final void encodeBegin(final FacesContext context)
            throws IOException {
        webSheetBean = (TieWebSheetBean) this.getAttributes()
                .get(TieConstants.ATTRS_WEBSHEETBEAN);
        if ((webSheetBean != null)
                && (webSheetBean.getWebFormClientId() == null)) {
            LOG.fine("WebSheet component parameter setup");
            webSheetBean.setClientId(this.getClientId());
            webSheetBean.setWebFormClientId(
                    this.getClientId() + ":" + TieConstants.COMPONENT_ID);

            String maxrows = (String) this.getAttributes()
                    .get("maxRowsPerPage");
            if ((maxrows != null) && (!maxrows.isEmpty())) {
                webSheetBean.setMaxRowsPerPage(Integer.valueOf(maxrows));
            }

            Boolean hideSingleSheetTabTitle = (Boolean) this.getAttributes()
                    .get("hideSingleSheetTabTitle");
            if (hideSingleSheetTabTitle != null) {
                webSheetBean.setHideSingleSheetTabTitle(
                        hideSingleSheetTabTitle);
            }
        }
        super.encodeBegin(context);
    }
@ Override public final void encodeBegin ( final FacesContext context ) throws IOException { webSheetBean = ( TieWebSheetBean ) this . getAttributes ( ) . get ( TieConstants . ATTRS_WEBSHEETBEAN ) ; if ( ( webSheetBean != null ) && ( webSheetBean . getWebFormClientId ( ) == null ) ) { LOG . fine ( "WebSheet component parameter setup" ) ; webSheetBean . setClientId ( this . getClientId ( ) ) ; webSheetBean . setWebFormClientId ( this . getClientId ( ) + ":" + TieConstants . COMPONENT_ID ) ; String maxrows = ( String ) this . getAttributes ( ) . get ( "maxRowsPerPage" ) ; if ( ( maxrows != null ) && ( ! maxrows . isEmpty ( ) ) ) { webSheetBean . setMaxRowsPerPage ( Integer . valueOf ( maxrows ) ) ; } Boolean hideSingleSheetTabTitle = ( Boolean ) this . getAttributes ( ) . get ( "hideSingleSheetTabTitle" ) ; if ( hideSingleSheetTabTitle != null ) { webSheetBean . setHideSingleSheetTabTitle ( hideSingleSheetTabTitle ) ; } } super . encodeBegin ( context ) ; }
/*
(non-Javadoc)

@see
javax.faces.component.UIComponentBase#encodeBegin(javax.faces.context
.FacesContext)
/ * ( non - Javadoc )