2 Replies Latest reply on May 12, 2009 9:00 PM by Sudha Perumal

    Process Flow

    Sudha Perumal Newbie

      Hi,


      Consider I'm having the table named UnitDetails.
      So Seam Gen provides
      1.UnitDetailsList.xhtml
      2.UnitDetailsList.page.xml
      3.UnitDetails.xhtml
      4.UnitDetails.page.xml
      5.UnitDetailsEdit.xhtml
      6.UnitDetailsEdit.page.xml
      7.UnitDeatilsList.xhtml
      8.UnitDetailsList.page.xml


      Entity
      UnitDetails.java


      Session
      UnitDetailsHome.java
      UnitDetailsList.java


      Here what's the purpose of xml for each xhtml.
      I want to know the process flow.. How it works..

        • 1. Re: Process Flow
          Jaime Martin Apprentice

          Hi:
          The purpose is this:


          1.UnitDetailsList.xhtml: to list (and filter) items you have in your database
          2.UnitDetailsList.page.xml: config page od the previous, it allows you to define params and other config issues such as role restrictions and page flows
          3.UnitDetails.xhtml: to view the details of one of the items tou have in your database
          4.UnitDetails.page.xml: same as 2 but applied to UnitDetails.xhtml
          5.UnitDetailsEdit.xhtml: to edit and persist a new item in your database
          6.UnitDetailsEdit.page.xml: same as 2 but applied to UnitDetailsEdit.xhtml
          7.UnitDeatilsList.xhtml and 8.UnitDetailsList.page.xml: I guess you typed it wrong, aren´t they 1 and 2?


          Wherever I´ve said item above I mean UnitDetails. I go on:


          Entity UnitDetails.java: it´s the java representation of your database UnitDetails table


          Session UnitDetailsHome.java: framework class that helps you with persistence features


          UnitDetailsList.java: framework class that helps you with query features


          I advise you to read chapter 13 of the Seam Refernece: The Seam Application Framework.


          welcome to Seam!

          • 2. Re: Process Flow
            Sudha Perumal Newbie

            Thank You Very much..


            I have to know when the xml files will be processed/called.
            for example,
            If I click the UnitDetails List means, It list the items that I've in database.
            To list these items, what happened, what's the flow to list it.


            To do the transaction, I dont know where to put my own methods..
            If I get the flow means, it'll very helpful..


            Thanks in Advance.