ValueExpression.getValue question

2011-05-27 Thread Rudy De Busscher
Hi All, In the MyFacesTest project, we have a mock implementation of the ValueExpression.getValue() method, see org.apache.myfaces.test.el.MockValueExpression#getValue. That method has an javax.el.ELContext parameter, that contains a reference to the ELResolver. However, in the method, we use

Re: ValueExpression.getValue question

2011-05-27 Thread Gerhard Petracek
hi rudy, extval as well as other libs create and activate a custom el-resolver just for a specific call. this approach is quite old and works with both jsf implementations. if there is an issue with the mock code, we just have to change it. there is no reason for not using the el-resolver from

Re: ValueExpression.getValue question

2011-05-27 Thread Rudy De Busscher
Gerhard, And after a discussion with Matt, I'm convinced that the current code is even wrong. Since the EL stuff should be independent of JSF. The only correct way is using the ELResolver from the method parameter. I'll commit the patch from Matt (MYFACESTEST-51) on Monday. Thx Regards On 27