论坛首页 Java企业应用论坛

ww中如何应用定制的主题

浏览 2252 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2006-10-11  
我想定制自己的theme,将ww2.2.3发布包中template文件夹拷贝一份,修改里面xhtml文件夹下的一些文件,比如style.css,我该如何应用这个定制的theme呢
换句话说,我想用这个新的template文件夹起作用,而不是jar中的那个。我不知道要放在什么地方,是否需要修改webwork.ui.theme
   发表时间:2006-10-11  
yes
0 请登录后投票
   发表时间:2006-10-12  
我认为最理想的方式是我在webroot目录下放置一个template文件夹,在其中添加mytheme文件夹,其下放置文件1
theme.properties 
   parent=xhtml

文件2
styles.css
  .wwFormTable {}
  .label {font-style:italic; }
  .errorLabel {font-style:italic; color:red; }
  .errorMessage {font-weight:bold; text-align: center; color:red; }
  .checkboxLabel {}
  .checkboxErrorLabel {color:red; }
  .required {color:purple;}
  .tdLabel {text-align:left; vertical-align:top; }

先做这些,就是想应用自己的样式,比如.required {color:purple;}
webwork.properties中也作了相应修改
webwork.ui.theme=mytheme
webwork.ui.templateDir=template


没有得到预期的结果,相反是表单根本没有显示出来,我不知道哪里出了问题
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics