2 Replies Latest reply on May 13, 2009 4:33 PM by eakom

    one form with many entities

    eakom

      Hi,


      I want to work with many EJBs Entities in the same page.
      The problem is that I have only one form. The form’s action must build dependencies between entities and persist them all.


      Is it possible ?


      Can you help please ?


      Thanks.

        • 1. Re: one form with many entities
          seamalex42

          Yes, it is.
          You can implement one actionBean with several referenced Entities.
          Inside your View you can access the entities like



          #{myaction.entitie-1.attibute} and  #{myaction.entitie-2.attibute}






          Or you define your entities as outparameter like this
          actionBean



          @Out
          private Entitie-1 entitie-1
          
          @Out
          private Entitie-2 entitie-2
          
          
          and access the entities as:
          
          #{entitie-1.attibute} and  #{entitie-2.attibute}
          
          




          You should read the reference documentation.

          • 2. Re: one form with many entities
            eakom

            Thanks for the reply.
            it works.