Making the options of a display vertically in struts2

前端 未结 5 1099
耶瑟儿~
耶瑟儿~ 2021-01-05 20:50

*I need my check box list option to display vertically instead of the default horizontal display.I have created a folder in my src folder in the name templates and another f

5条回答
  •  广开言路
    2021-01-05 21:30

    see this website: http://mikeski.net/site/node/16

    basically, you just need to:

    1. open up the file checkboxlist.ftl
    2. it will contain 3 lines, the middle line uses the checkboxlist.ftl from the simple theme. Comment the line that says:

      <#include "/${parameters.templateDir}/simple/checkboxlist.ftl" />
      
    3. Then copy the freemarker code that is referenced in the above URL.

    I did that, and it worked for me. It will display your checkbox on its own individual line.

提交回复
热议问题