-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set renderKitId within initFaces() #1653
Conversation
tck/faces-tck/src/com/sun/ts/tests/jsf/common/servlets/HttpTCKServlet.java
Outdated
Show resolved
Hide resolved
I can see good improvement in the test results with this change when run in my local. Thanks @volosied ! Others can validate if the solution is feasible. There were issues like below which is an issue with the httpclient-4.5.5.jar dependency and not test issue. I suspect this is my local environment issue, using the jar from https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/lib/httpclient-4.5.5.jar resolved the same issue with Security tck for me. Hence the result might be same or better than this with this change. Other exceptions from server.logs. These can be separately looked into.
|
Update : Server log exceptions towards the end of https://ci.eclipse.org/jakartaee-tck/job/10/job/jakarta-faces-tck-build-run/7/consoleFull. |
Thanks @alwin-joseph! I see a number of |
@volosied good find, wow! |
Previously when
application.getViewHandler().createView(facesContext, viewId);
was called, the renderKitId was set within createView. (Please correct me if I'm wrong)https://github.com/eclipse-ee4j/mojarra/blob/3.0.2/impl/src/main/java/com/sun/faces/application/ViewHandlerImpl.java#L314-L356
My proposed solution is to set the renderKitId during the setup phase in the test instead. Everything I tried failed because ViewHandlingStrategyNotFoundException was thrown. The viewId is null here, so there's not strategy that can returned.
In my testing,
HTML_BASIC
was set.I think this would be best solution. Also, can anyone run a build to verify?
@arjantijms @alwin-joseph