Hi guys,
I am trying to implement the javascripts in my jsf page to find whether the issued values for the employee id attribute is numeric or not.. if not then this should show an error message within the message box but I am running in stuck about the procedure to perform that,Actually my jsf page is as follows please suggest me with the code implementation..
Code:
<f:view>
<head>
<title>Employee Search Details</title>
</head>
<body>
<h:form>
<!--f:attribute name="form1" value="">
</f:attribute-->
<table>
<tr>
<td><h2>Emp Details Search Form</h2></td></tr>
<tr>
<td>Emp Id</td>
<td><h:inputText value="#{backing_search.emp_id}"
id="empid" >
</h:inputText>
</td>
</tr>
<tr>
<td>Name</td>
<td><h:inputText value="#{backing_search.name}"
id="name"/></td>
</tr>
<tr>
<td>Role</td>
<td><h:selectOneMenu value="#{backing_search.selectedItem}">
<f:selectItems value="#{backing_search.selectItems}" />
</h:selectOneMenu ></td>
</tr>
<!--tr>
<td>SkilSets</td>
<td><h:inputText value="#{backing_search.skill}"
id="skill"/></td>
</tr-->
</table>
<p><h:commandButton value="SEARCH" action="#{backing_search.commandaction}" /></p>
</h:form>
</body>
</f:view>
Bookmarks