[jboss-cvs] jboss-seam/examples/icefaces/view ...

Gavin King gavin.king at jboss.com
Mon Nov 20 03:57:11 EST 2006


  User: gavin   
  Date: 06/11/20 03:57:11

  Modified:    examples/icefaces/view   book.xhtml main.xhtml
  Log:
  improve demo of ice
  
  Revision  Changes    Path
  1.3       +1 -1      jboss-seam/examples/icefaces/view/book.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: book.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/icefaces/view/book.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- book.xhtml	20 Nov 2006 05:32:05 -0000	1.2
  +++ book.xhtml	20 Nov 2006 08:57:11 -0000	1.3
  @@ -160,7 +160,7 @@
   			<div class="label">&#160;</div>
   			<div class="input">
   				<h:commandButton id="proceed" value="Proceed" action="#{hotelBooking.setBookingDetails}" styleClass="button"/>&#160;
  -				<s:link id="cancel" value="Cancel" action="#{hotelBooking.cancel}" buttonClass="button" linkStyle="button"/>
  +				<s:button id="cancel" value="Cancel" action="#{hotelBooking.cancel}" styleClass="button"/>
   			</div>
   		</div>		
   	</fieldset>
  
  
  
  1.3       +15 -10    jboss-seam/examples/icefaces/view/main.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: main.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/icefaces/view/main.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- main.xhtml	20 Nov 2006 05:32:05 -0000	1.2
  +++ main.xhtml	20 Nov 2006 08:57:11 -0000	1.3
  @@ -19,16 +19,22 @@
       
   	<h1>Search Hotels</h1>
   	<fieldset> 
  -	   <ice:selectInputText id="searchString" valueChangeListener="#{hotelSearch.handleSearchStringChange}" 
  -                            value="#{hotelSearch.searchString}" style="display: inline; width: 165px;"/>
  +	   <ice:selectInputText id="searchString" 
  +             valueChangeListener="#{hotelSearch.handleSearchStringChange}" 
  +             value="#{hotelSearch.searchString}"
  +             style="display: inline; width: 165px;">
  +          <f:selectItems value="#{hotelSearch.cities}"/>
  +       </ice:selectInputText>
          &#160;
   	   <br/>
          <h:outputLabel for="pageSize">Maximum results:</h:outputLabel>&#160;
  -       <h:selectOneMenu value="#{hotelSearch.pageSize}" id="pageSize">
  -          <f:selectItem itemLabel="5" itemValue="5"/>
  -          <f:selectItem itemLabel="10" itemValue="10"/>
  -          <f:selectItem itemLabel="20" itemValue="20"/>
  -       </h:selectOneMenu>
  +       <ice:selectOneMenu id="pageSize" 
  +             value="#{hotelSearch.pageSize}" 
  +             valueChangeListener="#{hotelSearch.handlePageSizeChange}"
  +             partialSubmit="true">
  +          <f:convertNumber/>
  +          <f:selectItems value="#{hotelSearch.pageSizes}"/>
  +       </ice:selectOneMenu>
       </fieldset>
       
     </h:form>
  @@ -36,7 +42,7 @@
   
     <div class="section">
   	<h:outputText value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
  -	<h:dataTable id="hotels" value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
  +	<ice:dataTable id="hotels" value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
   		<h:column>
   			<f:facet name="header">Name</f:facet>
   			#{hot.name}
  @@ -57,8 +63,7 @@
   			<f:facet name="header">Action</f:facet>
   			<s:link id="viewHotel" value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
   		</h:column>
  -	</h:dataTable>
  -	<s:link value="More results" action="#{hotelSearch.nextPage}" rendered="#{hotelSearch.nextPageAvailable}"/>
  +	</ice:dataTable>
     </div>
   
   <div class="section">
  
  
  



More information about the jboss-cvs-commits mailing list