Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我<p:inputText>在对话框中有一个标签。当我第一次输入值并提交它时,它会将值保存在支持 bean 中。但是当我第二次打开对话框时,之前的值<p:inputText>仍然成立。当我第二次或以后打开对话框时,如何清除输入文本框?
<p:inputText>
清除支持 bean 中的绑定值并update="idOfDialog"在您的<p:commandButton/>.
update="idOfDialog"
<p:commandButton/>