Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core">
- <h:head>
- <title>Dave Export To Excel</title>
- <style>
- table
- {
- border: 1px solid black;
- }
- td
- {
- padding: 10px;
- }
- </style>
- </h:head>
- <h:body>
- <ui:param name = "_BEAN" value = "#{DaveExportTest}"/>
- <h:form enctype = "multipart/form-data">
- <h2>Export to Excel (Apache POI)</h2>
- <table>
- <tr>
- <td>First Name</td>
- <td colspan = "3"><h:inputText label = "First Name" id = "fname" value = "#{_BEAN.fname}"></h:inputText></td>
- </tr>
- <tr>
- <td>Last Name</td>
- <td colspan = "3"><h:inputText label = "Last Name" id = "lname" value = "#{_BEAN.lname}"></h:inputText></td>
- </tr>
- <tr>
- <td>Birthdate</td>
- <td>
- Day
- <h:selectOneMenu value = "#{_BEAN.day}">
- <f:selectItems value = "#{_BEAN.days}"/>
- </h:selectOneMenu>
- </td>
- <td>
- Month
- <h:selectOneMenu value = "#{_BEAN.month}">
- <f:selectItems value = "#{_BEAN.months}"/>
- </h:selectOneMenu>
- </td>
- <td>
- Year
- <h:selectOneMenu value = "#{_BEAN.year}">
- <f:selectItems value = "#{_BEAN.years}"/>
- </h:selectOneMenu>
- </td>
- </tr>
- <tr>
- <td>Gender</td>
- <td colspan = "3">
- <h:selectOneRadio value = "#{_BEAN.gender}">
- <f:selectItem itemValue = "Male" itemLabel = "Male"/>
- <f:selectItem itemValue = "Female" itemLabel = "Female"/>
- </h:selectOneRadio>
- </td>
- </tr>
- <tr>
- <td>Has Dependent(s)?</td>
- <td colspan = "2">
- <h:selectBooleanCheckbox value = "#{_BEAN.hasDependents}"/>
- </td>
- </tr>
- <tr>
- <td>Upload Image</td>
- <td colspan = "3"><h:inputFile value = "#{_BEAN.image}"/></td>
- </tr>
- <tr>
- <td colspan = "4"><h:commandButton value = "Export Data" action = "#{_BEAN.acceptInfo}"></h:commandButton></td>
- </tr>
- </table>
- </h:form>
- </h:body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement