Making the options of a display vertically in struts2

前端 未结 5 1120
耶瑟儿~
耶瑟儿~ 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:33

    Without seeing the modified .ftl file it's difficult to tell where things go wrong, but the general solution is:

    • Copy checkboxlist.ftl over to a new directory (e.g., .../template)
    • In the copied file, add a break between the checkboxLabel class and the iterator:

    • Reference/include the new .../template/checkboxlist.ftl to override the standard checkboxlist.ftl.

    If I recall correctly the above can also be done in CSS, but I forgot the details.

提交回复
热议问题