Absolute reRendering using RichFaces

后端 未结 1 1180
孤城傲影
孤城傲影 2021-02-11 06:46

My problem is that RichFaces reRender does not work \'under\' the current element in the element tree; only upper elements get rerendered.

Is there any way

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-11 07:54

    • reRender works with providing an the id of the target object you want to reRender (inside the same naming container - form most often)
    • the id should be a unique string, according to html spec
    • reRender allows dynamic value - i.e. reRender="#{myBean.currentItemsToRerender}

    Based on that I think you should be able to achieve what you want (although it's not entirely clear)

    Update:

    UIComponent.findComponent(..) has a well-defined algorithm for resolving ids. So for absolute referencing your reRendered id should start with : and then continue through the hierarchy of the naming containers.

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