I need to skip an input component inside a h:form
from being processed/submitted as it is kept there only for pure presentational needs & does not submit value to any bean field. How do I disable its submittion along with other form inputs while the form is submitted?
<h:form>
<!--other input components-->
<p:selectOneListbox id="deptsSel">
<f:selectItems value="#{listRetriever.list}"
var="dept" itemLabel="#{namesDirectory.getName(dept)}" itemValue="#{dept}" />
</p:selectOneListbox>
<!--other input components-->
</h:form>
I omitted the value attribute for p:selectOneListbox
but while submitting the form it still gives validation error: "deptsSel: Validation Error: Value is not valid
"