Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: Java  |  size: 1.87 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <%@ taglib prefix="tiles" uri="/WEB-INF/tld/struts-tiles.tld" %>
  3. <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
  4. <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
  5. <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
  6.  
  7. <f:view>
  8.     <tiles:insert page="/WEB-INF/tiles/front/main.jsp" flush="false">
  9.         <tiles:put name="pagetitle" value="Add User Form"/>
  10.         <tiles:put name="body" direct="true">
  11.             <f:subview id="body">
  12.                 <h:form id="form">
  13.                     <h:panelGroup>
  14.                         <t:message for="chb"/>
  15.                     </h:panelGroup>
  16.                     <t:htmlTag value="center">
  17.                         <div >
  18.                             <table width="560px">
  19.                                 <tr>
  20.                                     <td align="left">
  21.                                         Sections To Assign
  22.                                     </td>
  23.                                     <td>
  24.    <div style="overflow-y: scroll;height: 120px; margin-left: 20px;">
  25. <h:selectManyCheckbox id="chb" value="#{AddRespondentBean.selectedCheckBoxes}" layout="pageDirection">
  26.     <f:selectItems value="#{AddRespondentBean.checkBoxItems}"/>
  27. </h:selectManyCheckbox>
  28.     </div>
  29.                                     </td>
  30.                                 </tr>
  31.                              
  32. <tr>
  33.  <td colspan="2" align="center">
  34.     <t:commandButton value="Save & Back"   action="#{AddRespondentBean.save}"/>
  35.      <t:commandButton value="Save & Add Another" action="#{AddRespondentBean.saveAndAddAnother}"/>
  36.  </td>
  37. </tr>
  38.                             </table>
  39.                         </div>
  40.                     </t:htmlTag>
  41.                 </h:form>
  42.             </f:subview>
  43.         </tiles:put>
  44.     </tiles:insert>
  45. </f:view>
clone this paste RAW Paste Data