public void encodeBegin(FacesContext context) throws IOException {

        if (context == null) {
            throw new NullPointerException();
        }

        pushComponentToEL(context, null);

        if (!isRendered()) {
            return;
        }

        context.getApplication().publishEvent(context,
                                              PreRenderComponentEvent.class,
                                              this);

        String rendererType = getRendererType();
        if (rendererType != null) {
            Renderer renderer = this.getRenderer(context);
            if (renderer != null) {
                renderer.encodeBegin(context, this);
            } else {
                if (LOGGER.isLoggable(Level.FINE)) {
                    LOGGER.fine("Can't get Renderer for type " + rendererType);
                }
            }
        }

    }
public void encodeBegin ( FacesContext context ) throws IOException { if ( context == null ) { throw new NullPointerException ( ) ; } pushComponentToEL ( context , null ) ; if ( ! isRendered ( ) ) { return ; } context . getApplication ( ) . publishEvent ( context , PreRenderComponentEvent . class , this ) ; String rendererType = getRendererType ( ) ; if ( rendererType != null ) { Renderer renderer = this . getRenderer ( context ) ; if ( renderer != null ) { renderer . encodeBegin ( context , this ) ; } else { if ( LOGGER . isLoggable ( Level . FINE ) ) { LOGGER . fine ( "Can't get Renderer for type " + rendererType ) ; } } } }
@throws NullPointerException {@inheritDoc}