ICEfaces
  1. ICEfaces
  2. ICE-8919

Add Dynamic Resource support to Compat ice:graphicImage component

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 3.3
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3.x Compat ice:graphicImage component.

      Description

      The ICEfaces 1.8.2 ice:graphicImage component supports the use of dynamic resources to provision the image data to the component:

      The 1.8 component "value" attribute can use any of these resources:
      String
      byte[]
      com.icesoft.faces.context.Resource
      com.icesoft.faces.context.JarResource
      com.icesoft.faces.context.FileResource
      com.icesoft.faces.context.ByteArrayResource

      The original work for the 1.8 component was done under ICE-4857.

      This JIRA is to add the same dynamic resource support to the ICEfaces 3.x compat ice:graphicImage component.

      The compat library APIs should contain similar dynamic resource APIs as those found in 1.8 as well.

        Activity

        Ken Fyten created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Fix Version/s 3.3 [ 10370 ]
        Description The ICEfaces 1.8.2 ice:graphicImage component supports the use of dynamic resources to provision the image data to the component:

        The 1.8 component can use any of these resources:
        com.icesoft.faces.context.JarResource
        com.icesoft.faces.context.FileResource
        com.icesoft.faces.context.ByteArrayResource

        The original work for the 1.8 component was done under ICE-4857.

        This JIRA is to add the same dynamic resource support to the ICEfaces 3.x compat ice:graphicImage component.

        The compat library APIs should contain similar dynamic resource APIs as those found in 1.8 as well.

        The ICEfaces 1.8.2 ice:graphicImage component supports the use of dynamic resources to provision the image data to the component:

        The 1.8 component "value" attribute can use any of these resources:
        String
        byte[]
        com.icesoft.faces.context.Resource
        com.icesoft.faces.context.JarResource
        com.icesoft.faces.context.FileResource
        com.icesoft.faces.context.ByteArrayResource

        The original work for the 1.8 component was done under ICE-4857.

        This JIRA is to add the same dynamic resource support to the ICEfaces 3.x compat ice:graphicImage component.

        The compat library APIs should contain similar dynamic resource APIs as those found in 1.8 as well.

        Assignee Arturo Zambrano [ artzambrano ]
        Affects Documentation (User Guide, Ref. Guide, etc.),Sample App./Tutorial [ 10003, 10001 ]
        Assignee Priority P1 [ 10010 ]
        Ken Fyten made changes -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #33258 Tue Jan 29 10:06:13 MST 2013 art.zambrano ICE-8919 added dynamic resource support to compat ice:graphicImage
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlGraphicImage.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/component-metadata/src/main/resources/conf/components/ice-graphicimage-renderer.xml
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/component-metadata/src/main/resources/conf/ice_properties/ice-graphicImage-props.xml
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/ImageRenderer.java
        Hide
        Arturo Zambrano added a comment -

        Committed fix to trunk at revision 33258.

        The code from ICEfaces 1.8 was initially ported to ICEfaces 2.0 in May 2009, while Resource support and other fixes were added to the 1.8 trunk in August 2009, so they never made it to ICEfaces 2.0. Those fixes have now been added to the ICEfaces 3 trunk.

        Show
        Arturo Zambrano added a comment - Committed fix to trunk at revision 33258. The code from ICEfaces 1.8 was initially ported to ICEfaces 2.0 in May 2009, while Resource support and other fixes were added to the 1.8 trunk in August 2009, so they never made it to ICEfaces 2.0. Those fixes have now been added to the ICEfaces 3 trunk.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Arturo Zambrano added a comment -

        Added test app. It is meant to go under the samples folder. Then just type 'ant' to build.

        Testing notes: Just run this test app or integrate it to existing tests for this component.

        Show
        Arturo Zambrano added a comment - Added test app. It is meant to go under the samples folder. Then just type 'ant' to build. Testing notes: Just run this test app or integrate it to existing tests for this component.
        Arturo Zambrano made changes -
        Attachment ice8919.zip [ 15393 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #33276 Tue Jan 29 18:25:18 MST 2013 art.zambrano ICE-8919 added ice:graphicImage demo
        Files Changed
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/compat/graphicimage/graphicImage.xhtml
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/view/navigation/CompatMenu.java
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/compat/graphicimage/GraphicImageBean.java
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/compat/graphicimage
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/outputresource/icefaces.png
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/compat/graphicimage
        Hide
        Arturo Zambrano added a comment -

        Added demo to ICEfaces showcase at revision 33276.

        Show
        Arturo Zambrano added a comment - Added demo to ICEfaces showcase at revision 33276.
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: