protected void populateParams() { try { if (StringUtils.isNotBlank(minRows)) { this.setDynamicAttribute(null, "minRows", minRows); } if (StringUtils.isNotBlank(maxRows)) { this.setDynamicAttribute(null, "maxRows", maxRows); } if (StringUtils.isNotBlank(afterAdd)) { this.setDynamicAttribute(null, "afterAdd", afterAdd); } } catch (JspException e) { e.printStackTrace(); } super.populateParams(); DynamicTable uiBean = ((DynamicTable) component); if (id == null) { // 设置ID随机 uiBean.setId("dynamictable_" + RandomStringUtils.randomAlphabetic(10)); } if (cssClass == null) { uiBean.setCssClass("table table-striped table-condensed"); } }
protected void populateParams() { super.populateParams(); Div div = (Div) component; div.setHref(href); div.setUpdateFreq(updateFreq); div.setDelay(delay); div.setLoadingText(loadingText); div.setErrorText(errorText); div.setShowErrorTransportText(showErrorTransportText); div.setListenTopics(listenTopics); div.setAfterLoading(afterLoading); }