Jetspeed 2
  1. Jetspeed 2
  2. JS2-822

Flash Portlets are broken on Desktop

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.3
    • Component/s: Desktop
    • Labels:
      None

      Description

      Flash and Flex portlets are broken on Desktop. This was working up until a few weeks ago.
      Not sure what has changed, need to investigate....

        Activity

        Hide
        Steve Milek added a comment -

        The flash example in the demo app is setup to use the new gems FlashPortlet.

        Show
        Steve Milek added a comment - The flash example in the demo app is setup to use the new gems FlashPortlet.
        Hide
        David Sean Taylor added a comment -

        Steve,

        There is one example Flash portlet in the demo portlet.xml. Do we need to update the parameters there as well?

        Show
        David Sean Taylor added a comment - Steve, There is one example Flash portlet in the demo portlet.xml. Do we need to update the parameters there as well?
        Hide
        Steve Milek added a comment -

        The solution for this issue is to use the new gems FlashPortlet. Here is a description:

        The new gems FlashPortlet uses SWFObject library (http://code.google.com/p/swfobject) to dynamically load flash content. This was needed to support loading flash content dynamically, and it solves the IE click to load active content problem (Microsoft/Eolas patent issue). The swf file is read by the FlashPortlet to obtain the player version requirements and the height/width of the content. This allows the portlet to display flash player upgrade content when necessary.

        The new FlashPortlet replaces previous FlashPortlet in applications/demo.

        The html <object> and <embed> tags are generated by the new FlashPortlet. This is configured by init-params in the portlet.xml:

        object-params
        object-attributes
        flashvars

        Values for these init-params use semicolon to separate each pair and equals to separate name and value.

        The gems jar contains default ViewPage and EditPage templates - if ViewPage/EditPage are not specified in portlet.xml, the jar based versions will be used.

        Preferences are used for src, height and width:

        SRC
        HEIGHT
        WIDTH

        MAX-SRC
        MAX-HEIGHT
        MAX-WIDTH

        Here is a sample FlashPortlet definition:

        <portlet>
        <portlet-class>org.apache.portals.gems.flash.FlashPortlet</portlet-class>

        <!-- using default templates from gems jar for ViewPage - see org/apache/portals/gems/flash/templates/ -->

        <!-- use semicolon to separate each pair and equals to separate name and value for object-params
        (url-encoding should not be used except for non-delimiter occurrences of ';' and '=' chars) -->
        <init-param>
        <name>object-params</name>
        <value>quality=high;bgcolor=#3a6779;allowScriptAccess=sameDomain;play=true;loop=false</value>
        </init-param>

        <!-- use semicolon to separate each pair and equals to separate name and value for object-attributes
        (url-encoding should not be used except for non-delimiter occurrences of ';' and '=' chars) -->
        <init-param>
        <name>object-attributes</name>
        <value></value>
        </init-param>

        <!-- use semicolon to separate each pair and equals to separate name and value for flashvars
        (url-encoding should not be used except for non-delimiter occurrences of ';' and '=' chars) -->
        <init-param>
        <name>flashvars</name>
        <value></value>
        </init-param>

        <portlet-preferences>
        <preference>
        <name>SRC</name>
        <value>/FlexAnteras/FlexAssets/WIAPP.swf</value>
        </preference>
        <preference>
        <name>HEIGHT</name>
        <value>100%</value>
        </preference>
        <preference>
        <name>WIDTH</name>
        <value>100%</value>
        </preference>
        </portlet-preferences>
        </portlet>

        Show
        Steve Milek added a comment - The solution for this issue is to use the new gems FlashPortlet. Here is a description: The new gems FlashPortlet uses SWFObject library ( http://code.google.com/p/swfobject ) to dynamically load flash content. This was needed to support loading flash content dynamically, and it solves the IE click to load active content problem (Microsoft/Eolas patent issue). The swf file is read by the FlashPortlet to obtain the player version requirements and the height/width of the content. This allows the portlet to display flash player upgrade content when necessary. The new FlashPortlet replaces previous FlashPortlet in applications/demo. The html <object> and <embed> tags are generated by the new FlashPortlet. This is configured by init-params in the portlet.xml: object-params object-attributes flashvars Values for these init-params use semicolon to separate each pair and equals to separate name and value. The gems jar contains default ViewPage and EditPage templates - if ViewPage/EditPage are not specified in portlet.xml, the jar based versions will be used. Preferences are used for src, height and width: SRC HEIGHT WIDTH MAX-SRC MAX-HEIGHT MAX-WIDTH Here is a sample FlashPortlet definition: <portlet> <portlet-class>org.apache.portals.gems.flash.FlashPortlet</portlet-class> <!-- using default templates from gems jar for ViewPage - see org/apache/portals/gems/flash/templates/ --> <!-- use semicolon to separate each pair and equals to separate name and value for object-params (url-encoding should not be used except for non-delimiter occurrences of ';' and '=' chars) --> <init-param> <name>object-params</name> <value>quality=high;bgcolor=#3a6779;allowScriptAccess=sameDomain;play=true;loop=false</value> </init-param> <!-- use semicolon to separate each pair and equals to separate name and value for object-attributes (url-encoding should not be used except for non-delimiter occurrences of ';' and '=' chars) --> <init-param> <name>object-attributes</name> <value></value> </init-param> <!-- use semicolon to separate each pair and equals to separate name and value for flashvars (url-encoding should not be used except for non-delimiter occurrences of ';' and '=' chars) --> <init-param> <name>flashvars</name> <value></value> </init-param> <portlet-preferences> <preference> <name>SRC</name> <value>/FlexAnteras/FlexAssets/WIAPP.swf</value> </preference> <preference> <name>HEIGHT</name> <value>100%</value> </preference> <preference> <name>WIDTH</name> <value>100%</value> </preference> </portlet-preferences> </portlet>

          People

          • Assignee:
            Steve Milek
            Reporter:
            David Sean Taylor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development