Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with a validator used with JSF
    primarykey
    data
    text
    <p>I'am using JSF2.0</p> <p>I have used a validator that valid an input text ,but no msg appear to indicate that the input is wrong!</p> <p><strong>Update:</strong></p> <p>Are Their a way that validate inputtext before submitting ,just after typing the inputText?</p> <p><strong>The JSF code:</strong></p> <pre><code> &lt;h:form id="form3"&gt; &lt;p:panel visible="#{bean.form3Visible}" style="width: 900px;"&gt; &lt;h:panelGrid width="width: 900px;" columns="1"&gt; &lt;p /&gt; &lt;h:selectOneMenu value="#{bean.platform}"&gt; &lt;f:selectItem itemLabel="-- Select Plateform-- " itemValue="0"/&gt; &lt;f:selectItems value="#{bean.getMyListPaltform()}" /&gt; &lt;f:ajax listener="#{bean.UpdateChangeEnvironment()}" render="Environment" /&gt; &lt;/h:selectOneMenu&gt; &lt;h:panelGrid width="width: 160px;" columns="9"&gt; &lt;h:inputText id="ssFrom" value="#{bean.ssFrom}" required="true" style="width: 18px" &gt; &lt;f:validateLongRange minimum="0" maximum="24"/&gt; &lt;/h:inputText&gt; &lt;h:message for="ssFrom" id="msgg" style="color:red" /&gt; &lt;/h:panelGrid&gt; &lt;/p:panel&gt; &lt;/h:form&gt; </code></pre> <p><strong>I have solved my problem this is the answer perhaps it can help others :</strong></p> <pre><code> &lt;h:selectOneMenu value="#{bean.availabilityDisplay}" id="Display"&gt; &lt;f:selectItem itemLabel="-- Select Display-- " itemValue="0"/&gt; &lt;f:selectItems value="#{bean.getMyListDisplays()}"/&gt; &lt;f:ajax render="Target" /&gt; &lt;/h:selectOneMenu&gt; &lt;p:outputPanel id="Target"&gt; &lt;h:selectOneMenu value="#{bean.frequency}" id="frequency" rendered="#{bean.availabilityDisplay == 'Availibility Histogramme' or bean.availabilityDisplay == 'Availibility line'}"&gt; &lt;f:selectItem itemLabel="-- Select Frequency-- " itemValue="0"/&gt; &lt;f:selectItems value="#{bean.getMyListFrequency()}"/&gt; &lt;/h:selectOneMenu&gt; &lt;/p:outputPanel&gt; </code></pre> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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