Results 1 to 3 of 3
  1. #1
    Jaimac is offline Member
    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Default Using JSF and EJB to develop a simple CRUD application from scratch...

    I have been using JAVA for some time now, but have just decided to delve into Web Applications using JSF. In my understanding, it's always best on understand the very fundamentals of creating, reading, updating and deleting an application to really get a good start in Enterprise application development.
    I am trying to build a simple enterprise application using jsf and ejb session beans and entity classes for java db, the entity class has three fields; id, firstname, and lastname. I can persist the data to the database, but i am stuck on finding a particular record using the usual find method with the id parameter, and i can't find a way out. I get this error message; Unable to find matching navigation case with from-view-id '/finder.xhtml' for action '#{identity.find(identity.itable.id)}' with outcome 'entities.identitytable[ id=51 ]'
    I have a class name finder.xhtml, a managed bean named identity and this is the main code in the finder.xhtml file if necessary

    <h:body>
    <h2>Welcome to Record Finder!</h2>

    <f:view>
    <h:form>
    <h:panelGrid id="panel" columns="2">
    <h:panelGroup/>
    <h:messages for="panel"/>
    <h:inputText id="searchtext" title="Enter Search Text" value="#{identity.itable.id}"/>
    <h:commandButton id="searchbutton" value="Find" action="#{identity.find(identity.itable.id)}"/>
    <h:outputLabel value="First Name:" for="firstname"/>
    <h:outputText id="firstname" value="#{identity.itable.setFirstname(identity.ita ble.firstname)}"/>
    <h:outputLabel value="Last Name:" for="lastname"/>
    <h:outputText id="lastname" value="#{identity.itable.lastname}"/>
    </h:panelGrid>
    </h:form>
    </f:view>

    </h:body>

    please help me so i can proceed....

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Using JSF and EJB to develop a simple CRUD application from scratch...

    Please go through the Forum Rules -- particularly the second paragraph. The duplicate thread you started in Advanced Java has been removed.

    Please also go through Guide For New Members and BB Code List - Java Programming Forum and edit your post accordingly.

    db

    edit Also removed the triplicate thread from New to Java.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Using JSF and EJB to develop a simple CRUD application from scratch...

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Develop Java Database Application
    By rona in forum Advanced Java
    Replies: 4
    Last Post: 12-31-2012, 12:53 PM
  2. Java Application for handling records(CRUD)
    By salmanmanekia in forum XML
    Replies: 0
    Last Post: 04-11-2012, 05:05 PM
  3. Replies: 0
    Last Post: 11-25-2011, 06:16 AM
  4. How to develop a standalone application using java
    By santhoshkeleti in forum New To Java
    Replies: 2
    Last Post: 11-15-2011, 06:21 PM
  5. CRUD J2EE Application
    By Assaf A in forum Eclipse
    Replies: 1
    Last Post: 10-28-2008, 12:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •