ADF context like the design?

I is currently working on a 11.1.1.7 application and want to move a lot of logic in a java class that can handle multiple operations at the same time.

The page has 2 objects in view on this, but the 'save' function must create and insert several objects (such as accounting and a receipt).

All the necessary view objects have been added to the module of the application.

I am able to create and insert empty lines, but as soon as I try to assign values to the line, I get a null pointer error.

The code is located in the application module:

public void createInfo() {}
ViewObjectImpl receiptVO = getReceiptsView1();
Line receiptRow = receiptVO.createRow ();
receiptVO.insertRow (receiptRow);
receiptVO.setCurrentRow (receiptRow);
receiptVO.getCurrentRow () .setAttribute ("Id", 1);  -- NPE

}

I have not found many examples - and I guess that it is a very common problem.  I need the entire operation in a single validation (I understand the side things DBTransaction).

Finally, I want to pass the pointer to line and the data in a different class for better separation and re-use - I need to get this working first.

Anyone done this before who can help out?  It can't be so hard I did it in the page beans - but I want to clean it up and do the right thing.

As a secondary issue - I would like to find the current content of the line of the screen rather than spending data in the class (although it is a fallback position).

There is no need to put the logic to a bean. You can and should apply this logic in the module of the application. The framework works in a way that you have already created the line you see in the user interface and you change. When you click on save all values in the user interface are transfers to the model layer (line of sight). If you bind the Save method of the UI for your extraordinary method in the module from the backup application, you can then create more lines tables for accountants or whether you need.

In the end, you agree all together in a single transaction. It will be either through and everything is saved in the DB, or if the backup fails, you can roll back the transaction.

Timo

Tags: Java

Similar Questions

  • I have a pc windows 7, but I like the design of the windows xp disk defragmentation, is any way to get this design on win7?

    dosent matter what I need (download the software, change a setting) I just need a way to get that design.

    dosent matter what I need (download the software, change a setting) I just need a way to get that design.

    Not the real Windows XP defrag - but there are a lot of alternatives to the innate applications.  However - you realize that default Windows 7 is the defragmentation itself in the background anyway?
     
    http://www.howtogeek.com/HOWTO/Windows-Vista/configure-disk-defragmenter-schedule-in-Windows-Vista/
     
    Options:
    http://www.techsupportalert.com/best-free-disk-de-fragmenter.htm

  • Cannot display the data in the designer

    Hello

    I'm unable to view the data in the designer. It is said:

    There is no connection for this pair of schema logic/context: ABCLogical/Global.

    I use my own ABCContext context that has a mapping agent and all my physical schemas are mapped correctly. The problem is whenever I'm doing a new data store in my model, it automatically creates the connection to the Global default context I do not use and took long back. Surprisingly, it connects to all the table and the index, but does not retrieve the data.

    Any help is appreciated.

    There is a post that is about the same thing, but I checked the whole issue. I checked my physical and logical diagram, and the two are linked and the context.

    You can display your default context global ABCD, whatsever name.

    GoTo menuFichier---> user settings--> default context for the designer
    Specify any value you want.

  • I can switch between the code sheet and css html, but I would like to see them both at the same time as well as the design window. Right now and can see rather the design and code html or design and css. How can I arrange to see all at the same time, of

    Hello

    My name is Ellie and I am new to Dreamweaver.

    I can switch between the code sheet and css html, but I would like to see them both at the same time as well as the design window. Right now and can see rather the design and code html or design and css. How can I arrange to see everything at the same time, design, HTML and CSS?

    Thank you

    It ends up something like that...

  • Citing an actionURL outside the context of the ADF

    Hello

    I am struck a similar question as described in this thread: https://forums.oracle.com/thread/2320844

    We have a JSR-286 on a page portlet and we use serveResource to return a JSON response. The URL of the resource is called from JavaScript code, which in turn then inserts a nice table in the JSP portlet page.

    Now, we run into a case where we want to include an actionURL inside the JSON response.

    It is possible to generate an action URL using the createActionURL call on ResourceResponse. This returns a URL that is yet to rewrite, but if this URL is inserted into the page through our JavaScript, it seems perfectly fine. The thing is that it doesn't do anything.

    All links inside the portlets have JavaScript ADF around them, with a custom form with hidden fields. The format is:

    < a href = "javascript:adfpp940818806_doAnchor (anchor_940818806_a4); "onclick ="javascript:setTimeout(actionRefresh,500);"> link< /a >

    Is it possible that we can get this to work for our actionURLs which are inserted in the form of links through JavaScript and not the inside of the context of the ADF?

    Kind regards

    Jaap

    We managed to work around this limitation by not generating the actionURL in portlet code, but only in the JSP content.

    The actionURL must be inside the page for ADF/WebCenter generate the necessary form fields and JavaScript.

    In the above code, anchor_940818806_a4 points to a valid actionURL. If necessary it can be manipulated through JavaScript.

  • In the design of split window, I can't see any images or anything like that

    In the design of split window, I can't see images or anything, just a white area.

    When you go to the site, the page loads fine, I could see the image in the design window, so the code is good, but still it is not visible in the Dreamweaver design view. I need to be able to see this image and the page in the design side, so I can continue to work.

    Any suggestions?
    I looked through the forum and found a thread, but they said to check
    view > style rendering > display styles
    that is checked.

    Anything else? that anyone could think of to help?

    Okay, I think I got it. See in this post made me realize that I had the code



    in the wrong place. Thanks for making me understand my problems... ;-)

  • Moving components in the designer

    I use JDeveloper 11 g. It is possible to move components directly (by mouse) in the designer and put them where I want (right, left, Centre...)?

    Hello

    You cannot place components where you want (as we do in other technologies like swing Panel, forms, oracle etc.). However, you can organize them according to your requirement, placing them in different layouts.

    There are several layouts in ADF Faces, which would be useful (stand-alone / in combination with each other, according to the need) for the design of your page.

    Check it out [ADF Faces demo | http://jdevadf.oracle.com/adf-richclient-demo], which would help you to understand the different better layouts.

    HTH.

    Arun-

  • Why FireFox don't have a stick and go like the other browsers?

    Why FireFox don't have a stick and go like the other browsers?

    What is the one thing missing from other than firfox
    It's a great browser

    Firefox 4 will have to paste & go in the address bar using the context menu.

  • I use the full version of DASYLab 8.0, how to add PID module in the design of the façade (window layout)? while I can vary the p, i, d values in the window layout

    I use the full version of DASYLab 8.0, how to add PID module in the design of the façade (window layout)? while I can vary the p, i, d values in the window layout

    To do that you will need to change the varibles PID values and then use the sliders to add numbers to a latch for variables that point.

    This is how I think it works in Version 8.

    In all cases, you should move on to 12 more stable summer.

    In addition, unless that is a very slow process, I generally do not like closed loop PID with DASYLab due to the fact that computers is not reliable with timing.

  • How to understand the context of the sequence of time real labview

    Does anyone know how Labview RT to understand the context of teststand sequence? My sequence context is defined as "TS. SequenceContext' like the screenshot in attachment.

    If we point a VI for that sequence context then who use VI of teststand? and must add this VI to the Explorer of Projectr of Labview RT system to build the project?

    I use 2009 Labview and teststand 4.2.1.

    Thank you very much

    LabVIEW RT does not support the ActiveX required for TestStand.

  • A problem with the design of the

    Hi all

    Im a beginner with Adobe musejuste a few days ago, but actually I have my own experience with the design of Web sites!

    Today, I am facing a big problem with a Web site under creation!

    When I finished the first home page, home page, I saw that I missed something, wish is receptivity. in fact, I have not now what to do, there are a lot of rectangles and shapes and paragraphs!

    There is this white areas when I pull the horizontal bar on the left, even if I apply my rectangles stretching mode and mode fluid forms!

    and here's an example!

    When full screen mode:

    1.png

    reagent:

    4.png

    and this comes, even the green bar is under the stretch the width of the browser!

    3.png

    I have more problems with delicate design, such as duplication of paragraphs and the inability to convert the navigation bar, like a menu of stationary box etc...

    Please if you can help me, because this is sort of a first job for me!

    I'll wait for your help please!

    Thanks in advance,

    Success,

    Rabi.

    ArnoDHeros wrote:

    Well, thank you very much for your answer!

    I don't know, I ask just 3 days for the homepage, I don't think that I could delete it and stard frm zero!

    but tell me, if I skip this part, empty spaces, it will be a problem for phone users, when I converted to phone available?

    not a phone copy only the page names... you would be rebuild your site for phone (whichassumes that you're going to this option) in responive layout, the rules change

    ArnoDHeros wrote:

    on the navigation bar, how can I convert it responsve box like this:

    Reactive demonstration of Navigation or menu full screen! Note that the navigation is created by a button widget!

    This demonstration of navigation is made to the office and will not work on many phones, my nokia 520 running 8.1 does not open a part of this page in ie, but I use a mini web browser application that can open most of the page without it hambuger image

    When you design for the web don't just test your site on office or you will make common mistakes that other office users do... phones are different devices and they do not behave like a chewed down desktop screen.

  • text appears different on the Web site in the design of DW

    text appears justified to the left on the website, but in the design of DW, it appears centered

    More you use DW, most often, you will notice this kind of divergence in Design view. Design mode does not give an accurate representation of the actual design of your page and never has. Preview in the browser will show you how your page will look like in real life.

    That being said, there are a number of possible reasons for your question, but without seeing the code, it is virtually impossible to tell exactly what is happening.

    Pass through the validator in your page file > Validate > validate the current document (W3C) or go to http://validator.w3.org/nu for a list of errors in your code. Code errors can cause all sorts of problems, particularly in view of already flawed design.

  • Where can I find the Designer Description column of the repository?

    I recently posted a question on where to find roles in the data model in the designer (what I was looking for was in ci_business_units (role_responsibilities column). It was a good discussion (and I was happy to find a group of Designer).

    Now I'm looking for the 'Description' field, here:

    Designer-Description.png

    I looked at all these tables, but couldn't find what I was looking for:

    sdd_folders app

    sdd_folder_members afm

    crazy sdd_folders

    sdd_folder_members fms

    MDS ci_modules

    ci_general_modules gen

    ci_module_business_units mbu

    BNU ci_business_units

    I also looked for like '% DESC' columns across d.b. and nothing seemed to be what I'm looking for.

    Hi Wim,

    On the technology blog of AMIS "Quick Query reporting on the entities and attributes in the designer of the Oracle", there is a https://technology.amis.nl/2006/02/16/quick-query-to-report-on-entities-and-attributes-in-oracle-designer/ article in this article they need the Description of entities and the Attrbiutes which is located in CDI_TEXT. Maybe the same goes for modules.

    Kind regards

    Mark

  • Validation of ADF to create the user form

    Hello

    I have used with success of validators ADF for forms of resources (unix user, for example).

    However, what I have to do now is to implement validators for the form user. Here's what I do:

    (1) open a self-service session, create a sandbox, go to users, click on 'create '.

    2) click Customize (after having filled in all the fields of the agent), Source, place you for example "inputText: User Login»

    3) Add Content, has chosen "Web Components", then "Input Text", click close

    (4) export sandbox

    (5) in the exported sandbox, go to oracle\iam\ui\runtime\form\view\pages\mdssys\cust\site\site\ and unzip userCreateForm.jsff.xml

    (6) the XML looks like this:

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < mds:customization version ="11.1.1.64.93"xmlns:mds =" http://xmlns.Oracle.com/MDS "motype_local_name ="root"motype_nsuri =" http://Java.Sun.com/jsp/page ">

    < mds:insert parent = position "_xg_42" = "last" >

    " < = xmlns:af af:inputText ' http://xmlns.Oracle.com/ADF/faces/rich "label ="Label"id ="e4300172496"/ > "

    < / mds:insert >

    < mds: change the item = "_xg_17" >

    < name mds:attribute = "label" value="#{bindings.usr_last_name__c.hints.label}"/ >

    < / mds: change >

    < / mds:customization >

    I change to

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < mds:customization version ="11.1.1.64.93"xmlns:mds =" http://xmlns.Oracle.com/MDS "motype_local_name ="root"motype_nsuri =" http://Java.Sun.com/jsp/page ">

    < mds:insert parent = position "_xg_42" = "last" >

    " < = xmlns:af af:inputText ' http://xmlns.Oracle.com/ADF/faces/rich "label ="Label"id ="e4300172496"/ > "

    < af:validateRegExp pattern = "[a-zA-Z0-9] *" / >

    < / mds:insert >

    < mds: change the item = "_xg_17" >

    < name mds:attribute = "label" value="#{bindings.usr_last_name__c.hints.label}"/ >

    < / mds: change >

    < / mds:customization >

    (7) re - Zip file, import the tray with sand and turn it on.

    (8) result: I can't even load the user form to create! The error message reads:

    'Closed stream '.

    "ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #27 60096:Server.

    So, what is the correct way to implement ADF Validations in the form of the user to create, if not the case? And where would that be documented in the documentation of the IOM?

    Thank you

    Max

    http://xmlns.Oracle.com/MDS' motype_local_name = 'root' motype_nsuri ="http://java.sun.com/JSP/Page" >. "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "" / > "

    It should work. Also, make sure that the parent attribute value that is _xg_42 in your case is the id of the field on which you want to add a validator.

    Give him another chance.

  • Prevents a form of work when the design is changed

    I worked on a form sent to me by a designer, and being new to this particular aspect, it is taken a lot of time. The form was changed just a little bit and I was sent the version updated by the designer. As only a few things changed to 95% of the items I placed on the page could be reused - but when I tried to paste the sections and boxes in the new PDF, they were not in the right position, unlike if this had been done with a 'paste in Place' in something like InDesign.

    What is the best procedure to achieve this? Surely I don't have to start from scratch?

    Open the file with the fields and other things you have added then go to Tools - Pages - replace and select the new file.

    The new pages will be inserted instead of "old", but "everything" will remain in place.

    Edit: mistake fixed text

Maybe you are looking for

  • You can connect an Xserve RAID to a Mac Pro?

    I have a Mac Pro 1.1 successfully running under OS X El Capitan and OS X Server 5.1.5 and I was wondering if I could communicate an installation of the Xserve to increase productivity as Extra one SAS/NAS configuration if I added a Fibre Channel card

  • I can't get the audio to be synchronized with the video editing multicamera?

    Multicamera editing, audio will not be synchronized with the video. I have two clips, 1 Plus 6 iPhone and the other an iPad Mini 2. While the audio wave forms are aligned, they will not match the video... the lips are out of sync. How can I handle th

  • Photo sharing options missing

    Several photo sharing options are missing from the drop-down list in Photos. I guess it's a problem of El Capitan. Everyone knows about this problem?

  • I have lost my list of favorites when I had nine windows, help

    My Favorites list has disappeared and I got very important stuff out there, what happened

  • Menu DVD does not work

    I created a DVD-video using Windows DVD Maker, and they used to play fine.  Now, no matter what I try to play to play on, for example Windows Media Player, DVD player, etc., can't do the menu to answer.  The menu arrives, but the play button does not