Stripes 1.6 will have the object factory - anywhere newInstance() was used is
replaced with yourObjectFactory.newInstance(); .. this was stable in the trunk
when I last tried it out, about 2 months ago. The @Before method probably
wont work too well for very long. You could subclass
We are currently using jaxb. It is definitely working fine for us, but I've
been lightly looking into a switch to xml beans. If you can use that, I would
try to stick with it. We had to hack our way through a few custom plugins and
xjc changes to get jaxb to behave correctly for us. The biggest problem is
they botched the boolean is/get convention
http://www.mojavelinux.com/blog/archives/2006/09/the_great_jaxb_api_blunder/
.. among other things .. the other big one is they only use List<> for
collections, no Sets .. and absolutely forget about maps (which are often so
useful).
From: Brown, Alex [mailto:[email protected]]
Sent: Tuesday, October 27, 2009 3:04 PM
To: [email protected]
Subject: [Stripes-users] Bean Population with XMLBeans and Stripes?
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