Hi Thomas The problem with this issue is, theorically it is possible to create a UIViewRoot instance with viewId but with no underlying file. When this happen? Mostly in testing, or if someone override ViewHandler and make things in its own way. In 2.0, we tried to put a null check in that part to detect if the view is created or not and if that so, throw an exception but we had to rollback because it makes some compatibility test to fail.
I have seen in MYFACES-3587 that it was reopened, but I think the issue described there is not the same. One thing is disable JspViewDeclarationLanguageStrategy in case jsp is not available on the environment, we can do that. I think we can solved it only if we add a custom config parameter for that maybe something like org.apache.myfaces.STRICT_JSF_2_VIEW_NOT_FOUND, because we need to preserve the default behavior to pass the compatibility tests. It will be added only for 2.1.x branch, because only since that version we have ViewDeclarationLanguage.viewExists(...) method. regards, Leonardo Uribe 2013/10/16 Thomas Andraschko <[email protected]> > Hi Leo, > > +1 > > what about https://issues.apache.org/jira/browse/MYFACES-3587 ? > Any way to solve this? > > Regards, > Thomas > > > > 2013/10/16 Leonardo Uribe <[email protected]> > >> Hi >> >> It could be good to do a release of MyFaces Core 2.1.13, 2.0.19 and >> 2.2.0-beta next week. >> >> If anyone has an issue that requires to be solved before release, this is >> a good time to say it. >> >> regards, >> >> Leonardo Uribe >> > >
