7 Replies Latest reply on Jun 24, 2008 4:33 PM by gonzalad

    components.xml configuring a simple type component

    gonzalad Apprentice

      Hello,


      I want to configure the default pageSize (type integer) for all dataTable in components.xml.


      Can I configure a simple type (type int or java.lang.Integer) in components.xml or are components just restricted to be full javabeans ?


      For the moment, I must create a javabean wrapper and configure it via :


      <component name="pageSettings" class="org.test.web.util.PageSettings" auto-create="true" scope="application">
        <property name="pageSize">10</property>
      </component>
      




      I use it in my Action class :


      @In("#{pageSettings.pageSize}")
      private int pageSize; 



      Is there a way to have something like this ?


      <component name="pageSettings" class="java.lang.Integer" auto-create="true" scope="application">
        10
      </component>
      



      Thank you !