原因是原来的处理方法为,从compiere 的远程网站上取css文件,代码如下:
package org.compiere.util;
public class WebDoc
******************
// css, js
if (javaClient)
m_head.addElement(new link("http://www.compiere.org/standard.css", link.REL_STYLESHEET, link.TYPE_CSS));
更改为从 本地取css文件即可,代码如下(注意将 standard.css 放入相应的目录下):
ClassLoader cl = this.getClass().getClassLoader();
String strurl = cl.getResource("org/compiere/util/standard.css").getPath();
// css, js
if (javaClient)
m_head.addElement(new link(strurl, link.REL_STYLESHEET, link.TYPE_CSS));
else
{
**********************