zk框架中常见问题的解决续

1、局部刷新

/**
	 * 刷新页面*
	 */
	public void refresh() {
		Convert.getMainInc().setSrc(
				Paths.getPagePath() + "/pages/virtualhost/virtualHost.zul?"
						+ new Date().getTime());
	}




		String abstrctName = (String) Sessions.getCurrent().getAttribute(
				"abstractname");
		monitoringThreadpools
				.setDataUrl("/servlet/monitoringThreadpools?abstrctName="
						+ abstrctName);

 

2、zk页面加背景

 <window id="propertyWnd" xmlns:h="http://www.w3.org/1999/xhtml" 
    	use="com.cvicse.ui.report.r4_2.viewer.ViewerConfigPropertyUi" contentStyle="background-image:url(${c:encodeURL('/resources/img/folder.gif')})">

 

你可能感兴趣的:(UI,框架,XHTML,servlet,zk)