volosied commented on code in PR #338:
URL: https://github.com/apache/myfaces/pull/338#discussion_r992929011
##########
impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFaceletFactory.java:
##########
@@ -438,6 +438,22 @@ private DefaultFacelet
_createCompositeComponentMetadataFacelet(URL url)
public Facelet getViewMetadataFacelet(FacesContext facesContext, String
uri)
throws IOException
{
+ Boolean isManagedFacelet = _managedFacelet.get(uri);
+ if (isManagedFacelet == null || isManagedFacelet)
+ {
+ Facelet facelet = null;
+ if
(ExternalSpecifications.isCDIAvailable(facesContext.getExternalContext()))
+ {
+ BeanManager bm = CDIUtils.getBeanManager(facesContext);
+ facelet = CDIUtils.get(bm, Facelet.class, true,
View.Literal.of(uri));
+ }
+ _managedFacelet.put(uri, facelet != null);
+ if (facelet != null)
+ {
+ return facelet;
+ }
+ }
+
Review Comment:
Code from Thomas' initial fix for this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]