public void loadInputBoxConfig(XmlElementBean eleInputboxBean) { super.loadInputBoxConfig(eleInputboxBean); this.setTypePromptBean(null); if (eleInputboxBean != null) { String dateformat = eleInputboxBean.attributeValue("dateformat"); if (dateformat != null) this.dateformat = dateformat.trim(); } }
public void loadExtendConfig(XmlElementBean eleJspHtml, AbsContainerConfigBean parentConfigBean) { super.loadExtendConfig(eleJspHtml, parentConfigBean); this.url = eleJspHtml.getContent(); if (this.url == null || this.url.trim().equals("")) { throw new WabacusConfigLoadingException( "加载" + this.getPath() + "的<jsp/>标签失败,没有在标签内容中指定jsp文件访问URL"); } this.url = this.url.trim(); String iframe = eleJspHtml.attributeValue("iframe"); this.isInIFrame = iframe != null && iframe.toLowerCase().trim().equals("true"); if (this.isInIFrame) { if (this.belongto != null && !this.belongto.trim().equals("")) { throw new WabacusConfigLoadingException( "加载" + this.getPath() + "的<jsp/>标签失败,当其iframe属性为true时,不能配置其belongto属性"); } if (!this.url.startsWith(Config.webroot) && !this.url.toLowerCase().startsWith("http://")) { this.url = Config.webroot + "/" + this.url; this.url = Tools.replaceAll(this.url, "//", "/"); } this.iframestyleproperty = eleJspHtml.attributeValue("iframestyleproperty"); } }