Embedding Flex applications inside a portlet question

I'm trying to embed a Flex application within a Java portlet on my WLP 10.3.2 portal. I'm able to display the Flex app in the portlet but now I'm trying to access data. Does anyone know of any documents that cover how to access Flex data from a portlet and how to access portlet data from the embedded Flex application?
thanks

When you mentioned you integrated Flex App inside a Portlet, are you using like iFrame tag or Browser Portlet where in iFrame tag you specify the Flex app url like that. If so, then you will not be able to share any data/information between this iFrame portlet and the actual other real portlets.
If these Flex app has something like JSR based Flex portlets, then you can integrate them in WLP more easily. Another option is to consume these Flex Portlets as remote portlets using WSRP on WLP Side and the producer will be Flex Portal App (with flex portlets).
See if this link helps: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=wsrp_1.html
Ravi Jegga

Similar Messages

  • Setting intital data in Workspace embedded Flex Application

    I created 2 processes, one has an embedded Flex application in it. My first process has an output of type XML that is passed to the 2nd process using events. I have attached an Event Message Template to the Event so i can drill down into the data schema. I am able to receive and see the XML data in the receiving process. My Flex application is set to data type Form and has its own schema associated. What I am trying to do using the SetValue service is set some of the values in the Flex schema to the values of the XML data received from the first process.
    My Flex application has an "initialDataHandler" function that receives a DataEvent event from LC Workspace. Using the SetValue service and drilling down into the schema doesn't seem to set the DataEvent event data of the Flex App.
    Does anybody have any ideas on how to set the initial data of the Flex App so the data will be pre-populated when a user opens up the application?
    Thanks,

    Mike,
    I double checked with engineering and this cannot be done. I though that creating a custom render service would work, but it wont since it has to return a document variable and we can only change the data of a swf when its in a Form variable. And there is no way to go from Form to document variable because one contains the content and the other one is only a pointer.
    You can define default data on the variable settings under Default Data, but this data is essentially hard coded, which is not ideal.
    Youre only option at this point is to populate from the formInitData event in the swf form which can call a database or a web service.
    Engineering will make that Default Data a variable in a next release of the product which should get you across this problem but nothing to help us now.
    Sorry for the confusion.
    Jasmin

  • Passing correct image-file path in flashVar from jsp into embedded Flex application

    I have an application that embeds an image viewer, written in
    Adobe Flex within a jsp page running in a J2EE application on
    Tomcat 5.5. The Flex code is a one-line modification of the
    application displayed at (
    http://www.adobe.com/devnet/flex/samples/fig_panzoom/).
    The image viewer is founded and loaded in the output to the
    screen, but I cannot get the Image Viewer to display the image
    correctly, even though I succeed when either I run the .swf from
    the command-line or from an HTML page.
    My webapp is called FRSApp. The directory structure is, under
    FRSApp:
    myTest.html
    jsp/catalog.jsp
    pan_zoom_files/images/map.jpg
    The JSP code is thus,
    code:
    <%@ taglib prefix="mm" uri="FlexTagLib" %>
    <mm:mxml
    source="../pan_zoom_files/FIG_PanZoom_for_jsp.mxml" >
    <mm:flashvar name="myVar"
    value="/FRSApp/pan_zoom_files/images/map.jpg"/>
    </mm:mxml>
    the code within PanZoom.mxml is,
    private var _imageURL:String =
    Application.application.parameters.myVar;
    <ns1:ImageViewer
    id="imageViewer"
    imageURL="{ _imageURL }"
    bitmapScaleFactorMax="5"
    bitmapScaleFactorMin=".05"
    width="100%" height="100%"
    x="0" y="0"/>
    I have tried other paths to the image file, including
    images/map.jpg [required by command-line execution of .swf]
    pan_zoom_files/images/map.jpg [required by HTML page
    (myTest.html) that embeds the .swf file]
    I have succeeded in loading image viewer embedded in the jsp
    page when the image path is hard-coded in the mxml file, by means
    of the following code:
    <div id="swf-id" class="swfcontent"><embed
    type="application/x-shockwave-flash"
    src="../pan_zoom_files/FIG_PanZoom_for_jsp.swf" id="swf-id"
    name="swf-id" bgcolor="#ffffff" quality="high" wmode="opaque"
    height="480" width="772"></div>
    <script type="text/javascript">
    // <![CDATA[
    var props = new Object();
    props.swf = "../pan_zoom_files/FIG_PanZoom_for_jsp.swf";
    props.id = "swf-id";
    props.w = "772";
    props.h = "480";
    props.ver = "9";
    props.wmode= "opaque";
    var swfo = new SWFObject( props );
    registerSWFObject( swfo, "swf-id" );
    // ]]>
    </script>
    The error is either a "failed to load image" generated by the
    Image Viewer code, or a Flex system error message, resembling a
    null-pointer exception:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at FIG_PanZoom_for_jsp()
    at _FIG_PanZoom_for_jsp_mx_managers_SystemManager/create()
    at mx.managers::SystemManager/initializeTopLevelWindow()
    at mx.managers::SystemManager/docFrameHandler()
    Any ideas are greatly appreciated!!

    Solved the problem. I had made several mistakes. One of them
    was to pass in the J2EE context path when what was needed was the
    fully qualified image url:
    http://localhost/FRSApp/pan_zoom_files/images/earth-map_small.jpg.
    The second mistake was to assume the flashvar variable could be
    picked up by initializing Action Script in the the mxml file,
    designated by <mx:script> tags. No, the flash variable will
    only be visible within the <mx:Application>
    </mx:Application> tags.

  • Write data to SharePoint from embeded Flex swf

    I am trying to integrate Flex 3 applications into SharePoint 2007 environment which would allow our users to read/write/delete data from SharePoint using an embeded Flex app inside SharePoint. While the article from matthew.meier on "Adding Event Driven Flex Components to Microsoft Sharepoint 2007" is great and another article by Serge van den Oever on "Use Flex to retrieve data from a SharePoint list" is fantastic, they neither touch the topics of writing or inserting data into SharePoint. My goal is to create a two-way communication between Flex and SharePoint to dynamically pull (read) data into Flex  from SharePoint lists, etc via GUID or other method AND to also write or update SharePoint from a front-end Flex inside SharePoint.

    I have been working on a solution which appears like it would work, but I am getting errors. The source code and examples are found on Code Project http://www.codeproject.com/KB/aspnet/FlexASPWebService.aspx?msg=3270246#xx3270246xx This Flex/ASP example uses a web service to communicate to a SQL database. Flex makes a web service call to the .asmx file via WSDL and the magic happens. I am running into a roadblock as I receive an error that the app cannot find the WSDL. I have tried to run the same WSDL URL in a browser and I get an server application error.
    I also tried a solution found at http://shardulbartwal.wordpress.com/2008/03/20/import-web-servicewsdl-wizard-in-flex-30/ to load the WSDL file directly into Flex, but I ran into another roadblock. When I get to this step below Flex gives an error that it cannot find the WSDL file either…
    Here is the WebService call from Flex…
    The files from Code Project contain a directory structure as such:
    TestWebService\Service.asmx
    TestWebService\Web.config
    TestWebService\App_Code
    TestWebService\App_Code\Service.cs
    TestWebService\App_Data
    The Service.cs file is inside the App_Code directory and is referenced from the Service.asmx file with this code:
    My Flex file calls the Service.asmx?WSDL which then calls the file Service.cs and then it breaks.
    The Code for the Flex file is as follows…
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
          <![CDATA[
                import mx.controls.Alert;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                private function init():void {
                      // Get Data from WebService and fill datagrid when you fist invoke the application
                      ws.GetEmployees(); 
                private function GetEmployees(event:ResultEvent):void {
                      // Databind data from webservice to datagrid
                      datagrid.dataProvider = event.result;
                private function SaveEmployee(event:ResultEvent):void {
                      // To Refresh DataGrid;
                      ws.GetEmployees();
                      Alert.show("Saved Successfully");
                private function AddRecord(event:MouseEvent):void {
                      // Save a record using a WebService method
                      ws.SaveEmployee(txtEmpId.text, txtEmpName.text, txtEmpEmail.text); //
                private function fault(event:FaultEvent):void {
                      // Oppps some error occured
                      Alert.show(event.toString());
          ]]>
    </mx:Script>
    <!-- WebService definition -->
    <mx:WebService id="ws" wsdl="http://localhost/TestWebService/Service.asmx?WSDL" fault="fault(event)">
          <mx:operation
                name="GetEmployees"
                resultFormat="object"
                result="GetEmployees(event)"
                 />
          <mx:operation
                name="SaveEmployee"
                resultFormat="object"
                result="SaveEmployee(event)"
                 />
    </mx:WebService>
          <mx:Panel x="41.5" y="66" width="714.5" height="237" layout="absolute" title="ASP.NET WebService + Flex Demonstration">
                <mx:HBox height="95%" width="95%" horizontalCenter="0" verticalCenter="0">
                      <mx:DataGrid id="datagrid" width="465" height="100%">
                            <mx:columns>
                                  <mx:DataGridColumn headerText="Emp Id" dataField="EmpId"/>
                                  <mx:DataGridColumn headerText="Emp Name" dataField="EmpName"/>
                                  <mx:DataGridColumn headerText="Emp Email" dataField="EmpEmail"/>
                            </mx:columns>
                      </mx:DataGrid>
                      <mx:Form x="608" y="74" width="100%" height="100%" borderStyle="solid">
                            <mx:FormItem label="EmpId">
                                  <mx:TextInput width="106" id="txtEmpId"/>
                            </mx:FormItem>
                            <mx:FormItem label="EmpName">
                                  <mx:TextInput width="106" id="txtEmpName"/>
                            </mx:FormItem>
                            <mx:FormItem label="EmpEmail">
                                  <mx:TextInput width="106" id="txtEmpEmail"/>
                            </mx:FormItem>
                            <mx:FormItem width="156" horizontalAlign="right">
                                  <mx:Button label="Add" id="btnAdd" click="AddRecord(event)"/>
                            </mx:FormItem>
                      </mx:Form>
                </mx:HBox>
          </mx:Panel>
    </mx:Application>
    The Flex app error states it cannot locate the WSDL. Any ideas?
    I don’t know what I am doing wrong…

  • Adobe flex application development in NWDS

    Hi All,
    I have to develop an adobe flex application in NWDS.The questions are:
    1.What version of NWDS is required
    2.How do i integrate adobe flex with NWDS
    3.Any tutorial for a sample Adobe flex application development in NWDS
    Thanks and Regards
    Radhika

    Hi,
    Does it have to be NWDS?
    See if this post gives you some answers:
    Integrating Flex into Developer Studio
    Rgds.

  • Error # 1014 verifyError - flex application in Livcycle Workspace

    Hi All
    I have created a flex application using Flex SDK 3.4.1 to be incorporated in Adobe LiveCycle ES 2. My flex application is working fine, but when I lunch the flex application inside the Adobe LiveCycle Workspace, I got Error # 1014 VerifyError and the cause of this error is  the use of flashx.textLayout.elements.TextFlow libaray.
    Any help is really appriciated.
    Best regards
    Khaled

    That explains it then. This example requires the ContentElement, which is only present in FlashPlayer 10 and later. The example should require that -- when the project is set up, it can specify the minimum Player version it requires. Then if you try to run it on an earlier Player you get a warning that the SWF can't load on this Player, and it tells the user what version number is required. Try installing FP10, and it should work.

  • Flex application embedded in a PDF performing a LC call

    Hi,
    I have a Flex application that is embedded in a PDF as a navigator which is supposed to invoke LiveCycle application deployed on a weblogic server using SOAP endpoint. The web service call seems to work fine if I run it from Flash Builder but once it’s inside a PDF, it would appear that the web service call is not reaching the application deployed on the Document Service server. The same application, however, does work if the server is deployed on JBoss.
    I was wondering if anyone has suggestions on how I should go about troubleshooting.
    Thanks, Lilliam.

    Hi,
    Creating a new project it's
    - File -> New -> Flex Project
    - Application Type -> Desktop
    Setting this will create the descriptor file and create the WindowedApplication as the root. This application will startup in a native os window.
    Here is an example of creating a simple os child window;
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import spark.components.Window;
                protected function button_clickHandler(event:MouseEvent):void
                    var window:Window = new Window();
                    window.title = "Hello Window";
                    window.width = 200;
                    window.height = 200;
                    window.open();
            ]]>
        </fx:Script>
        <s:Button label="Open Window"
                  click="button_clickHandler(event)"/>
    </s:WindowedApplication>
    The documentation will guide you the rest of the way.
    Mike

  • Securely embedding a flex application in a J2ee application

    Hello,
    I was able to embed a Flex application with blazeDS running inside TOmcat with my existing webapplication. Note: I have configured blaze DS to run withing my existing web applicaiton lets call it "MyWebApp" by just mapping the messagebroker servlet in web.xml.
    Now, MyWebApp uses form based authentication. My flex app is just a part of one of the pages in MyWebApp. The user authenticates with MyWebApp.
    Question is: In my Flex application HOW DO I ENSURE THAT THE USER HAS logged in using MyWebApp.???..
    On the same lines, how do I secure the Remoting endpoints on the server?

    Hey Thanks for replying.
    My toomcat web.xml aslready has the auth-method set to 'Form'. So I d onot understand why should I define it again in the services-config.?.. I refered to the live docs but they do not explain how this will work
    Appreciate your help!!
    <security>
        <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat">
            <per-client-authentication>false</per-client-authentication>
        </login-command>
       <security-constraint id="trusted">
            <auth-method>Basic</auth-method>
            <roles>
                <role>employees</role>
                <role>managers</role>
            </roles>
        </security-constraint>
    </security>   

  • Error while loading a swf created in flash cs4, inside a flex application

    Hi there,
    I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
    <mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
    When I execute the flex application, I get this runtime error message:
    VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
        at global$init()
        at fl.motion::AnimatorFactory3D/getNewAnimator()
        at fl.motion::AnimatorFactoryBase/addTargetInfo()
        at logoRotar_fla::MainTimeline()
    I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
    Flash player 10,0,22,87 is running in my browser.
    Please help me out....
    Cheers!
    Deepak

    Get Flex 3.3 and use -target-player=10
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Embedding Fonts in a Flex application -- Legal issues?

    I am currently building a Flex application for a Client. The Style guide they have provided shows Univers 55, Univers 65, and Univers 45 as the main fonts for the site and the app.
    Page 1567 of Using Flex 4.5 states
    Note: 
     Check your font licenses before embedding any font files in your applications. Fonts might have licensing restrictions that preclude them from being stored as vector information.
    The fonts they are using in the AI file for the design document appear to be older version Adobe 1.0 TrueType fonts dated 30th June 1997.
    I can not find the original license for these fonts, but such licenses may pre-date embedding technology, so are we allowed to embed them?
    As an alternative could we safely use the OTF Univers LT Std family and are there any differences?
    Message was edited by: lingoguru

    As far as i see it, it's mainly just for convenience.
    Embedding an image into application removes the need for you to store it elsewhere on the server, as it becomes part of the .swf file.
    From personal experience it's very handy with small images, as it doesn't increase the size of the .swf file too much, and it means you don't have to keep track of them when distributing your release build.
    you don't have to embed anything, you can simply reference it by location instead, but you'll experience a slight delay as it's loaded into the application on request.
    The need for using this feature depends entirely on what you're trying to accomplish.
    If you're making something like a large image gallery, it'll completely remove the need for wait for pictures to load when  you're scrolling through them. However i wouldn't recommend it as you'll send your application size will go through the roof, and the waiting time for the whole application to load would be fairly extensive.
    If you have an application with like 40 small ~3kb images using for navigation icons or something, you might as well, it's just convenient and won't impact the loading time by too much.

  • Haw disable the saved icon of pdf document inside flex application??

    Hello,
    My gool is to disable the save icon of pdf document when i open the pdf document inside flex application.
    Haw you any ideas?
    Thanks you

    This isn't something that can be managed from the Flex end of things. You have to configure the document DRM.

  • PDF inside FLEX APPLICATION?

    My goal is to open a document pdf in a flex application.
    My document pdf is generated by using the library itext and an action struts.I used flex-iframe but the iframe source receives a path fixed like "http://localhot:9090:/applicationTest/exemple.pdf".
    have you any ideas?
    This is the exeample of  index.mxml when I use flex -iframe with a fixed path of pdf document
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    xmlns:local="*"
                    creationComplete="init();"
                    viewSourceURL="srcview/index.html">
        <mx:Script>
            <![CDATA[
                private function init():void
                    iFrame.visible=true;
            ]]>
        </mx:Script>
        <mx:HBox width="100%" height="100%">
            <mx:Panel width="100%" height="100%" title="Test PDF" paddingTop="1" paddingBottom="1" paddingLeft="1" paddingRight="1" >
                <local:IFrame id="iFrame" source="http://localhot:9090:/applicationTest/exemple.pdf" width="100%" height="100%" />
                <mx:ControlBar>
                    <mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/>
                    </mx:ControlBar>
            </mx:Panel>
        </mx:HBox>
    </mx:Application>
    This is the example of code that is failed:--> the pdf document is opened in the other window of browser:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                     xmlns:local="*"
                     creationComplete="init();"
                     viewSourceURL="srcview/index.html">
        <mx:Script>
             <![CDATA[
                 private function init():void
                     iFrame.visible=true;
             ]]>
         </mx:Script>
         <mx:HBox width="100%" height="100%">
            <mx:Panel width="100%" height="100%" title="Test PDF" paddingTop="1" paddingBottom="1" paddingLeft="1" paddingRight="1" >
                 <local:IFrame id="iFrame" source="http://localhost:9090/ApplicationTest/gi/printAction.do?method=printConfirmation&id=OTY" width="100%" height="100%" />
                 <mx:ControlBar>
                     <mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/>
                     </mx:ControlBar>
             </mx:Panel>
        </mx:HBox>
    </mx:Application>
    this is the action that generate the pdf document : "http://localhost:9090/ApplicationTest/gi/printAction.do?method=printConfirmation&id=OTY"
    Thanks

    Hello,
    Maybe you can use NavigateToURL like:
    navigateToURL( new URLRequest( 'example.pdf), '_new' )"
    http://livedocs.adobe.com/flex/3/langref/flash/net/package.html
    http://livedocs.adobe.com/flex/3/langref/flash/net/URLRequest.html
    Regards
    Johnny

  • HT5312 I can not use my account to buy applications inside because I forgot the answers safety questions

    I can not use my account to buy applications inside because I forgot the answers safety questions

    You need to contact Apple. Click here, phone them, and ask for the Account Security team.
    (86795)

  • Portlet Question

    Community Admins/Managers want to have a portlet that allows them to submit content with graphics, etc. to the portal and then have that content displayed inside a portlet. For example, admins would see the content with graphics and such, click on an edit button, go to editing the content and then saving the content back without going through content server, check-in/out, approval, etc.
    Has anyone done this before (found an enhanced CONTENT portlet) that gives admins/users this ability?. Another question would be the location where content would be saved, do we use the EDK to store the content in the Knowledge Directory, in database?
    Would another approach be to allow admins to submit content via KD, then create a snapshot query to pull that content into a portlet. This means users could create the content in MS WORD for example, upload to KD and then a portlet would be created to pull the content in. Is this another approach?
    Any help would be appreciated.

    Prashant,
    Yes. A Portlet WebApp is a standard J2EE web application, with some
    associated metadata (portal and portlet XML files, skins, layouts etc.). The
    metadata is stored outside the WebApp and is synchronized to the server
    after deployment.
    Sincerely,
    Daniel Selman
    "Prashant S" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    Can anybody tell me whther i can have portlets in a normal web
    application or i'll have to create a portal web application for this.Is a
    portal web application a specialised for of a normal web application.
    Thanks in advance
    Prashant

  • Text inside the portlet is cutting off

    I have a process portlets and the text inside the portlet is cutting off. For example, instead of displaying the name of the process "Certificate of good standing" I get "Certificate of Goo..." How can I make the text wrap or show the full project name. I try placing the portlet in a full page, but it's still dose not fix it. Anyone know where it can be change?

    Here is the solution that I got from puspendu
    And it worked:
    From your question , I am assuming you are using the ALIP version of the BPM. The portlets UI are designed to only display that many characters for the application name and display the full name as html title field.
    If you really want to change you can go to the application.jsff file under ptjsp folder and change to display the applicaiton.name instead of applicaiton.shortname.
    ----------------

Maybe you are looking for