[jboss-cvs] jboss-seam/examples/spring/view ...
Norman Richards
norman.richards at jboss.com
Mon Feb 19 19:21:10 EST 2007
User: nrichards
Date: 07/02/19 19:21:10
Modified: examples/spring/view main.xhtml
Log:
remove ajax4jsf for clarity, minor paging fix
Revision Changes Path
1.3 +102 -131 jboss-seam/examples/spring/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/spring/view/main.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- main.xhtml 19 Feb 2007 21:55:02 -0000 1.2
+++ main.xhtml 20 Feb 2007 00:21:10 -0000 1.3
@@ -4,13 +4,11 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:a="https://ajax4jsf.dev.java.net/ajax"
template="template.xhtml">
-<!-- content -->
-<ui:define name="content">
-
-<div class="section">
+ <!-- content -->
+ <ui:define name="content">
+ <div class="section">
<h:form id="main">
<span class="errors">
@@ -19,17 +17,11 @@
<h1>Search Hotels</h1>
<fieldset>
- <h:inputText id="searchString" value="#{hotelSearch.searchString}" style="width: 165px;">
- <a:support event="onkeyup" actionListener="#{hotelSearch.find}" reRender="searchResults" />
- </h:inputText>
+ <h:inputText id="searchString" value="#{hotelSearch.searchString}" style="width: 165px;" />
 
- <a:commandButton id="findHotels" value="Find Hotels" action="#{hotelSearch.find}" reRender="searchResults"/>
+ <h:commandButton id="findHotels" value="Find Hotels" action="#{hotelSearch.find}" />
 
- <a:status>
- <f:facet name="start">
- <h:graphicImage value="/img/spinner.gif"/>
- </f:facet>
- </a:status>
+
<br/>
<h:outputLabel for="pageSize">Maximum results:</h:outputLabel> 
<h:selectOneMenu value="#{hotelSearch.pageSize}" id="pageSize">
@@ -40,9 +32,9 @@
</fieldset>
</h:form>
-</div>
+ </div>
+
-<a:outputPanel id="searchResults">
<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}">
@@ -69,12 +61,11 @@
</h:dataTable>
<s:link value="More results" action="#{hotelSearch.nextPage}" rendered="#{hotelSearch.nextPageAvailable}"/>
</div>
-</a:outputPanel>
-<div class="section">
+ <div class="section">
<h1>Current Hotel Bookings</h1>
-</div>
-<div class="section">
+ </div>
+ <div class="section">
<h:form id="bookings">
<h:outputText value="No Bookings Found" rendered="#{bookings.rowCount==0}"/>
<h:dataTable id="bookings" value="#{bookings}" var="book" rendered="#{bookings.rowCount>0}">
@@ -108,31 +99,11 @@
</h:column>
</h:dataTable>
</h:form>
-</div>
-
-</ui:define>
+ </div>
-<!-- sidebar -->
-<ui:define name="sidebar">
+ </ui:define>
-<h1>State management in Seam</h1>
-<p>
- State in Seam is <em>contextual</em>. When you click "Find Hotels", the application
- retrieves a list of hotels from the database and caches it in the session context. When you
- navigate to one of the hotel records by clicking the "View Hotel" link, a <em>conversation</em>
- begins. The conversation is attached to a particular tab, in a particular browser window. You can
- navigate to multiple hotels using "open in new tab" or "open in new window" in your web browser.
- Each window will execute in the context of a different conversation. The application keeps state
- associated with your hotel booking in the conversation context, which ensures that the concurrent
- conversations do not interfere with each other.
-</p>
-
-<p>
- <a href="#" onclick="window.open('exp/mainExp.html','exp','width=752,height=500,scrollbars=yes');">
- How does the search page work?
- </a>
-</p>
+ <ui:define name="sidebar" />
-</ui:define>
</ui:composition>
More information about the jboss-cvs-commits
mailing list