I tried some of the methods named like findcomponent.value and element.value but they give me old value which was while page was loaded b/c findcomponent and element method returns server side UI.components instead client side components ?推荐答案我猜您将使用rich:clientId函数将正确的标识符呈现到Java脚本中.I guess you are to use rich:clientId function to render a correct identifier into your java script.例如:var myElement = document.getElementById("#{rich:clientId('field_name')}");另请参见 RichFaces rich:facelets中的clientId 这篇关于JSF richfaces getElementById的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!