ICEfaces
  1. ICEfaces
  2. ICE-9847

New ace:graphicImage component

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 4
    • Assignee Priority:
      P1
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      Render markup for <img> with support for byte[] for images from database.

        Issue Links

          Activity

          Hide
          Liana Munroe added a comment -

          ace:graphicImage "Attribute" issues:

          • attribute longdesc is no longer supported by any browsers.
          • dir seems has no effect on graphicImage.
          • view scope does not display image if it is from a byte array. name ="sessionImage" and name="applicationImage" both work, however name="viewImage" does not.
            These attributes were not functioning in the original mobi:graphicImage tests.
          Show
          Liana Munroe added a comment - ace:graphicImage "Attribute" issues: attribute longdesc is no longer supported by any browsers. dir seems has no effect on graphicImage. view scope does not display image if it is from a byte array. name ="sessionImage" and name="applicationImage" both work, however name="viewImage" does not. These attributes were not functioning in the original mobi:graphicImage tests.
          Hide
          Arturo Zambrano added a comment -

          This component itself seems to not require any further changes.

          • Indeed, the 'longdesc' attribute hasn't been supported by any of the major browsers, and it doesn't exist in the HTML5 specification.
          • The 'dir' attribute is a general attribute that is included for 'img' elements in HTML 4.0 and HTML5. It is actually used for text, so it's not really applicable to the 'img' element in practice. We'll just keep it for the sake of completeness.
          • The issue with the view-scoped resource doesn't seem to be in the graphicImage component code. The component simply registers a view-scoped resource with org.icefaces.application.ResourceRegistry and this class returns the path of the registered resource, which is simply passed as the value of the 'src' attribute of the 'img' element. The problem seems to be in the path itself, since when copying it and pasting it in a new window, no resource can be loaded. When doing the same for other paths with other scopes, a resource can be successfully loaded in a new window.
          Show
          Arturo Zambrano added a comment - This component itself seems to not require any further changes. Indeed, the 'longdesc' attribute hasn't been supported by any of the major browsers, and it doesn't exist in the HTML5 specification. The 'dir' attribute is a general attribute that is included for 'img' elements in HTML 4.0 and HTML5. It is actually used for text, so it's not really applicable to the 'img' element in practice. We'll just keep it for the sake of completeness. The issue with the view-scoped resource doesn't seem to be in the graphicImage component code. The component simply registers a view-scoped resource with org.icefaces.application.ResourceRegistry and this class returns the path of the registered resource, which is simply passed as the value of the 'src' attribute of the 'img' element. The problem seems to be in the path itself, since when copying it and pasting it in a new window, no resource can be loaded. When doing the same for other paths with other scopes, a resource can be successfully loaded in a new window.
          Hide
          Ken Fyten added a comment -

          Assigned to Mircea to resolve:

          • view scope does not display image if it is from a byte array. name ="sessionImage" and name="applicationImage" both work, however name="viewImage" does not.
            These attributes were not functioning in the original mobi:graphicImage tests.
          Show
          Ken Fyten added a comment - Assigned to Mircea to resolve: view scope does not display image if it is from a byte array. name ="sessionImage" and name="applicationImage" both work, however name="viewImage" does not. These attributes were not functioning in the original mobi:graphicImage tests.
          Hide
          Mircea Toma added a comment -

          Modified ResourceRegistry.handleSessionAwareResourceRequest to set the restore view phase as the current phase before restoring the view root. It seems that Mojarra tests for the correct phase before restoring the component tree and its associated view map.

          Show
          Mircea Toma added a comment - Modified ResourceRegistry.handleSessionAwareResourceRequest to set the restore view phase as the current phase before restoring the view root. It seems that Mojarra tests for the correct phase before restoring the component tree and its associated view map.
          Hide
          Alfonso Miranda added a comment -

          I´m working with Icefaces 4.0 with ace:graphicImage component specifically and I have a problem.

          Load the image from the database, it´s convert it to byte[] and set the byte value to the :graphicImage component setValue(byte) method.

          The first time the image is showed, I change the image and is not refreshed until I reload the page with F5.

          Could you orient me whats wrong in my project or exist some bug with this component by setting byte[] in the setValue?

          Thank you.

          Show
          Alfonso Miranda added a comment - I´m working with Icefaces 4.0 with ace:graphicImage component specifically and I have a problem. Load the image from the database, it´s convert it to byte[] and set the byte value to the :graphicImage component setValue(byte) method. The first time the image is showed, I change the image and is not refreshed until I reload the page with F5. Could you orient me whats wrong in my project or exist some bug with this component by setting byte[] in the setValue? Thank you.
          Hide
          Ken Fyten added a comment -

          Alfonso, please post your issue in the icefaces component forums.

          Show
          Ken Fyten added a comment - Alfonso, please post your issue in the icefaces component forums.

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: