How to dynamically add JSF components

前端 未结 3 2207
-上瘾入骨i
-上瘾入骨i 2020-11-22 05:22

Can I add JSF components dynamically? I need to have a form with a button which should add one to the form. Is this possible?

I know

3条回答
  •  佛祖请我去吃肉
    2020-11-22 06:02

    Use h:dataTable to add elements dynamically... Have a list of any type you want to provide values for dataTable...

    In h:dataTable... you can include the element tag to create inside

    It will be used to generate elements you want to create dynamically.

提交回复
热议问题