
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
Java | size: 1.87 KB | hits: 17 | expires: Never
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="tiles" uri="/WEB-INF/tld/struts-tiles.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
<f:view>
<tiles:insert page="/WEB-INF/tiles/front/main.jsp" flush="false">
<tiles:put name="pagetitle" value="Add User Form"/>
<tiles:put name="body" direct="true">
<f:subview id="body">
<h:form id="form">
<h:panelGroup>
<t:message for="chb"/>
</h:panelGroup>
<t:htmlTag value="center">
<div >
<table width="560px">
<tr>
<td align="left">
Sections To Assign
</td>
<td>
<div style="overflow-y: scroll;height: 120px; margin-left: 20px;">
<h:selectManyCheckbox id="chb" value="#{AddRespondentBean.selectedCheckBoxes}" layout="pageDirection">
<f:selectItems value="#{AddRespondentBean.checkBoxItems}"/>
</h:selectManyCheckbox>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<t:commandButton value="Save & Back" action="#{AddRespondentBean.save}"/>
<t:commandButton value="Save & Add Another" action="#{AddRespondentBean.saveAndAddAnother}"/>
</td>
</tr>
</table>
</div>
</t:htmlTag>
</h:form>
</f:subview>
</tiles:put>
</tiles:insert>
</f:view>