[jira] [Created] (MYFACES-3941) FaceletCacheImpl#isFaceletCached(URL) always returns false
Thomas Timbul created MYFACES-3941: -- Summary: FaceletCacheImpl#isFaceletCached(URL) always returns false Key: MYFACES-3941 URL: https://issues.apache.org/jira/browse/MYFACES-3941 Project: MyFaces Core Issue Type: Bug Affects Versions: 2.2.6, 2.1.16 Reporter: Thomas Timbul Correct definition should be: {code:title=org.apache.myfaces.view.facelets.impl.FaceletCacheImpl} public boolean isFaceletCached(URL url) { return _facelets.containsKey(url.toString()); } {code} The facelets map {{_facelets}} is actually declared as: {code} private MapString, DefaultFacelet _facelets; {code} For obvious reasons the current implementation will, in effect, always return false. I don't know if a null check might be appropriate, i.e. {code:title=org.apache.myfaces.view.facelets.impl.FaceletCacheImpl} public boolean isFaceletCached(URL url) { return url!=null _facelets.containsKey(url.toString()); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Resolved] (TOBAGO-1424) Missing change facet in treeSelectItem
[ https://issues.apache.org/jira/browse/TOBAGO-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Udo Schnurpfeil resolved TOBAGO-1424. - Resolution: Fixed Missing change facet in treeSelectItem -- Key: TOBAGO-1424 URL: https://issues.apache.org/jira/browse/TOBAGO-1424 Project: MyFaces Tobago Issue Type: Bug Components: Core Affects Versions: 2.0.3 Reporter: Carsten Dimmek Assignee: Udo Schnurpfeil Priority: Minor Fix For: 2.0.4 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (MYFACES-3942) f:viewParam binding causes NPE because UIViewRoot is null
Bauke Scholtz created MYFACES-3942: -- Summary: f:viewParam binding causes NPE because UIViewRoot is null Key: MYFACES-3942 URL: https://issues.apache.org/jira/browse/MYFACES-3942 Project: MyFaces Core Issue Type: Bug Affects Versions: 2.2.6 Environment: Tomcat 8.0.14 and TomEE 2.0.0 snapshot. Reporter: Bauke Scholtz Using {{binding}} attribute on {{f:viewParam}} as follows: {code} f:viewParam name=foo binding=#{foo} / {code} causes regardless of the binding location (Facelet itself as demonstrated above, request scoped bean, session scoped bean, etc) the following exception: {code} java.lang.NullPointerException at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.createComponent(ComponentTagHandlerDelegate.java:534) at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:284) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50) at org.apache.myfaces.view.facelets.tag.jsf.core.ViewMetadataHandler.apply(ViewMetadataHandler.java:85) at org.apache.myfaces.view.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:195) at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59) at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48) at org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:188) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage$FaceletViewMetadata.createMetadataView(FaceletViewDeclarationLanguage.java:2752) at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:255) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) ... {code} Turns out that {{UIViewRoot}} is {{null}} while the code didn't expect that. -- This message was sent by Atlassian JIRA (v6.3.4#6332)