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

    EL in XML Configuration

    sunls

      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?

        • 1. Re: EL in XML Configuration
          swd847

          Sorry for taking my time replying, I totally missed this thread.


          The beans.xml configuration is equivalent to the components.xml. EL support is planned for seam-xml, although I am not sure when this will go in yet.