Empdetail.jsp – HP Integrity NonStop J-Series User Manual

Page 436

Advertising
background image

<f:facet name="header">
<h:outputText value="SpringFaces" styleClass="style4"/>
</f:facet>
</h:column>
</h:dataTable>
</h:panelGrid>

<h:panelGrid width="175px" columns="3" border="0" cellspacing="0" cellpadding="0">

<h:panelGroup>

<h:dataTable id="dt2" border="0" cellpadding="0" cellspacing="0" width="250" var="gh">
<h:column>
<f:facet name="header">
<h:outputText value="Record Update " styleClass="style1"/>
</f:facet>
</h:column>
</h:dataTable>

<h:dataTable id="dt3" border="0" cellpadding="0" cellspacing="0" width="250" var="gh">
<h:column>
<f:facet name="header">
<h:outputText value="#{message.doesnot_exists_msg}"
style="color:red; font-weight: bold;" rendered="#{EmpBean.ntexist}"/>
</f:facet>
</h:column>
</h:dataTable>

<h:panelGrid width="100px" columns="2" border="0" cellspacing="2" cellpadding="0">

<h:outputText value="Employee Id" styleClass="style2"/>
<h:panelGroup>
<h:inputText id="Empid" value="#{EmpBean.empid}" required="true" size="27" />
<f:verbatim><br/></f:verbatim>
<h:message for="Empid" styleClass="errors"/>
</h:panelGroup>

<h:outputText value="Action to perform (Retrieve or Delete)" styleClass="style2"/>
<h:panelGroup>
<h:inputText id="rord" value="#{EmpBean.rord}" required="true" size="27" />
</h:panelGroup>

<h:outputText value=" "/>
<h:commandButton id="update" value="Retrieve/Delete" action="#{EmpBean.update}"/>
</h:panelGrid>
<h:dataTable id="dt4" border="0" cellpadding="0" cellspacing="0" width="250" var="gh">
<h:column>
<f:facet name="header">
<h:outputText value="#{message.deleted_successfully_msg}"
style="color:red; font-weight: bold;" rendered="#{EmpBean.state}"/>
</f:facet>
</h:column>
</h:dataTable>
<h:dataTable id="dt5" border="0" cellpadding="0" cellspacing="0" width="250" var="gh">
<h:column>
<f:facet name="header">
<h:outputText value="#{message.incorrect_field_value2_msg}"
style="color:red; font-weight: bold;" rendered="#{EmpBean.state1}"/>
</f:facet>
</h:column>
</h:dataTable>
<br>
</br>
<t:commandLink id="Link1" action="home"
immediate="true">
<h:outputText value="Link to Home page >>" />
</t:commandLink>

</h:panelGroup>

</h:panelGrid>

</h:form>
</center>
</body>
</html>
</f:view>

empDetail.jsp

This page displays the details of an employee whose Employee ID (with retrieve option selected)
is provided in the empUpdate.jsp page.

Replace the contents of the existing empDetail.jsp file with the code given below:

436 Integrating MyFaces into Spring

Advertising
This manual is related to the following products: