In our web application, we did some refactoring on Java beans, and because of this refactoring, some actions / getters are no longer available. For example, in the following example:
public class MyBean implements Serializable {
If my JSF code still looks like this:
<h:inputText value="#{myBean.foo}" .../>
then it will throw an exception.
My main problem is that some of the EL expressions can now point to more advanced Java bean methods, and I can only see this when viewing the corresponding page. It becomes more difficult when the expression EL is located in the part that is displayed under certain conditions and / or is written by Ajax.
So my question is, how can I check statically the correctness of these EL expressions?
I checked the JSFUnit tool as it provides such a utility. So I tried this example , but it does not work as expected. On a simple test page with several EL expressions (some correct, some others erroneous using non-existing beans and / or methods), the test succeeds, which is incorrect.
Important Note: My beans are defined in my Spring configuration and not in faces-config.xml .
Also note that I just need to check if the EL expression applies to the existing bean and method, and it is not necessary that this action is performed correctly ...
Technical information:
Java 1.6, Spring 2.5, JSF 1.2, EL Functor , Facelets, and Richfaces 3.3