[
https://issues.apache.org/jira/browse/JS2-822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551884
]
Steve Milek commented on JS2-822:
---------------------------------
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>
> Flash Portlets are broken on Desktop
> ------------------------------------
>
> Key: JS2-822
> URL: https://issues.apache.org/jira/browse/JS2-822
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Desktop
> Affects Versions: 2.1.3
> Reporter: David Sean Taylor
> Assignee: Steve Milek
> Fix For: 2.1.3
>
>
> 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....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]