1 Reply Latest reply on Aug 1, 2012 7:51 PM by brieweb

    How do I view an image in a rich:dataTable?

    brieweb

      How is it I can make a thumbnail in the view table if I upload an image?

      http://www.seamframework.org/Documentation/HowToUploadAndDownloadFilesInSeam

       

      I tried using the following in the rich:dataTable for attachmentList.xhtml , but it did not work.

       

      <rich:column>

          <f:facet name="header">Thumbnail</f:facet>

          <s:graphicImage value="#{downloadAttachment.download}">

              <f:param name="attachmentId" value="${attachment.id}" />

              <s:transformImageSize height="100" maintainRatio="true"/>

          </s:graphicImage>

      </rich:column>

        • 1. Re: How do I view an image in a rich:dataTable?
          brieweb

          It turns out that all I had to do was reference the data attribute. I was making it too complicated.

           

          <rich:column>

              <f:facet name="header">Thumbnail</f:facet>

              <s:graphicImage value="#{attachment.data}">

                  <s:transformImageSize height="100" maintainRatio="true"/>

              </s:graphicImage>

          </rich:column>