Is it possible to submit a JSF 2.0 form using GET without including those empty values?
<h:form>
<h:InputText value="#{bean.item}" id="item">
<h:commandButton value="Submit"
action="submit?faces-redirect=true&includeViewParams=true"/>
</h:form>
If the item is not an empty string, the query
/submit.jsf?item=test
But if the item is an empty string, the request
/submit.jsf
source
share