To move forward I added the accessors for my object to an interface I
created to access a certain property set.
And who can believe it... finally the OgnlRuntime could find the property.
What does this leave us with?
In a more complex setup with multiple Action base classes and interfaces
some properties get forgotten
when no interface is mentioning them!!!!
Looks like a bug to me!
But I hope someone can make an educated remark to this!
On 23/06/2011 03:37, UV wrote:
In my website I am using an ajax method to request the current state.
An action fires and provides the result object as a property
(java.lang.Object).
But for some reason my JsonResult class cannot find this object in the
value Stack.
Looking into the OgnlRuntime code, the superficial cause is that an
empty Array has been stored in the ClassCache for my property.
So this was working some time before. And it works for the
Streamresult and the content down load.
I cannot find the place where the property key is stored with an empty
accessor list in the ClassCache stopping the property lookup from
functioning later in the code....
Any ideas someone?
The only pointer I found with google was a naming error caused by the
setter/getter.
Its not that simple in this case :(
Object jsonModel;
public Object getJsonModel () {
return jsonModel;
}
public void setJsonModel (Object jsonModel) {
this.jsonModel = jsonModel;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org