[jboss-cvs] jboss-seam/examples/wiki/view ...
Christian Bauer
christian at hibernate.org
Tue Jun 12 13:51:00 EDT 2007
User: cbauer
Date: 07/06/12 13:51:00
Modified: examples/wiki/view fileEdit.xhtml
Log:
Pre-generate thumbnails
Revision Changes Path
1.17 +20 -22 jboss-seam/examples/wiki/view/fileEdit.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: fileEdit.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/fileEdit.xhtml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- fileEdit.xhtml 7 May 2007 11:42:31 -0000 1.16
+++ fileEdit.xhtml 12 Jun 2007 17:51:00 -0000 1.17
@@ -108,37 +108,35 @@
</s:div>
- <s:div id="imagePreview"
- rendered="#{fileHome.managed and not empty fileHome.instance.imageMetaInfo}">
+ <s:div rendered="#{fileHome.managed and not empty fileHome.instance.imageMetaInfo}">
<div class="entry">
<div class="label">Original Image Size:</div>
<div class="output">#{fileHome.instance.imageMetaInfo.sizeX} x #{fileHome.instance.imageMetaInfo.sizeY} pixel</div>
</div>
- <div class="entry">
+ <s:div styleClass="entry" id="imagePreview">
<div class="label">Image Preview:</div>
<div class="output">
- <h:outputLink value="#{facesContext.externalContext.requestContextPath}/servlets/files/download.seam?fileId=#{fileHome.instance.id}"><h:graphicImage
- style="border: 1px solid black;" value="/servlets/files/download.seam?fileId=#{fileHome.instance.id}&width=#{fileHome.imagePreviewSize}&conversationId=#{conversation.id}"/>
- </h:outputLink>
-
- </div>
- </div>
-
- <div class="entry">
- <div class="label"> </div>
- <div class="input">
+ <h:panelGrid columns="1">
<h:panelGroup>
- <h:commandLink id="zoomOut" tabindex="2" action="#{fileHome.zoomPreviewOut}">
+ <a:region>
+ <a:commandLink id="zoomOut" tabindex="2" action="#{fileHome.zoomPreviewOut}" reRender="imagePreview">
<h:graphicImage value="/themes/#{wikiPreferences.themeName}/img/minus.gif" width="18" height="18"/>
- </h:commandLink>
- <h:commandLink id="zoomIn" tabindex="3" action="#{fileHome.zoomPreviewIn}">
+ </a:commandLink>
+ <a:commandLink id="zoomIn" tabindex="3" action="#{fileHome.zoomPreviewIn}" reRender="imagePreview">
<h:graphicImage value="/themes/#{wikiPreferences.themeName}/img/plus.gif" width="18" height="18"/>
- </h:commandLink>
+ </a:commandLink>
+ </a:region>
</h:panelGroup>
+ <h:outputLink value="#{facesContext.externalContext.requestContextPath}/servlets/files/download.seam?fileId=#{fileHome.instance.id}">
+ <s:graphicImage value="#{fileHome.instance.data}" style="border: 1px solid black;">
+ <s:transformImageSize width="#{fileHome.imagePreviewSize}" maintainRatio="true"/>
+ </s:graphicImage>
+ </h:outputLink>
+ </h:panelGrid>
</div>
- </div>
+ </s:div>
<div class="entry">
<div class="label">Show in documents:</div>
More information about the jboss-cvs-commits
mailing list