ICEfaces
  1. ICEfaces
  2. ICE-10145

Add "fallback" facet support to MOBI BridgeIt Components

    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, MOBI components that require the BridgeIt Utility app.
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      The following ICEfaces MOBI components utilize the BridgeIt utility app. on mobile devices to integrate native device functions into their capabilities. This dependency on BridgeIt could result in none-functional components being rendered on a page if the BridgeIt application is not available or installed on the mobile device.

      The improvement captured in this JIRA is to provide the ability for application developer's to define a "fallback" facet inside these components that would be rendered and displayed on the page in place of the normal component controls in situations where the BridgeIt app was not viable for any reason. The "fallback" facet could contain any arbitrary components that the application wanted in place of the normal component controls.

        Activity

        Hide
        Ken Fyten added a comment -

        Initial commits for this feature have been made to the following ICEfaces 4.0.RC1 vintage development branch:

        http://dev.icesoft.com/svn/ossrepo/icefaces4/branches/icefaces4_ICE-10145

        Note that this rvn of the feature suffers from the following failures when run on Glassfish 4 or WildFly 8.1 (Servlet 3?) servers:

        Fetch Contact
        Demo not functional, clicking "Fetch a Contact" button fails to redirect to Contacts list. There is no prompt for asking permission to access the Contact List.
        I tried a few times refreshing this demo, however nothing works (not an issue on Tomcat7).

        Microphone
        Demo not functional, clicking "Record Audio" is not functional (not an issue on Tomcat7).

        Scan
        Demo not functional, clicking "Scan Code" is not functional (not an issue on Tomcat7).

        Show
        Ken Fyten added a comment - Initial commits for this feature have been made to the following ICEfaces 4.0.RC1 vintage development branch: http://dev.icesoft.com/svn/ossrepo/icefaces4/branches/icefaces4_ICE-10145 Note that this rvn of the feature suffers from the following failures when run on Glassfish 4 or WildFly 8.1 (Servlet 3?) servers: Fetch Contact Demo not functional, clicking "Fetch a Contact" button fails to redirect to Contacts list. There is no prompt for asking permission to access the Contact List. I tried a few times refreshing this demo, however nothing works (not an issue on Tomcat7). Microphone Demo not functional, clicking "Record Audio" is not functional (not an issue on Tomcat7). Scan Demo not functional, clicking "Scan Code" is not functional (not an issue on Tomcat7).
        Hide
        Arturo Zambrano added a comment -

        r41840: rolled back fallback facet support due to issues on WildFly and Glassfish.

        Show
        Arturo Zambrano added a comment - r41840: rolled back fallback facet support due to issues on WildFly and Glassfish.
        Hide
        Arturo Zambrano added a comment - - edited

        r45812: added 'fallback' facet to mobi:camcorder, mobi:fetchContact, mobi:geoTrack, mobi:microphone, mobi:scan, mobi:sms

        Testing notes: Just add a facet inside the components listed above, with any arbitrary content, and verify that such content is displayed on devices that don't support those features. This would be harder to test on the showcase, since there's a more explicit detection script that blocks the entire demo when the feature is not supported (unless you remove that script). Also, note that mobi:camera doesn't have this facet, because it has it's own fallback mechanism, as described in ICE-10447.

        Please also test on Wildfly and Glassfish. The issues reported above have now been fixed. Please verify.

        Show
        Arturo Zambrano added a comment - - edited r45812: added 'fallback' facet to mobi:camcorder, mobi:fetchContact, mobi:geoTrack, mobi:microphone, mobi:scan, mobi:sms Testing notes: Just add a facet inside the components listed above, with any arbitrary content, and verify that such content is displayed on devices that don't support those features. This would be harder to test on the showcase, since there's a more explicit detection script that blocks the entire demo when the feature is not supported (unless you remove that script). Also, note that mobi:camera doesn't have this facet, because it has it's own fallback mechanism, as described in ICE-10447 . Please also test on Wildfly and Glassfish. The issues reported above have now been fixed. Please verify.
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces 4 trunk r45812.
        Verified fetchContact, microphone and scan (original issues reported) resolved using ios 7.x and android 5.1 with glassfish 4.1 and Wildfly 8.2 servers on amazon aws. Tested with QA test apps as well as showcase.

        Fallback Facet is verified with mobi:camcorder, mobi:fetchContact, mobi:geoTrack, mobi:microphone, mobi:scan, mobi:sms. Tested with FF 34, Chrome 43, IE 11, 10, 9 and 8 using QA test apps. Tomcat 7, Wildfly 8.2 and glassfish 4.1.

        Show
        Liana Munroe added a comment - Tested with ICEfaces 4 trunk r45812. Verified fetchContact, microphone and scan (original issues reported) resolved using ios 7.x and android 5.1 with glassfish 4.1 and Wildfly 8.2 servers on amazon aws. Tested with QA test apps as well as showcase. Fallback Facet is verified with mobi:camcorder, mobi:fetchContact, mobi:geoTrack, mobi:microphone, mobi:scan, mobi:sms. Tested with FF 34, Chrome 43, IE 11, 10, 9 and 8 using QA test apps. Tomcat 7, Wildfly 8.2 and glassfish 4.1.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: