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


    • 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:


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

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


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



      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




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


                • Created: