I'm trying to display just one for two Fields that are required. At the moment there are two error messages if both fields are empty. I want to achieve that there is just one message if both or just one field is empty.
The code looks like this:
<x:inputText
value="#{bean.proxyUrl}"
id="idProxyUrl"
required="true"
/>
<x:outputText value=":" />
<x:inputText
value="#{bean.proxyPort}"
id="idProxyPort"
required="true"
/>
<x:message for="idProxyUrl" errorClass="errorMessage" style="margin-left: 10px;" />
<x:message for="idProxyPort" errorClass="errorMessage" style="margin-left: 10px;" />
What can I do about it, that I only get one message no matter if one or both of the fields are empty.