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

Peter Muir peter at bleepbleep.org.uk
Tue Apr 3 14:34:00 EDT 2007


  User: pmuir   
  Date: 07/04/03 14:34:00

  Modified:    examples/ui/view   template.xhtml
  Added:       examples/ui/view   graphicImage.xhtml
  Log:
  Add s:graphicImage to ui example
  
  Revision  Changes    Path
  1.4       +4 -0      jboss-seam/examples/ui/view/template.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: template.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/ui/view/template.xhtml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- template.xhtml	28 Mar 2007 12:52:13 -0000	1.3
  +++ template.xhtml	3 Apr 2007 18:34:00 -0000	1.4
  @@ -79,6 +79,10 @@
   		<li><s:link view="/cache.xhtml" propagation="none">
   			<code>s:cache</code>
   		</s:link></li>
  +		<li><s:link view="/graphicImage.xhtml">
  +			<code>s:graphicImage</code>
  +			<f:param name="personId" value="1" />
  +		</s:link></li>
   	</ul>
   </s:div>
   <s:div>
  
  
  
  1.1      date: 2007/04/03 18:34:00;  author: pmuir;  state: Exp;jboss-seam/examples/ui/view/graphicImage.xhtml
  
  Index: graphicImage.xhtml
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <ui:composition xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:s="http://jboss.com/products/seam/taglib"
        template="template.xhtml"
        >
  	<ui:param name="tagName" value="s:graphicImage" />
  	<ui:define name="body">
  		<p>Outputs an image</p>
  		<h:panelGrid>
  			<s:fragment>
  				<s:graphicImage value="#{person.picture.data}" rendered="#{person.picture.contentType ne null}" >
  					<s:transformImageSize factor="0.5" />
  				</s:graphicImage>
  				<h:outputText value="No image found (upload one)" rendered="#{person.picture.contentType eq null}" />
  			</s:fragment>
  			<h:outputText value="Picture of #{person.name}" />
  		</h:panelGrid>
  	</ui:define>
  </ui:composition>
  
  



More information about the jboss-cvs-commits mailing list