I have a select that depends if it's true or false, shows or hide a div with an input with jquery. For different reasons, I have to put the same input with the same value in the faces but in different divs:
<div id="groupA">
<h:inputText id="inputA" value="#{bindInputA}"/>
</div>
<div id="groupB">
<h:inputText id="inputB" value="#{bindInputA}"/>
</div>
Group B is hide at the begginning for the condition I put in javascript with jquery, but the problem is when I fill the first input, the value I get in the faces is of the empty value of inputB because it's like this one is overwriting, cause is still working altough is hide.
Is there any way to make ignore for faces the second binding or any other solution?