Details
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>
<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>
<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:
Revision: 30923
Author: philip.breau
Date: September-18-12 9:08:39 PM
Message:
MOBI-318mobi:getEnhanced for warning message and container downloadjsp 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