Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4672

s:graphicImage in rich:extendedDataTable - using byte array datasource results in wrong drawing

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0.GA
    • Fix Version/s: None
    • Component/s: JSF Controls
    • Labels:
      None
    • Environment:

      JDK 1.6.0 Update 18, Windows XP SP3, JBoss 4.2.2.GA, Oracle 10g express,

      Description

      I am using the s:graphicImage in a rich:column within a rich:extendedDataTable:

      <rich:extendedDataTable id="languageDataTable" value="#

      {dtoList}

      " var="item" >
      <rich:column sortable="false">
      <s:graphicImage value="#

      {item.imageData}

      "/>
      [...]
      </rich:column>
      </rich:extendedDataTable>

      imageData is a byte array which is bound to a BLOB in the database. Not all objects in the database have an image, in fact most have null in the image field.

      After encountering the first row, where the object behind does have an image, s:graphicImage keeps drawing this very image in every subsequent row, until it encounters another object with the image set. Per default imageData returned a byte array of 0 size when there is no image in the database. I tried replacing that value by null, but the behaviour did not change.

      There are no errors or execeptions showing up. I think s:imageData, when using byte arrays as source, is not properly reacting to invalid/null image data.

      As a work-around I used the rendered attribute to hide the s:graphicImage control when there is no image data.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                helgem Helge Mahrt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: