bean, containing the business logic and user interface components

Hello experts design ADF, please guide me.   I came across a critical design aspects.  I have the homepage with a lot of UI, region 1, region 2 components. I bind the components of the user interface of the page at a session scope managed bean and is the reason why, when control passes to the region 1 or region 2, I'm going to do a lot of processing logic and then on that basis, I have to update the page user interface components.   Same thing with region 2 also.  And then I should be able to access the information in all regions and also through other components of interface user etc.

I see only the scope session bean can help me here to get my tasks in all regions and in all the other components of the interface user to the page because I'm not able to spend too many parameters in all regions.     Now the problem is, I can't serialize this bean because as I've mentioned a lot of user interface components are updated based on logic.

If I do not serialize the bean, I might have a problem in the future when the application must be deployed to the cluster envt.

I don't know how can I go with my design now.   Please give me ideas, brilliant and very grateful for your advice.

Thank you

Hello

I did not follow the entire thread, but this last message, I can tell that you are not using ADF how it should be used. So let me address two issues

1. I use data controls generated on methods of bean managed my areas (workflow).

If you create a POJO data control that you configured as controlled beans then this will be two instances (separated) from the same Java class. This means that they do not share anything. The only option to share state between a managed bean and a data control is if you would have the data dynamically control bean up the bean managed using the language of Expression of the 8which then however creates a dependency between the DC and the bean - however, there are use cases like that)

2 activation / deactivation of the buttons in the parent view of a region

This can be done using bean-injection, which is a bean managed in extended view defined on the parent view that you pass as parameter for the workflow. See: http://www.oracle.com/technetwork/issue-archive/2013/13-may/o33adf-1920483.html

As said, I haven't read the entire thread, but want to point out that there is enough information in writing (product documentation) and video (Insider ADF - who teach the development of SFM practices http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html take the time to review this)

Frank

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] Scope of session bean: it can contain attributes related to the Value property of user interface components?

    Hallo,

    I have a defined session bean in which I put a string attribute that is bound to the Value property of an InputText in my testPage.

    public class SessionClass {
    
      private String text;
    
      public void setText(String text) {
        this.text = text;
      }
    
      public String getText() {
        return text;
      }
    }
    

    When I run the testPage, it is not displayed.

    Perhaps this kind of linking is not possible?

    Thank you

    Federico

    Never use prefix in scope to the standard servlet scopes (request, session, application)

    So it would be: #{sessionClass.text}

    Dario

  • Interact with the user interface components

    I'm trying to find a GOOD way to interact with the external classes user interface components. For example, that you have a 'controller' class that needs to access the view of the user interface in some way (define a label text or something else). The controller class does not do anything, it discusses only the logic of what should be the case. Currently, it is created by my top-level class when the program starts. He listens to some events occur and needs to update/interact with the user interface or the State of the application depending on what events are. I do not seem to be a way for this controller class to easily access the UI component that I need to get my hands on.

    I'm trying to do to reduce the size of a file of mxml WindowedApplication growing (LOOK cool but that is not important) and take part of the logic of the application of this file.

    It's complicated by the fact that the label is in a State that does not have the status of 'base' (so it is not a child, or even a subsidiary child of the main class at boot time) and by the fact that it is not yet near a high school component. (If that were the case, I could probably just pass the label object in the constructor for the outdoor classroom.)

    In other words, I can't just call getChild ("labelName") on my 'main' request object because it is buried nested inside OTHER components. I don't think I like the idea to browse all components and sous-composants recursively looking for the component that my outer class trying to ask. I thought about other ideas, but I don't like any of them enough to try them, eh.

    I'm at the point now about where I come to the conclusion that my fundamental design strategy is wrong, or Flex just not allowing complex applications where the GUI components can interact with external classes relatively pain-free. I'm not convinced that "Flex cannot do', I'm looking for advice on some great Flex application in all design patterns.

    Where do you put this kind of control logic, and what happens when it starts to overflow and become so large that you need to break in other files?

    Found a solution, I think that's what I've been looking for:

    http://labs.Adobe.com/wiki/index.php/Cairngorm

  • Whenever I update "send/receive" a message asking me to write the network password and user name.

    I am connected to wifi in the hotel (Orange) and I can't SEND email, I just have to receive them.

    Whenever I update "send/receive" a message asking me to write the network password and user name. This from my mail server (not orange because that one is ok I have access to the internet).

    Most of the suppliers do not let you send if you are not connected through them, or they have special settings.  So for now, see if you can access your e-mail via webmail and use this interface and in the future, contact your ISP and ask them if there is a way to send emails when you are connected through a different network.

    Steve

  • Assist in the design of a user interface

    Good, everyone; I read the tutorial to develop User Interfaces, but I still have problems with ISU user interface design more advanced (such as buttons with images). I want to develop for more than a simple OS 5.0 devices, so I don't want to use the new utilities. Can someone give me some links to tutorials or examples with more advanced user interfaces?

    How - to implement advanced buttons, fields and managers
    Article number: DB-00796
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • Confused about the bar mentioned in user interface designs

    I was reviewing the instructions for user interface design, and he mentions a menu bar:

    "Use a menu bar to move user interface components off the screen.
    The application menu can include primary or secondary
    The menu when you drag from the top of the screen.

    The menu bar is built in? Or it simply means, I can create an and show it when the 'swipe_start' event fires?

    What does primary and secondary? This means main and submenus?

    If there is a menu built in, how I add to it? If I created one, what would be the best approach to design? I saw a QNX class for menus. How the menu disappear? Would it not as simple as when something is clicked?

    If the best way to get the menu bar to slide downwards to activate it? It is implying that the menu bar is the Menu bar main application and dialog boxes in the frame actions app to be managed by popups, buttons etc and do not use a menu bar always visible because it uses valuable screen realestate.

    I understand that these are guidelines, there are always exceptions to the rule. I just want an idea on best practices.

    Keith

    Hey kmitchell,.

    You basically answered most of your questions, but not confirm them

    The menu bar from what I've seen so far in the docs is not built in, and you will need to create one on your own by using the SWIPE_START event. Primary and secondary actually seems to be what you call main and submenus. What I thought of him, it was maybe a menu that looks the same every time by sweeping u down and has basic functions or if something happens in the application and slide you down the menu reflects the events of what is happening. in regards to how it should look like, there is a video of a demo that was presented at the adobe max Conference where he shows a demo of the camera app to help slip it in the menu dropdown. Here is the link. go to the last 13:45 video to see the demo:

    http://2010.Max.Adobe.com/online/2010/MAX260_1288217641375UQJD

    the menu design would be that it would disappear as soon as you click an option. its really what you want it to be. I don't think that there is no specificity.

    and Internet broadcasting its been said that they do not like to see sort of a title from the menu bar. now, I agree and disagree with this statement, but maybe im just not used to slide down menu type event. so ill see where this goes.

    also, here is a code harrydodgson and I worked on regarding the menu and the SWIPE_START event:

    SwipeDownTest.as (main Application file)

    package
    {
        import caurina.transitions.Tweener;
    
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.ui.Mouse;
    
        import qnx.events.QNXApplicationEvent;
        import qnx.system.QNXApplication;
    
        // The following metadata specifies the size and properties of the canvas that
        // this application should occupy on the BlackBerry PlayBook screen.
        [SWF(width="1024", height="600", backgroundColor="#F4F4F4", frameRate="30")]
        public class SwipeDownTest extends Sprite
        {
            private var ui:UI;
            private var swiping:Boolean;
    
            public function SwipeDownTest()
            {
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                ui = new UI();
    
                addChild(ui);
    
                QNXApplication.qnxApplication.addEventListener(QNXApplicationEvent.SWIPE_START, onSwipeStart);
            }
    
            private function onSwipeStart( e:QNXApplicationEvent ):void
            {
                swiping = true;
                addEventListener( Event.ENTER_FRAME, trackMouse );
                stage.addEventListener( MouseEvent.MOUSE_UP, mouseUp );
            }
    
            private function trackMouse( e:Event ):void
            {
                var pos:int = stage.mouseY;
    
                if (pos > 123) pos = 123;
                if (pos < 0) pos = 0;
    
                ui.y = pos;
            }
    
            private function mouseUp( e:MouseEvent ):void
            {
                if (!swiping)
                {
                    Tweener.addTween(ui, {y: 0, time: .3, transition: "linear"});
                }
    
                removeEventListener( Event.ENTER_FRAME, trackMouse );
     
                swiping = !swiping;
            }
        }
    }
    

    UI.as (File menu)

    package
    {
        import flash.display.Shape;
        import flash.display.Sprite;
    
        public class UI extends Sprite
        {
            private var sectionOne:Shape;
            private var sectionTwo:Shape;
    
            public function UI()
            {
                //set it up with two sections
    
                sectionOne = new Shape();
                sectionOne.graphics.beginFill(0x333333, 1);
                sectionOne.graphics.drawRect(0,-123,1024,123);
                sectionOne.graphics.endFill();
    
                sectionTwo = new Shape();
                sectionTwo.graphics.beginFill(0x666666, 1);
                sectionTwo.graphics.drawRect(0,0,1024,600);
                sectionTwo.graphics.endFill();
    
                addChild(sectionOne);
                addChild(sectionTwo);
    
            }
        }
    }
    

    hope that answered most of your questions. Good luck!

  • How can I get rid of the box containing the toolbar bookmarks, and unsorted bookmarks on the left side of my screen menue. It takes about one-fifth of my screen I want not gone...

    How can I get rid of the box containing the toolbar bookmarks, and unsorted bookmarks on the left side of my screen menue. It takes about one-fifth of my screen I want not gone...

    You can disable the bookmarks bar via view > sidebar > Favorites (Ctrl + B)

    Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.

  • My Iwatch is synchronized with an Iphone which contained the water damage, and I had to replace my phone. Can I recover my photos of my Iwatch?

    My Iwatch is synchronized with an Iphone which contained the water damage, and I had to replace my phone. Can I recover my photos of my Iwatch?

    Hello

    No - you can't retrieve pictures directly from your watch. However, you can add your replacement iPhone.

    Apple Watch stores the photos in an album photo sync on your iPhone. By default, it's on your album of Favorites (the photos that you have marked as Favorites). The photos may not be synchronized / extra back to your new iPhone to your watch - synchronization only works on the other hand.

    To keep the same pictures on your watch once it is paired with your replacement iPhone, you must add these same photos to the iPhone. You may be able to do this by restoring a recent backup of your iPhone:

    - Restore your device from an iCloud or iTunes backup - Apple Support

    Once the pictures are on your iPhone, select the album to synchronize with your watch:

    -On your iPhone, in the application of Eve, go to: My Watch (low left tab) > Photos > synced Album > selects an album > allow them to synchronize after changing the albums.

  • Error message: this action cannot be completed because the other program is busy. Choose ' switch to ' to activate the busy program and correct the problem

    Original title: server busy

    I get a popup server busy with the message: "this action cannot be completed because the other program is busy.  ' Choose ' switch to ' to activate the busy program and correct the problem.  There are two buttons"'Switch To' and 'Retry '.  Neither fixes the problem and I do not understand what they are talking about.

    Hi adarb,

    1. when exactly you get this message?

    2. what applications do you use when you get this message?

    Method 1:

    You can restart the computer and check if it helps.

    Method 2:

    You try to perform a clean boot. A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    http://support.Microsoft.com/kb/310353

    If your problem is resolved after the clean boot, and then follow the steps mentioned in the article above to refine the exact source.

    After you have used the boot is a way to solve your problem, you can follow the steps to configure Windows XP to start normally.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to install jars containing the code storeproc and resultprocessor

    How to install jar files containing the code storeproc and resultprocessor? I tried to use sys SQLJ features to install, replace, remove the pots. It works very well for the stored procedure, but every time I try to use CALL... WITH RESULT PROCESSOR MYResultProcessorClass ON ALL, he gives classnotfound ex for MYResultProcessorClass.

    Any suggestion?

    Is MYResultProcessorClass one alias class processor or the processor itself?

    If it is an alias, then tell how you create the alias.

    If it's a class itself then it should be described as full. Please check if the name of the package in the pot is the class in the extension of the appeal.

    We would advice to use an alias here btw.

    For example:

    ' CREATE the ALIAS MYResultProcessor TO ' '.
    + MYResultProcessorClass.class.getName () + "'"); Note the single quotes around the name of the actual class.

    and then you can use:

    'CALL the MergeSort() '.
    + "WITH RESULT PROCESSOR MYResultProcessor.
    + "ONE TABLE .

    (If you specify the table that it is else remove the part on TABLE)

    Thank you

    Neeraj

  • How can I add a game action on an object that contains the first click and read reversed to this object even a second click action?

    How can I add a game action on an object that contains the first click and read reversed to this object even a second click action?

    First create a symbol of the object.

    Then add the code in the event click on this symbol as below:

    Insert the code for the mouse, click here

    var bReverse = (sym.getVariable ("reverseDir")! = undefined)? (sym.getVariable ("reverseDir")): true;

    sym.setVariable ("reverseDir", bReverse)

    {if (bReverse)}

    sym.playReverse ();

    }

    else {}

    SYM. Play();

    }

    HTH,

    Vivekuma

  • Where is the best place to implement the business logic in application of the ADF?

    I use jdeveloper 11g R2, JSF, Facelet

    Where is the best place to implement the business logic in application of the ADF?
    I mean something like the service layer in the spring

    Appreciate your comments

    Concerning
    Mohsen

    your application module...

  • [ADF, JDev12.1.3] How to add user interface components in a page before you display it or hide it?

    Hallo,

    I started to raise this issue with the rohanwalia type () in this thread Re: Re: [ADF, JDev 12.1.3] how to hide menu items based on the logged-on user but maybe it's better to make the question in a separate thread.

    I have a page home.jspx with some user interface components (menus bars, text entry, buttons,...).

    Unbounded workflow

    loginPage.jspx - loginSuccess-> home.jspx

    Based on the logged in user, I programmatically to hide (for example some buttons and menu items) or to add UI components on the page home.jspx.

    Thus, in the managed bean (request scope, right?), associated with the page I want to write a method that before appear the home.jspx makes the task above.

    {initPage()}

    Here, I call an AM method for each component that says that if

    -According to the user - it should be visible or not.

    This information is stored in a Boolean vars, one for each component.

    IT1.setVisible (it1visible);

    IT2.setVisible (it2visible);

    B1.setVisible (b1visible);

    ...

    }

    How can I do to make this method runs automatically when the page is rendered?

    Thank you

    Federico

    Hi Federico

    you use links to visible false, but before pageload links are not accessible at the bean so when you call after the page load button works but before pageLoad, it won't

    so rather than use binding use variables of bean to the value true or false and provide references to the visible property of inputField

    Suppose that to create a Boolean variable and getter setter now is the button click set a value false

    Thank you

  • Panel/container for the user interface components?

    Forgive my ignorance, I'm sure this is a stupid question with a simple answer, but I am new to both Adobe dev and QNX.

    Is there anything for an Air application on the Playbook that acts as a container for the elements of user interface - similar to, say, the StackPanel in Silverlight? My preliminary research on Actionscript itself says not, but so far, the QNX components have been the saving grace of this platform, so I hope that there is a component of QNX UI that I don't know

    Thank you.

    Hey deeko,.

    Yes, there is a class called (ironically) container that can help you with what you want. Here is the Doc of the API and information with examples for this:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/UI/core/container.html

    im going to assume that you have not yet watched on the COMPRESSED AIR SDK library yet, so here is the link in case you were curious about other things you need in the future:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/index.html

    hope that helps. Good luck!

  • How to expose the user interface components in a managed bean?

    Hi all
    I created a jsf page without exposing user interface in controlled beans components.
    And the page is created successfully.
    But now I want to expose components from user interface again controlled beans
    How to do this?
    Help, please

    Select your device in the main menu Jdeveloper, in the property Inspector find Binding property--> click on edit to bind this component to a property of the managed bean.

Maybe you are looking for

  • iCloud drive has a power symbol in it

    The drive icon iCloud in the finder on my iMac has a electric (lightning) enter the symbol in this document, why?

  • Answering how Sort Contacts by company name.

    I just got my first s iPhone + and disappointed there is no categories to separate business from all contacts. If there is pls do let me know. So that's how I fixed it. He is still in all Contacts, but in respect of the company. Make sure that in you

  • Stuck Xcode installation on a 13 "macbook pro

    so I tried to download xcode from the Appstore and I download while downloading OSX El Capitan and so xcode was suspended to restart the computer, and when he did I tried to resume he didn't tried to remove of the application in the finder folder, bu

  • How to block email SPAM?

    I want to block my email spam * original title - I blocked vulgar spam and it keeps back how to stop IT *.

  • Fallout 3 PROBLEM! Error message. Could not initialize the rendering engine.

    I recently bought Fallout 3 for my vista system, I haven't installed very well no problem, when I click on play in the menu, it comes up with this error message: "Failed to initialize the rendering engine.Hardware T & L required but not taken in char