[jboss-user] [JBoss Seam] - assign default value for seam component

liudan2005 do-not-reply at jboss.com
Fri May 11 08:40:51 EDT 2007


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>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044966#4044966

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044966



More information about the jboss-user mailing list