[jboss-cvs] jboss-seam/examples/seamdiscs/view ...
Peter Muir
peter at bleepbleep.org.uk
Mon Oct 8 09:42:33 EDT 2007
User: pmuir
Date: 07/10/08 09:42:33
Modified: examples/seamdiscs/view artists.xhtml
Log:
Extra stuff for Seamdiscs
Revision Changes Path
1.5 +73 -51 jboss-seam/examples/seamdiscs/view/artists.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: artists.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamdiscs/view/artists.xhtml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- artists.xhtml 14 Sep 2007 11:32:59 -0000 1.4
+++ artists.xhtml 8 Oct 2007 13:42:33 -0000 1.5
@@ -6,16 +6,31 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
+ xmlns:a="http://richfaces.org/a4j"
xmlns:tr="http://myfaces.apache.org/trinidad"
template="layout/template.xhtml">
-<ui:define name="body">
+ <ui:define name="body">
<rich:panel>
<f:facet name="header">Artists</f:facet>
<tr:panelPartialRoot>
<tr:form>
- <tr:table value="#{artists.dataModel}" var="artist" rows="#{artists.maxResults}">
+ <tr:inputText value="#{exampleArtist.name}" label="Filter by artist name">
+ <a:support reRender="artists" event="onkeyup" requestDelay="1" />
+ </tr:inputText>
+  
+ <a:status>
+ <f:facet name="start">
+ <h:graphicImage value="/img/spinner.gif" />
+ </f:facet>
+ </a:status>
+ </tr:form>
+
+ <a:outputPanel id="artists">
+ <tr:form>
+ <tr:table value="#{artists.dataModel}" var="artist"
+ rows="#{artists.maxResults}">
<tr:column sortable="true" sortProperty="artist.name">
<f:facet name="header">
Name
@@ -29,19 +44,26 @@
<f:facet name="header">
Band Members
</f:facet>
- <tr:outputText value="Solo performer" rendered="#{artist.class.simpleName eq 'Artist'}" />
- <tr:outputText value="None" rendered="#{artist.class.simpleName eq 'Band' and empty artist.bandMembers}" />
- <rich:dataList value="#{artist.bandMembers}" var="bandMember" rendered="#{artist.class.simpleName eq 'Band' and not empty artist.bandMembers}">
+ <tr:outputText value="Solo performer"
+ rendered="#{artist.class.simpleName eq 'Artist'}" />
+ <tr:outputText value="None"
+ rendered="#{artist.class.simpleName eq 'Band' and empty artist.bandMembers}" />
+ <rich:dataList value="#{artist.bandMembers}" var="bandMember"
+ rendered="#{artist.class.simpleName eq 'Band' and not empty artist.bandMembers}">
<tr:outputText value="#{bandMember.name}" />
</rich:dataList>
</tr:column>
<f:facet name="detailStamp">
<s:div style="width: 200px">
- <s:formattedText value="#{artist.description}" rendered="#{not empty artist.description}" />
- <tr:outputText value="None known" rendered="#{empty artist.description}" />
+ <s:formattedText value="#{artist.description}"
+ rendered="#{not empty artist.description}" />
+ <tr:outputText value="None known"
+ rendered="#{empty artist.description}" />
</s:div>
</f:facet>
</tr:table>
+ </tr:form>
+ </a:outputPanel>
<tr:panelButtonBar rendered="#{identity.loggedIn}">
<s:button action="artist" value="Add artist">
<f:param name="artistId" value="" />
@@ -52,9 +74,9 @@
<f:param name="type" value="band" />
</s:button>
</tr:panelButtonBar>
- </tr:form>
+
</tr:panelPartialRoot>
</rich:panel>
-</ui:define>
+ </ui:define>
</ui:composition>
More information about the jboss-cvs-commits
mailing list