/** * Determine the '{@code id}' attribute value for this tag, * autogenerating one if none specified. * @see #getId() * @see #autogenerateId() */ @Nullable protected String resolveId() throws JspException { Object id = evaluate("id", getId()); if (id != null) { String idString = id.toString(); return (StringUtils.hasText(idString) ? idString : null); } return autogenerateId(); }
/** * Determine the '{@code id}' attribute value for this tag, * autogenerating one if none specified. * @see #getId() * @see #autogenerateId() */ @Nullable protected String resolveId() throws JspException { Object id = evaluate("id", getId()); if (id != null) { String idString = id.toString(); return (StringUtils.hasText(idString) ? idString : null); } return autogenerateId(); }
/** * Determine the '{@code id}' attribute value for this tag, * autogenerating one if none specified. * @see #getId() * @see #autogenerateId() */ protected String resolveId() throws JspException { Object id = evaluate("id", getId()); if (id != null) { String idString = id.toString(); return (StringUtils.hasText(idString) ? idString : null); } return autogenerateId(); }