jsf and primefaces update problem

后端 未结 3 520
囚心锁ツ
囚心锁ツ 2021-01-14 21:33

I have a JSF page with two forms (pseudo-code below).

First form is for a user and has text fields and a table of phone numbers, and a link for adding a new phone

相关标签:
3条回答
  • 2021-01-14 21:46

    I doubt that update="personForm:phonesPanel" works without a ":" before personForm. This should be the correct one:

    update=":personForm:phonesPanel"
    
    0 讨论(0)
  • 2021-01-14 21:46

    Answering my own question.

    The answer is: update="personForm:phonesPanel"

    Thanks all!

    0 讨论(0)
  • 2021-01-14 21:52

    Other thing you can do is set the "prependId" form attribute to "false":

    <h:form prependId="false">
    

    This way you don't need to use the nested id's and might use:

    update="phonesPanel" 
    
    0 讨论(0)
提交回复
热议问题