Hello,
 
For Stripes 1.5, is there any way that the ScopedLocalizableError can be
pluggable, or maybe created via a pluggable factory?  Or, can a few of
the properties -- specifically, the ones in the constructor like
defaultScope, key, and the optional parameters -- have public getters
(not setters)?
 
Here's what I'm trying to do.  I need to override the resolveFieldName
method which is in the SimpleError class.  However, for it to be useful,
I need to tell Stripes to use *my* ScopedLocalizableError subclass.  
 
To do this, I was thinking of creating an Interceptor that is annotated
with @Intercepts({LifecycleStage.BindingAndValidation}).  Then, in the
execute method, I could iterate through the validation errors and
replace each ScopedLocalizableError with my
MyScopedLocalizableErrorSubclas; the subclass should have the same state
as the ScopedLocalizableError.
 
However, I don't think I can do this, because I don't have access to the
defaultScope, key, and the optional parameters that were originally used
to create the ScopedLocalizableError.  If I had public accessors to
those methods I could do it, but I don't think I can the way it is in
Stripes 1.4.3 or Stripes 1.5 Beta 1.
 
Any thoughts are ideas are appreciated.  Thank you!!!!!

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to