Regarding the Model layer and data controls

Hello

I have a small query on the design of an application of the ADF.

Scenario:
I have a class (Model.java) in the model layer queries who manages all databases and the calculation of the other partners.
I have a class (BackingBean.java) in the view events related to the layer of controller, which is a bean of support and manages all actions.

Query:
How to access the methods of Model.java of BackingBean.java for that architecture is not broken.

Proposed solution:
1. I create a data control that exposes all the methods and I give a call back bean by using the binding operation
2. I call directly the Member of the class of functions of bean support and not through data controls.

Which should be a better approach to 1 or 2 or any other suggestion.

Thank you
Rohit

Published by: rohit6699 on March 28, 2012 12:13

Data controls to "hide" the implementation of the underlying data source and also give you a way uniform (standard) access and data binding. It would be the main reason that I said "#1".

Tags: Java

Similar Questions

  • How to get feedback from users in the model layer?

    Hello

    I have a page with a table and a commandButton control. User can select several rows in the table and press the button. By pressing the button, I call a method in AppModuleImpl.java and pass the selected lines. inside the method I iterate over the selected lines and do something on each line. To do my job, I need a field, for example the date of birth field, has a value, but for certain lines of this field is empty and I want to get the value of the user. Now my question is how can I get user feedback in the model layer? (don't forget that I am inside the AppModuleImpl.java)

    Is it possible to open a dialog by program and get the value of the user if needed (i.e. If the row has the value)? If Yes, how should I do?

    JDev version: 11.1.1.4

    Thank you
    Will do

    In both cases the execution does not stop to view the context menu and the popup is displayed when the called managed bean method is completed

    Execution does not stop. That is right.

    "Modal dialog box" in terms of web simply means 'a dialogue box that blocks (more or less) user input until the dialog box is closed'. You think that a modal dialog is a dialog box that stops execution of your code until the dialog box is closed and then execution continues where you left it. There is no such thing in the web. Enforcement must continue, the demand must fill. When the user closes the dialog box, then it is a new application in.

    Thus, it is not as a modal dialog in Swing. You need to stop running yourself when you open the modal dialog box and continue your code when the next request comes, for example:
    You determine that a dialogue must be shown, you open the pop-up window and return. The listener to the dialog box, you then call a method that continues to do what you need to do according to the result of the dialog box.

    Sascha

  • relationship between the active layer and enable layer

    I use AE CC 12.2.1. I think that is not specific to the AE version but something general.

    When I read my layer by extendscript property, it shows layer.enabled = true and layer.active = false. If I change layer.enabled from false to true, the active property seems to follow the enabled property also.  I don't know the meaning of 'active', because even layer.active = false, there is no problem to manage the layer in AE.

    I would like to know something.

    1. How do the status layer.active to AE UI even I check it in the source of the script?

    2. What is the difference between layer.active = false and true?

    3. What is the relationship between the layer active and active layer?

    Thanks in advance.

    [Moved to After Effects - moderator script forum]

    In general, a layer is activated if the eyeball is on in the timeline panel. It is active if the layer is activated and that the model currently is between the points layer and output. You can control the active state. The active state is determined by the active state, in and out of the points and the current time.

    There are some exceptions (audio layers, other layers prone, etc.), but that's about all.

    Dan

  • How to read the .txt adfLib pot file to the model layer by using the relative path

    Hello

    In my application, I use the ExtendedDynamicFldTbl (extends weblogic.wtc.jatmi.DynamicFldTbl), which the manufacturer requires the field file path table as a parameter.

    In the API, it is said that this name of path can be an absolute path, a relative path to the directory where Java has started, or a relative path that can be found as a resource on the classpath.

    I have created this ExtendedDynamicFldTbl to the model layer project, placed the fild_tbl.txt in a separate package and pass the path relative to the DynamicFldTbl constructor.

    Given my code below to get the instance of ExtendedDynamicFldTbl
    package model.tuxedo;
    
    public class ExtendedFldTbl  extends DynamicFldTbl
    {
    
        private static ExtendedFldTbl extendedFldTblinstance = null;
        
        public ExtendedFldTbl(String tablePath, boolean flag)
        {
            super(tablePath, flag);
        }
        
        public static ExtendedFldTbl getInstance()
        {
            if (extendedFldTblInstance == null)
            {
                URL url = extendedFldTblInstance.class.getResource("resource/fldtbl.txt");
                if (url == null)
                {
                    throw new RuntimeException("Tuxedo Service : fldtbl.txt is not found in the path 'model.tuxedo.resource' ");
                }
                extendedFldTblInstance = new ExtendedFldTbl (url.getPath(), true);
                String[] list = extendedFldTblInstance .getFldNames();
                System.err.println("fldtbl loaded. Total FML entries loaded = " + list.length);
            }
            return extendedFldTblInstance ;
        }
    }
    I just added the output of the build of the layer model to view the project of the layer and tested. It works fine and I am able to get the ExtendedFldTbl instance with all loaded fields. But rather than add dependencies, if I create an adfLibJar for the layer model project and you add to view the project of the layer, it does not work. It is not ablt to read the file of adf lib jar file.

    Issues related to the:

    1. How can I solve this?
    2. Although I have kept the field text file table in the source of the project itself, when I read the url, it is
    "C:/Documents and Settings/raguramanv/Application Data/JDeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/SampleWtc/3gkmt9/war/WEB-INF/lib/SampleWtc_Model_adflibSampleWtc1.jar!/model/tuxedo/resource/fldtbl.txt"
    Instead of the physical directory, how can I use application in model layer context?


    Thanks in advance

    Rambeau

    Hello

    Try /adf/ or /afr/ in the URL. Then includes the ADF resource loader which is used to get the contents of a lib of the ADF. Take a look at the structure of ADF library where the file is located in. It should be in a directory with /adf in the folder structure

    Frank

  • Custom attribute in the model layer properties

    Hey all,.

    Can someone explain the flow of the program "ADF practice: using custom attribute in the model layer properties of". "" Basically, how change custom properties like "customLabel" changed the label attribute. Is there properties specific adf we can refer to properties for the attribute?

    Reference will also be useful.

    Thank you!!

    What exactly you want to know?

    It's pretty clear from what I've read:

    You can set properties that are customized for each attribute in a vo. This is done in the vo attributes dialog box where the default value.

    You can override the default values that is done in the setCustomHints() method. This method is called by the button in the user interface (actionListener = "#{bindings.setCustomHints.execute}" ")

    The inputtext is set to display the properties for the label (label = "#{bindings.") DepartmentName.hints.customLabel}') and uses the custom readOnly property (readonly = "#{bindings.") DepartmentName.hints.readonly}')

    As the inputText component is updated after the button clicked on (via a pertial in the inputText trigger), it shows the a values.

    Timo

  • HP laptop: enter the model number and get a "game too many results.

    My HP laptop dies after 6 weeks. When I contact support, he asks the model number. I enter: say "15-ay041wm" is what the box and laptop. I get a reply that says.

    "Sorry, too many results match your search for 15-1y041wm.

    "So I try HP Notebook, I get the same mesaage above, except with the HP laptop ' instead of '15-ay041wm.

    Because no matter where I'm going, he wants the model number and I give, I can't help. No cat, no nothing.

    So someone can tell me how to get support?

    If HP is unable to handle the number of model of it's own computers, so I'm not very confident.

    Here are the free support number to call in the USA/Canada... 1 800-474-6836.

    Now here's another question, you can report to HP on if you want...

    You must stay online and listen to the automated assistant trying to talk to you to talk to a representative... visit the HP website... go to this support forum (which has no official presence in HP), etc.

    After a minute or two, the Assistant to say, if you can't get online, will stay on the line to speak to a customer services representative.

    This is when you will have the opportunity to speak with a support person and report the problem to open a pension case.

  • When sending emails to the bcc and access to a group, I hit the button send and dates back to the Inbox without sending.

    When sending emails to the bcc and access to a group, I hit the button send and dates back to the Inbox without sending. I even changed users on my pc and it always does.  I closed temporarily add-ons thinking that would help, but did not seem to make a difference.  Can I have a virus?

    Hello

    • E-mail are what customer you referring?

    If you use Windows live mail, then the number you posted is related to windows live and will be much better suited in Windows live forums. Click on the link below.

    Windows Live Solution Center

    http://www.windowslivehelp.com/

  • How can I get the exact time and date on my FAX LOG

    I have a new HP Officejet 6500 has more on my Dell Inspiron Windows XP computer.  How can I get the exact time and date on my FAX log?

    Hi FrederickFrank7,

    Journal of faxes would just follow the time of your printer. Please set the time and date of your printer.

    I am an employee of HP.
    Please indicate the position that solved your problem as "acceptable Solution".

  • error reported from the transport layer and the error description was impossible to extract

    Hi, can someone please explain how to get rid of the pop-up message when the computer starts up:
    error reported from the transport layer and the error description could not be found! the message has been lost
    Windows XP Virgin internet net gear wireless. I searched on the internet - nothing except suggestions, this is the internet
    connections but is not working okay I tried microsoft fix
    Thank you john

    Hi, I just started to use the hard drive that had the problem, it's still there. The problem is with the raid card. (no problem on other drives) In system config, starting there are two enteries: SATARAIDS and silcfg. I checked the SATARAIDS, rebooted

    missing message. I deleted all the files SATARAIDS and silcfg. my computer, properties, hardware - deleted. deleted the folder in program files. did a scan to remove any files or file fragments on the raid drivers. I did not know I had lefe the cd in the drive for the raid drivers I have in yesterday. I rebooted.
    after reboot, there not says found new hardware "raid card" perhaps because the disc was in the drive and it automatticly installed drivers. FIXED
    NO MORE ANNOYING MESSAGE
  • How to display the clock (time and date) in the task bar at the bottom of the right hand of the computer

    I ask for help.

    I want to be able to display the clock (time and date) in the taskbar at the bottom right of the computer

    Hi FrankNikolich,

    Thanks for asking! I understand that you want to display the clock and date in the system tray.

    1. have there been recent changes to the system before the show?

    Follow these steps and check if that helps.

    (a) right click on the taskbar, click Properties, click Notifications.

    (b) click on the Customize tab, click on the System Turn On or OFF icons.

    (c) in the drop-down list, select Yes for the clock.

    (d) click OK.

    Answer us with the results. I'd be happy to help you further.

  • If I have 64-bit and 32-bit on the same computer, do I have access to the same programs and data?

    Currently, my system is Windows 7 64 bit with 8 GB of RAM. I know that the 32-bit version can use only 2 GB but it runs on a computer that has more, right? Assuming I'm right about that, if I install both, should I rate the same programs and data?

    You can install the two operating systems on a player, but you must create a separate partition for one of them.
    You can share data, but not the programs that each application must be installed in each version.
    That said, I see no benefit in the same version of Windows, but with different pieces of dual-boot. Why would you do?

  • Compare the current time and date with last modified?

    Compare the current time and date with last modified?

    What is the ideal way due to report at the last modified file with the date and time class? last modifed class in the file value is of type long.

    798642 wrote:
    No no no no, currentTimeMillis() only gets you the time... I need to compare the Date and time.

    You should read the docs more closely. It gives you the current time in time, which includes the date.

  • Period of time must be selected among the "window period" and "Date".

    Hello

    Creates reports. In my report, I have a requirement where in measures are calculated for the selected date range. The two parameters for the "selection of"(Date Range) period of time are: to select the 'window period' and 'Date' "»
    •Position window period is 5 days.
    •Position date should be the date of the day
    The report will display data for the last 5 days up to the current date by default.
    and the user should be able to choose the length of the latency period.

    For example, user should be able to select * 10-day window period * and then see the data from a past date 14/09/2009. The system should then display data from 05/09/2009 to 14/09/2009.

    Please let me know how this can be achieved. Any help would be appreciated

    Thank you
    Leela

    Depends on your date format of calendar quick dashboard.

    Try this:

    FILECONTROLDATA. FIDA_RECEIVEDDATE
    between
    EVALUATE ('TO_DATE(%1, %2)-%3 'as date', @{date} ', 'yyyy-mm-dd hh24:mi:ss', @{WindowLength})
    and
    * EVALUATE ('TO_DATE (%1, %2)' as date, ' @{date} ', "yyyy-mm-dd hh24:mi:ss") *.

    And to see Understanding whose code is gererated in NQQuery.log, I assume you are using the Oracle database.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • Anyone can throw some light on dependencies on the view and the model layer?

    Hello...


    My view controller layer has mapped to the layer of dependency model.

    It will lead to a cyclic dependency so i map viewcontroller to the model dependencies?

    It depends on where you call the method. If you call it directly from the workflow that you can right click on the method, select 'Edit link' and you get a dialog box where you see the binding of the method. In the lower part, you see the input parameters to your methos. You set the setting on "#{securityCcontext.UserName}".
    If you call the method from within a bean via an operation binding you use code like

            OperationBinding binding = bindingContainer.getOperationBinding("doSomething");
            binding.getParamsMap().put("param1", "hello");
            binding.execute();
    

    Don't forget to check for errors after calling the method.

    Timo

  • Configure the VLAN voice and data in CISCO SF 300 8 P

    I have a couple of Cisco SF 300 8 P and P 24 switches. I have voice and data VLANS configured as:

    Data VLAN: default 145.17.59.0/24

    Voice VLANS: VLAN 20 172.22.20.0/24

    I have different DHCP servers regarding the data VLAN, we have a physical server that is configured for 145.17.59 * extended IP and Voice VLAN DHCP Server is configured as a router gateway with option 150.

    This configuration works very well with other cisco 2960 switches and 3750 etc. except CISCO SF 300 8 P and 24 p. I tried to set up the voice and data VLAN in these CISCO switches so that phone CISCO (model 6941) should get IP of the VLAN voice and PC should get the IP address of the DHCP server on the data VLAN. I tried several techniques such as LLDP, Port-to-VLAN Config etc.

    Can anyone please guide me / help on this.

    Kind regards
    A K.M.Sayeed

    Hi A.K.M., with Cisco phones you should be able to define simply automatic voice VLAN to be VLAN20.

    ID of the vlan 20 voices

    You must ensure CDP or LLDP is enabled as well. I would check in the web GUI. DHCP for phones can come from a DHCP server on a port access VLAN20 switch, or you can use dhcp for assistance to redirect DHCP server elsewhere.

    If you prefer or you have problems with the CDP or LLDP, you can also program the ports as trunks and add the tag VLAN 20 for them.  In this scenario, you need to ensure inter - vlan routing works and phones that download the file config with corrrect VLAN config.

    These switches do not run ios, so they are similar, but different from the catalyst switches that you mentioned.

    -remember messages useful rate.

Maybe you are looking for

  • Real player video download option not appearing is not since the upgrade to 3.6.6

    Real Player video DOWNLOAD option does not appear with firefox. This has happened Each time Firefox opened == I myself upgraded to 3.6.6

  • Disabled IPad can be reset using the recovery mode

    Someone with a good it knowledge doctored iPad without permission and now it can be reset using the recovery mode. While that plugged into iTunes, software downloads, iPad, then displays the Apple symbol but then returns the message "iPad is disabled

  • AppAssure BMR cannot find the Destination disk.

    I am preforming a bare metal restore material disimillar and Appassure cannot find the drive on the target computer. Restore dell Poweredge R430 13g. The discs are in a controlled by a H330 PERC RAID 1. Is there something I am missing, usually displa

  • Windows 7 Home premium sp1

    so here we are, I am running a genuine copy of windows 7 Home premium sp1 and I'm having a problem extremely frustrating trying to install it on windows, 10. everything is downloaded even 10 windows but when I try to restart my pc to start the instal

  • Could not load the XMLHttpRequest

    Hello community, I found this weird thing and want to ask you guys, please help me if you have met before. My app works well in the Simulator trip but run this not found "XMLHttpRequest" error when you run on Dev Alpha. But when I try to change the v