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

Stan Silvert ssilvert at jboss.com
Wed Aug 9 16:30:08 EDT 2006


  User: ssilvert
  Date: 06/08/09 16:30:08

  Modified:    examples/booking/view    confirm.xhtml hotel.xhtml
                        main.xhtml
  Log:
  Add support for action params.  See http://jira.jboss.com/jira/browse/JBSEAM-329
  
  Revision  Changes    Path
  1.8       +4 -3      jboss-seam/examples/booking/view/confirm.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: confirm.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/confirm.xhtml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- confirm.xhtml	16 Apr 2006 05:51:18 -0000	1.7
  +++ confirm.xhtml	9 Aug 2006 20:30:07 -0000	1.8
  @@ -3,6 +3,7 @@
   	    		xmlns:ui="http://java.sun.com/jsf/facelets"
   	  			xmlns:h="http://java.sun.com/jsf/html"
   	  			xmlns:f="http://java.sun.com/jsf/core"
  +                                xmlns:s="http://jboss.com/products/seam/taglib"
   				template="template.xhtml">
   
   <!-- content -->
  @@ -48,9 +49,9 @@
   		<div class="entry">
   			<div class="label">&#160;</div>
   			<div class="input">
  -				<h:commandButton value="Confirm" action="#{hotelBooking.confirm}" class="button"/>&#160;
  -    			<h:commandButton value="Revise" action="back" class="button"/>&#160;
  -    			<h:commandButton value="Cancel" action="#{hotelBooking.cancel}" class="button"/>
  +				<s:commandButton value="Confirm" action="#{hotelBooking.confirm(user)}" class="button"/>&#160;
  +    			<s:commandButton value="Revise" action="back" class="button"/>&#160;
  +    			<s:commandButton value="Cancel" action="#{hotelBooking.cancel}" class="button"/>
   			</div>
   		</div>
   	</fieldset>
  
  
  
  1.7       +3 -2      jboss-seam/examples/booking/view/hotel.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: hotel.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/hotel.xhtml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- hotel.xhtml	16 Apr 2006 05:51:18 -0000	1.6
  +++ hotel.xhtml	9 Aug 2006 20:30:07 -0000	1.7
  @@ -3,6 +3,7 @@
   	    		xmlns:ui="http://java.sun.com/jsf/facelets"
   	  			xmlns:h="http://java.sun.com/jsf/html"
   	  			xmlns:f="http://java.sun.com/jsf/core"
  +                                xmlns:s="http://jboss.com/products/seam/taglib"
   				template="template.xhtml">
   
   <!-- content -->
  @@ -39,8 +40,8 @@
   <div class="section">
   	<h:form>
   	<fieldset class="buttonBox">
  -		<h:commandButton action="#{hotelBooking.bookHotel}" value="Book Hotel" class="button"/>&#160;
  -		<h:commandButton action="#{hotelBooking.cancel}" value="Back to Search" class="button"/>
  +		<s:commandButton action="#{hotelBooking.bookHotel(user)}" value="Book Hotel" class="button"/>&#160;
  +		<s:commandButton action="#{hotelBooking.cancel}" value="Back to Search" class="button"/>
   	</fieldset>
   	</h:form>
   </div>
  
  
  
  1.17      +1 -1      jboss-seam/examples/booking/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/booking/view/main.xhtml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- main.xhtml	16 Apr 2006 05:51:18 -0000	1.16
  +++ main.xhtml	9 Aug 2006 20:30:08 -0000	1.17
  @@ -48,7 +48,7 @@
   		</h:column>
   		<h:column>
   			<f:facet name="header">Action</f:facet>
  -			<s:link value="View Hotel" action="#{hotelBooking.selectHotel}"/>
  +			<s:link value="View Hotel" action="#{hotelBooking.selectHotel(hotelSearch.selectedHotel)}"/>
   		</h:column>
   	</h:dataTable>
   </div>
  
  
  



More information about the jboss-cvs-commits mailing list