protected String writeIdAttributeIfNecessary(FacesContext context, ResponseWriter writer, UIComponent component) { String id = null; if (shouldWriteIdAttribute(component)) { try { writer.writeAttribute("id", id = component.getClientId(context), "id"); } catch (IOException e) { if (logger.isLoggable(WARNING)) { logger.warning( getExceptionMessageString( CANT_WRITE_ID_ATTRIBUTE_ERROR_MESSAGE_ID, e.getMessage())); } } } return id; }
protected String writeIdAttributeIfNecessary(FacesContext context, ResponseWriter writer, UIComponent component) { String id = null; if (shouldWriteIdAttribute(component)) { try { writer.writeAttribute("id", id = component.getClientId(context), "id"); } catch (IOException e) { if (logger.isLoggable(WARNING)) { logger.warning( getExceptionMessageString( CANT_WRITE_ID_ATTRIBUTE_ERROR_MESSAGE_ID, e.getMessage())); } } } return id; }
protected String writeIdAttributeIfNecessary(FacesContext context, ResponseWriter writer, UIComponent component) { String id = null; if (shouldWriteIdAttribute(component)) { try { writer.writeAttribute("id", id = component.getClientId(context), "id"); } catch (IOException e) { if (logger.isLoggable(WARNING)) { logger.warning( getExceptionMessageString( CANT_WRITE_ID_ATTRIBUTE_ERROR_MESSAGE_ID, e.getMessage())); } } } return id; }
protected String writeIdAttributeIfNecessary(FacesContext context, ResponseWriter writer, UIComponent component) { String id = null; if (shouldWriteIdAttribute(component)) { try { writer.writeAttribute("id", id = component.getClientId(context), "id"); } catch (IOException e) { if (logger.isLoggable(Level.WARNING)) { String message = MessageUtils.getExceptionMessageString (MessageUtils.CANT_WRITE_ID_ATTRIBUTE_ERROR_MESSAGE_ID, e.getMessage()); logger.warning(message); } } } return id; }
protected String writeIdAttributeIfNecessary(FacesContext context, ResponseWriter writer, UIComponent component) { String id = null; if (shouldWriteIdAttribute(component)) { try { writer.writeAttribute("id", id = component.getClientId(context), "id"); } catch (IOException e) { if (logger.isLoggable(Level.WARNING)) { String message = MessageUtils.getExceptionMessageString (MessageUtils.CANT_WRITE_ID_ATTRIBUTE_ERROR_MESSAGE_ID, e.getMessage()); logger.warning(message); } } } return id; }