I am facing library referencing issue. I am using Netbeans 7.1.2; glassfish 3.1.2
My computer, i can use this API: FacesContext.getCurrentInstance().getMessageList()
But my friend's computer, also the same OS version; netbeans 7.1.2; glassfish 3.1.2
But he can't use that method because it is not found.
Do you see any problems that made my code compiled but the other isn't?
Other than the fact that it has absolutely nothing to do with your OS, IDE or your application server?
Apparently you have a JSF library difference. Might be that your friend has an older version of JSF on the project classpath that doesn't have the given method yet.