Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF strange message from <h:message for="someID">
    primarykey
    data
    text
    <p>I'm using inputText to get input from a user</p> <pre><code>&lt;h:inputText id="firstName" value="#{beanManager.currentUser.firstName }" required="true" style="font-size: 15px"&gt;&lt;/h:inputText&gt; </code></pre> <p>and then I've added a message tag</p> <pre><code>&lt;h:message for="firstName"&gt;&lt;/h:message&gt; </code></pre> <p>but when the inputtext is blank and I press submit I get this error message:</p> <pre><code>&gt; j_id_jsp_1382885624_1:ID: Validation Error: Value is required. </code></pre> <p>how can I display the error message only as this?</p> <pre><code>&gt; Validation Error: Value is required. </code></pre> <p>here is the code:</p> <pre><code> &lt;f:view&gt; &lt;h:form&gt; &lt;h:panelGrid border="1" columns="3" style="width: 643px; "&gt; &lt;h:outputText value="First Name" style="font-size: 25px; font-weight: bold"&gt;&lt;/h:outputText&gt; &lt;h:outputText value="Last Name" style="font-size: 25px; font-weight: bold"&gt;&lt;/h:outputText&gt; &lt;h:outputText value="ID" style="font-size: 25px; font-weight: bold"&gt;&lt;/h:outputText&gt; &lt;h:inputText id="firstName" value="#{beanManager.currentUser.firstName }" required="true" requiredMessage="Enter a Valid First Name" style="font-size: 15px"&gt;&lt;/h:inputText&gt; &lt;h:inputText id="LastName" value="#{beanManager.currentUser.lastName }" required="true" requiredMessage="Enter a Valid Last Name" style="font-size: 15px"&gt;&lt;/h:inputText&gt; &lt;h:inputText id="ID" value="#{beanManager.currentUser.ID}" required="true" requiredMessage="Enter a Valid ID" style="font-size: 15px"&gt; &lt;/h:inputText&gt; &lt;h:form&gt;&lt;h:commandButton action="#{beanManager.save }" value="Save Changes" style="height: 30px; width: 100px"&gt;&lt;/h:commandButton&gt; &lt;/h:form&gt; &lt;/h:panelGrid&gt; &lt;h:commandLink action="backtopersonalview" value="Back To Users" style="height: 30px; width: 100px"&gt; &lt;/h:commandLink&gt; &lt;/h:form&gt; &lt;/f:view&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload