Advertisement
Guest User

performancetest.jsf

a guest
Jul 23rd, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.60 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml"  
  5.      xmlns:h="http://java.sun.com/jsf/html"
  6.      xmlns:f="http://java.sun.com/jsf/core"
  7.      xmlns:c="http://java.sun.com/jsp/jstl/core"
  8.      xmlns:ui="http://java.sun.com/jsf/facelets"
  9.      xmlns:ace="http://www.icefaces.org/icefaces/components"
  10.      xmlns:ice="http://www.icesoft.com/icefaces/component"
  11.      xmlns:icecore="http://www.icefaces.org/icefaces/core"
  12.      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  13.      >
  14.     <h:body>
  15.  
  16.         <ui:composition template="/xhtml/template/common/commonLayout.xhtml">
  17.             <ui:define name="content">
  18.  
  19.                 <h:form id="formFilter">
  20.                     <ace:panel id="filterInputPanel" toggleable="true" header="Filter">
  21.  
  22.                         <h:panelGrid id="inputGrid" columns="4" width="100%" styleClass="textEntryInputTable" style="width:800px;">
  23.  
  24.                             <h:outputLabel for="columnSelect" value="Columns: "/>
  25.                             <ice:selectOneMenu styleClass="dropdown" id="columnSelect" value="#{performanceTestBean.cntColumns}">
  26.                                 <f:selectItem itemLabel="5" itemValue="5"/>
  27.                                 <f:selectItem itemLabel="10" itemValue="10"/>
  28.                                 <f:selectItem itemLabel="20" itemValue="20"/>
  29.                                 <f:selectItem itemLabel="50" itemValue="50"/>
  30.                                 <f:selectItem itemLabel="100" itemValue="100"/>
  31.                                 <f:selectItem itemLabel="300" itemValue="300"/>
  32.                                 <f:selectItem itemLabel="500" itemValue="500"/>
  33.                                 <f:selectItem itemLabel="1000" itemValue="1000"/>
  34.                             </ice:selectOneMenu>    
  35.                            
  36.                             <h:outputLabel for="rowSelect" value="Rows"/>
  37.                             <ice:selectOneMenu styleClass="dropdown" id="rowSelect" value="#{performanceTestBean.cntRows}">
  38.                                 <f:selectItem itemLabel="5" itemValue="5"/>
  39.                                 <f:selectItem itemLabel="10" itemValue="10"/>
  40.                                 <f:selectItem itemLabel="20" itemValue="20"/>
  41.                                 <f:selectItem itemLabel="50" itemValue="50"/>
  42.                                 <f:selectItem itemLabel="100" itemValue="100"/>
  43.                                 <f:selectItem itemLabel="300" itemValue="300"/>
  44.                                 <f:selectItem itemLabel="500" itemValue="500"/>
  45.                                 <f:selectItem itemLabel="1000" itemValue="1000"/>
  46.                             </ice:selectOneMenu>  
  47.                            
  48.                             <!-- placeholder -->
  49.                             <ice:commandButton value="Load Data" actionListener="#{performanceTestBean.loadData()}" styleClass="icebutton"  />  
  50.                             <ice:commandButton value="Just a request" actionListener="#{performanceTestBean.doNothing()}" styleClass="icebutton">
  51.                                 <f:ajax onevent="click" render="cntText" />
  52.                             </ice:commandButton>
  53.                             <h:outputText id="cntText" value="#{performanceTestBean.cnt}" />
  54.  
  55.                         </h:panelGrid>
  56.  
  57.                     </ace:panel>
  58.  
  59.                     <ace:panel id="showcasePanel" header="Some Table" style="margin-top: 20px;">
  60.                        
  61.                         <table id="table_sc" border="1" style="background-color: white; border-spacing: 2px; table-layout:fixed;">
  62.                            
  63.                             <c:forEach begin="1" end="#{performanceTestBean.cntRowsSelected}">
  64.                                
  65.                                 <tr>
  66.                                    
  67.                                     <c:forEach begin="1" end="#{performanceTestBean.cntColumnsSelected}">
  68.                                        
  69.                                         <td>XXX</td>
  70.                                        
  71.                                     </c:forEach>
  72.                                    
  73.                                 </tr>
  74.                             </c:forEach>
  75.                            
  76.                         </table>
  77.                      
  78.                     </ace:panel>
  79.  
  80.                 </h:form>
  81.  
  82.             </ui:define>
  83.         </ui:composition>
  84.  
  85.     </h:body>
  86. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement