Help with simple display and add in ADF/Struts app

I created a simple ADF/Struts application based on the HR schema. I have a department view object and entity object based on the Departments table. From the Struts page flow designer, I create a data page action (viewDepartments) that binded to a departments view object by dragging the departments view object as a "Read-Only" form from the palette with the navigation buttons --- this page will just display the departments. Next, I created another data page action (addDepartments) that allows a user to add a department. I did this by dragging the departments view object from the palette as an "Input Form" and then dragging the "Create" operation onto the data page action. Each data page action has its own JSP of course.
I'm noticing that every time when I go to to the "addDepartments.do" and then go to "viewDepartments.do", a blank record is added to the view object. Why is this? Also, I want the Submit button to do the "save and commit" in one step. How do I do that?
If it helps, I can email anybody the workspace file so that you can see this behavior.
Thanks.

Try following this step by step tutorial to see if it will make things better for you.
http://otn.oracle.com/obe/obe9051jdev/adftojsp/defaultendtoend.htm#t3

Similar Messages

  • Help with Conditional Display and Validation

    Version 4.1.1.00.23
    Hello,
    I'm having a difficult time with a conditional display and validation I'm hoping someone can help with.
    Requirements:
    When the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox)
    If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL)
    What I've tried
    Create a Dynamic Action on the Start Date
    Event: Change
    Selection Type:Item(s)
    Items(s): P51_START_DATE
    Condition: none
    True Action Section:
    Action: Show
    Fire on Page Load: Checked
    Show all page items on the same line: No
    Affected Items Section:
    Selection Type:Item(s)
    Item(s): P51_CHANGE_REASON,P51_CHANGE_DESC
    I've also created a Dynamic Action with similar settings for the P51_END_DATE.
    I created a Validation for the P51_CHANGE_REASON as Function Returning Error Text:
    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    The Issue
    I tried to create another Dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields on page load, but when either of the date fields are changed and the validation is fired the P51_CHANGE_REASON and P51_CHANGE_DESC are hidden again.
    There are two buttons to submit the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will submit the page and branch to the previous page (which is a report with EDIT buttons to edit the record).
    I can't get the page load Dynamic Action to NOT fire when the validation is fired.
    I hope this is clear and if not what information can I provide?
    Thanks,
    Joe

    Phil,
    Thank you for looking at this.
    Yes if the Change Reason is NULL when the edit page is displayed then the Change Reason and Change Description fields are hidden. If the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox). If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL).
    The problem I'm having is that if no Change Reason is entered and the page is saved thereby firing the validation the Change Reason and Change Description fields are hidden again (because of the On-Load Dynamic Action to hide them). So now the user can't put in a Change Reason...unless they change one of the date fields again which isn't going to be accepted.
    Is there a way to determine if a validation error was fired and be able to use that on the On-Load Dynamic Action to hide the two fields? Something like...If the validation fired then don't run?
    Please let me know if I'm still confusing you.
    Thanks,
    Joe

  • Help with simple pause and speed titles

    New at imovie.
    I can't figure out how to get a title to appear over a black screen whether bouncing or appearing in the center and stay there. Either it goes to fast or there is this long pause after it arrives to fast and leaves to early.
    Where can i get some detailed information on the pause and speed options.
    Thanks

    Hi Jim:
    These amy help you:
    Adding Titles
    http://www.apple.com/ilife/tutorials/imovie/im3-5.html
    manuals.info.apple.com/en/iMovieHD_6_GettingStarted.pdf
    Adding titles or text
    http://docs.info.apple.com/article.html?path=iMovie/6.0/en/imv1022.html
    Sue

  • Hi, recently i bought macbook pro with retina display and installed windows 8 professional original software also. but in windows 8 track pad is not working properly. can you help me with providing drivers for trackpad to work on windows 8 professional .

    hi, recently i bought macbook pro with retina display and installed windows 8 professional original software also. but in windows 8 track pad/ TOUCHPAD is not working properly. can you help me with providing drivers for trackpad to work on windows 8 professional .

    Did you download and install the Windows Support software? If you did, did you use the Boot Camp Control icon to set up the trackpad how you want it?
    http://www.apple.com/support/bootcamp/
    https://discussions.apple.com/community/windows_software/boot_camp

  • HT4623 I am trying to update my iPad 32 with retina display and whenever I do it tells me that I am not connected to the Internet even though I am. I have tried several different wifi spots with the same results. Any suggestions would be helpful. Thanks

    I am trying to update my iPad 32 with retina display and whenever I do it tells me that I am not connected to the Internet even though I am. I have tried several different wifi spots with the same results. Any suggestions would be helpful. Thanks

    Try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • What are the differences between the Apple 64GB iPad Air with Retina Display and the Apple 64 iPad with Retina Display MD512LL/A 4th Generation

    what are the differences between the Apple 64GB iPad Air with Retina Display and the Apple 64 iPad with Retina Display MD512LL/A 4th Generation ?

    The iPad with retina display only comes in the 16GB version and it has the A6 processor which is a step down from the Air model. Having said that, I stream movies on my iPad 3 with retina and it has the A5 processor and the movies stream just fine as does everything else that I do on the internet.
    If 16GB is enough storage for you, the $100 savings compared to an iPad Air model is a fair amount of money and that might sway me if I was just worried about saving some money. However, that's not my style. I always go for the largest capacity that I can afford and the faster processor if I have the choice.
    Having said that, if it were me, I would select the 32 GB iPad Air. But in spite of the information that you provided in which you want to base your decision, only you can be the judge of what will be best for you, and remember that you cannot add storage capacity to the decide later. You can purchase external WiFi drives if you need the storage, but to me, that takes away from having the really small footprint and portability of only having to carry the iPad around gives you.

  • As a stockholder, I would like see the development of iTV with Retina display and integrating Siri control, internet access, and iTunes apps. This new product would be a large screen, thin wall mounted television, much like a oversided iPad.

    As a stockholder, I would like see the development of iTV with Retina display and integrating Siri control, internet access, and iTunes apps. This new product would be a large screen, thin wall mounted television, much like a oversided iPad.
    Do you think this product is possible?

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • Get the pc name with domain name and add it to my properties file using commands

    i want to get the pc name with domain name and add it to my properties file using powershell  .
    sid

    function Get-Environment{
    [environment]|Get-Member -Static -MemberType Properties |
    ForEach-Object{
    if($_.Name -ne 'StackTrace'){
    $v=[scriptblock]::Create("[environment]::$($_.Name)").Invoke()
    New-Object PsCustomObject -Property ([ordered]@{Name=$_.Name;Value=$v[0]})
    Get-Environment
    Get-Environment | Out-String | Out-File environment.txt
    ¯\_(ツ)_/¯

  • Need help with Blog, Wiki and Gallery

    Hi Team,
    Need help with Blog, Wiki and Gallery startup. I have newly started visiting forums and quite interested to contribute towards these areas also.
    Please help.
    Thanks,
    Santosh Singh
    Santosh Singh

    Hello Santhosh,
    Blog is for Microsoft employees only. However, you can contribute towards WIKI and GALLERY using the below links.
    http://social.technet.microsoft.com/wiki/
    http://gallery.technet.microsoft.com/

  • What's the phone number I should call for help with my iPhone and ihome dock?

    What's the phone number I should call for help with my iPhone and ihome dock?

    http://www.ihomeaudio.com/support/

  • Whats the difference between the 13-inch: 2.5GHz with Retina display and the 2.6GHz macboock pro?

    whats the difference between the 13-inch: 2.5GHz with Retina display and the 2.6GHz macboock pro?

    http://www.apple.com/macbook-pro/specs-retina/
    At the top of the page youi can cycle between the Macbook Pro specs and the Macbook Pro with Retina specs.

  • I plan to buy a MacBook Pro with retina display and I already own and use Photoshop CS 5 on my PC?

    I plan to buy and use a MacBook Pro with Retina display and I already own and use the PS CS 5 on my PC window-based. How can I obtain a copy of CS 5 for my MacBook Pro?
    Message was edited by: CHARNCHAN.  That is without having to buy another copy for the Mac!

    Not sure why you'd want CS5 for your new Mac with Retina display.
    Retina support was first added to Photoshop in CS6 version 13.0.3
    http://blogs.adobe.com/jkost/2013/01/retina-display-support-and-photoshop-cs6.html
    So, assuming you own standalone Photoshop CS5 (and you're running at least Windows 7 on your PC) then your best option - for optimal display on your Mac - might be to subscribe to the Photoshop Photography Program for $9.99/month
    https://creative.adobe.com/plans/offer/photoshop+lightroom?sdid=KIHZP
    Then you'll get Photoshop CC + Lightroom 5 + extras and you can run them both on your Mac and Windows (2 installs permitted regardless of operating system) for the same $9.99 monthly fee.
    If you don't want to subscribe then your other option would be to buy a separate CS6 license for Mac (paying full price).

  • HT1222 hey  i need help with my ipod, i try to download facebook app and it wouldn't let me because it say ios 4.1 require and i dont have ios how do i get it ?

    hey  i need help with my ipod, i try to download facebook app and it wouldn't let me because it say ios 4.1 require and i dont have ios how do i get it ?  please i need help ASAP

    What generation of iPod touch do you have? If you don't know, see:
    http://support.apple.com/kb/HT1353
    If you have an first-generation iPod touch, it can only go to iOS 3.1.3 and hence will not run the Facebook app. If you have a second-generation iPod touch, see: 
    http://support.apple.com/kb/HT4623
    Regards.

  • Help with photoshop quitting and AMD graphics

    help with photoshop quitting and AMD graphics
    im not a techy, but it appears i have to do someting with my amd graphics card - this might be why my software is crashing - ive no idea what to do though

    Hi Chris
    I have tried to go on the website, then i tried to download the automatic detect because i wasnt sure which driver i had or needed - but it has just downloaded a load of game software - which i dont want ( i dont think)
    i have find out my laptop has a amd radeon HD 8750M card, but i dont know what im doing! i would hate to mess my computer up as i am in thailand with no one to help me!
    its frustrating as i am paying for CC but cant use it!

  • I have a macbook pro with retina display and when I try to purchase a digital hd movie I am told mp pc ic incapable of watching hd but sd I can purchase?

    I have a macbook pro with retina display and when I try to purchase a digital hd movie I am told mp pc ic incapable of watching hd but sd I can purchase?

    1. System Preferences > Other/ Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Follow the prompts.
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
        Press " Manage Website Settings" button for more options.

Maybe you are looking for

  • Crystal Reports 2008 - startswith problem

    Hi, I'm encountering a problem with the "startswith" function. We have an application that is capable to run custom made reports by our users. One of this reports has used the record selection formulas to filter out some data. And here is where the f

  • The Great Shift-Space bug in OBIEE

    Very interesting OBIEE (Oracle Business Intelligence Enterprise Edition) Bug. This might happen to you may be one out of 1,000,000. Read full from http://musnet.blogspot.com/2010/05/great-shift-space-bug-in-obiee-very.html Regards Musnet

  • Why have "My Alerts" and "Just Added" not been updated since April 2nd?

    What's going on here?

  • Getting report in a proper format

    Hi all, I have some doubts in getting my ans in a proper format. I am not sure if it is possible. I have 2 tables with the foll desc desc table1 loc varchar2 name varchar2 desc table2 user number locn varchar2 My intention is to list out all locn of

  • Can't connect to a Paris provider with iphone 4

    I've made the upgrades with AT&T for international roaming, but still can't get my iPhone 4 to work in Paris.  Data Roaming is on, Cellular data is one, have tried 3g both on and off, have reset my network settings, have turned phone on and off.  Hav