title: How to convert String into Integer in h:selectOneMenu
body: <p>I want to convert String into Integer in JSF hLselectOneMenu. </p>
  
  <pre><code>&lt;h:selectOneMenu id="rowsPerPage" value="#{AccountsController.rowsPerPage}" converter="javax.faces.Integer" maxlength="3"&gt;                                    
      &lt;f:selectItem itemValue="10" itemLabel="10" /&gt;
      &lt;f:selectItem itemValue="50" itemLabel="50" /&gt;
      &lt;f:selectItem itemValue="100" itemLabel="100" /&gt;
      &lt;f:selectItem itemValue="500" itemLabel="500" /&gt;                                    
      &lt;f:selectItem itemValue="094332" itemLabel="Custom" /&gt;
      &lt;f:ajax render="customrowperpage" /&gt;
  &lt;/h:selectOneMenu&gt;&amp;nbsp;
      &lt;h:inputText id="customrowperpage" value="#{AccountsController.rowsPerPage}" rendered="#{AccountsController.rowsPerPage == '094332'}" required="true" /&gt;
  </code></pre>
  
  <p>How I can do this in JSF page?</p>
  
  <p>P.S I updated the code but it the AJAX code is not working. When I select "custom" the input field is not rendered.</p>