2 Replies Latest reply on Aug 22, 2007 7:34 AM by Mani

    mapping entities in seam 2.0

    Mani Newbie

      I am migrating my application which from 1.2.1 to 2.0Beta1.
      Had mapped some Home objects using the relatedentites definitions in components.xml as mentioned below :

      <!DOCTYPE components PUBLIC
       "-//JBoss/Seam Component Configuration DTD 2.0//EN"
      <!ENTITY relatedentities SYSTEM "classpath:///WEB-INF/specialcomponents.xml.txt">

      and the specialcomponents.xml.txt had the mappings as [for example]:
      <component class="org.jboss.seam.example.booking.HotelBookingAction" name="hotelBookingTest"/>

      The file where the hotelBookingTest is injected has annotation specified as
      HotelBookingAction hotelBookingTest

      This doesn't seem to work, I get exception when the object where the hotelBookingTest gets created telling
      Caused by: javax.ejb.EJBTransactionRolledbackException: In attribute requires non-null value: register.hotelBookingTest

      Is this supported in Seam 2.0?

      -- Mani.