Hello all,

I am working with XMLBean objects, Spring webservices and of course
Stripes.  XMLBeans utilize factories to create new object instances for
an object graph like this:

 

obj = Object.Factory.newInstance();

newObj = obj.addNewObject();

 

The issue I have is that a given form may have information to build an
unknown set of objects on an object graph.  We need to maintain this
flexibility as the pages are dynamic.

 

We want to use the XMLBean object as the form object on the action bean.

 

We could pre-instantiate the objects in a @Before method but this can be
messy and might leave us with object leafs that were not part of the
submission.

 

I have a few options as I see it:

*       Convert everything to JAXB
*       Figure out a bean population strategy hack that uses reflection
to automatically build objects based on the XMLBean convention.

 

Has anyone heard of any solutions for this issue?  It looks like the
Stripes rolled BeanUtils does not support factories.

 

Thanks!

    Alex

 

 

 



Barclays             www.barclaycardus.com

This e-mail and any files transmitted with it may contain confidential and/or 
proprietary information. It is intended solely for the use of the individual or 
entity who is the intended recipient. Unauthorized use of this information is 
prohibited. If you have received this in error, please contact the sender by 
replying to this message and delete this material from any system it may be on.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to