[jboss-user] [JBoss Seam] - Configure Java Bean properties

cfthomas do-not-reply at jboss.com
Wed Oct 17 08:10:37 EDT 2007


Hi!

Is it somehow possible to use JavaBeans as properties and configure them via components.xml.

Like this:

  | public class MyClass
  | {
  |   private MyJavaBean bean;
  |   ...
  |   public void setBean(MyJavaBean bean) {..}
  | }
  | 

and this:

  |   <component name="xxx" class="MyClass">
  |     <property name="bean">
  |        <bean>
  |           <property name="beanProp1">beanPropVal1</property>
  |           ...
  |        </bean>
  |     </property>
  |   </component>
  | 

And if yes .. how do you do that with Collections of Beans?

Thomas

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

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



More information about the jboss-user mailing list