Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0 Beta
-
Fix Version/s: 1.0 RC1
-
Component/s: None
-
Labels:None
-
Environment:ICEmobile, iOS
Description
ICEmobile-SX cannot be activated immediately without user interaction because an attempt at activation results in a cryptic Safari error message "The document could not be loaded". Currently, the following snippet is being used:
<ui:fragment rendered="#{camcorderBean.showSX}">
<br /><span>
<h:commandButton
styleClass="mobi-button mobi-button-important"
onclick="mobi.registerAuxUpload('#{session.id}','#{auxUpload.uploadURL}');" value="Enable" />
ICEmobile-SX Surf Expander.</span>
</ui:fragment>
A component implementation would include the isShowSX() code internal to the component and would conditionally render the button.
To render (if necessary) the activation button and "ICEmobile-SX Surf Expander":
<mobi:icemobilesx />
To render the activation button (with any specified styles) and any desired child markup if necessary:
<mobi:icemobilesx value="Enable" />
<a href="http://itunes.apple.com/app/icemobile-sx">ICEmobile-SX</a> Surf Expander
</mobi:icemobilesx>
<ui:fragment rendered="#{camcorderBean.showSX}">
<br /><span>
<h:commandButton
styleClass="mobi-button mobi-button-important"
onclick="mobi.registerAuxUpload('#{session.id}','#{auxUpload.uploadURL}');" value="Enable" />
ICEmobile-SX Surf Expander.</span>
</ui:fragment>
A component implementation would include the isShowSX() code internal to the component and would conditionally render the button.
To render (if necessary) the activation button and "ICEmobile-SX Surf Expander":
<mobi:icemobilesx />
To render the activation button (with any specified styles) and any desired child markup if necessary:
<mobi:icemobilesx value="Enable" />
<a href="http://itunes.apple.com/app/icemobile-sx">ICEmobile-SX</a> Surf Expander
</mobi:icemobilesx>
does this component require f:param support ? Will assume no singleSubmit or mobi:ajax support for now.
Also...where is the "isShowSX()" code to be found?
does anything have to be done on the decode specifically? just standard support for action and actionListener similar to commandButton?