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

          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.
          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.
          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
          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).
          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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: