AJAXPortletView.jsp

 

+

Search Tips   |   Advanced Search

 

 

<%-- jsf:pagecode language="java" location="/src/pagecode/AJAXPortletView.java" --%><%-- /jsf:pagecode --%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<%@page language="java" contentType="text/html"
  pageEncoding="ISO-8859-1" session="false"%>
<portlet:defineObjects />
<link rel="stylesheet" type="text/css"
  href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
  title="Style">
<link rel="stylesheet" type="text/css"
  href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
  title="Style">
<link rel="stylesheet" type="text/css"
  href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
  title="Style">
<link rel="stylesheet" type="text/css"
  href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
  title="Style">
<f:view><hx:scriptCollector id="scriptCollector1">
    <p>Search employee by Id</p>
    <h:form id="form1" styleClass="form">
      <table>
        <tbody>
          <tr>
            <td align="left">Employee Id:</td>
            <td style="width:5px">&nbsp;</td>
            <td><h:inputText id="textEmpno1"
              value="#{pc_AJAXPortletView.employeeBean.empno}"
              styleClass="inputText">
            </h:inputText></td>
          </tr>
        </tbody>
      </table>
      <h:messages styleClass="messages" id="messages1"></h:messages>
      <br>
      <hx:commandExButton id="button1" styleClass="commandExButton"
        type="submit" value="Search" action="#{pc_AJAXPortletView.doButton1Action}">
        <hx:behavior event="onclick" id="behavior1" behaviorAction="get;stop" targetAction="grid1"></hx:behavior>
      </hx:commandExButton>
    <h:panelGrid id="grid1" styleClass="panelGrid">
      <hx:jspPanel id="jspPanel1">
        <table>
          <tbody>
            <tr>
              <td align="left">Employee Id:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textEmpno2" value="#{pc_AJAXPortletView.employeeBean.empno}" styleClass="outputText">
              </h:outputText></td>
            </tr>
            <tr>
              <td align="left">First Name:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textFirstname1" value="#{pc_AJAXPortletView.employeeBean.firstname}" styleClass="outputText">
              </h:outputText></td>
            </tr>
            <tr>
              <td align="left">Last Name:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textLastname1" value="#{pc_AJAXPortletView.employeeBean.lastname}" styleClass="outputText">
              </h:outputText></td>
            </tr>
            <tr>
              <td align="left">Work Dept:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textWorkdept1" value="#{pc_AJAXPortletView.employeeBean.workdept}" styleClass="outputText">
              </h:outputText></td>
            </tr>
            <tr>
              <td align="left">Job:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textJob1" value="#{pc_AJAXPortletView.employeeBean.job}" styleClass="outputText">
              </h:outputText></td>
            </tr>
            <tr>
              <td align="left">Hire Date:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textHiredate1" value="#{pc_AJAXPortletView.employeeBean.hiredate}" styleClass="outputText">
              </h:outputText></td>
            </tr>
            <tr>
              <td align="left">Sex:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textSex1" value="#{pc_AJAXPortletView.employeeBean.sex}" styleClass="outputText">
              </h:outputText></td>
            </tr>
            <tr>
              <td align="left">Salary:</td>
              <td style="width:5px">&nbsp;</td>
              <td><h:outputText id="textSalary1" value="#{pc_AJAXPortletView.employeeBean.salary}" styleClass="outputText">
              </h:outputText></td>
            </tr>
          </tbody>
        </table>
        <h:messages styleClass="messages" id="messages2"></h:messages>
      </hx:jspPanel>
    </h:panelGrid>
      <hx:ajaxRefreshSubmit id="ajaxRefreshSubmit1" target="grid1"></hx:ajaxRefreshSubmit>
    </h:form>
    
  </hx:scriptCollector>
</f:view>