Reuse Regions as a Component like Packages?

Is there are way of making a region a single collection that can be treated like a reusable component, like that of a SQL Package? (Sort of Object Oriented Programming)
For example, I want to have a Region that display's a record's "CREATED_BY", "CREATE_DATE", "MODIFY_BY" and "MODIFY_DATE" fields. The region also has Buttons and Items inside it, to be included into the component.
These are used in different tables in the schema, so I was to reuse this Region (also, it uses a common package, that contain its different PL/SQL Code, that could manage the 'properties' and 'methods') in different pages that I nominate, preferably refering to a single definition. Should this definition change, it would be instantly changed in all associated pages as well.
I am not sure of the correct way of doing this. It does not seem Shorcuts in Shared Components will achieve this. Is there any Tutorial for this situation?
Thank you for your comments.

Ou, as I see such question is a common problem, I just start another topic with the same problem. I`ve tried to resolve problem by creating my own event that dispatch to listeners, and I`ve tried to add Listener to main app. Just in case it will such:
1. You create event: LoginCorrectEvent.
2. dispacth it.
3. main app listen to LoginCorrectEvent and make something.
You can check code in this topic http://forums.adobe.com/thread/700947?tstart=0
But I have problem that I haven`t instance to listen to, but you will have I suppose, so you can make event driven communication. Something like this:
var loginComp:LoginComponent = new LoginComponent();
loginComp.addEventListener(LoginCorrectEvent.LOGIN_CORRECT_EVENT, loginCorrectHandler);
it will be in you main app, and there you should define loginCorrectHandler - it will handle event.

Similar Messages

  • How can I create the component like ComboBox in flashlite2.0 ?

    How can I create the component like ComboBox in flashlite2.0
    I'm a new man, please gave me an example!
    Thanks.

    I don't see anything special about the play button in MPMoviePlayerController....
    the "glowing" effect icons are all standard UIBarButtonItem objects:
    http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIBarBut tonItem_Class/Reference/Reference.html

  • I have a component like the following and it completely crashes the design view in flex builder

    I have a component like the following and it completely crashes the design view in flex builder.I can see anything in the layout. Everything compliles fine and looks normal in the outline view. Any ideas whats wrong. If I remove the AdvancedDataGridColumnGroup's all looks fine
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Panel x="353" y="34" width="1159" height="505.7" maxWidth="663" allowDrag="true" allowResize="true" allowClose="true" allowMaximize="true" allowMinimize="true" resizeEffect="Resize" moveEffect="Move" close="parent.removeChild(this)" maxHeight="680" layout="absolute" title="Back office list" xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:AdvancedDataGrid id="deals" displayItemsExpanded="true" dataProvider="{tradesResult}" width="100%" height="373" sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
            <mx:columns>
                <mx:AdvancedDataGridColumn width="75">
                </mx:AdvancedDataGridColumn>
                <mx:AdvancedDataGridColumnGroup headerText="Client side">
                    <mx:AdvancedDataGridColumn dataField="Reference" headerText="Mon Ref" width="60" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="clientside" headerText="MC Pr" textAlign="center" wordWrap="true" width="70">
                    </mx:AdvancedDataGridColumn>
                </mx:AdvancedDataGridColumnGroup>
                <mx:AdvancedDataGridColumnGroup headerText="Bank side">
                    <mx:AdvancedDataGridColumn dataField="bankDealRef" headerText="Bank Ref" width="70" editable="true" wordWrap="true" dataTipFunction="dataTipFuncNotes" showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="Premium2" headerText="Bank Pr" width="55" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                </mx:AdvancedDataGridColumnGroup>
            </mx:columns>
        </mx:AdvancedDataGrid>
    </mx:Panel>

    Nikos,
    When using grouped columns you should change the <mx:columns> to <mx:groupedColumns>, I ran this example in a sandbox app and it works fine.
    EXAMPLE:
    <mx:AdvancedDataGrid id="deals" displayItemsExpanded="true" dataProvider="{flatData}" width="100%" height="373"
            sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
           <mx:groupedColumns>
                <mx:AdvancedDataGridColumn width="75">
                </mx:AdvancedDataGridColumn>
                <mx:AdvancedDataGridColumnGroup headerText="Client side">
                    <mx:AdvancedDataGridColumn dataField="customer" headerText="Mon Ref" width="60" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="product" headerText="MC Pr" textAlign="center" wordWrap="true" width="70">
                    </mx:AdvancedDataGridColumn>
                </mx:AdvancedDataGridColumnGroup>
                <mx:AdvancedDataGridColumnGroup headerText="Bank side">
                    <mx:AdvancedDataGridColumn dataField="revenue" headerText="Bank Ref" width="70" editable="true" wordWrap="true"
                        showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="cost" headerText="Bank Pr" width="55" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                </mx:AdvancedDataGridColumnGroup>
            </mx:groupedColumns>
        </mx:AdvancedDataGrid>
    HTH,
    Kenny Yates

  • Hi there, I moved to a new country (Luxembourg ), my previous card is not working anymore, I am trying to change country and region but it looks like the option is not available, could you support on the issue please ? Thx ahead, Corneliu

    Hi there, I moved to a new country (Luxembourg ), my previous card is not working anymore, I am trying to change country and region but it looks like the option is not available, could you support on the issue please ? Thx ahead, Corneliu

    CHANGING APPLE ID/EDIT ACCOUNT INFORMATION/CHANGE ITUNES COUNTRY
    Tap Settings / iTunes & App Stores, then tap the Apple ID signed in. Sign out of the current Apple ID account and then sign in with another account or create a new Apple ID http://support.apple.com/kb/HT2731?viewlocale=en_US
    Go to settings/facetime and tap the ID there and log out and log in with new ID.
    Go to settings/messages and turn off imessages wait 30 seconds and turn it back on, go to “receive messages  at” tap on the ID there, sign out and sign in with new ID.
    Go to settings/icloud and delete the account and when prompted select “keep information on your device” then turn it back on with the new ID.
    To edit account information tap Settings / iTunes & App Stores / Apple ID: / View Apple ID
    To change your iTunes Store country, sign in to the account for the iTunes Store region you would like to use, tap Settings/iTunes & App Store/Apple ID/View Apple ID/Country/Region
    Read this article for information http://support.apple.com/kb/HT1311

  • Create custom declarative component like container

    Hi all,
    I'm using Jdev 12c.
    I wanna create a custom declarative component like this:
    container.jsf :
    <af:panelGroupLayout id="#{attrs.Name}_VIEWPORT" layout="scroll" binding="#{attrs.Binding}"
                             inlineStyle="position:absolute;width:#{attrs.ViewportWidth}px;height:#{attrs.ViewportHeight}px;top:#{attrs.ViewportY}px;left:#{attrs.ViewportX}px;border:1px solid;background:#c6c6ff;z-index:#{attrs.ZIndex};">
            <af:panelGroupLayout id="#{attrs.Name}" layout="scroll"
                                 inlineStyle="position:absolute;width:#{attrs.Width}px;height:#{attrs.Height}px;">
            </af:panelGroupLayout>
        </af:panelGroupLayout>
    <af:xmlContent>
            <afc:component>
                <afc:description/>
    </af:xmlContent>
    I use this custom component to group some child components like this:
    <abc:container ...>
         <af:inputText ... />
         <af:inputText ... />
    </abc:container>
    But the things is in Java code, I cannot get RichInputText components :
    this is my function:
        private void getFacetAndChild(UIComponent parent) {
            Iterator childrens = parent.getFacetsAndChildren();
            while (childrens.hasNext()) {
                UIComponent child = (UIComponent)childrens.next();
                System.out.println("Log child >> " + child);
                getFacetAndChild(child);
    this function only print the second RichPanelGroupLayout.
    Any ideas to help me to get all RichInputText ?
    Thanks and Best Regards!

    Hi All,
    I found the solution. Just add one facet to Custom Container
    <af:panelGroupLayout id="#{attrs.Name}_VIEWPORT" layout="scroll" binding="#{attrs.Binding}" 
                             inlineStyle="position:absolute;width:#{attrs.ViewportWidth}px;height:#{attrs.ViewportHeight}px;top:#{attrs.ViewportY}px;left:#{attrs.ViewportX}px;border:1px solid;background:#c6c6ff;z-index:#{attrs.ZIndex};"> 
            <af:panelGroupLayout id="#{attrs.Name}" layout="scroll" 
                                 inlineStyle="position:absolute;width:#{attrs.Width}px;height:#{attrs.Height}px;"> 
                           <af:facetRef facetName="child"/>
            </af:panelGroupLayout> 
        </af:panelGroupLayout> 
    <af:xmlContent> 
            <afc:component> 
                <afc:description/> 
    </af:xmlContent> 
    And the used page:
    <abc:container ...>
         <f:facet name="child">
              <af:inputText ... />
              <af:inputText ... />
         </f:facet>
    </abc:container>
    Maybe this solution will help others to create a custom container
    Thanks and Best Regards!

  • Is there any component like the "Enhanced Gird View" of XMLSPY?

    Hi!
    I want to cusomize a XML editor.
    I am looking for any Java based component like the "Enhanced Gird View" of XMLSPY.
    http://www.xmlspy.com/features_views.html
    If you know any component like it, please tell me.
    Thank you!

    JTable?
    [http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]

  • A component like this ?

    I want to use a flex  component like that used in this web site
    http://www.ilsole24ore.com/
    On the center on site you can see a javascript script to select one news to another...it's similar to "the cover flow"...
    Where can i found a component like this?
    sorry for my bad english

    Just write own component - something like this is very easy and fast to done.

  • How can I display data from ResultSet to a component like jLable and JTable

    hi there
    My code as shown below
    boolean fillTable(int type){
            try{
                //model.setRowCount(0);
                if(type == 1){
                    System.out.println("line 1");
                    model = new DefaultTableModel(new Object [][] {   },
                            new String[] { "\u1200 Code", "Description" });
                    System.out.println("line 2");
                    while(lookup.rs2.next()){
                        System.out.println("line in while");
                        model.addRow(new String[] { lookup.rs2.getString("code"),
                            "\u1201 " + lookup.rs2.getString("amdescription")});
                          //System.out.println("While : " + lookup.rs2.getString("code") + " " +
                            //      lookup.rs2.getString("amdescription"));
                    lookup.rs2.last();
                    String str;
                    str =  new String (lookup.rs2.getString("amdescription"));
                    jLabel2.setText(str);
                    System.out.println("line 3");
                    tblLookup.setModel(model);
                    System.out.println("line 4");
                else if(type == 2){
                    System.out.println("line else if 1");
            }catch(Exception ex)    {
                System.out.println("Exception @ MilLookupDisplay fillTable : " + ex.getMessage());
                return false;
            return true;
        }I can read from access db and put the resultset on rs2 , it works fine
    my problem is when I try to display the data ( which is amharic unicode character ) on jTable and jLabel as shown it displays '???'
    besides I have checked the font by giving unicode like '\u1200' on both component displays it well
    so is there something to do before trying to display unicode characters from resultSet
    please I ' m waiting
    thanks a lot

    http://forum.java.sun.com/thread.jspa?threadID=5153938

  • OA Query Region: How to remove "like" clause in background query

    I have an <oa:query/> region that has an id field as a parameter.
    The problem is if I enter "534" it will run a query with a where clause of "COLUMN like '534%' ", which is not what I want.
    I want it to search for an exact match and not a partial match. Is there a way to do this using the standard attributes (without having to build the where clause manually)?
    TIA,
    -C

    Hi,
    You can specify the Data type of the field as Number..then the Query region will use '=' instead of 'LIKE'.
    Arun

  • How to insert a component (like button, textfield) onto a panel ?

    i have a toolbar where i have used image icons for various controls...now, on click of a particular icon, i want to display the corresponding component...for eg, if i click a buttonimageicon, i want to display Button component on the panel...what should my actionperformed method look like? kindly help me....

    panel.add(new JButton("test"));

  • Dynamic Regions w/Train Component

    I'm working on a web app (JDeveloper 11g) where one page has a dynamic reqion with a task flow associated with it that sets the fragment for the view. Most of the fragments for this region use a page template with a train component. Navigation using the train component mostly works fine- the fragment is replaced by a new fragment each time a train link is clicked.
    However, one fragment contains another dynamic region. I tried to set the scope of the bean managing this region to viewScope, but I get a popup message in the browser "viewScope.myManagedClass.dynamicTaskFlowId" is invalid" when I click the train component link for the fragment. I get a similar error if I set the scope of the bean to session or pageFlow. Only when I set the scope to backingBean or None do I avoid the error message.
    But then another problem occurs. One of the fragments in the flow for the inner region has a panelAccordion with several showDetailItems consisting of selectManyCheckboxes. The panelAccordion doesn't list anything, and locks up if I try to open or close any showDetailItem. This behavior is similar to when the scope for the bean managing the flow is not set to viewScope or higher.
    In stepping through the code, I noticed that the outer region's flow code runs after the inner region's trigger event code that sets the inner region's taskFlowId, but before the inner region's flow code, so the inner region's taskFlowId setting is lost. I tried throwing the setting into session context and retrieving it, and that almost works. If I actually select any of the selectManyCheckboxes, they are lost once I move to a different fragment in the inner region.
    Does anybody have any ideas on how to I get this page working, alternatives to the approach I'm taking, settings I should check, and/or any reference material I could consult?
    Thanks in advance!
    Edited by: tmurphy on Jul 6, 2010 3:30 PM

    Hi,
    However, one fragment contains another dynamic region. I tried to set the scope of the bean managing this region to viewScope, but I get a popup message in the browser "viewScope.myManagedClass.dynamicTaskFlowId" is invalid" when I click the train component link for the fragment.
    Is the managed bean defined in the metadata definition of the bounded taskflow that you load ? Note that bounded task flows are only initializing their managed beans when they are loaded. If you define the managed bean in the parent bounded task flow then the viewScope also is the one of the parent flow. Appears as if this is the problem you describe
    Frank

  • Setting default parsys component and packaging them

    Hi,
    Is anyone familiar with how to enable default components to appear in a certain parsys?
    Usually what I would do is manually go into Design Mode, find that certain parsys that I want to edit, click on the Edit, and locate the component under the "Allowed Components" list and check the box corresponding to enabling that component. I found out that when a component is checked to appear in that certain parsys, it will also automatically create a node (eg. mynode) at "/etc/design/default/jcr:content/mynode". And within this node, there will be a property called "components" that will determine what component will appear in this parsys. So I am assuming that this is the way to enable components in the parsys through the codes (without having to manually enable them at that webpage).
    After which, I will package all the contents of "/etc/design/default/jcr:content/mynode" and proceed to deploy it in my client's server. The problem now is, the contents once installed (in client's server), is deleted once again. I suspect it has something to do with it being under jcr:content. Is my assumption right? And how do I solve this? And if I package "/etc/design/default" and deploy it, it seems to work fine. I cannot deploy the whole default folder though. This is because, I cannot confirm if there are other projects that adds their "default components" under that folder. By putting only my "/etc/design/default", there might be a possibility of removing my client's other project's default components.
    To summarise, what I want is to package the contents of "/etc/design/default/jcr:content/mynode" and place it in my client's server, and make sure that it is not deleted (Assuming editing the contents of "/etc/design/default/jcr:content/mynode" is the way to create default parsys components).
    Any detailed help will be appreciated! Thanks!

    How do I create a site page from "http://localhost:4502/miscadmin#/etc/designs"? I am a little confused over here.
    When I refer to the geometrixx site example, I can see that the "components" property inside "/etc/designs/geometrixx/jcr:content/examplepage/parsys" has my enabled component's path in it. But when I duplicate the exact same structure into "/etc/designs/myproject/jcr:content/myprojectpage/myparsys" in its components property, the component that I want to enable doesn't show up. Even when I created a new page, it doesn't show up. But when it is created in "/etc/designs/default/jcr:content/myprojectpage/myparsys", it works.
    So as you can see, somehow my projects are directing the path to "/etc/designs/default", instead of "/etc/designs/myproject". How do I change the direction path? There seems to be no place to configure this.

  • Create region as shared component in Application

    Hello everyone,
    I am basically trying to find out if I can have a common search table that can be used in different pages of the same application. To give an example, the application has a basic search and an advanced search. So I would like the search criteria region to be different but the search results region should look similar.
    So is there a way to create a Search Result region and share it across these pages. This was we only have to modify the common region everytime and the change would get reflected everywhere.
    Please let me know.
    Thanks!
    Ramya

    Thanks Tony, that did help get the results region ONLY on the pages that I wanted.
    Now the issue am facing is the search items are retained when I move from page to page. When I do a Simple Search on a term and move to the Advanced Search, the search item from Simple Search page is carried into the next page. How do I clear the page cache everytime the page loads or clear the Search item's cache.
    I tried to Change the Source used values on the Search item but that doesnt seem to help.
    I am sorry about the barrage of questions but I am a newbie to APEX.
    Thanks!
    Ramya

  • Tree Component like Bridge Keywords panel

    I'm looking to use a non-standard component in a UI I'm building, and I'm looking for input/ideas.
    If you are familiar with Bridge, there is a panel in the app called "Keywords". I'm looking to create a tree which looks like that.
    I have not found a pre-made component which matches that look.
    I can use a tree with an ItemRenderer to create the checkboxes pretty easily, so that part of it is not a big deal. The only issue which concerns me there, is having the checked state of children bubble up to affect their ancestors. (I'd like to use a tri-state checkbox to indicate partial selections...)
    I'm more concerned by properly styling the nodes as opposed to the leaves. (I'd like the nodes to be distinct when compared to the leaves - like in the Keywords panel. I tried using the alternatingItemColors property, but that's pretty much a dead-end because it doesn't differentiate between leaves and nodes.
    Any ideas other than doing a major rewrite of Tree?
    Harbs

    Curt Y wrote:
    Just to restate the problem:  when looking at the folder  the keywords and star ratings show, but the filter does not indicate they are there?
    In the filter settings you have keywords and star ratings checked?
    The images have a *** rating that shows under the images (I added no keywords) but there is no "Ratings" item in the panel to select (unless I add those other images to the folder). In addition, the other items (such as "Orientation" and ISO Speed Ratings") are not in the panel either. That information is part of the image files so it should always appear.
    I just opened Bridge again and now there are 4 items in the "Filter" panel (before there was only 2).
    Here are the "Filter" panel item selections:
    All those items should appear in the "Filter" panel but for the folder with these files, they do not (unless other files are mixed in with them).

  • Region in declarative component

    Hello there,
    do I suppose correctly that declarative component cannot contain region? I mean in its declaration not in its facet.
    Thanks
    Qjeta

    Hi,
    they can have af:region areas defined, but they can't have task flows in the regions because declarative components don't allow you to define ADF bindings. So if yur question is just about the af:region tag, then yes you should be able to use it
    Frank

Maybe you are looking for

  • Adobe Display issue

    My Citibank Staement which I always display each month using Adobe will not display..Please help

  • Error when trying to use Media Manager in Desktop V4.3

    Whenever I try to use desktop manager v4.2, and now 4.3, with my Windows Vista laptop, I get "The certificate file is missing or has been corrupted.  Please re-install it."  What do I need to do to fix it?

  • Compressor crashing on startup.

    hey everyone. am using Final cut studio 2 and seem to be getting a few issues getting compressor to work. It just fails to launch and gives the following error report; Process: Compressor [5962] Path: /Applications/Compressor.app/Contents/MacOS/Compr

  • USB Edgeport

    Anyone here have a working Digi USB Edgeport running on solaris 10 X86 ? I have it configured, the device nodes were automatically created and it shows as connected, configured and running ... usb2/3 connected configured ok Mfg: Inside Out Networks P

  • Problems loading office 2011 on a Pro

    I have verified that the disk is ok with another Pro.  This Macbook Pro was used and still has some indication of software left after I reloaded the OS. Is it possible that somethng is preventing the loading that I can check.  FWIW I can download mus