1 Reply Latest reply on Jul 21, 2010 8:24 PM by Stuart Douglas

    EL in XML Configuration

    s ls Newbie

      In Seam2.x, XML configuration can make use of EL to set field values, like:




      public class ManageBean {
         ResourceBean resourceBean;
         ...
      }
      
      public class ResourceBean {
         int timeOut;
         ...
      }



      components.xml:



      <test:resource-bean name="resourceBean" time-out="2000" .../>
      <test:manage-bean name="manageBean" resource-bean="#{resourceBean}" 
      .../>



      Now, Seam3's XML Configuration Module don't support this. Is there any plan about supporting for EL?


      beans.xml:


      <test:ManageBean>
        <s:extends/>
        <test:resourceBean>
          <s:Inject/>
        </test:resourceBean>
      </test:ManageBean>
      
      <test:ResourceBean>
        <s:extends/>
        <test:timeOut>2000</test:timeOut>
      </test:ResourceBean>



      Is the beans.xml configuration equivalent to components.xml?