Advertisement
flixbeat

DaveExport.xhtml

Dec 3rd, 2019
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.14 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml"
  5.     xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
  6.     xmlns:h="http://xmlns.jcp.org/jsf/html"
  7.     xmlns:f="http://xmlns.jcp.org/jsf/core">
  8.  
  9. <h:head>
  10.     <title>Dave Export To Excel</title>
  11.     <style>
  12.         table
  13.         {
  14.             border: 1px solid black;
  15.         }
  16.         td
  17.         {
  18.             padding: 10px;
  19.         }
  20.     </style>
  21. </h:head>
  22.  
  23. <h:body>
  24.     <ui:param name = "_BEAN" value = "#{DaveExportTest}"/>
  25.     <h:form enctype = "multipart/form-data">
  26.         <h2>Export to Excel (Apache POI)</h2>
  27.         <table>
  28.             <tr>
  29.                 <td>First Name</td>
  30.                 <td colspan = "3"><h:inputText label = "First Name" id = "fname" value = "#{_BEAN.fname}"></h:inputText></td>
  31.             </tr>
  32.             <tr>
  33.                 <td>Last Name</td>
  34.                 <td colspan = "3"><h:inputText label = "Last Name" id = "lname" value = "#{_BEAN.lname}"></h:inputText></td>
  35.             </tr>
  36.             <tr>
  37.                 <td>Birthdate</td>
  38.                 <td>
  39.                     Day
  40.                     <h:selectOneMenu value = "#{_BEAN.day}">
  41.                         <f:selectItems value = "#{_BEAN.days}"/>
  42.                     </h:selectOneMenu>
  43.                 </td>
  44.                 <td>
  45.                     Month
  46.                     <h:selectOneMenu value = "#{_BEAN.month}">
  47.                         <f:selectItems value = "#{_BEAN.months}"/>
  48.                     </h:selectOneMenu>
  49.                 </td>
  50.                 <td>
  51.                     Year
  52.                     <h:selectOneMenu value = "#{_BEAN.year}">
  53.                         <f:selectItems value = "#{_BEAN.years}"/>
  54.                     </h:selectOneMenu>
  55.                 </td>
  56.             </tr>
  57.             <tr>
  58.                 <td>Gender</td>
  59.                 <td colspan = "3">
  60.                     <h:selectOneRadio value = "#{_BEAN.gender}">
  61.                         <f:selectItem itemValue = "Male" itemLabel = "Male"/>
  62.                         <f:selectItem itemValue = "Female" itemLabel = "Female"/>
  63.                     </h:selectOneRadio>
  64.                 </td>
  65.             </tr>
  66.             <tr>
  67.                 <td>Has Dependent(s)?</td>
  68.                 <td colspan = "2">
  69.                     <h:selectBooleanCheckbox value = "#{_BEAN.hasDependents}"/>
  70.                 </td>
  71.             </tr>
  72.             <tr>
  73.                 <td>Upload Image</td>
  74.                 <td colspan = "3"><h:inputFile value = "#{_BEAN.image}"/></td>
  75.             </tr>
  76.             <tr>
  77.                 <td colspan = "4"><h:commandButton value = "Export Data" action = "#{_BEAN.acceptInfo}"></h:commandButton></td>
  78.             </tr>
  79.         </table>
  80.        
  81.     </h:form>
  82.    
  83. </h:body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement