Components inside components - Bad design?

Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?
<com:MyComp1>
    <com:MyComp2>        <com:MyComp3>
            <s:Label text="This is a test."/>        </com:MyComp3>
    </com:MyComp2></com:MyComp1>

It all depends. Knowing nothing about the components, all I can say is that it depends on the complexity of the components individually and collectively as well as what level of reuse you may desire.

Similar Messages

  • Components inside components (Flash 8)

    Hi,
    I have an Accordion component which needs to contain a number
    of small forms, each of which is built as a MovieClip containing
    TextInput, Button, ComboBox, etc.
    So, I build my little forms in Flash, make them into
    MovieClips, give them a linkage identifier and assign them the AS2
    class "mx.core.View", as the documentation says.
    Then I use ActionScript to attach these to my Accordion
    control, using my_accordion.createChild(). OK, fine. Works nicely.
    The problem is that in the next few lines of code I also want
    to be able to populate the TextInput and ComboBox components which
    reside inside my accordion. I can't do it. Trying to do so fails
    silently. Tracing out the path to the Components shows that they
    are "there", but if i put some content into, say, one of the
    TextInputs up-front (i.e. in the Properties panel inside Flash) and
    then try to trace... my_acc.my_form.my_textInput.text... i get
    undefined.
    So, it looks like the components inside the form inside the
    Accordion aren't yet "initialised" when I am trying to get/set
    their values. I've seen similar behaviour before, but it's not
    clear in the documentation how to get around it.
    Anyone help? What is the correct way to use components inside
    components like this? I don't want to have to call a second
    function or put any code on the timeline or anything like that!
    Many thanks,
    Andy

    Flash only supports a handful of html tags natively, so the
    short answer is, no, you can't do that. However, there are a few
    xhtml render classes floating around that will render many many
    more tags, including iframes. However, these implementations have
    VERY specific style and construction limitations, and of course
    don't support any scripting, so if you don't have control over the
    content, then it's pretty much hopeless.

  • AS: Accessing Components inside Components

    I'd like to apply an action to a UI Component. This UI Component is in a TabNavigator. Using actionScript, how can I communicate to that UI Component?
    The progression looks like this:
    TabNavigator > NavigatorContent > Border > Group > UI Component
    Thanks!

    Solved my own problem!
    <mx:TabNavigator x="10" y="10" width="980" height="748" id="playerTabNav" creationPolicy="all">
    The children of a TabNavigator aren't created until they're needed.Only the contents of the first tab are actually created, because they're part of what's needed when the TabNavigator is first displayed. The contents of the second tab won't be instantiated until they need to be displayed, which is when the second tab is clicked on.
    To force the contents of the other tabs to be instantiated, the creationPolicy property of the TabNavigator is changed to be "all". This will cause all of the different tabs to be instantiated, regardless of having been clicked on.

  • Programmatically refresh components inside a specific row of an af:table

    How to programmatically refresh components inside a specific row of an af:table without refreshing the whole table ?_
    I have an af:table displaying a read-only view object. There is an edit button inside the table calling an af:popup, where the user can update some informations and click a submit button to validate his changes.
    The action property of this button is a method in a backing been where
    -     1 : A stored procedure is called to update several tables (related to my read-only VO).
    -     2 : The VO is re-queried (VO. refreshQueryKeepingCurrentRow() )
    -     3 : The whole table is refreshed (AdfFacesContext.getCurrentInstance().addPartialTarget(myTable) )
    Is it possible to programmatically refresh some components of the current row of the table without refreshing the whole table (point 3)?
    I’ve tried to play with the “partialTrigger” property of af:outputText (table:column:outputText), without success.
    Thanks
    Nicolas

    "+do you happen to want to refresh following an action on the row? Like a link/button click?+" : NO
    There is a table on my page. The user select a row and click on an edit button. This edit button call a popup where the user can modify some information (not directly on the viewObject. All fields in the popup are dummy fields bind to attributes in my backing bean) and then he click on a submit button.
    The submit button action execute a method "submitInformation" in a backing been.
    public String submitInformation(){
            Map<String, Object> params = new HashMap<String, Object>();
            params.put("pManNo", xManNo.getValue()); //xManNo is an attribute of the backing bean
            params.put("pDate", xPeriod.getValue()); //xPeriod is an attribute of the backing bean
            // Execute Operation
            OperationBinding oper = ADFUtils.findOperation("serviceSubmitInfo");
            oper.getParamsMap().putAll(params);
            String results = (String)oper.execute();
            // Close Popup & Refresh Row if OK
            if(!StringUtils.isStringEmpty(results) && results.equals("TRUE")){
                 closePopup("pt1:popAbs");
                 refreshMyCol();
    }The serviceSubmitInfo method is defined in my serviceImpl
        public String serviceSubmitInfo (String pManNo, String pPeriod, ......){
             String results =
                callStoredFunction("? :=myDatabaseFunction(?, ?, ?, ?)",
                                   new Object[] { pManNo, pPeriod, ...... });
              // Commit
              getDBTransaction().commit();
              // Refresh VO (re-query & set currentRow)
              getMyVO().refreshQueryKeepingCurrentRow();         
              return results; // TRUE if ok
        }I want the " refreshMyCol()" method to refresh only the current row and not the whole table...
    Regards
    Nicolas

  • When we will be able to use AJAX components inside a portlet?

    Hi
    Thank you for reading my post
    when we will be able to use AJAX components inside a portlet?
    thanks

    I noticed the failure of the portlet to load its needed JavaScript files. Are there additional problems with the Ajax components running inside a portlet? Using the weblets project seemed like one approach to dealing with the resource loading problem.
    ...Kevin

  • Alignment of the components inside tab in JTabbedPane

    I want to align the components inside the tab in tabbedpane.
    I have three tabs in the tabbed pane For each tab I added the components on the panel and added the panel as a tab.
    But as the number of components on each tab are not same the components inside the tab doesn't get aligned properly.
    The components gets aligned in the center and I want to align them at top. How can I do that?
    Please help..

    How does
    the number of components on each tab are not samerelates to
    the components inside the tab doesn't get aligned properly. The components gets aligned in the center and I want to align them at top??

  • Where is the Components Panel and the Design Mode button in FlashBuilder 4.7 Premium?

    I'm new to FlashBuilder. I've been using many years just Flash  and now I'm switching to FlashBuilder. I've seen some tutorials, but the Interface in my copy of the program do not match the one in the tutorials. I could't find the componets Panel and the Design Mode button. Any ideea why?
    My Laptop runs on Windows 7.  FlashBuilder 4.7 Premium is via Creative Cloud:
    SnapShot from Tutorials I've seen
    SnapShot From my application
    with yelow i've marked the place with the "Components View" and the "Design" mode button
    whith that red line I've marked the place where the "Design" mode button is expected
    I've notice the following menu:
    Whe you click on Views: Window->Show Views->Other...  an interactive dialog appears with the tree of views available. Above there is a textField where you can enter a filter. As you type the text, the tree updates accordingly, after each letter.
    I've searched for the Components panel ... surprise!!!
    nothing on filter
    filtering for Outline View
    filtering for Component View
    the tree complete
    the tree finds the Outline View
    the tree is already empty
    As you notice the list of views is empty even before I finish the spelling of the word "Component".
    Is there something I should configure, or this feature is not available in this particular distribution ?

    I found the answer myself. Looks like this new version does not support these features anymore: http://www.adobe.com/ro/products/flash-builder/buying-guide.html.
    Strange...
    The question rising here is what happens with this feature?
    Will be available with a future update?
    Will no longer be availalble in FlashBuilder, but in another Adobe Project?
    Will never be available?
    I belive this features are not important  for advanced users... but  I'm just learning this. I'm used to work in Flash. I write ActionScript, but I'm not familliar with the objects availlable in Flex, so the Component Panel and Design Mode is quite handy on this stage.
    Plus, there is a real concern about the future of this technology, now beeing available HTML5. So, there is a question of oportunity  investing time in learning things no longer supported. The most frustrating thing is not having an answer to this question. Even a "No" is better than "We don't know yet" <- the answer I received from online support.

  • How to setBounds for components inside JLayeredPane

    Hello,
    Please help me find a solution to the following: I'm trying to construct a JPanel inside which there is a JLayeredPane. In the JLayeredPane there is (among others) a JScrollPane with a view onto a table. When the top panel resizes, I need to track the new size of the JLayeredPane and setBounds for the components inside the JLayeredPane for them to render correctly filling out the entire space available. I don't want to setBounds to a high threshold because on one of the layers there is a JScrollPane which needs to precisely fill the entire area of JLayeredPane to show the scroll controlls in their correct position. Here is a much simplified sample code:
    jLayeredPane.addComponentListener(new ComponentAdapter() {
    public void componentResized(ComponentEvent e) {
    setScrollPaneBounds();
    public void componentShown(ComponentEvent e) {
    setScrollPaneBounds();
    private void setScrollPaneBounds() {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    Dimension size = jLayeredPane.getSize();
    myJScrollPane.setBounds(0, 0, size.width, size.height);
    The problem in the above code is that the behaviour is random, when I resize the frame the myJScrollPane.setBounds sometimes sets the bounds, and other times it does not. Also I see the rendering of the JScrollPane 'leading' other changes higher up in the component hierarchy.
    Please help me solve these problems.
    Thanks.

    Thanks for suggestion, but that doesn't change anything. The biggest problem is the order of events. In the JFrame there is some complex layout with nested JSplitPane (2) and when I resize the window this little JLayeredPane seems to redraw FIRST and should be one of the last as it is deep in the component tree. When I take away the ComponentListener I have installed onto the JScrollPane, then event sequence is all good, but the setBounds on the JScrollPane is never called and the sizing becomes incorrect.
    Marcin.
    - CryptoHeaven Team

  • Taking the Customer Components inside plant for Production process

    Hi All,
    I have got one Businee Scenario for i need to map in SAP.
    Scenario: Customer is sending the Components for making the finished goods. In this case Business will be using the customeru2019s components for production process.
    Now, How to take the components inside the plant for the Production Processing
    In this below points needs to be consider:
    1.     Components Stock should be Stock of this Production Plant
    2.     Components valuation should not effected of production Plant
    3.     These components should be used for the Production
    Please suggest the Suitable Process in SAP.
    Regards
    Vinay

    Try this..
    You can have the BOM of the Finl material with the customers materials as the COMPONENTS...
    Then in cs02 ,double click the item numbers (components) and uncheck the costing relevency indicator..
    This will make the accountability in stock and not in valuation..
    hope this helps..
    karthick

  • Can all input components inside a PanelGrid be made readonly.?

    I have bunch of html input components inside a panel group.. I want all of them to be readOnly based on my condition.
    I have an option of adding readOnly attribute to add individually to all the input components . But , i am looking for some thing more than this.. Can the complete panelGrid be made readonly like with out adding readOnly= true to components inside panel grid..
    thanks.
    cnu

    Try this. This is not a straight forward way.
    JSF Code
    <h:panelGrid id='readOnlyGrid'>
                   <h:inputText disabled="#{employee.test1}" value="#{employee.name}"></h:inputText>
                   <h:inputText disabled="#{employee.test2}" value="#{employee.age}"></h:inputText>
                   <h:inputText disabled="#{employee.test3}" value="#{employee.name}"></h:inputText>
              </h:panelGrid>
    Javascript
    function makeReadOnlyGrid() {
           var grid = document.getElementById('myForm:readOnlyGrid');
           var inpObjs = grid.getElementsByTagName('INPUT');
           for(var i=0;i<inpObjs.length;++i) {
                inpObjs.readOnly = inpObjs[i].disabled;
              inpObjs[i].disabled = false;
    }Call this javascript function like this:
    Before closing the body tagwindow.onload=makeReadOnlyGrid;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I think I found a bug/bad design - what am i missing?

    Hi Edwin and the team,
    This is my first post as I'm sinking my teeth into the PM Server and Designer. We're considering to use the BPEL technology in the BIG way. And I think it's very cool as the Web Services-based EAI delivers a cost-effective and not proprietary solution!
    Let me describe to you what I believe is a bug or a dubious design. In the Designer, File>New>Oracle BPEL Project creates a new project with a file bpel.xml. For example, look at your CreditFlow sample. In that file there is <partnerLinkBinding name="..." <property name=wsdlLocation"> http://<host name of the WSDL host server>/....
    when the partner WSDL is hosted on the localhost that <host name> in the line above is the name of my machine instead of 'localhost'. Then, <project name>.bpel validation crashes when you're in the off-line (disconnected) mode or connected via VPN gateway (since obviously you think you don't need a proxy because everything is local). But, even if it works inside the LAN I think it's a bad design; since it's generated automatically by Designer the developer doesn't have a clue what's wrog when he/she needs to debug your code. The Designer should stick there 'localhost' instead of the the name of my computer on the network.
    Here how I spotted it. I generated you CreditFlow sample in the Quick Start Tutorial. I went by the book, Compiled the CreditFlow.bpel and it crashed! The book did not say it was supposed to crash. The book said everything should be honky dory. The Validator printed a message: "connection timeout...." Since I'm new to the BPEL it took me awhile to figure out and once I stick 'localhost' in the right place in bpel.xml everything worked. Again, I was running everything on localhost.
    If I helped you guys - great or what am I missing here?
    The problem is that if my company decides to convert the Biz Analysts into BPEL modelers how could a BA figure out the solution to the problem like this? He/She would just give up and tell the Technologists (us) that this is a bad product.
    Thanks,
    Greg
    P.S. What happened to Doron Sherman (CTO) and the old Collaxa folks? He is not listed in the ORCL directory. For those who don't know BPEL Server and Designer were developed by Collaxa and ORCL bought that company last year.

    Hi Gregory,
    I think that the problem you are reporting is a proxy configuration error. There are 2 places where you need to configure the proxy: in the obsetenv.bat and in the eclipse>windows>preferences>BPEL Designer.
    If the server is up and the proxy configuration is correct, you should not receive a timeout error.
    Let me try to explain why it is not possible/desirable to have localhost: the url is generated by the server when it generates a WSIL list of the processes deployed on the server. The server does not know if the client requesting this list is local or remote, this is why he uses the real host name (otherwise remote client would not be able to connect to the service).
    One additional note: the tool is not currently targeted at business analyst (unless they have some development background). BPEL entails some inherent complexity: parallel processing, async interactions, exception management, WSDL, XML Schema, transformation. So although we are working hard on continuously simplifying the implementation and increasing the productivity, we are still targeting application developers.
    I hope this helps.
    Edwin

  • 2nd week running, I received an e-mail saying a new episode of Breaking Bad is available.  When I go to download its the "Inside Breaking Bad" short (which gives away spoilers - thanks Apple!) but not the episode itself.  What gives?

    2nd week running, I received an e-mail saying a new episode of Breaking Bad is available.  When I go to download its the "Inside Breaking Bad" short (which gives away spoilers - thanks Apple!) but not the episode itself.  What gives?
    I've tried this on multiple products so I believe its specific to iTunes not a particular device.

    Same thing here- Get the email but nothing but the Inside featurette. It's really annoying. In fact I can't even download it normally using the check for available downloads feature! Every time I do that iTunes tries to download doubles of three Walking Dead episodes I've already downloaded. I don't want what I already have, I just want the new episode.

  • FM to fill activity partner and Contact person inside a BADI

    Hi,
    When i create an activity i need to check for a condition and process the activity accordingly. The condition is that when an contact person is entered mistakenly on the activity partner field then i need to move to the contact person field and also find out the corresponding activity partner and fill it.
    For example, if i enter 123( assuming this to be a contact person) on the activity partner field, then i need to find what is the corresponding activity partner for this contact person(Assuming ABC to be the activity partner). I need to fill ABC on the acitivity partner field and 123 on the contact person field. I tried using ORDER_SAVE Badi for the same. The badi gets called and  i am able to read the curent value from ORDER_READ FM. I just don't get as to how to fill the activity partner and contact person inside this BADI. I am not able to find any FM for the same. Can i request some help pls?
    Thanks,
    Venkat

    Hi,
    maintain the partner change on document manually and debug this FM to see what should be the inputs.
    Maybe you are missing sth.
    Other way, better, would be using crmv_event tcode. there you can register your FM that will change partner on document.
    you can assign this FM for eg. to event AFTER_CHANGE and object PARTNER, and transaction category like Service Process.
    you can read /people/radoslaw.stefaniak/blog/2009/12/16/crmvevent--what-is-it for more information.
    Regards

  • Custom master page is showing inside the dashboard designer

    I have some issues with Dashboard designer, when i am creating a new report ,my custom master page is showing inside the designer. How i can remove this?
    the same issues of this post ->
    http://sharepoint.stackexchange.com/questions/109218/custom-master-page-is-showing-inside-the-dashboard-designer-pps
    Thanks

    But here's a few more things:
    When I click on the page 1, the Master Page view is shown.  When I click on Master Pages, the Master Page view is shown, also when I click on
    untitled Content Area, the Master Page view is shown.  All these made me think that extra page is the Master Page.
    When I look at pagination for page1, here's what there:
    When I click on the (untitledSubform) (page1) pagination, here's what's there
    I can't get this page to go away. Thanks.

  • CISCO 2125 bad design by Cisco, product development should revise

    I noticed Cisco product sales support staff is pushing 2125 WLAN controller as great WLAN solution. They got me into considering one as something what will work just fine.
    I strongly disagree, this product is extremely poor design and it is missing gigabit port for LAN connection.
    This product will support 25 APs with its eight 10/100 Mbps ports. Only 6 APs can be linked per port. So for 25 APs you are already using 5 ports. Per manual POE ports 7 & 8 should not be used for anything other than single AP so that leaves you with only 1 port #6 to connect to your LAN.
    Yes, that is true, 100Mbps for all the WLAN users on the 25 access points and product is advertised to support high speed N wi-fi capable of doing 300Mbps per user node. What a nonsense? makes no sense even for lightweight use.
    Makes you wonder who approved such product for production and what a bad design on the $6K piece of equipment
    CISCO please put a Gigabit port on the 2100 series or stop marketing and pushing such poorly designed product.

    “Thank you for your question.  This community is for Cisco Small Business products and your question is in reference to a Cisco Elite/Classic product.  Please post your question in the Cisco NetPro forums located here: http://forums.cisco.com/eforum/servlet/NetProf?page=main  This forum has subject matter experts on Cisco Elite/Classic products that may be able to answer your question.”

Maybe you are looking for