Done:
http://www.stripesframework.org/jira/browse/STS-539
We're in the midst of choosing a new web framework going forward to
replace Struts 1.x, and I'm trying my hardest to make sure that Stripes
is chosen. The inability to specify specific keys to lookup field names
is the big sticking point right now. We're going to choice in the next
several days. D'oh.
Thanks!!
-Ryan
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim
Fennell
Sent: Thursday, April 03, 2008 10:29 AM
To: Stripes Users List
Subject: Re: [Stripes-users] Pluggable ScopedLocalizableError? Or
Factory?Or Public Accessors?
You're right. We should definitely add accessor for those attributes -
at least as protected and perhaps as public. Can you log a JIRA for it
please?
On a related note I'm fairly well aware that some of the localization
stuff in Stripes isn't as pluggable or as flexible as some folks need.
My hope is that either for a 1.5.x point release of perhaps for 1.6 if
that isn't too far off, to refactor all the localization/text-lookup
code into a single ConfigurableComponent that will supercede the current
LocalizationBundleFactory - I could see it being the
LocalizedTextFactory or something similar....
-t
On Apr 3, 2008, at 11:25 AM, Asleson, Ryan wrote:
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/marketp
lace_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
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