JSF + PrimeFaces: `update` attribute does not update component

前端 未结 1 843
别跟我提以往
别跟我提以往 2020-11-30 05:13

Here is my layout

1条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 05:23

    The update attribute should point to an existing client ID in the HTML DOM tree. However, since the element is not available in the HTML DOM tree because it's not rendered by the server side, JS/ajax cannot find anything in HTML DOM tree to update.

    In fact, you should wrap it in another element which is always available in the HTML DOM tree so that Ajax can locate it and then use its client ID in update. In your case, you can use padding for this.

    0 讨论(0)
提交回复
热议问题