How to integrate flex SWF into WEBLOGC portal 9.2 __web

Source: Internet
Author: User

How to develop WEBLOGC portlets can refer to the development guide http://edocs.bea.com/wlp/docs92/portlets/index.html

After creating the WEBLOGC Portal Web project, copy the Flex-portal.jar to Web-inf/lib, if the Web project does not LCDs Or blazeds Web apps, you copy Flex-messaging-common.jar to Web-inf/lib.

On WebContent, the new Java-type portlet is Portlet-class set to Flex.portal.GenericFlexPortlet

When finished, open the Portlet.xml file under web-inf/to modify it

<?xml version= "1.0" encoding= "UTF-8"?> <portlet-app version= "1.0" xmlns= "http://java.sun.com/xml/ns/" Portlet/portlet-app_1_0.xsd "xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "> <portlet>< Description/> <portlet-name>trms_1</portlet-name> <portlet-class> Flex.portal.genericflexportlet</portlet-class> <supports> <mime-type>text/html</mime-type > <portlet-mode>view</portlet-mode> </supports> <portlet-info><title>mytrms</ title></portlet-info> <portlet-preferences> <preference> <name>app_uri</name> <value>http://192.168.102.233/trms/trms.swf</value> <read-only>false</read-only> </ preference> <preference> <name>normal_width</name> <value>100%</value> < read-only>true</read-only> </preference> <preference> <name>normal_height</name> <value>100%</value> <read-only>true</read-only> </preference> <preference> <name>max_width</name> <value>100%</value> <read-only>true</read-only> </preference> <preference> <name>max_height</name> <value>100%</value> <read-only>true</read-only> </ preference> </portlet-preferences> </portlet> <portlet><description></description > <portlet-name>myportlet_1</portlet-name> <portlet-class>MyPortlet</portlet-class> <supports> <mime-type>text/html</mime-type> <portlet-mode>view</portlet-mode> </ supports> <portlet-info><title>java portlet</title></portlet-info> </portlet> </portlet-app>

App_uri parameter is the full URL of the SWF

More parameter Description Reference http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wsrp_2.html#186216

Sample Engineering

http://download.csdn.net/source/1454224

Test page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.