Attempting to upgrade to 2.1 to finish my optiontransferselect testing
(in 2.0.11 the "select all before submit" is implemented by dojo, which
I'm not using, so I'm still not quite done--when I am I'll post any
appropriate .ftl changes to JIRA.)
Is there a better list to ask about xwork changes?
Changeset 1608:
Merging the no-statics branch into 2.1 trunk. Consists of
* OGNL API separation so that the EL could be replaced
* Rid of almost all static state, preferring dep injection
* Rid of static factories, again in favor of dep injection
* Better use of dep injection library (bootstrap phase)
So I replaced a few places (a service class, a listener, and a taglib)
that used DefaultTextProvider.INSTANCE.getText() with an
injection/lookup of a bean implemented by DefaultTextProvider:
<bean id="textProvider"
class="com.opensymphony.xwork2.DefaultTextProvider"/>
But now the first time I try to use that bean I get a
NullPointerException at
com.opensymphony.xwork2.DefaultTextProvider.getText(DefaultTextProvider.java:64)
Which I think means that ActionContext.getContext() is returning null,
even though the javadoc says: "Returns the ActionContext for the current
thread, is never null."
I'm accessing this from a listener (LoginListener) that is trying to
generate i18ized messages of the form "Last successful login at X, N
unsuccessful login attempts since then." Is the ActionContext null
because I've not yet been dispatched to an action? What is the
appropriate way now to do getText() lookups from a listener?
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]