Primefaces:text field is not updated when dialog hides

前端 未结 1 1902
孤街浪徒
孤街浪徒 2021-01-23 15:46

Im trying to update text field from dialog box .The text field is in the parent component. But its not happening . If i give the id of text field in the update of command button

1条回答
  •  悲哀的现实
    2021-01-23 16:17

    Finally, i have got the solution . The exception i have encountered is because of the form tag . The ajax event fired from the dialog is not able to find the component outside the form .In this case use: :#{p:component('componentId')}

    Here it will search the id not only within the form but outside of it.

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