@Override
	public void encodeBegin(FacesContext context) throws IOException {

		// Initialize attributes
		String src = (String) getAttributes().get("src");

		// src is mandatory
		if (null == src)
			throw new IllegalStateException("The src attribute is mandatory for the Jawr image path tag. ");

		HttpServletRequest request = ((HttpServletRequest) context.getExternalContext().getRequest());
		BinaryResourcesHandler imgRsHandler = getBinaryResourcesHandler(context);

		// Refresh the config if needed
		RendererRequestUtils.refreshConfigIfNeeded(request, imgRsHandler.getConfig());

		render(context);

		super.encodeBegin(context);

		// Reset the Thread local for the Jawr context
		ThreadLocalJawrContext.reset();
	}
@ Override public void encodeBegin ( FacesContext context ) throws IOException { String src = ( String ) getAttributes ( ) . get ( "src" ) ; if ( null == src ) throw new IllegalStateException ( "The src attribute is mandatory for the Jawr image path tag. " ) ; HttpServletRequest request = ( ( HttpServletRequest ) context . getExternalContext ( ) . getRequest ( ) ) ; BinaryResourcesHandler imgRsHandler = getBinaryResourcesHandler ( context ) ; RendererRequestUtils . refreshConfigIfNeeded ( request , imgRsHandler . getConfig ( ) ) ; render ( context ) ; super . encodeBegin ( context ) ; ThreadLocalJawrContext . reset ( ) ; }
/*
(non-Javadoc)

@see
javax.faces.component.UIComponentBase#encodeBegin(javax.faces.context.
FacesContext)