ICEmobile
  1. ICEmobile
  2. MOBI-318

mobi:getEnhanced for warning message and container download

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 Final
    • Fix Version/s: 1.2 Beta
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      ICEmobile

      Description

      This component would replace markup like the following:

                     <ui:fragment rendered="#{not mediaController.enhancedBrowser}">

                          <mobi:icemobilesx/>

      with

      <mobi:getEnhanced/>

      which by default will render

      ICEmobile container was not detected, native
      device integration will not be available.
      [Download] the ICEmobile Container.

      With the download link customized to the detected platform.

      To customize, a facet is available for each detected platform:

      <mobi:getEnhanced downloadLink="false">
        You need the container.
        <facet name="android">
        An Android container can be downloaded from Play.
        </facet>
      </mobi:getEnhanced>

        Activity

        Hide
        Philip Breau added a comment - - edited

        <mobi:getEnhanced> JSP tag checked in:
        Will render the the following markup by default for ios:
        <span class="mobi-getenhanced">ICEmobile container was not detected, native device integration will not be available. <a href="http://itunes.apple.com/us/app/icemobile-sx/id485908934?mt=8">Download</a> the ICEmobile Container.</span>
        First the device is detected. If an android, ios, or blackberry device is detected, and the the browser is not currently 'enhanced' (detected by the HYPERBROWSER cookie), then the markup is rendered. If not, nothing is rendered. iTunes, Play, or BlackBerry App World links are displayed when an associated device is detected.
        The user can set 'includeLink' to false, in which case the link will not be rendered, leaving only the following markup:
        <span class="mobi-getenhanced">ICEmobile container was not detected, native device integration will not be available. </span>
        The user can also set the following attributes to override the generic message:

        • androidMsg
        • iosMsg
        • blackberryMsg
          Revision: 30923
          Author: philip.breau
          Date: September-18-12 9:08:39 PM
          Message:
          MOBI-318 mobi:getEnhanced for warning message and container download
          jsp tag

          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/mobisx/IceMobileSXMeta.java
          Added : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/BaseSimpleTag.java
          Added : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/GetEnhancedTag.java
          Modified : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/TagUtil.java
          Added : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/TagWriter.java
          Modified : /icemobile/trunk/icemobile/jsp/src/main/resources/META-INF/icemobile.tld
          Modified : /icemobile/trunk/icemobile/resources/themes/base/_base.css
          Added : /icemobile/trunk/icemobile/resources/themes/base/get-enhanced.css

        Show
        Philip Breau added a comment - - edited <mobi:getEnhanced> JSP tag checked in: Will render the the following markup by default for ios: <span class="mobi-getenhanced">ICEmobile container was not detected, native device integration will not be available. <a href="http://itunes.apple.com/us/app/icemobile-sx/id485908934?mt=8">Download</a> the ICEmobile Container.</span> First the device is detected. If an android, ios, or blackberry device is detected, and the the browser is not currently 'enhanced' (detected by the HYPERBROWSER cookie), then the markup is rendered. If not, nothing is rendered. iTunes, Play, or BlackBerry App World links are displayed when an associated device is detected. The user can set 'includeLink' to false, in which case the link will not be rendered, leaving only the following markup: <span class="mobi-getenhanced">ICEmobile container was not detected, native device integration will not be available. </span> The user can also set the following attributes to override the generic message: androidMsg iosMsg blackberryMsg Revision: 30923 Author: philip.breau Date: September-18-12 9:08:39 PM Message: MOBI-318 mobi:getEnhanced for warning message and container download jsp tag Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/mobisx/IceMobileSXMeta.java Added : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/BaseSimpleTag.java Added : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/GetEnhancedTag.java Modified : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/TagUtil.java Added : /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/TagWriter.java Modified : /icemobile/trunk/icemobile/jsp/src/main/resources/META-INF/icemobile.tld Modified : /icemobile/trunk/icemobile/resources/themes/base/_base.css Added : /icemobile/trunk/icemobile/resources/themes/base/get-enhanced.css
        Hide
        Ted Goddard added a comment - - edited

        The Smart App Banner will not display during ProjectStage Development to allow for the case where ICEmobile-SX on the device is a development version rather than downloaded from the app store.

        Show
        Ted Goddard added a comment - - edited The Smart App Banner will not display during ProjectStage Development to allow for the case where ICEmobile-SX on the device is a development version rather than downloaded from the app store.

          People

          • Assignee:
            Philip Breau
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: