Web ADF how to reach a view object when you click on a button

Hi all

I'm new to the web of the ADF
My requirement is as follows:
I have a page with a button print, I want when I press this button to go to a view object and specify a value in the database.

I did a class for the managed bean and I put the following in it:

{} public void calc (ActionEvent actionEvent)
Add the code in the event here...
TaskProjViewImpl t = new TaskProjViewImpl();
t.Calculate ();
}

but according to me, it is not good to create an object like that, is it?
What is the best thing to do my requirement?

Help, please

Your code does not work.
Expose you the objects in view via request module (data model). It's a build data control that you use in the user interface.
You give enough information on the use case, so all you want to do can be done without a bean.
Open the data control build of the application module you an expand the node of the VO. You should see the method you are trying to call too in the bean. Drag onto the page and select the ADF button when asked what to create. That's all.
This may not be exactly what you need but otherwise please describe your use cases in more detail.

Timo

Tags: Java

Similar Questions

  • How to open 2 sites on start and 1 Web site when you click the home button?

    How to open 2 sites on start and 1 Web site when you click the home button?

    You can change your shortcut on the desktop Firefox with two starting URLS. To try:

    • Shortcut on the desktop: right-click on the icon, choose Properties
    • Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties

    Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.

    You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    For the specific shortcut launch pages, you can add them to the end, for example:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"

    After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:

    • Double-click the shortcut on the desktop
    • right click on taskbar icon pinned, click Mozilla Firefox

    Who do you want?

  • How to create a form that is displayed when you click on a button?

    I want to create a contact form on my Web site that appears when you click the button 'click here to contact us' floating on the web page. I can't figure out how to make this work. Any help would be appreciated!

    You can really use any widgets of composition. You probably want to use the Widget for Composition of ToolTip and the setting of the trigger button and form as target.

  • How to run the SWF file when I click on a button

    Dear friends!

    I did three and kept SWF files in a folder, how do I make a flash 8 project to execute when I click on a button. I'm going to make buttons for each SWF file

    Please help me

    use loadMovie to load in your main swf (with button).

  • How to do an audit in the order page IN. When you click on the button "submit"

    I want to do an audit in order IN. When you click on the "submit" button, it will be checked whether the OP is reserved and will display the message if not.

    I have a CO span from the original, I can know where should I put the logic inside the processFormRequest? and how to write code to control them thanks.

    public void processFormRequest (pageContext, OAPageContext,

    OAWebBean oAWebBean)

    {

    super.processFormRequest (pageContext, oAWebBean);

    }

    OK here is the code below,

    String sql = "START: 1: = XXPO_CHECK_RESERVED_PKG." XXPO_CHECK_RESERVATION(:2); END; « ;

    CallableStatement cs = txn.createCallableStatement (sql, 1);

    String outputval = null;

    try {}

    cs.setString (2, Segment1);

    cs.registerOutParameter (1, OracleTypes.VARCHAR);

    CS. Execute();

    outputval = cs.getString (1);

    TXN.Commit ();

    } catch (Exception sqle) {throw new OAException ("Error in the application of staffing", OAException.ERROR) ;}}

    -Beginning of the code by Hemant

    If ("N".equals (outputval) &! ") ». Equals (outputval))

    {

    throw new OAException ("The PO isn't in reserved State");

    }

  • How maintain updated page view format when I click a link?

    I'm working on creating a pdf file using Adobe Acrobat Pro, 11.0.7 and I have a table of contents that I've linked to the different pages in the document because it is quite long. When I opened the pdf file it is formatted to display the way I want, made page and a per view when I click one of my links, however (or click on one of my favorites) this formatting goes and he returns to fit the window. This isn't what I want, and not what my boss wants, and I'd really like to know how to fix this problem.

    You must set the zoom setting of the links on the Inherit Zoom setting.

    Unfortunately, you have to do this one by one, unless you use some types of

    external tool to treat all the links at once.

  • Borders dotted around some objects, when you click

    It's the only issue I have with Firefox-on some pages (pages of Mozilla, the new tab, Facebook page, etc.), when I click on a link, there will be one incredibly ugly border dotted around the object. I tried to reboot in safe mode, and it happens on all versions of Firefox (regular, beta and Aurora). I did not have this problem with all other browsers, it's just Firefox and I can't understand why. assumptions?

    It is an accessibility feature to display a ring around an object.

  • How to remove the session cookie when you click Logout

    I noticed that when I click on logout at the top of the page URL, the session cookie (name ORA_WWV_APP_xxx, where xxx = application ID) is not removed from the browser.  No idea how to fix?

    Thank you

    Rob

    Hari - I use Apex 4.2.2.00.11, and he leaves behind two cookies:

    LOGIN_USERNAME_COOKIE = user name

    ORA_WWV_APP_nnn = the session cookie

    Ricker, your idea works.  As I examined him, however, I noticed that the login page creates a new cookie ORA_WWV_APP_nnn, so I had not seen the cookie being deleted as part of the behavior of default disconnection from the Apex.  Looks like none of this is really necessary; apex_authentication.logout sets the content of that cookie-1, which is as good as remove it.

    Thank you all!

    Rob

  • How to play the music when you click on a button?

    Hello

    Could someone help me a little bit to start?
    My first attempt is just to create a scene, in which clicking on a button, it starts to play an mp3 file. I get to start playing as a background music after reading the help file and also tried to find the source code from the internet and also here without success.

    Thus, a person could be that kind of give me an example of jargon code snipplet, who would begin to play music immediately without first importing the file (such as file streaming) if possible and also small instructions how to assign to the key (Yes, not as background music).

    I just got the Adobe Director 11 a few days ago, and my wife is trying to get angry for me to sit with my NB every night without any progress,

    Thank you, in the case where a person pick up...

    Here's a demo movie: . You can download the source from here.

    It uses a member of ShockWave Audio (SWA), which connects to an external file.

  • How to get the event when you click Add another button in a table.

    Hello
    How to recognize the event in processFormRequest click on the button Add another line of the footer of a table?

    Suppose if the ID is anotherRow (I mean ID of the button to add another line of the footer)

    If I give if (pageContext.getParameter ("anotherRow")! = null)... its not recognizing the event that is returning null only...

    I want to perform certain actions when the user clicks Add another line of footer. Please let me know the details of how identify when add another line is clicked...

    Thank you
    Srikanth

    Hello

    If you have only one table with add_row_button, and then copy the following code works perfectly

    If (tableBean.getName () .equals (pageContext.getParameter (SOURCE_PARAM)))
    (& ADD_ROWS_EVENT.equals (pageContext.getParameter (EVENT_PARAM)))
    {
    ...
    }

    tableBean is the Handle for your advanced table, hope, it will help you.

    Kind regards
    Out Sharma

  • How can I change a Web site address in a link that opens when you click on it

    I now use the operating system Windows 7 and Firefox as my default browser. Previously, in Windows XP, when I entered a Web site address, it is automatically replaced by a link (HTML?) and if you have clicked on the link you went directly to the corresponding page on the Web site. I can't not added relevant plugin or module and perhaps that is the reason why I'm having the problem. I would like to have a simple way to do this and not some of the suggestion I found trying to fix myself.

    In Thunderbird, I see that there is an Insert menu where I can do this thing, but I can't find the Insert menu in Firefox.

    See also:

  • How can I fix mf_status.exe error messages when you click on the button stop?

    • The exact error message:

    The instruction at 0x00000000 referenced memory at 0x00000000. The memory could not be read.

    Click on OK to terminate the program.

    • Operating system Version &:

    Windows 7 Home Premium

    Service Pack 1

    System manufacturer: TOSHIBA

    Model: Notebook

    Note: 4.1 Windows Experience Index

    Processor: AMD Athlon (TM) II Dual-Core Processor 2.10 GHz

    Installed memory (RAM): 4.00 GB (usable 3.74)

    System type: 64-bit Operating System

    Pen and touch: no pen or press enter is available for this view

    • Version of the browser &

    Internet Explore 10

    Version: 10.0.9200.16540

    • No software or hardware that I recently installed or deleted

              MediaFire Express BETA for Windows

    Version: 0.15.4.4888

    • Any recent changes I made to the system

    I accidentally click the disk wiper in CCleaner. Does this affect my system?

    • The things that you have already tried to solve the problem

    http://www.pcmaxutilities.com/wikidllfiles/mfstatus-exe-error-fix-Guide.html

    I also downloaded: MFStatus.exe files repair tool

    Any help will be much appreciated. Thank you! :-)

    Hey Ken, COLIENNE,.
    Let me to interfere here because I met the same problem, and I followed method 1 suggested by jojo.
    And the problem comes from MediaFire Express, even if it is not in beta for me.
    Windows Vista SP2.
    Hope I helped a bit...
    Sincerely,
    Bertrand

  • When you click on the button / target Url, how say the program take URL as a value in a field on the page

    I have a page with a button and an entry (MIOCAMPO) field that contains a URL. Is possible, in the properties of the button, in the section "when button Clicked/Url target", ask directly the program, take the value stored in my field? For example, for the static value http://www.oracle.com I directly write this address in the "Url target", but, when this address is written in my MIOCAMPO area, ca how? I tried these bad manners:

    (1) MIOCAMPO

    (2): MIOCAMPO

    3) || MIOCAMPO

    (4) & MIOCAMPO

    I have the button send the page and you can specify MIOCAMPO, use a branch "branch of Page identified by post. This should work for you, that destinations are in the same application.  There is also a "branch to URL identified by the element.  You could even two handsets using conditions.

    Hope this helps

    Thank you

    -Jorge

  • Cannot open in a page Web, on the page of the Bank opens a new tab and indicates that the site has moved here, but when you click on the button here it still does nothing

    When I go to internet banking as a clydesdale, it opens a new page to connect, but a few days ago it stopped working with the new update. Now when I click on connect, it says "FOUND the document pushed here." and clicking here opens another page of connection, but after being entered the details the page doesn't load. the same thing happens on other sites, on the other, when I click to read the messages page does nothing, and if I click to open in a new tab the same page is displayed instead.

    GundamGirl said

    Theres been other people having this problem too...

    Yes, for example, that this person- https://support.mozilla.org/questions/1078226 -, but they did not post cost around if any suggestion made a difference, I appreciate your following upward.

    Here are two other things to check:

    (1) connection settings - have they been customized?

    "3-bar" menu button (or tools) > Options > advanced

    Click the mini network, and then click the settings button

    The default value of 'Use system proxy settings' should follow your 'LAN' setting, as well as IE, but you can also try 'No proxy' to see if that makes a difference.

    (2) extensions - test Firefox to turn off Safe Mode

    Firefox Safe mode is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

  • I get garbage when you click on "View Page Source" of maff backup files.

    Hello
    Saved files mhtml and html, the HTML etc code view when selecting "View Page Source".
    Since the installation of the add-on Firefox to save web pages in the form of maff files, when you click on "View Page Source" it displays garbage.
    Is it possible to view the original source of a maff file saved?

    A MAFF file is a ZIP archive, so you should have extract the files in an Archive Manager, if you do not use an extension to handle this type of file.

Maybe you are looking for

  • Satellite A200 - screen is very dark

    Hi all:I use the Satellite A200-1DY My screen is brokenthe screen can see... but very very very dark. When I start the toshiba splash screen appears, but this one (in 1 sec) disappears and the screen is dark. I tried with another screen and it works.

  • Will be A Officejet 6500 all-in-one printed my pictures from my camera using my sheets of Photo 4 x 6?

    Using Windows 7 64 bit and my all in one HP Officejet 6500 a can print photos from my camera on my HP 4 x 6 photo paper? The printer handle sheets of 4 x 6 because I do not see a photo paper tray I had in a previous HP printer all in one?

  • CB3-111 internet

    My cb3-111 does not connect to the internet.

  • Vista, loss of internet connection on cold start and restarts.

    I use windows Vista, recently (after only 4 years of satisfactory used) I lose the internet connection on cold starting and restarting and duty use windows diagnostics to establish the connection.  I bought a new Modem Sagem, and cable ethernet and f

  • selection of object button switch

    Hello, master... Please help me, I have two button options object code... How to swap button A button B and vice versa... String[] objects1 ={"Indonesia","English","Chinese"}; String[] objects2 ={"Indonesia","English","Chinese"}; ChoiceB1 = new Objec