ADF Workshop

I am walking through the ADF workshop from OTN. The one where you build a simple browse/edit/delete on OE.Customers.
I am having 2 'problems' with the walkthrough.
Scenario 1) Deletes do not work. I understand that the proper commit handler is not implemented until well after the 'sure' page flow is developed but afte I build SureAction.jsp I get errors in the oc4j server log (no such Method onDelete)
Scenario 2) In the editCustomers Page. Once I commit and return to browseCustomers my Previous Set and Next Set Buttons now take me back to my editCustomer PAge?
JDEV 10.1.2
DB 10g
Anyone have any pointers?

I remember having a similar impression of deletes not working. Are you using an employee from the front of the list (starting with 100, I think). They have associated orders and won't delete because of the related records. Try one from the end of the list. Keep ploughing through it and I think things will come together for you.

Similar Messages

  • ADF Workshop 10.1.2

    Hi
    I have tried to complete the ADF workshop at this location : http://www.oracle.com/technology/obe/obe9051jdev/ide1012/adfworkshop/buildingadfapplicationsworkshop.htm.
    On BrowseCustomers.jsp page
    - Could you tell me why the value of the parameter Arg0 on the EDIT and REMOVE anchors of each row are the same ? What is the utility on ADF binding logic ?
    - Could you tell me why on the EDIT and REMOVE anchors, we have 2 params with the same name "event".
    By example, on edit anchor we have ...
    a href="browseCustomers.do?event=setCurrentRowWithKey&Arg0=<c:out value='${Row.rowKeyStr}' /> &event=Delete"
    All my navigation links doesn't work very well now. Do you have a erratum of this workshop ?
    Thank you !!
    Rémi

    Hi,
    the event you highlighted ses the current Row in Struts. Struts works with events in its action handler to process methods. If you compare the setCurrentRowWithKey value of different links you will notice differences.
    The link you pasted below first sets the current row and then deletes it. The workshop is tested and does work
    Frank

  • ADF Workshop - Delete failes

    Tried ADF Workshop.
    The "Converting Middle-Tier Errors to Struts Messages" part resulted in strange behavior.
    If you Click either Yes or Cancel in the Removal Confirmation form the result is the same - showErrors page with message:
    Validation Error
    You must correct the following error(s) before proceeding:
    Customer null has outstanding Orders and cannot be deleted.
    Whereas the OK button is disabled.
    Any ideas?
    Thanks

    Read
    Regarding Building Oracle ADF Applications Workshop
    Replace 'Delete' with 'Commit' in the
    JUCtrlActionBinding actionBinding =(JUCtrlActionBinding)ctx.getBindingContainer().findCtrlBinding("Commit");

  • Free ADF workshop (Ireland),

    If you are based in Ireland and would be interested in attending a free "J2EE and ADF for Forms and Designer Developers" then there are a few places left at the event on the 9th Feb in Dublin.
    This event will introduce the concepts of JDeveloper, Oracle ADF and J2EE, in terms that 4GL/RAD developer are already familiar.
    If you are interested check out the details on line.
    http://www.oracle.com/go/?&Src=4007181&Act=132
    Regards
    Grant Ronald
    Oracle Product Management

    more info http://www.irishdev.com/EventDetails.aspx?id=400

  • Step-by-Step guide for developing a ADF application, does it exist?

    Step-by-Step guide for developing a ADF application, does it exist?
    Hi there,
    At our company we recently begun working on a project using Oracle ADF with
    UIX. We got the Oracle JDeveloper 10g handbook and we did a 5 day Oracle ADF
    course. A good way to start the project I think.
    One thing that bothers me though, is that I cannot find a simple clean example
    how to manipulate a record in the DB, going through all steps of MVC. I tried
    this forum, the books we got and google. It usualy explains a small portion
    of the steps needed, but never a complete example.
    I know people will probably say you can design what you want in various ways
    and that's its all up to the developer, this is also the power of ADF that it
    can be very flexible.
    However it would be nice to have a step-by-step example how to be able to insert,
    edit and delete a record. Showing all the steps that have to be made in the BC4J,
    struts and UIX, including creating triggers, seq, autocommitting etc.
    I think ADF is pretty complicated, therefore having a step-by-step example guide
    (design pattern) would be very handy for a beginner like me.
    Do such guides exist, are there developers who created such a guide for themselves?
    Would other developers find such a guide useful? I'm curious about everybody's
    opinion.
    A good example of what I mean by guide can be found here
    How To Build a Simple UIX Search Form, written by Shay Shmeltzer
    http://www.oracle.com/technology/products/jdev/tips/shmeltzer/setwhereclause/uix.html
    kind regards
    Ido

    Have a look at the ADF Workshop - it doesn't use UIX rather it uses JSP but I think it will give you the basics.
    http://www.oracle.com/technology/obe/obe9051jdev/ADFWorkshop/BuildingADFApplicationsWorkshop.htm
    Then have a look at the toy-store demo and the new ADF Case manual:
    http://download.oracle.com/docs/cd/B14099_10/web.1012/b19163/toc.htm
    http://www.oracle.com/technology/products/jdev/tips/muench/adftoystore1012/index.html

  • ADF delete a record

    Hi,
    Iam using Jdeveloper 10g. I have made a jsp page. In this page, Iam using <html:select> for selecting database information. After selecting of one item, I will delete record inside the database.
    How can I do that.
    Iam using ADF and struts.
    Regards
    Johan

    Have a look at the ADF workshop (linked from the JDeveloper home page and from the tutorials page), it takes you through building a complete application including deleting a record.

  • Create Event in ADF

    Hello,
    Our application has a Register User page, where the users will enter their details and press a submit button.
    Being new to ADF, I am struggling to find the best method to implement this. Looking at the ADF workshop (Customer Browse/Edit/Create), there was a Create button in the browse page which triggers the Create event.
    In my application, a create Event should be automatically triggered before displaying the Registration page.
    I'm sure there should be simple way to implement this. Any ideas will be gratefully received.
    Many Thanks
    Naresh

    Just drag a new data action to the struts diagram before the JSP page. Drag the create action on-to it. and start running from that action.

  • JBO-29000 error in running a JSP - Oracle JDeveloper 10.1.2.1.0 (Build 1913

    Hi,
    I was working on the Oracle ADF workshop with the above version of JDeveloper and Oracle 9i as database. As per the instructions in the workshop I developed a JSP, browseCustomers.jsp and Ran it.
    In the "Enbedded OC4J Sever" panel in the JDeveloper I got the following:
    =====================================================
    Embedded OC4J startup time: 6564 ms.
    05/11/06 20:14:03 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    Target URL -- http://24.99.98.235:8988/CustomerMaintenance-ViewController-context-root/browseCustomers.do
    Nov 6, 2005 8:14:12 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Nov 6, 2005 8:14:12 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Nov 6, 2005 8:14:12 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='view.ApplicationResources', returnNull=true
    Nov 6, 2005 8:14:15 PM org.apache.struts.action.RequestProcessor processException
    WARNING: Unhandled Exception thrown: class oracle.jbo.JboException
    Nov 6, 2005 8:27:10 PM org.apache.struts.action.RequestProcessor processException
    WARNING: Unhandled Exception thrown: class oracle.jbo.JboException
    In the IE Browser I got the following (I just mentioned first two lines):
    ==================================================
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.toplink.exceptions.SessionLoaderException, msg=Exception Description: Several [1] SessionLoaderExceptions were thrown:
    I browsed through the discussion forum for a possible solution to this kind of problem but I'm lost. I didn't find any definite solution to this. Can anyone help me to get rid of this error.
    Thanks
    Agnivb

    Any resolution on this?

  • How to insert new record in the database table using the Jdeveloper

    Hi Masters
    I am new Bee in j2EE developing side and i ahve oracle jdeveloper 9i version is 9.0.4
    And now I wann to know that how can i create the web application that will enter the Data in the HTML FORM and save that data into the Table emp plz tell me step by step
    thx in advance

    the steps to follow -
    download JDeveloper 10.1.2 from OTN (9.0.4 is very old and has some features that won't be in the next releases).
    Then follow the ADF Workshop from the JDeveloper home page on OTN.
    (If you have to use 9.0.4 then look for the archives of JDeveloper on OTN)
    for example:
    http://www.oracle.com/technology/products/jdev/viewlets/viewlet-archive0903.html

  • Confirm Delete on a jsp

    How do you confirm a delete on a JSP when using this type of delete:
    ">Delete</a>
    I tried adding an onclick to a javascript function, but I can't get it to actually do the delete, it appears that the data the delete needs isn't getting passed.
    Is there any example code out there?

    The ADF Workshop has a sample solution for building a delete procedure with a delete confirmation page:
    http://www.oracle.com/technology/obe/obe9051jdev/adfworkshop/buildingadfapplicationsworkshop.htm#t5

  • BC4J JBO errors over-ride

    We want to catch our JBO exceptions using folowing method
    package be.iadvise.apps.serverinventory.model.messages;
    import java.util.ListResourceBundle;
    public class MessageBundleExceptions extends ListResourceBundle
    private static final Object[][] sMessageStrings = new String[][] {
    {"25002", "Could not start the application. Call helpdesk."},
    {"26048", "Application cannot connect to database."},
    {"26061", "Application cannot connect to database."},
    {"27008", "Application cannot connect to database."},
    {"27122", "Application error, log a support ticket."}
    * Return String Identifiers and corresponding Messages in a two-dimensional array.
    * @return
    protected Object[][] getContents()
    return sMessageStrings;
    We have found this method in a pdf
    http://www.oracle.com/technology/products/jdev/htdocs/bc4j/BusinessRulesInBc4j.pdf
    in the toystory demo this method is also used.
    We still get our JBO exceptions and not our custom messages.
    What did we forget to implement?
    greeting
    Tim Haselaars

    Maybe this part of the ADF Workshop can help:
    http://www.oracle.com/technology/obe/obe9051jdev/ide1012/adfworkshop/buildingadfapplicationsworkshop.htm#t6

  • Help with simple jsp please

    Hi,
    I would like to know how to create a simple jsp to display some data from the database. I was able to create a bean to display the data from a table using the wizard. How do I put this bean's content into the jsp?
    Thanks,
    Charles Li

    Even better are the online tutorials that will take you step by step:
    http://www.oracle.com/technology/obe/obe9051jdev/index.htm
    Try the ADF Workshop one - it will show you most of what you need.

  • Invisible image

    Hi,
    One problem confused me once I run ADF workshop which is provided by OTN tutorial.
    My problem is:
    the sample images like "remove" and "edit" buttons can not be visible when I drop them to the last two columns
    I did everything followed by tutorial.
    Save images to local drive and drag and drop them to columns...
    There is no problem when I click buttons to go linked page. Just image buttons can not be seen
    Is there anything I need to do with IE settings?
    any help?
    Watson

    thanks
    Below is the html code generated by ADF workshop
    <td>
    &event=Edit">
    <img height="21" width="39" src="../images/button_edit.gif" border="0"/></a>
    </td>
    <td>
    <a href="browsePap.do?event=setCurrentRowWithKey&Arg0=<c:out value='${Row.rowKeyStr}' />&event=Delete">
    <img height="22" width="60" src="../images/button_remove.gif" border="0"/></a>
    </td>

  • Workshop Building Oracle ADF Applications

    Hi all
    i tried the Building Oracle ADF Applications: Workshop and still have a problem:
    If i navigate from BrowserCustomers.do to eg. EditCustomers this works fine. In the EditCustomers i have my Cancel Button that implements the event_rollback. If i run the application in the IE navigate to EditCustomers an click on Cancel button a go back to the BroseCustomers view. But although i see the context of the BrowseCusomers view the url-adresslist gives me /CustomerMaintenace-ViewController-context-root/EditCustomers.do.
    So if i click on Button NextSet in BrowseCustomers view i am again in the EditCustomers.
    I checked several times the code with the one in the workshop but didnot find anything wrong.
    Any ideas ??

    I got the same problem.
    I think its related to the Edit link, wich is :
    a href="index.jsp.do?event=setCurrentRowWithKey&Arg0=<c:out value='${Row.rowKeyStr}' />&event=Edit"
    The probleme come from the fact that there's two parameter name event.
    Anyone knows a right way to select a row and forward to the edit page in the same link ??
    thx for your help
    Jeff
    Message was edited by:
    user536516

  • Building Oracle ADF Applications Workshop

    I have finished going through the "Building Oracle ADF Applications: Workshop"
    from the following link:
    http://www.oracle.com/technology/obe/obe9051jdev/ide1012/adfworkshop/buildingadfapplicationsworkshop.htm
    Hopefully that is sufficient for the doc writer to locate the context of my
    comments. If not, let me know and I'll provide additional information.
    I grouped all of these together as one big comment. If you want it in a
    different format, again, let me know.
    Prior starting the workshop I printed out the entire document which resulted in
    51 pages of output. In each comment, except for the first general comment, I
    list the section name, step number and my page number which should be enough to
    uniquely identify the area that the comment relates to. My suggestions start
    out with "It would be nice...". I numbered the comments so I could have
    comments refer to each other.
    (1) One of the things I really liked was the "If you want to see a
    demonstration of these steps, click here" links. Sometimes the discussion
    was not precise so being able to see the actual usage worked well. It would
    be nice if there were more of these in the workshop.
    (2) "Building the Basic Page Flow", step 2, page 13.
    I had some trouble with this because it wasn't clear how one changes the
    DataPage's name. I used the property sheet and did it wrong, resulting in
    an error. I had to consult the "If you what to see..." link to determine
    how to do this correctly.
    It would be nice if there were a paragraph before "When you are done"
    saying something like:
    To change the name of a DataPage just click on the icon's label and
    enter the new value, starting with the leading slash.
    (3) "Connecting the Pages", step 9, page 21.
    This step has one switch to the Source editor view to make a change. This
    change can also be made in the Design view.
    It would be nice to stay in the Design view. The suggested wording for this
    is:
    In the Design view you can change the Edit button link by clicking on
    the Edit button and pressing the left arrow (<--) key once on the
    keyboard. The Property Inspector will be in an <A> element. Edit the
    href property by appending the following:
    &event=Edit
    (4) "Connecting the Pages", step 10, page 22.
    The first time I had trouble drawing the links. A bit more discussion on
    how to draw the links with corners would be nice. One of the troubles was
    that I would edit one link and another (or all of them) would suddenly
    change to simple vertical links (no corners). The link lines were
    separated, but the link names were displayed making it more difficult than
    necessary to tell which link line went with which link name.
    (5) "Adding a Create Function", step 4, page 24.
    I have the same comment on this step as I did in comment (3).
    (6) "Creating Session Variables with onEvent() methods", step 2, page 27.
    The last paragraph describes how JDeveloper will prompt you to enter an
    import statement. The comment I wrote on that page was:
    Cool!
    It's nice that JDeveloper handles this booking task.
    (7) "Building a Message Stack with a findForward() method", step 1, page 28.
    In the second paragraph it's not clear what the context is. It would be
    nice if the second paragraph would start out with:
    In struts-config.xml, right-click ...
    (8) "Building a Message Stack with a findForward() method", step 6, page 30.
    This code fragment at the end of this step has all lines starting in column
    1. It would be nice if this was indented so it could be followed with less
    effort. The same is true for the other code fragments in this section.
    (9) "Building a Message Stack with a findForward() method", step 12, page 32.
    I wrote a simple Java program that compared a String variable to a string
    literal. In all cases using == to compare returned false, while .equals()
    worked correctly. I was using Java 1.4.2_06_b03. Even if Java 1.5 supports
    converting the == between strings to equals(), it would be nice if the
    comparisons to the "type" variable used the .equals() method instead of ==,
    so that those of us still using Java 1.4 would have properly working code.
    Note that == in 1.4 compares the hash values while equals() looks at the
    contents.
    (10) "Enabling the Delete Confirmation Page", step 5, page 36.
    The last sentence of the first paragraph contains the phrase:
    if there are errors, build the ActionMessage object.
    It would be nice if this contained an extra word as in:
    if there are no errors, build the ActionMessage object.
    (11) "Enabling the Delete Confirmation Page", step 6, page 36.
    Line 12 (or 13 if you count blank lines) is storing a value in the request
    object. It would be nice to have a discussion in this step instead of
    having to wait until section "Intercepting the Middle-Tier Message", step
    8, page 42 before we know what this is all about.
    (12) "Overriding the findForward() Method", step 1, page 44.
    It appears that the call to the super.findForward method is missing. It
    would be nice if the following were inserted before the closing curly
    brace:
    super.findForward(actionContext);
    (13) "Overriding the findForward() Method", step 9, page 46.
    Near the end of this step it mentions the imports that are added. It
    appears that there is a missing import statement. If this is correct, it
    would be nice to also include the following import:
    import oracle.adf.controller.struts.actions.DataActionContext;
    (14) "Overriding the findForward() Method", step 10, page 46.
    My diagram doesn't look like this. The "Edit" link between /browseCustomers
    and /editCustomers should be "Commit". The "Cancel" link from
    /editCustomers back to itself shouldn't be there. The "Commit" link from
    /sure to /browseCustomers should be "Cancel". Compare this with the diagram
    in section "Creating a Delete Confirmation Page and a Forward", step 5,
    page 25.
    (15) "Internationalizing Field Labels", step 3, page 48.
    This is another case where the context is not clear. It would be nice if
    the following was added to the first paragraph:
    In the browseCustomers page,
    (16) "Internationalizing Field Labels", step 10+, page 49.
    Everything is internationalized except for the buttons. How does one
    internationalize them?
    (17) "Conditionally Displaying a Field", step 1, page 49.
    The last sentence says "The result should look like the following:". If one
    were following this workshop from front to back then what should be shown
    is the internationalized version of this page.
    (18) "Conditionally Displaying a Field", step 5, page 50. Bug?
    When I look at the Source view of editCustomers.jsp the <INPUT> element has
    a property setting of disabled="true". When I run the application and look
    at the HTML source used by the browser, that same <INPUT> element has a
    property setting of disabled="disabled". It works, but isn't that somewhat
    redundant? I recommend that the source code should have the disabled
    property setting as it appears in the Source view.

    Hi Jean,
    Can you please provide the document part number and book title where you have seen this errors? This way I can forward this to the doc writer.
    If this is not a document issue, please try the Members Feedback Forum. Community Feedback (No Product Questions)
    Thanks

Maybe you are looking for

  • How to find out the length of a LONG column?

    How can I find out the length of a LONG column, I should write a stored procedure which will return me the length of a LONG column passed as an argument to it! any ideas or suggestions? please respond, i need this urgently, or you can mail me at [ema

  • Book from pdf

    How can I make a book of pdf files which consist of text and photos? When I tried to import them to iPhoto 5, they were refused. Is there a workaround? Milan

  • Currency Translation - Rolling Forecast

    Hi, Scenario is: We're doing 13 months rolling forecast which goes beyond one year. When currency translation happens, as part of default logic, it converts the records only for the year of forecast (selected in current view) and not beyond the curre

  • Need to export selected Mailboxes as part of legal discovery

    I need to copy certain selected mailboxes/messages as part of legal discovery. For the life of me I cannot find how to do it in an efficient manner.  If I export as .pdf files, the attachments are not included.  If I export as .mbox nothing seems to

  • Suggestion naming a package

    I've done a PKGBUILD for the following program: http://unicorn.us.com/cal.html Which is basically the traditional Unix cal command with colors and reminders. I'd like to submit it to AUR, problem is that authors have named it just "cal", which confli