Modular or New Custom Component Approach : Please suggest

Hi ,
I am developing a Flex Application which will used within the organization of Employees
Please suggest me , as what to approach to follow to develop this :
After an user (Employee) of an Organization logins , he can be allowed to do various operations
depending upon various modules .
Should i develop each of these things using Flex Modules  approach or normal New Component ??
please suggest an approach

@kiran7881,
If your each module is individually large in size and involves lot of code and stuff and if number of such modules are more then you can go with modules concept.
Otherwise if your stuff involves simple and small operations to perform then you can go with creating normal Components approach.
Thanks,
Bhasker

Similar Messages

  • Opinion: new Package for every new custom Component?

    Hi there,
    I am just thinking of some possibilities to structurize my Components I made.
    I wonder if it is useful/good programming to define a new package for each new custom Component?
    So if I define a new MyComponent class extending JFrame should I make a new package:
    "mycomponent"
    containing these subfolders:
    "view"
    "model"
    "controler"
    subfolging "controler" in:
    "listeners"
    "adapters"
    "events"
    Is there any sense to do so? I think this would be the best way to structurize one's components.
    But if you do, you have to include millions of packages if you want to use one of these components :(.
    Please post, what you think.
    Thank you
    Sincerely
    Karlheinz Toni

    nope ;). I would most certainly not want to put every file in a single directory.
    But I like sturctured things. If things belong to each other, it should be visible at once, that they have something to to with each other. And the best method I can figure you is putting them in one package.
    The subpackages should be created, because of the model, that is used for all swing componentd (UI-delegete, MVC...) so that each structural component is where it belongs to.
    I don't like it if tere are 100 events one object could possibly create and you don't know the events from the component (of course you can guess by the name Event :)), but if they are in the same package, you would have to scroll a long way to get the thing you want (either m, v or c).
    So this is why I would do it ;).
    Anyway: do includes make the program run slower (I have read many threads about it, but there are way to many opinions, so I would be grateful if you post your opinions here, thx ;).
    Thanks for your answer,
    Sincerely
    Karlheinz Toni
    p.s.: why wouldn't you put them in a seperate directory (just overkill?), would you use classes that are structured like this if you are looking for a implementation of something and find it in this structure?

  • New internal optical drive : please suggest me a new one

    Dears all,
    since i discover my internal drive is faulty ( i am discovering right now ) and i am not the only customer encontering the same problem ( some dvd readed some not ) .
    Please suggest me a new one to put inside my Mac Pro 2.8 late 08.
    Thanks in advance.
    The faulty drive is : OPTIARC DVD RW AD-7170A 1.NC

    The Optiarc drives are Sony (NEC dropped out of the Optiarc consortium) and they're the ones that are failing!
    Lost the NEC controllers?
    I hadn't seen a connection between Optiarc and Sony (here in Japan).
    'Spose it is another Apple crippled firmware scenario like the Pioneers of old?
    Get rid of the Apple firmware and Pioneers just keep on burning......
    Anyhow, thanks for the heads up!

  • Error when start a new Custom Component

    Hi,
    I've created and installed a new basic Custom Component, but when I try to run it I get a error.
    Here the Eclipse error log:
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
    at com.adobe.idp.dsc.registry.component.client.ComponentRegistryClient.start(ComponentRegist ryClient.java:226)
    at com.adobe.common.utils.ServiceRegistryUtils.startComponent(ServiceRegistryUtils.java:624)
    Caused by: ALC-DSC-005-000: com.adobe.idp.dsc.DSCNotSerializableException: Not Serializable
    Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
    at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.createAndDeploy(ServiceRegist ryImpl.java:1398)
    at com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl.start(ComponentRegistryIm pl.java:781)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    My component is very simple, and is based on article writen by Michael Hodgson.
    kind regards
    Valerio

    (...) What am i missing here? (...) - Sharepoint 2013 and probable bug in FIM related to it. Check this thread for workaround
    and resolution:
    http://social.technet.microsoft.com/Forums/en-US/1b76672d-1276-4c71-b9fc-5bb1fcb36877/event-id-3-with-approval-activity?forum=ilm2
    Tomek Onyszko, memberOf Predica FIM Team (http://www.predica.pl), IdAM knowledge provider @ http://blog.predica.pl

  • Missing prpoerty in new custom component

    Hi ,
    I try a custom label component. When I add it into the form, some default properties are missing e.g. text.
    Any idea ?
    Do I missing something in the taglib ?
    Thanks
    Wilson

    Hi Wilson,
    Please take a look at the thread below:
    http://swforum.sun.com/jive/thread.jspa?threadID=48814
    This might be of help to you
    Thanks
    RK.

  • How Do I Link to Custom Component States From Scrolling Content Buttons?

    Hi there, I'm in need of some help as i've got a deadline to meet within the next few weeks and im stuck!
    Basically what I've done is i've made a scrolling content lists, containing about 10 products in each one, my plan was to turn each product into a button so that users could click on that product, and take them to a new page containing more detailed information on that product; when they've finished looking at that product they can click a button to return them to the list they were on previously. However I can't just make a brand new state for each product as there is a limit to 20 states, and I will need around 50 of them.
    So, from what i've read I will need to create custom components. the only trouble with doing this is that I can't link to the custom component on a different main timeline state (I dont get the option to link to the states of the custom component).
    If i put the image of the detailed product into the scroll panel I am able to link to it, however, it's inside the scrolling content and it just scrolls around and stuff which isn't what I want; as it makes it look messy.
    - Basically I just need to link from the buttons in the scrolling list, to a more detailed page for that product. Then be able to return to the list using a button.
    If anybody has any input on how to achieve this, please help me out. Starting to panic now as this needs to be finished before september :s
    Btw i'm happy to share my .fxp file it that helps.
    Thanks alot, Hoping for some helpful replies on this topic
    - Tom

    Hi Tom,
    Adding this back here to share my wireframe with the community.
    Have put a quick .fxp together based on the 'product' section of your project.
    Take a look at how the product lists are linking into the product detail pages within their custom components. 
    Using this model you should be able to expand out to infinite product detail states.  If a particular product area has more than the maximum allowed states, just start a new custom component (part 2 for that product section).
    Let me know if you have any questions. Hope this sets you on a path to getting your project complete.  It's looking nice.
    Tanya

  • Issue in custom component in custom timecard layout-OTL

    Hi,
    I have created a custom layout based on seeded layout.Added new custom component Dept reference field to the sedded layout.
    When trying to save the timecard template including dept reference field completed.The saved timecard template is dropping Dept reference filed.therefore,it is also dropped from the exported/downloaded .csv file.
    code details:
    BEGIN HXC_LAYOUT_COMPONENTS
    "US Projects Alternate Timecard Layout-Dep field"
    OWNER = "CUSTOM"
    SEQUENCE = "226"
    COMPONENT_DEFINITION = "TEXT_FIELD"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT="US Projects Alternate Timecard Layout-Day Scope Building blocks for worker timecard matrix"
    REGION_CODE="HXC_CUI_TIMECARD"
    REGION_CODE_APP_SHORT_NAME="HXC"
    ATTRIBUTE_CODE="DEPT_REF"
    ATTRIBUTE_CODE_APP_SHORT_NAME="HXC"
    LAST_UPDATE_DATE = "2004/05/23"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS
    "US Projects Alternate Timecard Layout-Dep field"
    OWNER = "CUSTOM"
    QUALIFIER_ATTRIBUTE_CATEGORY = "TEXT_FIELD"
    QUALIFIER_ATTRIBUTE1 = "N"
    QUALIFIER_ATTRIBUTE2 = "N"
    QUALIFIER_ATTRIBUTE3 = "5"
    QUALIFIER_ATTRIBUTE4 = "1"
    QUALIFIER_ATTRIBUTE5 = "30"
    QUALIFIER_ATTRIBUTE18 = "EXCLUDE"
    QUALIFIER_ATTRIBUTE19 = "|TEMPLATE|CSV|"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "HRP"
    QUALIFIER_ATTRIBUTE27 = "Attribute3"
    LAST_UPDATE_DATE = "2004/05/23"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    Please help me in this regard....
    Thanks
    Sri...

    Did you update the export layout too and added that to preferences?
    --Shiv                                                                                                                                                                                   

  • Access data in custom component.

    Hi Everyone,
                    I am new to Flex soo pardon me if my questions are quite basic. I have searched a lot before posting here, might be I was not looking in the right direction. Please redirect me to the path that leads to the solution of the problem. I really appreciate any help that I can get.
    I'm followiing this video tutorial.
    http://www.gotoandlearn.com/play.php?id=100
    All was going fine, until the tutor wanted to add custom component in the application. He added the HBox which I couldn't find in Flash Builder  4.6 so I added HGroup instead in my new component. Now when I want to use the data that was fetched in the parent component in custom component it gives me error. Here is the code and their file names.
    File: SearchHomeView.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="Twitter Search">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:HTTPService result="onResult(event)" id="service" url="http://search.twitter.com/search.atom?q=adobe">
            </s:HTTPService>
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import flash.utils.flash_proxy;
                import mx.collections.ArrayCollection;
                import mx.rpc.events.ResultEvent;
                [Bindable]
                private var ac:ArrayCollection;
                private function onResult(event:ResultEvent):void
                    ac = event.result.feed.entry as ArrayCollection;
                    trace(data);
                    trace(ac);
                private function doSearch(event:MouseEvent):void
                    //service.url = "http://search.twitter.com/search.atom?q=" + tearch.text;
                    service.url = "http://search.twitter.com/search.atom?q=adobe";
                    service.send();
            ]]>
        </fx:Script>
        <s:TextInput x="25" y="26" width="146" id="tearch"/>
        <s:Button x="224" y="26" height="33" label="Search" click="doSearch(event)" />
        <s:List dataProvider="{ac}" itemRenderer="tweet" x="25" y="92" width="274" height="278"></s:List>
    </s:View>
    File: tweet.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:HGroup xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark" width="400" height="300">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Image width="50" height="50" source="{parentDocument.data.link.getItemAt('1').href}">
        </s:Image>
        <s:TextBase width="100%" text="">
        </s:TextBase>
    </s:HGroup>
    When I use source to be source="{parentDocument.data.link.getItemAt('1').href} ... it removes the error, but displays nothing on the resulting app.
    When I use source to be source="{data.link[1].href} ... it gives the error,
    Multiple markers at this line:
    -1120: Access of undefined property data.
    -parentDocument
    What needs to be done to use the item renderer right in custom component ? Please tell me the solution to it... I'm stuck on it for quite a few time.
    Thanks
    Bilal Ahmad

    Hello Ravi,
    one option is the create a public attribute to share your value note data with other components.
    Another option is a function group with two function modules "SET_" and "GET_".
    I´m sure one of the webclient UI Gurus here in this forum could share less "dirty" ways with you.
    Kind regards
    Manfred

  • UI delegate for a custom component

    Hello folks,
    I am trying to write (as said in the subject) a UI delegate for a custom component. I found the following in a Java FAQ (http://www.mindspring.com/~scdrye/java/faq.html#plaf_delegate):
    8.3. How do I create a UI delegate for my custom component?
    Have your component extend from JComponent (or a descendant of JComponent). Create a subclass of ComponentUI for your custom component, overriding at least the createUI() and paint() methods. To enable the new UI, override four methods of your JComponent subclass:
    public class MyComponent extends JComponent {
    public void updateUI() {
    setUI((MyComponentUI)UIManager.getUI(this));
    public void setUI(MyComponent newUI) {
    super.setUI(newUI);
    public MyComponentUI getUI() {
    return (MyComponentUI)ui;
    public String getUIClassID() {
    return "MyComponentUI";
    Well, it turns out that this is not enough. I also had to add during application start (just before initComponents()) the following:
    UIManager.put(uiClassID, uiClassName);
    to avoid exceptions during start of the program.
    Well, now my component is painted (paintComponent()) is called, but the paint() method in my new UI delegate class is not called when the application starts.
    It just gets called when I explicitily (in this case, using a menu item) change the L&F of the application.
    If this informatio is not enough, I can add some excerpts of my code for the ease of understanding!!
    Thanks a lot!

    If I code a new custom component (extending JComponent, or extending the UI delegate of a standard component) and pretend it to be laf aware then I must create the corresponding UI delegate for each laf, like it happens to be with standard swing components. But I'm not sure it is feasible to create the UI delegates for all unknown existing custom lafs.You are right, this is never going to work. I suggest if you want to make your custom component look & feel aware, you design the way it displays around the l & f of other components that are part of j2se and have l&f implementations.
    http://download.oracle.com/javase/7/docs/api/javax/swing/plaf/ComponentUI.html
    There are instructions here:
    http://download.oracle.com/javase/7/docs/api/javax/swing/LookAndFeel.html
    >
    On the other side, if I create a custom laf then I will also create a custom UI delegate for each standard component, but I can not create UI delegate for all unknown existing custom components.
    The point here is that standard components and standard lafs are universally known, while custom components (or custom ui delegates) and custom lafs are not.
    So the question is: How does a swing developer deal with the case of a new custom component that will be used in an unknown custom laf?
    For instance:
    1. Custom text UI delegate for dealing with styled documents in JTextField. See {thread:id=2284487}.
    2. JTabbedPane with custom UI delegate that paints no tab if the component only contains one tab.
    In both cases I need a UI delegate for each known laf, but what happens if the application is using a laf that certainly will not be aware of this custom functionally?
    Thank you!

  • Steps to custom component

    dears,
    i want to create new custom component , and want to use the saveState and restoreState, can any one help me ??

    You lazy kid.
    Here is an extract of HtmlInputText:
        public Object saveState(FacesContext _context) {
            if (_values == null) {
                _values = new Object[29];
            _values[0] = super.saveState(_context);
            _values[1] = accesskey;
            _values[2] = alt;
            _values[3] = autocomplete;
            _values[4] = dir;
            _values[5] = disabled;
            _values[6] = label;
            _values[7] = lang;
            _values[8] = maxlength;
            _values[9] = onblur;
            _values[10] = onchange;
            _values[11] = onclick;
            _values[12] = ondblclick;
            _values[13] = onfocus;
            _values[14] = onkeydown;
            _values[15] = onkeypress;
            _values[16] = onkeyup;
            _values[17] = onmousedown;
            _values[18] = onmousemove;
            _values[19] = onmouseout;
            _values[20] = onmouseover;
            _values[21] = onmouseup;
            _values[22] = onselect;
            _values[23] = readonly;
            _values[24] = size;
            _values[25] = style;
            _values[26] = styleClass;
            _values[27] = tabindex;
            _values[28] = title;
            return _values;
        public void restoreState(FacesContext _context, Object _state) {
            _values = (Object[]) _state;
            super.restoreState(_context, _values[0]);
            this.accesskey = (java.lang.String) _values[1];
            this.alt = (java.lang.String) _values[2];
            this.autocomplete = (java.lang.String) _values[3];
            this.dir = (java.lang.String) _values[4];
            this.disabled = (java.lang.Boolean) _values[5];
            this.label = (java.lang.String) _values[6];
            this.lang = (java.lang.String) _values[7];
            this.maxlength = (java.lang.Integer) _values[8];
            this.onblur = (java.lang.String) _values[9];
            this.onchange = (java.lang.String) _values[10];
            this.onclick = (java.lang.String) _values[11];
            this.ondblclick = (java.lang.String) _values[12];
            this.onfocus = (java.lang.String) _values[13];
            this.onkeydown = (java.lang.String) _values[14];
            this.onkeypress = (java.lang.String) _values[15];
            this.onkeyup = (java.lang.String) _values[16];
            this.onmousedown = (java.lang.String) _values[17];
            this.onmousemove = (java.lang.String) _values[18];
            this.onmouseout = (java.lang.String) _values[19];
            this.onmouseover = (java.lang.String) _values[20];
            this.onmouseup = (java.lang.String) _values[21];
            this.onselect = (java.lang.String) _values[22];
            this.readonly = (java.lang.Boolean) _values[23];
            this.size = (java.lang.Integer) _values[24];
            this.style = (java.lang.String) _values[25];
            this.styleClass = (java.lang.String) _values[26];
            this.tabindex = (java.lang.String) _values[27];
            this.title = (java.lang.String) _values[28];
        }Good luck further in your career.

  • Hi all, Please suggest a case where there is a requirement for new SOAP sender adapter module. I wanted to develop a module but in my current project i am unable to find any such requirement.

    Hi all, Please suggest a case where there is a requirement for new SOAP sender adapter module. I wanted to develop a module but in my current project i am unable to find any such requirement. So please give me inputs for the same..
    Thank you,
    Vinay Kumar A

    You can try converting a synchrnous soap call to asynchronous using a custom module
    Here your module will send a response back to the sender system and make an asynchronous call forward

  • Please suggest the best approach

    Hi ,
    e have a requirement of integrating two webcenter/ADF 11.1.1.6 applications .Thease two applications are running on two different environments.
    Please suggest us the best approach.
    As per the documentation we have the options:
    1) 2nd App consume as porrtlet in 1st APP
    2) Using pagelets
    3) Remote taskflows
    Cons of the above approaches:
    1) If we render as ADF portlet some of the features will not work like popus.
    2) If we use pagelets then we have to call pagelets from Iframes,as per security reasons customer
    ask us to not to go for this option
    3) If we use remote taskflow we can't include in portion of the page as portlet
    So we are in a confusion as which one to use.please suggest us best approach
    Regards
    Babu.

    In addition to Note: 559518.1, please refer to the docs referenced in (Rapid Clone Documentation Resources, Release 11i and 12 [ID 799735.1]).
    Thanks,
    Hussein

  • I clicked onto firefox as usual, but instead of my home page, it brought up a new customer version, so it has none of my booksmarks or history, how can I retore to the one I was using please?

    Hello, I clicked onto firefox as usual, but instead of my normal homepage, it came up with a new customer one, so none of my bookmarks or history are present. Can you help me retore my former homepage please?

    What did you have as your home page?
    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and [[Preferences are not saved]]
    [[How to set the home page]]: Firefox supports multiple home pages separated by '|' symbols

  • HT202159 while downloading new Mountain lion OS i am getting "An error while downlaoding" , since i have already purchased the same & am not able to dowload the same, please suggest a solution

    while downloading new Mountain lion OS i am getting "An error while downlaoding" , since i have already purchased the same & am not able to dowload the same, please suggest a solution

    Disable anti virus software and try turning off the Firewall in System Preferences > Security & Privacy > Firewall.

  • Receiving Error : Please set the Receivables system options for this operating unit and ensure that the MO: Operating Unit profile option is correctly set with an operating unit that is set up in Receivables. while trying to create a new Customer.

    Hi All,
    We have set up a new Operating Unit in Oracle Apps. Now when I am trying to create a new Customer in that Operating Unit, I am receiving following error:
    ERROR MESSAGE:-Please set the Receivables system options for this operating unit and ensure that the MO: Operating Unit profile option is correctly set with an operating unit that is set up in Receivables.
    We do have MO: Operating Unit and MO: Default Operating Unit set properly at Responsibility level for the Responsibility through which I am accessing this form.
    Your help is appreciated!
    Thanks in advance,
    SKA

    You can refer this thread and check your MO operating unit is set or not https://community.oracle.com/message/3937028 thanks

Maybe you are looking for