ViewStack with multiple mx:Modules

Hi
I am trying to upgrade a project from Flex 3.4 to Flex 4.5.
The project uses a number of technologies, such as Cairngorm, Parsley.
I've already done an upgrade on a different project so I am a bit aware of which versions need to go with what.
So the problem I'm facing is as follows:
I have an mx:ViewStack which contains a few cairngorm ViewLoaders.
This custom made ViewStack is created programatically on creationComplete of the parent container (let's call it Parent) and added as a child to a (Parent's child)
So the configuration is as follows:
- Parent
  -- HBox (parent of viewstack), with id="viewStackContainer"
      --ViewStack is added programatically as a child to the HBox ("viewStackContainer") on Parent's creationComplete
        -- Cairngorm Module A
        -- Cairngorm Module B
        --  Cairngorm Module C
        -- etc
In Flex 3,  this would work fine, and only the first child of the ViewStack would be loaded.
A click on the ToggleButtonBar for the Module B would *load module B at that point*, a click on the ToggleButtonBar for the Module C would *load module C at that point*
In Flex 4.5...what I'm observing is that all modules are created at once even if the user has not clicked on the ToggleButtonBar to go to that view/module.
I've set the creationPolicy of the ViewStack to "auto" but it hasn't helped.
Is this a known bug...or am I missing something? 
Thanks!

You might want to try 4.6.  There was a bug in early Flex 4 versions where a creationPolicy=”all” on a high-level navigator propagated its creationPolicy to all child navigators.  I don’t remember if that was fixed in 4.5 or 4.6.

Similar Messages

  • Multiple ejb modules

    Welcome evry body, i need your help since i am new to ejb technology.
    I have a J2EE application with multiple ejb modules, my problem is how to
    make ejb1 located in ejb-module1 instantiate ejb2 located in ejb-module2
    in my ejb-module1 ejb-jar.xml deployment descriptor i put this :
    <session>
       <ejb-name>ejb1</ejb-name>
       <local-home>....</local-home>
       <local>...</local>
       <ejb-local-ref>
            <ejb-ref-name>ejb/ejb2</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <local-home>....</local-home>
            <local>...</local>
            <ejb-link>ejb-module2.jar#ejb2</ejb-link>
       </ejb-local-ref>
    </session>When i deploy my application and try to access it i get this exception :
    javax.naming.NamingException: No EJB found at location 'ejb-module2.jar_ejb2'So is there any way to fix this problem?

    Hi Javist,
    Assuming you've double-checked that the target module(ejb-module2.jar) and
    target ejb-name (ejb2) are correct, and that both ejb-jars are packaged at the same level in the .ear, everything looks fine to me. Which J2EE implementation are you using? It's possible it's a bug. You can also try the shorthand of just
    <ejb-link>ejb2</ejb-link>
    If there's only one ejb with that name in the entire .ear, that should work even without the explicit ejb-jar path reference.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Handshaking DMM with multiple Switch devices - DAQmx error

    Hi.
    I'm trying to create a handshaking loop with DMM (PXI-4071), SWITCH (PXI-2569) and MUX (PXI-2575). All three instruments are in segment 2 of PXI-1045 chassis (slots 8, 9 and 10) and I am using PXI trigger lanes to route triggers.
    I followed the NI article 'Multi-module Scanning with National Instruments Switches' - I modified the NI SWITCH example 'niSwitchDMMSwitchHandshaking' to configure the other SWITCH but when I tried to run the example, I got an error:
    0xbffa6b9a - No registered lines could be found between the device in the route. (pop-up screenshot is in the attachment). It is the niSwitch_InitiateScan function for the second Switch that returned the error.
    Changing PIX trigger lanes has no effect.
    I tried both CVI and LabVIEW examples with the same result.
    I even tried to use two 2575 MUXes - same result.
    Can anybody tell me what am I doing wrong?
    Solved!
    Go to Solution.
    Attachments:
    errror1.JPG ‏26 KB

    Hi Pavel,
    For the purposes of this post, I'll define
    the measurement complete signal (sent by the DMM to the switch modules
    after each measurement) as 'MC' and place it on TTL0.
    For the
    purposes of this post, I'll define the scan advanced signal (sent by the
    switch module(s) to the DMM once the relays have settled) as 'SA' and place
    it on TTL1.
    You mentioned you're using NI-Switch, which is NI's IVI
    compliant switch API.  Since the IVI Foundation regulates the behavior
    of IVI compliant software, we must adhere to their rules when
    implementing our API.   Unfortunately, the IVI switch standard doesn't
    provide a method to control arbiting of triggers between multiple switch modules
    simultaneously. 
    Let's
    look at what happens when we setup a system with multiple switch
    modules handshaking with a single DMM.  The DMM is going to take a
    measurement and then send MC on TTL0. Meanwhile, each switch is listening to TTL0,
    waiting for the MC pulse.  When the MC pulse is received, each switch sets
    the relays according to its next scan list entry, waits for debounce,
    and then sends SA on TTL1.  The problem we run into here is that depending on the switch module, number of relays connected simultaneously, jitter, etc, it's possible that one module will send the SA trigger on TTL1 before the other.  Since the IVI spec doesn't provide any way to implement a 'master' switch or an arbitor, it's impossible to implement a system such that only the last switch that settles sends a trigger.  Therefore, what happens is we get a whole bunch of switch modules sending triggers at slightly different times onto TTL1.  If one switch is driving TTL1 high while the others are driving TTL1 lo, it's remotely possible that we could damage the TTL circuitry on the PXI backplane.
    To date, NI hasn't seen any failures due to simultaneously driving the TTL lines high and low at the same time with NI switch hardware, but it is theoretically possible that damage could occur.  For this reason, NI implemented a change in DAQmx
    9.0.0, 9.0.1, and
    9.0.2 that prevents a user from setting up handshaking with multiple switch modules while using NI-Switch.  What does DAQmx have to do with this, you might ask?  A component installed with DAQmx is responsible for verifying the triggers are valid.
    Customers with existing NI-Switch multi-module handshaking applications will find that upon upgrading to any of the above three versions of DAQmx, the error you observed will occur.  We've evaluated this customer feedback and have decided to revert to the previous functionality in a yet-to-be released version of DAQmx.  Please note that NI does not advise driving the same TTL line with multiple sources due to the chance that we'll double-drive the line. Therefore, it goes with out saying that NI does not advise using NI-Switch in multi-module handshaking applications.  We do, however, still recommend NI-Switch for Syncrhonous triggering because the switches never send triggers (in synchronous mode, the DMM just waits a predefined amount of time before switching).
    Note that if you use the DAQmx Switch API, we're no longer bound to the IVI spec, which means we have an arbitor that ensures only one switch module drives the SA trigger on TTL1.  NI highly recommends that customers evaluate using the DAQmx switching API for multi-switch handshaking applications. An example DAQmx handshaking application for the DAQmx Switch API is located in Example Finder»Hardware Input and Output»DAQmx»Switches»Switch Scanning with DMM - Handshaking.vi. 
    Note that in DAQmx, we'll only have one scan list, regardless of the number of switches we have.  Note that the syntax in DAQmx scanning is different than NI-Switch.  I'll defer a detailed explanation of the differences to the DAQmx and NI-Switch Help (search for 'scan list'), but in short, we'll need to include the DAQmx Device name prior to each connection.  For example, in NI-Switch, if we want to connect CH1 to Com1:
    CH1->Com1;
    In DAQmx, we'll need to include the Device name:
    Dev1\CH1->Com1;
    Note that to add additional switch modules in the DAQmx API,  we simply
    call the Set Topology and Reset VI multiple times:
    DAQmx keeps the
    session loaded in memory and as I noted above; we define which switch
    does the action as part of the scan list entry. 
    If you'd still like to use NI-Switch, you could roll back to DAQmx 8.9.5 or previous, or if you want to stick with 9.0.x, I highly recommend that we daisy chain the triggers as follows:
    DMM Measurement Complete to Advance Trigger on Switch1 via TTL0
    Scan Advance from Switch1 to Advance Trigger on Switch2 via TTL1
    Scan Advance from Switch2 to Trigger Source on DMM via TTL2
    Note that we'll need an additional TTL line for each switch module.  Also note that some switch modules allow front panel triggers, which reduces the number of TTL lines we'll need on the backplane, but which requires external wiring between switch modules.
    Message Edited by Knights Who Say NI on 06-11-2010 05:25 PM
    Message Edited by Knights Who Say NI on 06-11-2010 05:30 PM
    Message Edited by Knights Who Say NI on 06-11-2010 05:30 PM
    Message Edited by Knights Who Say NI on 06-11-2010 05:31 PM
    -John Sullivan
    Analog Engineer

  • How can you develop photo galleries with multiple pages using the web module?

    Going through the web module I can see there are many options for developing a web page with a single collection of photos.  How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?

    This thread will give you several ideas.
    Re: How do you embed a gallery into an existing website?

  • Excel sheet with multiple tabs to be sent as email

    Hi Experts,
    I have a requirement to generate an Excel sheet with multiple tabs to be sent as email to a distribution list.
    Please help if you have any ideas on the same.
    Thanks,
    Preema

    [http://wiki.sdn.sap.com/wiki/display/ABAP/ToGetFieldDetailsSavedinVariantLayout|http://wiki.sdn.sap.com/wiki/display/ABAP/ToGetFieldDetailsSavedinVariantLayout]
    with this we can get the modified field catalog  based on layout variant
    without calling alv output function modules
    Thanks!   SDN.

  • Create a flat file with multiple characters for enclosures

    Hello,
    we use OWB 11g2 (11.2.02).
    Now we try to create a flat file with multiple characters for enclosures. The manual wrote:
    "Enclosures (Left and Right): Some delimited files contain enclosures that denote text strings within a field. If the file contains enclosures, enter an enclosure character in the text box or select one from the list. The list displays commonenclosures. However, you may enter any character. The default for both the left and right enclosure is the double quotation mark ("). You can specify multiple characters and hexadecimal characters as field enclosures."
    But it will not work. The OWB use the first character from the left enclosure definition as left enclosure and the second one as right enclosure !?!
    Did anyone know this behavior? Is there a solution for this problem?
    Thanks and regards
    Norbert

    HI Raghu,
               Use the function module 'GUI_UPLOAD'.
               In that you have to specify the field_separator value = 'X' in export section.
    Regards,
    S.C.K

  • Multiple output modules cause render to fail?

    Is anybody else having trouble with using multiple output modules in after effects?  Let me elaborate:  so I'm working on a 3d film, and my worflow is to simply work with the footage side by side in a single comp (we're at HD, so the comp size is 3840x1080).  Very often, I need to fire off a quick render to show to the director.  Most of the time, I just do the left eye by cropping to that 1920x1080 area in the output module.  Other times I need to deliver both eyes, so instead of cropping to 1920x1080, I resize the frame in the output module to 1920x1080.  Yea, we lose half of our horizontal resolution, but that's not such a big deal for us when just working on approvals.
    Here's the thing: sometimes I like to export multiple variations of this at once (ie one output module for the left eye, one for the right eye, and another for the squished side-by-side left-right video).  Whenever I try to output multiple modules with quicktime, it fails.  Every time.
    When it fails, I get two messages: the first (a warning) says "After Effects warning: last frame was written to one or more output modules, but not all! ( 26 :: 153 )"
    The second message (an error) shows up once for each output module: "After Effects error: Rendering error while writing to file "C:\blahh blah blah\whereIputmyfiles\the_render.mov". An output module failed.  The file may be damaged or corrupted. (-1610153464)."  Once it fails, I cannot output to quicktime AT ALL (multiple output modules, or not) without restarting After Effects.
    I tried outputting multiple modules as a PNG sequence... and that worked just fine (if "slow as hell" can ever be called "fine" .... but it worked! )
    I tried outputting to the multiple formats I wanted with one output module per render item (rather than having one render item with multiple modules) as quicktime, and that worked just fine (of course... it takes N times as long though... for N number of outputs).
    I am on Windows 7 64-bit... running After Effects CC 2014... I never had this trouble back when I was working on the CC version (the not 2014 cc version... that is too confusing...).  However, I just went back and tried it with the older version, and it no longer works there either!  What gives?
    When outputting quicktime, I'm using the h.264 codec.
    And before anybody suggests it, no I can't just use AME because that can't resize video (it forces you to keep the aspect ratio through letterboxing) or crop video.

    >The most likely culprit is the h.264 Quicktime. It should have never been included as an option. It doesn't even work well in Quicktime Pro or in Final Cut...
    I'll come to Apple's (partial) defense here:
    Their H.264 codec was written and released at a time when it was difficult to imagine that mainstream computers would have as many CPUs as they do now, so it's somewhat understandable that the severe failures that this codec has with large numbers of threads occurs. Of course, we may all wish that Apple hadn't decided to end development on the QuickTime platform, since this has meant that bugs like this are likely to persist.
    That said, this is why we increasingly recommend that people use other H.264 codecs and not use QuickTime for such things. See the H.264 options currently in Adobe Media Encoder.

  • Master with multiple details

    (JHeadstart release 10.1.2.) I can make a master with multiple detail pages work (displayed on the same page or different pages), except under one condition. Assume the following situation:
    Master: View object A based on entity A
    Detail 1: View object B based on entity B with a modified WHERE clause
    Detail 2: View object C based on entity B (yes, same entity object as view object B) with a WHERE clause different than the one for view object B
    A one-to-many view link exists between view object A and view object B, and another exists between view object A and view object C. The query for each of the view objects is standard (i.e., no expert-mode queries). The master and the two detail view objects (via their respective view links) are assigned to an application module.
    I created a JHeadstart application structure file for the application module with Struts and UIX. I added view object A as the top group (table-form layout). I next added view object B as a detail group (form layout, same page) beneath view object A. I finally added view object C as a detail group (form layout, same page) beneath view object A (i.e., parallel to view object B). The module generated and built cleanly.
    I ran the application, entered a master record, and saved the data. When I pressed the button to create a new record for detail 1 (view object B), fields appeared for the pages for detail 1 and detail 2 (view object C), not just detail 1. Also, the value of the Descriptor Attribute from the master record that linked it to the two detail pages populated the corresponding field in both of the displayed pages for the detail records.
    This behavior does not occur if view object C (detail 2) is based on an entity different than view object B. Will JHeadstart allow a master to have multiple details where the details are based on the same entity object? Thanks.
    Ray

    Ray,
    Unfortunately I cannot reproduce the problem. I filled in the A, B and C using a scott/tiger schema as follows:
    A: Departments
    B: All employees having a salary &lt; 1000
    C: All employees having a salary &gt;= 1000
    Then I created an application module with one group having two subgroups everything same page, just like you specified. Everything seemed to work fine. Do you have any idea what's different in your situation.
    Aard-Jan van Kesteren
    JHeadstart Team
    Oracle Consulting

  • One order with multiple lines in OM is creating multiple invoices

    Application: Oracle 11i (11.5.3)
    Modules implemented: GL, OM, AR, AP, PO and CM
    Business Requirement:
    Our client would like to create Order consisting of multiple lines in Order Management.
    The Orders created in OM with multiple lines could be booked, picked, released and transferred
    over to Accounts Receivable. On transferring over the Orders from Order Management to Accounts
    Receivables using Auto Invoice process the Order should create ONE invoice with multiple lines.
    Moreover, for the multiple lines created on an invoice deferred revenue could be applied.
    ( eg. An order is placed for software and support. The support is to be invoiced all at once but revenue deferred to 1/12
    recognized each month as revenue is earned.)
    Right now we are getting two invoices. It is putting the deferred revenue item on a seperate invoice. Is this normal
    functionality? How can I get both on one invoice.
    thanks

    Hello Monique,
    Well you can have one invoice generated for an order with multiple lines. This is possible by changing some rules in Account Receivables. Use the grouping rules under setups->autoinvoice in AR. You can club your invoices based on any of the columns of ra_interface_lines_all. Hope this works for you.
    Arvind

  • [svn] 949: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 949
    Author: [email protected]
    Date: 2008-03-27 07:12:59 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - try again with legacy-collection true and false.
    Doc: No
    Checkintests: Pass
    Details: Another try in fixing this bug. When legacy-collection is false, Actionscript Array on the client becomes Java Array on the server and my fix yesterday assumed this case. However, when legacy-collection is true, Actionscript Array becomes Java ArrayList on the server. So added code to handle this case.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • [svn] 931: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 931
    Author: [email protected]
    Date: 2008-03-26 11:31:01 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - we need automated tests for this basic case.
    Doc: No
    Checkintests: Pass
    Details: RequestFilter was not handling multiple headers with the same name properly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • Download to excel with multiple lines in header

    Hi experts,
    Is there any Funtion module available to download an internal table contents into Local directory of PC with multiple lines in header.
    i.e.  let us say i hv internal table of 5 entries with 3 columns...
    i need to download this 5 entries into an excel file with some texts above the table contents...
    For eg : in the below format...
    Sample line 1
    sample line 2
    sample line 3
    colheader1     colheader2     colheader3
    item1                              
    item2
    item3
    item4
    item5
    Please help.
    Edited by: Lakshmiraj on Jul 15, 2010 3:26 AM

    There is another option of using OLE automation Please check the link below
    http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-OLEAutomationusing+MS-Excel
    OR
    chek for the example program in Tcode DWDM ( OLE example )
    OR
    Use FM KCD_EXCEL_OLE_TO_INT_CONVERT ( Fm Uses the same OLE automation)
    Hope it helps
    Anup

  • Text Field with multiple lines

    I am trying to create a text field in the selection screen where it can insert a text with multiple lines for instance those text fields which you can see online where you can key in text lines after lines.
    How do you do that in ABAP?

    Hi
    See any Std program code for CREATING long Text lines
    See any application document HEADER or ITEM text and copy that code
    first declare a field with some table field
    like
    PARAMETERS: p_text like Tline-tdname.
    then keep a button (for Long text) and in the program write a code such that when you press on that line it will take you to text ediotr
    using the CREATE_TEXT fun module
    copy it from a std program text..
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Split TIF document with multiple pages

    Hi,
    Iu2019m using function module 'SCMS_HTTP_GET' to retrieve TIF document from Filenet.  The TIF document returned has multiple pages.  Iu2019m able to retrieve the document with no issue.  What I need to do is split the TIF document for each page.
    Is there a way in ABAP to split the TIF on each page break?
    The reason I need to split is later in program I call FM SSFC_BASE64_ENCODE passing data to Adobe form that uses IMAGE FIELD object to display TIF.  I have no issue displaying TIF with 1 page on adobe form.  But if there are multiple pages only the first page is displayed in the Adobe PDF.  I was thinking if I could split the TIF that contains multiple page into individual TIF I would then pass in table to PDF form to display all pages of the TIF.
    Appreciate the help,
    Gary

    Hi,
    I'm also in the same situation. I am uploading the TIf file with multiple pages, but only the first page is printing. Did you get any luck in either printing all pages OR program which can spilt...
    Thanks,
    Sarma

  • Support for multiple struts modules in NitroX

    I have a struts application with multiple modules, however, NitroX won't fully recognize the second module.
    I created this module though Struts' "Create new Struts module...", the module works fine in tomcat, I'm able to edit the config files with NitroX, NitroX doesn't give me any errors when referencing forms or actions in the second module, however, when I create a new html:form, NitroX doesn't show the actions of the second module, and it also doesn't show the request session variables that I created in the struts action class.
    It appears to me that somehow NitroX doesn't see the second module correctly.
    How would I fix this problem?
    Thanks,
    Daniel Goldman

    In order to zip up my project, I would have to clean it up of before giving it to you, I have to make sure that there is confidential info in there.
    Are there any tips you can give me? Perhaps I can troubleshoot myself.
    If there is no other way, I'll send you a zip.
    Thanks
    Daniel Goldman

Maybe you are looking for

  • How do I download Adobe Digital Edition 3.0 to an IMac 10.6.8??

    How do I download Adobe Digital Edition 3.0 to an IMac 10.6.8?

  • Third party software for picture messaging on a 800W?

    Anyone aware of a third party, or any party for that matter, program to enable the 800w to send picture mail? Why picture messaging doesnt work on a 800 running windows mobile boggles my mind, but i am stuck now and wanted to know if there was a prog

  • One speaker cut out.... then the second a few hours later. Now both don't work.

    HP Pavilion G6 Notebook PC A9Y51EA#ABE [Personal Information Removed] I lost sound to my left speaker and a few hours later my right one also just stopped too. Tried restart and didn't sort the problem, have not changed OS recently or anything. Just

  • Ubuntu on s10-3T ???

    Im curious about exploring UBUNTU on my new netbook!  But I need to know if Ubuntu will support the s10-3t? Tablet support? Touchscreen support? Auto screen rotation? Etc Etc... Does anyone have any info on this?

  • DNGconverter won't open RAF files?

    Hi trying to read a Fuji RAF file using DNGConverter 5.3 but am having problems.  DNGconverter won't recognise the RAF file when I try to open it.  The RAF file was created using a Fuji camera on the Adobe "supported cameras" list, so not quire sure