ICEfaces
  1. ICEfaces
  2. ICE-9877

Add new "iceBrowser" client descriptor EL variable

    Details

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

      Description

      One of the useful things we have in ICEmobile that we haven’t ported over to the IF4 yet is the ClientDescriptor implicit variable. In IM, you can use #{mobiClient} on the page to resolve to this utility and customize rendering at a finer-level than by just using the <mobi:small> and <mobi:large> tags. eg.

      <span>#{mobiClient.IE8orLess ? ‘Please stop making our lives miserable’ : ‘Welcome to the Showcase!’}</span>

      I think it would be good to port this to IF4, but it’s not really mobile-specific, so maybe it should be brought into core and named something more generic? ‘iceClient’? ‘iceBrowser’? It has to be unique enough not conflict with other bean names that might exist.

        Activity

        Show
        Philip Breau added a comment - Current class is located at http://dev.icesoft.com/svn/ossrepo/icemobile/trunk/icemobile/jsf/components/component/src/org/icemobile/component/impl/event/MobiClientVariableListener.java
        Hide
        Mircea Toma added a comment -

        Updated UserAgentInfo and ClientDescriptor classes to include functionality residing in their duplicating (and triplicating classes) found in other packages. Introduced ClientDescriptorSetup that binds the 'iceBrowser' EL variable. Refactored mobi code to use the ClientDescriptor defined in org.icefaces.util package.

        Show
        Mircea Toma added a comment - Updated UserAgentInfo and ClientDescriptor classes to include functionality residing in their duplicating (and triplicating classes) found in other packages. Introduced ClientDescriptorSetup that binds the 'iceBrowser' EL variable. Refactored mobi code to use the ClientDescriptor defined in org.icefaces.util package.
        Hide
        Mircea Toma added a comment -

        The showcase application can be used to test the functionality of this EL variable. The following test pages for mobi components are using the variable: "Augumented Reality", "Geolocation", and "Scan".

        Show
        Mircea Toma added a comment - The showcase application can be used to test the functionality of this EL variable. The following test pages for mobi components are using the variable: "Augumented Reality", "Geolocation", and "Scan".

          People

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

            Dates

            • Created:
              Updated:
              Resolved: