@Override
	public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
		if (!component.isRendered()) {
			return;
		}
		DateTimePicker dtp = (DateTimePicker) component;
		ResponseWriter rw = context.getResponseWriter();

		String dateTimePickerId = encodeHTML(context, rw, dtp);
		encodeJS(context, rw, dtp, dateTimePickerId);
	}
@ Override public void encodeBegin ( FacesContext context , UIComponent component ) throws IOException { if ( ! component . isRendered ( ) ) { return ; } DateTimePicker dtp = ( DateTimePicker ) component ; ResponseWriter rw = context . getResponseWriter ( ) ; String dateTimePickerId = encodeHTML ( context , rw , dtp ) ; encodeJS ( context , rw , dtp , dateTimePickerId ) ; }
This methods generates the HTML code of the current b:dateTimePicker.
@param context the FacesContext.
@param component the current b:dateTimePicker.
@throws IOException thrown if something goes wrong when writing the HTML code.