coming somehow late into the discussion:
I implemented a threaded state model and defined a validation delegate
ASO with this model - it works like a charm...
+ an interface with the accessor to the service and the inject
annotation, and all I have to do is add
implements InjValidationDelegate
to my page class.
Cheers,
Ron
Leonardo Quijano Vincenzi wrote:
Hi,
For some types of beans (for example ValidationDelegates), the same bean
definition would be used on all of the application pages. In this case,
for example, I'd like to use the same ValidationDelegate for all forms,
without having to specify this 2 things:
1) The delegate parameter in @Form.
2) The bean declaration in the page specification.
(2) is specially troublesome when you use annotations, since it adds
repeated code in a lot of java files. So I was wondering if there's any
way to specify a global bean definition (not instance) of a
ValidationDelegate. I know I could put an object in a global-scoped ASO,
but the info in ValidationDelegate is not designed for sharing.
So, is there a way to share definitions of beans?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]