Here is JSF code:
<h:inputText binding="#{bean.input}" /> And here is a part of backing bean for binding support:
private HtmlInputText input; public void setInput(HtmlInputText input) { this.input = input; } public HtmlInputText getInput() { return this.input; } When I open page at first time everything works fine but when I open it at second time (refresh or open the same url in another tab or any other way) I get duplicate ID error. Error message says that <h:inputText> has no unique ID. Here is a part of long error message:
java.lang.IllegalArgumentException: Component ID formId:inputId has already been found in the view +id: inputId type: javax.faces.component.html.HtmlInputText@cafebabe The problem occured after I added binding attribute. If I remove it, everything will work fine again. How do I properly use binding attribute?