ICEfaces
  1. ICEfaces
  2. ICE-10746

mobi:camera - add image button support

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: MOBI-Components
    • Labels:
      None
    • Environment:
      ICEfaces 4.1, mobi:camera

      Description

      Customer request to have the mobi:camera optionally work with a graphic image instead of rendering a button with a label.

      This should also be applied to ICEfaces-4 for mobi:camera.

      In the old ice:pushButton we had an "image" attribute that when specified with a URL to an image resource, would cause the button to render as a clickable image. We could do the same thing here, possibly call the attribute "imageURL" ?


        Issue Links

          Activity

          Ken Fyten created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Project ICEmobile [ 10060 ] ICEfaces [ 10021 ]
          Key MOBI-1144 ICE-10746
          Issue Type New Feature [ 2 ] Improvement [ 4 ]
          Affects Version/s EE-3.3.0.GA_P03 [ 11572 ]
          Affects Version/s 4.0 [ 11382 ]
          Affects Version/s EE 1.3.1.GA_P03 [ 11970 ]
          Affects Documentation (User Guide, Ref. Guide, etc.) [ 10003 ]
          Component/s MOBI-Components [ 10270 ]
          Component/s Faces [ 10062 ]
          Ken Fyten made changes -
          Affects Version/s EE-3.3.0.GA_P03 [ 11572 ]
          Ken Fyten made changes -
          Fix Version/s 4.1 [ 11375 ]
          Ken Fyten made changes -
          Link This issue blocks MOBI-1143 [ MOBI-1143 ]
          Ken Fyten made changes -
          Assignee Ken Fyten [ ken.fyten ] Arturo Zambrano [ artzambrano ]
          Environment icemobile ICEfaces 4.1, mobi:camera
          Description Customer request to have the mobi:camera optionally work with a graphic image instead of rendering a button with a label.

          This should also be applied to ICEfaces-4 for mobi:camera.


          Customer request to have the mobi:camera optionally work with a graphic image instead of rendering a button with a label.

          This should also be applied to ICEfaces-4 for mobi:camera.

          In the old ice:pushButton we had an "image" attribute that when specified with a URL to an image resource, would cause the button to render as a clickable image. We could do the same thing here, possibly call the attribute "imageURL" ?


          Affects Documentation (User Guide, Ref. Guide, etc.) [ 10003 ] Documentation (User Guide, Ref. Guide, etc.),Sample App./Tutorial [ 10003, 10001 ]
          Assignee Priority P1 [ 10010 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #45738 Thu Jul 09 11:27:34 MDT 2015 art.zambrano ICE-10746 added 'buttonImage' and 'captureButtonImage' attributes to mobi:camera
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/util/MobiJSFUtils.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraRenderer.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.util/component.js
          Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
          Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraMeta.java
          Hide
          Arturo Zambrano added a comment -

          r45738: added 'buttonImage' and 'captureButtonImage' attributes to mobi:camera.

          These attributes work just like 'buttonLabel' and 'captureMessageLabel'. Initially, the image specified by 'buttonImage' will be shown. When, an image has been successfully captured by the device's camera, the image specified by 'captureButtonImage' will be shown.

          These attributes take precedence over the text labels. 'captureButtonImage' only works if 'buttonImage' is specified as well (i.e. can't mix labels and images).

          The image resource specified in these attributes can be either a byte array, an instance of IceOutputResource or a URL to a local or external image.

          Show
          Arturo Zambrano added a comment - r45738: added 'buttonImage' and 'captureButtonImage' attributes to mobi:camera. These attributes work just like 'buttonLabel' and 'captureMessageLabel'. Initially, the image specified by 'buttonImage' will be shown. When, an image has been successfully captured by the device's camera, the image specified by 'captureButtonImage' will be shown. These attributes take precedence over the text labels. 'captureButtonImage' only works if 'buttonImage' is specified as well (i.e. can't mix labels and images). The image resource specified in these attributes can be either a byte array, an instance of IceOutputResource or a URL to a local or external image.
          Arturo Zambrano made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #45745 Thu Jul 09 17:23:30 MDT 2015 art.zambrano ICE-10746 fix to keep label span inside the button after capturing image
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
          Hide
          Arturo Zambrano added a comment -

          r45745: committed fix to keep label span inside the button after capturing image.

          Show
          Arturo Zambrano added a comment - r45745: committed fix to keep label span inside the button after capturing image.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #45746 Thu Jul 09 18:58:30 MDT 2015 art.zambrano ICE-10746 modified showcase demo to optionally use images instead of labels in mobi:camera
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/mobi/camera/CameraBean.java
          Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/css/images/photos.png
          Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/css/images/camera.png
          Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/mobi/camera/camera-example.xhtml
          Hide
          Arturo Zambrano added a comment -

          r45846: modified showcase demo to optionally use images instead of labels in mobi:camera.

          Show
          Arturo Zambrano added a comment - r45846: modified showcase demo to optionally use images instead of labels in mobi:camera.
          Hide
          Liana Munroe added a comment - - edited

          tested with ICEface 4 trunk 4 45747. Can not verify due to class cast exception errors as per ICE-10756

          Show
          Liana Munroe added a comment - - edited tested with ICEface 4 trunk 4 45747. Can not verify due to class cast exception errors as per ICE-10756
          Liana Munroe made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Ken Fyten made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Carmen Cristurean added a comment -

          showcase > mobi:camera:
          When using the "image button" no thumbnail of the photo is rendered after the photo is taken. (IF4 trunk r45892).

          Show
          Carmen Cristurean added a comment - showcase > mobi:camera: When using the "image button" no thumbnail of the photo is rendered after the photo is taken. (IF4 trunk r45892).
          Carmen Cristurean made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          Ken Fyten added a comment -

          Note that the thumbnail does function correctly when not using the new image button mode.

          Show
          Ken Fyten added a comment - Note that the thumbnail does function correctly when not using the new image button mode.
          Hide
          Arturo Zambrano added a comment - - edited

          This is working well for me with the latest code and a recent Bridgeit install on iOS. It also works on the desktop. The thumbnail of the photo is rendered after the photo is taken, in both button modes. Please re-test.

          Show
          Arturo Zambrano added a comment - - edited This is working well for me with the latest code and a recent Bridgeit install on iOS. It also works on the desktop. The thumbnail of the photo is rendered after the photo is taken, in both button modes. Please re-test.
          Hide
          Liana Munroe added a comment -

          This issue above is no longer reproducible and was verified fixed recently with ICE-10831.

          Show
          Liana Munroe added a comment - This issue above is no longer reproducible and was verified fixed recently with ICE-10831 .
          Hide
          Arturo Zambrano added a comment -

          Marking issue as fixed.

          Show
          Arturo Zambrano added a comment - Marking issue as fixed.
          Arturo Zambrano made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Arturo Zambrano
              Reporter:
              Judy Guglielmin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: