1 Reply Latest reply on Mar 1, 2008 4:44 AM by Keith Naas


    Kem Elbrader Newbie

      Can somebody explain to me what the import element of the http://jboss.com/products/seam/components namespace in a components.xml file is suppose to do?


        • 1. Re: components.xml
          Keith Naas Novice

          It imports a another Seam Namespace.  And what exactly is a Namespace?  It is a component that is used for aliasing a package full of components within the components.xml. 

          So instead of needing to do verbose things like

          <component class="org.jboss.seam.core.init">
             <property name="debug">true</property>
             <property name="jndiPattern">@jndiPattern@</property>

          You can do

          <core:init debug="true" jndi-pattern="@jndiPattern@"/>

          Read the section on 4.5. Using XML Namespaces

          Some examples of Namespaces are web and persistence

          I'm not sure why you might import another namespace instead of just referring to it in the xmlns attributes of the components element like below.

          <components xmlns="http://jboss.com/products/seam/components"