Details

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

      Description

      Renders a button to access the camera on supported clients, and allows uploading and storing an image from the camera or image gallery.

      ** Only supported on mobile devices supported by the native BridgeIt app. **

        Activity

        Hide
        Cruz Miraback added a comment - - edited

        ICEfaces4 revision# 40103 Test Results
        Test app located at: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/camera

        1) When disabled=true the camera button can still be clicked on and an image taken, however, the image will not upload. Just wanted to check if this is correct behaviour.

        2) maxheight/maxwidth attributes don't seem to function

        3) useNative attribute doesn't seem to do anything, is it still relevant in ICEfaces4?

        4) style and styleClass attributes are not getting applied to the component

        5) tabindex attribute is not functioning (probably not important since it's a mobile component)

        6) The image will not upload when the component is nested inside an f:ajax tag

        Show
        Cruz Miraback added a comment - - edited ICEfaces4 revision# 40103 Test Results Test app located at: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/camera 1) When disabled=true the camera button can still be clicked on and an image taken, however, the image will not upload. Just wanted to check if this is correct behaviour. 2) maxheight/maxwidth attributes don't seem to function 3) useNative attribute doesn't seem to do anything, is it still relevant in ICEfaces4? 4) style and styleClass attributes are not getting applied to the component 5) tabindex attribute is not functioning (probably not important since it's a mobile component) 6) The image will not upload when the component is nested inside an f:ajax tag
        Hide
        Ken Fyten added a comment -

        New BridgeIt JIRA for #2 above: MOBI-1037

        Show
        Ken Fyten added a comment - New BridgeIt JIRA for #2 above: MOBI-1037
        Hide
        Ken Fyten added a comment -

        These issues appear to be valid.

        For #3, we are not supporting the "useNative" attribute for 4.0, instead we will implement a "fallback" facet that will be rendered in place of the component when the native BridgeIt app is not available, or the component is rendered in a browser/platform that doesn't support BridgeIt.

        For #6, like the ace:fileEntry, this component cannot be used with f:ajax or ace:ajax at this time (requires a full submit for the upload).

        Show
        Ken Fyten added a comment - These issues appear to be valid. For #3, we are not supporting the "useNative" attribute for 4.0, instead we will implement a "fallback" facet that will be rendered in place of the component when the native BridgeIt app is not available, or the component is rendered in a browser/platform that doesn't support BridgeIt. For #6, like the ace:fileEntry, this component cannot be used with f:ajax or ace:ajax at this time (requires a full submit for the upload).
        Hide
        Arturo Zambrano added a comment -

        r41566: fix to correctly apply the 'disabled', 'style', 'styleClass', and 'tabindex' attributes to mobi:camera.

        Show
        Arturo Zambrano added a comment - r41566: fix to correctly apply the 'disabled', 'style', 'styleClass', and 'tabindex' attributes to mobi:camera.
        Hide
        Arturo Zambrano added a comment -

        r41586: removed useNative attribute.

        Show
        Arturo Zambrano added a comment - r41586: removed useNative attribute.
        Hide
        Ken Fyten added a comment - - edited

        Re-opened to add support for an optional "fallback" facet that will be rendered by the component if the BridgeIt app. cannot be used, either due to running on an unsupported platform (such as desktop OS), or the BridgeIt app. not being installed on the device.

        Ex.

             <mobi:camera id="cam" value="#{cameraBean.cameraImage}"
                  buttonLabel="Camera" captureMessageLabel="Photo captured"
                  maxwidth="#{cameraBean.maxWidth}"
                  maxheight="#{cameraBean.maxHeight}" style="float:right">
                  <f:facet name="fallback">
                       <h:outputText value="This is a custom fallback message for unsupported platforms"/>
                  </f:facet>
             </mobi:camera>
        
        Show
        Ken Fyten added a comment - - edited Re-opened to add support for an optional "fallback" facet that will be rendered by the component if the BridgeIt app. cannot be used, either due to running on an unsupported platform (such as desktop OS), or the BridgeIt app. not being installed on the device. Ex. <mobi:camera id= "cam" value= "#{cameraBean.cameraImage}" buttonLabel= "Camera" captureMessageLabel= "Photo captured" maxwidth= "#{cameraBean.maxWidth}" maxheight= "#{cameraBean.maxHeight}" style= " float :right" > <f:facet name= "fallback" > <h:outputText value= "This is a custom fallback message for unsupported platforms" /> </f:facet> </mobi:camera>
        Hide
        Arturo Zambrano added a comment -

        Added fallback facet to component at revision 41596.

        Show
        Arturo Zambrano added a comment - Added fallback facet to component at revision 41596.
        Hide
        Liana Munroe added a comment -

        Verified for Issues 1 through 6 from description, and fallback facet. Icefaces 4 trunk r41775. Tomcat 7, FF 30, Chrome 35, IE 11, ios 7 and android 4.1.1.

        Show
        Liana Munroe added a comment - Verified for Issues 1 through 6 from description, and fallback facet. Icefaces 4 trunk r41775. Tomcat 7, FF 30, Chrome 35, IE 11, ios 7 and android 4.1.1.
        Hide
        Arturo Zambrano added a comment -

        r41782: modified fallback approach to determine in the client whether to display fallback contents.

        Note: the HTML structure of the component changed, so it might be necessary to modify existing tests.

        Show
        Arturo Zambrano added a comment - r41782: modified fallback approach to determine in the client whether to display fallback contents. Note: the HTML structure of the component changed, so it might be necessary to modify existing tests.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: