Method of Java after request of the ADF

Hello

I was interested to hear any suggestions on the best way to launch a Java class immediately after a request from the ADF. In this case, I need to extract data from a second database (SQL Server) via a method in a class file, I create. I can do it by having the user pushing a button after having received the request, but I was hoping someone would be able to point me in the right direction to automate this task once the user queries a game of results, then for each record that the user moves through the results of the query to the ADF. I hope that this explanation was clear enough I'm a bit new to ADF and I still have to learn the right terminology and abilities. I use JDeveloper 11.1.1.2.0.

Thanks in advance for any help.

Sean

Published by: user11666095 on November 13, 2009 13:23

Sean,
as I said before this is possible. You need to replace some methods of the office in question.
I would put a few transient attributes in OS (one for each attribute that read you later since the other database). Make sure they have the correct type.
You can then replace the transitional attributes getter methods and implement logic to get the data of the other DB. The most difficult part is to cache the connection to another DB somehow because it costs time to do every time you read an attribute.
You can try to read all the attributes of a line in a back and forth and save the result.
To connect to the other DB, you can use a web service or an ordinary jdbc connection.

Timo

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] Can I use this FacesUtils.java in applications of the ADF with no problems?

    Hallo,

    I would like to know if I can use this http://www.google.it/url?sa=t & rct = j & q = & esrc = s & source = web & cd = 2 & ved = 0CCoQFjAB & url = http %3 C % 2F % www.icesoft.org%2Fwiki%2Fdo 2F... in my ADF applications without any problem.

    Ore is at - it a specific class of more JDev ADF to use?

    Thank you

    Federico

    Federico, the code can be used without problem. However, if you use the class you get a different path to the "org.icesoft.samples.mobi.example1.view.util" package; That points to a different framework. As you have the source, you can easily create your own class in your package structure. You can get almost the same code of samples of the oracle too.

    The code is standard, and I don't think you break anything by copying in your path.

    Timo

  • Security of the ADF

    Hi all

    We have a SignIn page in our application for the authentication of the user and all components. In the ADF - config.xml, I have the following Setup

    authorizationEnforce = "false" authenticationRequire = "true".

    but I was redirected to the main home page (the page will be sent after a successful authentication) without any authentication. Although I put authenticationRequire = 'true '.

    However, if I set the URL scheme as ' / ' in the security constraint. It opens the SignIn page. However, the images were not properly?

    When the ADF security is enabled, i.e. when the two indicators of authentication/authorization in afc - config.xml are enabled, it works correctly.

    Please help us.

    Hello

    However, if I set the URL scheme as ' / ' in the security constraint. It opens the SignIn page.

    That's what the assistants of ADF Security adds by default when you select authentication only because there is no authorization, leading to a delayed authentication

    However, the images were not properly?

    This is because "/" protects all files under the root of Java EE. To change this, change the constraint "/" for authentication *.jspx (or *.jsp If you are using this as a file extension). In this case the images are excluded from security

    (Note that it is not here ADF security, but the security of web applications in Java EE)

    When the ADF security is enabled, i.e. when the two indicators of authentication/authorization in afc - config.xml are enabled, it works correctly.

    This is because the permission is not applied on the level of path (your path of the application root) context Java EE

    Frank

  • Laptop screen stays black with the mouse cursor only after that comes the HP and Windows logo

    Hi all

    No, my laptop model is HP Pavilion dv6 1337tx. My OS is Windows 7 Home Premium 32 bit. So, today, I shut my laptop down by force by pressing the power button because it did not at this time. Then the next time I turned it the wrong problem started. Whenever I'm on the HP logo sometimes and then the Windows logo comes also. But then the screen stays black and the mouse cursor appears. So, what can be the cause of this problem? I also tried to open with 'safe mode' and 'safe mode with command prompt', but they did not help either.

    Note - I tried the method of discharge after taking off the battery and holding down the power button. He could not help. All LEDS are working properly. I have no extra monitor, so I can't check the display elsewhere. Also, I ran the memory test which shows that everything is fine. Please suggest what I can do now as I can not enter the laptop now. What can be the reason?

    Black screen with blinking cursor:

  • Can we call a method before and after the operations of export in ADF 11 g

    Hello
    My problem is that I have to run a method before and after the export operation. Is this posible in ADF 11 g

    Kind regards
    Felix

    Hello

    in response to a post of similatr of yours, I said

    1 drop af:exportCollectionActionListener on a command button
    2. set the control knob to display = false
    3. in your Java code, call

    ActionEvent ae = new ActionEvent (button);
    AE.queue ();

    Everything you put in front

    ActionEvent ae = new ActionEvent (button);
    AE.queue ();

    will be like a before trigger fires, everything that follows as a trigger of post

    Frank

  • ADF: Can I call java method clsss javascript function in the ADF?

    Hello

    I want to call the javascript function in the Java class method, it is possible in the ADF? If Yes, how?

    or I need to use Java 6 function directely?

    Kind regards
    Deepak
    private void writeJavaScriptToClient(String script)
    {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks = Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
    erks.addScript(fctx, script);
    }
    

    its use

    StringBuilder script = new StringBuilder();
    script.append( "var popup = AdfPage.PAGE.findComponentByAbsoluteId('p1');");
    script.append("if(popup != null){"); script.append("popup.show();"); script.append("}");
    writeJavaScriptToClient(script.toString());
    

    Timo

  • How to expose a Java enum as a drop-down list in the ADF?

    Seems like a very simple, stupid question, that is, I'm totally new to the ADF, this one is stumping me, and Google does not help things.

    Here is a simplified version of what I'm trying to do:
    (1) I have an enumeration of 'Color' that contains red, green and blue.
    (2) I have a class of "Snowball" that includes a color, say:
    Color ballColor;
    (3) in a JSF page, I want the user to select the color of a list of choices and a store is the color selected in ballColor so I don't know what color my ball.

    Unfortunately, in JDeveloper, when I drag ballColor on my page and select "ADF select a choice" as the control, I can not add attributes to the data mapping.

    Obviously, I need to add attributes "somewhere".

    Someone has a link to a tutorial or documentation, where someone implements an enumeration of Java as a list of choices ADF? I'm sure it's easy and I am embarrassed to ask, but after 3 hours of fruitless search, it's time to ask someone who knows what they are doing.

    Thank you!

    Hello

    You must use a dynamic list for this. so use something like:

    
      
    
    

    Where controllerBean is a managed bean and the following method:

    public List getAvailableColors()
    {
        List colors = new ArrayList(3);
        colors.add(new SelectItem(Color.RED));
        colors.add(new SelectItem(Color.BLUE));
        colors.add(new SelectItem(Color.GREEN));
    
        return colors;
    }
    

    Note that could have specified a custom label by adding a second argument to the constructor SelectItem, but by default it will use Celsius.ToString where the value is the first argument to the constructor, so in this case Color.toString () which is Color.name () default for enums if your list contains the labels RED, BLUE and GREEN respectively.

    Kind regards

    ~ Simon

    EDIT: What happened to my handle :(

  • Method of appeal after the adfauthention call

    Hi Experts,

    We use the ADF servlet for web application security. In this case, we move the success_url to the servlet.

    Now, I want to perform an action immediately after the connection and based on user type of connection I wish to convey the appropriate view. Can I call methodcall to run that? If yes how to connect as the activity of the authentication of the ADF?

    Thank you

    Hello

    You can use a taskflow for success URL. After authentication, the control would be redirected to the page mentioned in the URL of the success.

    In the workflow, you can call a method call activity / use the router to access the desired view, based on the authenticated user.

    HTH.

    Arun-

  • Problem in sending the request to the server, MDS started after expired connection error

    Hello

    I have a problem when sending request to the server. I need to manage the time of connection error. When I send a request from my device to serve and connection time-out error, I need to send the request back to the server.  To test this error, before sending the request, the MDS quit and then I try sends the request to the server. After 2 minutes, the appliance up Connection Timed out Error.

    Now when I start the MDS and refer the request to the server, the request sent when the connection has expired also reached the server. (Totally 2 request are sent to the server).

    What is the behaviouir of MDS? If so how should I handle this.

    or have I missed something on my side?

    I use BlackBerry 4.2.1 JDE with SDM (4.5.0)

    Thanks in advance.

    (Note: see this link for the behavior of MDS.)

    Hi all,

    I finally found the solution.

    Everytime I go to start the net, I check that the connection is available or not by using below codes...

    HttpConnection conn=null;try    {    conn = (HttpConnection) getConnection(myURL);      if(conn == null)     {           Inform the user the process is in offline       }     catch(Exception e)      {      }      finally      {                try                {                    conn.close();                    conn = null;                }                catch (Exception e)                {                    conn = null;                }            }
    

    When this function is execute the connection is not closed properly.

    After that I got the connection error, start the MDS, meanwhile runs unclosed connection.

    Now, I removed the check above, its works very well.

    I made a mistake. Finally, I saw that and correct it.

    Once again thanks for all your opinions and answer.

    Sorry for my English.

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • Updating of the ADF Table strangely after delete line

    Hello

    I use ADF Table with ArrayList to the model of the collection. I do not use View object

    < af:table var = value ' row' = "#{pageFlowScope.dataBean.collectionModel}"... "

    I have a SelectOnceChoice in each row of the table and bind their values to a property of the line

    < af:selectOneChoice value = "#{row.label}"... "

    I have a command link to remove each line and the delete method:

    collectionModel.remove (idx);

    The model is correctly updated, but the table of the ADF is not. Somehow, the value of the selection of the next line is set to the value of the deleted row.

    For example: If there two select with values respectively: Foo, Bar. If I remove the line with Foo, the remaining line (initially Bar) is set to Foo.

    If I refresh (F5) the page, it appears correctly. I also tried to use addPartialTarget and partialTriggers but no help.

    Can someone help me? Thanks in advance.

    Post edited by: 2925664

    Hello

    Previously I use table binding, that's why it has that name.

    BTW, I don't know what's causing the problem. It is related to the life cycle ADF. I put the immediate = "true" for the select box and it is working fine now.

    Concerning

  • I have a mac and I got this massage after I tried to save my cc photoshop photoshop system could not complete your request because the file was not found.

    I have a mac and I got this massage after I tried to save my cc photoshop photoshop system could not complete your request because the file is not found, can someone help me? Thank you

    I installed the 9 raw and everything is back to normal thanks for your email about /peyman

    Skickat fran min Samsung-enhet

  • What is the best way to call a method in the bean on the adf page loading?

    Hello

    which is the best way to call a method in managing the beans on the adf page loading.

    My version of jdev 11.1.1.5.0

    Thank you

    I don't know if it's the right answer for your question try this...

    In taskflow for properties of method call, you must return a value when you use #{pageFlowScope.returnvalue} (returnvalue is a variable), so you can use your return value in the taskflow... Please let me if this is correct...

  • Java is required to work on the ADF

    Java is required to work on the ADF

    What all the concepts we need to know Java to the adf

    Agree with the last poster - the minimum you need to know the basics if, else, loop, transfer type of behavior - the point of the ADF is that you can build a huge amount without deep diving in Java however, at the end of the day, Java is the programming language that you choose.

    Concerning
    Grant

  • Request clarification on the ADF Faces + Trinity mix on the same page 11 g

    Hello

    I wonder if someone Oracle could indicate support of this. JDeveloper 11 g release notes contains a section titled, "ADF Faces and data visualizations," in which we find the following:

    The use of Apache MyFaces Trinidad components

    The mixture of Apache MyFaces Trinidad tr: tags with ADF Faces af: tags on the same page is not supported. You can mix the trh Trinidad: tags with ADF Faces AF: tags. However, there may be some problems of introduction to cross-browser with the help of the trh Trinidad: tags. As a best practice use the ADF Faces AF: layout tags as your first choice, unless the provision is not feasible using the trh Trinidad: tags.

    Does that mean that only DVT + Trinidad is not supported, or that someone else suggested that active af: tags are not taken in charge, or we cannot mix tr: and af: at all?

    Best,

    John

    John,

    the brief summary is that generally you are on the right side when you do not mix the components of the Trinity with ADF Faces RC components. It of IO to use components on separate pages, but not in a single page.

    The summary of average size is that not all components of Trinidad cause conflict with ADF Faces Rich client and that in fact the active components issue requests for PPR can cause serious problem. The integration of PPR is a major problem between the two batteries. If you use - for example trh:script to include JavaScript or CSS to your page ADF Faces, then it doesn't cause damage. Ditto for the layout to the Trinity labels that do not use PPR to disclose their children.

    Frank

    PS. : We had a bug filed against this and dev on both teams looked at how to solve the problem. It seems, however, that it would take major architectural changes

    Published by: Frank Nimphius on May 1st, 2009 12:58

Maybe you are looking for

  • Contrast

    Another thing on the Apple system which is p * ing me off is the use of a gray text on a white background.  Apple used to be so good at presentation and graphics, but they seem to have lost the ball.  Many dedicated users Apple shipped on board, in 1

  • Is it possible to downgrade the iOS versions?

    I recently updated my phone to iOS 10 and I would like to know if I can the downgrade just in case it gets too bug.

  • Satellite Pro 4600: PXE error message

    I got a laptop that is not working. I'm trying to re - install XP Pro.I changed the boot on cd first order, but it only works intermittently and jumps a lot of files.At the moment I have an error message;"PXE - E61 media test failure, cable test""Int

  • Access to all the properties of all objects in a Subvi

    Dear all I need to change some properties of the objects on the front panel in an another Subvi, I don't want to do a 'reference' for each object, and then manipulate its properties in an another Subvi, I want to send some how a reference that contai

  • Black screen after logging into the domain account

    OK, it's making me nutty and I don't know what to do. Configuration: SB Server 2008 running domain controller.  4 client machines connected, 2 XP, 2 running Vista Ultimate SP1.  XP machines work fine (of course).  Vista machines are in the tank. Two