I have a p:selectOneListbox within an h:form but without the value attribute becuase I need to use it only for presentation purposes (only for showing another inputbox, but value submit is not required for this component). But when I try to submit the form using h:commandButton‘s actionListener that is unsuccessful unless the component’s value is binded to a bean using value attribute.
How do I submit the form without needing to specify the value attribute for this p:selectOneListbox?
<p:selectOneListbox >
<f:selectItems ... />
</p:selectOneListbox>
Is there any way I could tell what components to exclude from being processed instead of telling what all to process(as that would bloat up the code unnecessarily with a long list of ids
) ?!
You could put the
p:selectOneListbox>into another form and then change its position via css:This will move the selectBox 50px up from its normal position.
It is a kind of dirty solution and you have to fiddle to find the correct position but it should work.