1 Reply Latest reply on May 11, 2007 8:48 AM by Christian Bauer

    assign default value for seam component

    Dan Liu Apprentice

      In jsf back bean, I can assign a default (see following code). In seam, is there anyway to assign a default value to my component?

      <managed-bean-name>
       <managed-bean-name>default</managed-bean-name>
       <managed-bean-class>Defaults</managed-bean-class>
       <managed-bean-scope>application</managed-bean-scope>
       <managed-bean-property>
       <managed-property>
       <property-name>nodeResults</property-name>
       <value>15</value>
       </managed-bean-name>
       </managed-bean-property>
       <managed-bean-property>
       <managed-property>
       <property-name>scope</property-name>
       <value>#{param.searchScope}</value>
       </managed-bean-name>
       </managed-bean-property>
      </managed-bean-name>