Unsupported renderer errors for Switch
-
- Posts: 277
- Joined: 08 Jul 2013, 17:53
In PE v6.0, the Switch component throws several warnings/errors for an unsupported/missing renderer for SwitchRenderer. It looks like there was some rework done to this component. Functionality isn't affected, just I'd rather not see extra log messages.
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Would be great if you could provide a small example that we can check that.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Posts: 277
- Joined: 08 Jul 2013, 17:53
I'm using a PF 6.1 snapshot. I confirmed the same behavior with the release version of PF 6.0.
Also, as noted, using PFE 6.0.
Using MyFaces 2.2.7 on Websphere 8.5.5.8.
myTab.xhtml:
The log messages:
Switch.java, PFE 4.0 tag:
Switch.java, PFE 6.0 tag:
The default rendered (SwitchRenderer) was removed in 6.0, so removing the removed line of code makes sense. But it looks like explicitly setting the renderer type to null would resolve the issue.
Also, as noted, using PFE 6.0.
Using MyFaces 2.2.7 on Websphere 8.5.5.8.
myTab.xhtml:
Code: Select all
<pe:switch value="#{myBean.switchValue}">
<pe:case value="main" id="mainSwitchPanel">
<h:panelGroup>
<!-- other tags here -->
</h:panelGroup>
</pe:case>
<pe:defaultCase id="defaultSwitchPanel">
<h:panelGroup>
<!-- other tags here -->
</h:panelGroup>
</pe:defaultCase>
</pe:switch>
It looks like the warning is triggered from this[7/14/16 7:28:06:693 EDT] 000000c4 HtmlRenderKit W Unsupported component-family/renderer-type: org.primefaces.extensions.component/org.primefaces.extensions.component.SwitchRenderer
[7/14/16 7:28:06:708 EDT] 000000c4 webapp I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [AdministrationPortlet2_war#AdministrationPortlet.war]:.No Renderer found for component {Component-Path : [Class: com.ibm.faces20.portlet.UIPortletViewRoot,ViewId: /default.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_e][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_f][Class: org.primefaces.component.panel.Panel,Id: j_id_z][Class: org.primefaces.component.tabview.TabView,Id: tabview][Class: org.primefaces.component.tabview.Tab,Id: myORideTab][Class: org.primefaces.extensions.component.switchcase.Switch,Id: j_id_or]} (component-family=org.primefaces.extensions.component, renderer-type=org.primefaces.extensions.component.SwitchRenderer) created from: /myTab.xhtml at line 33 and column 28
[7/14/16 7:28:06:724 EDT] 000000c4 UIComponentBa W No Renderer found for component {Component-Path : [Class: com.ibm.faces20.portlet.UIPortletViewRoot,ViewId: /default.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id_e][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_f][Class: org.primefaces.component.panel.Panel,Id: j_id_z][Class: org.primefaces.component.tabview.TabView,Id: tabview][Class: org.primefaces.component.tabview.Tab,Id: myORideTab][Class: org.primefaces.extensions.component.switchcase.Switch,Id: j_id_or]} (component-family=org.primefaces.extensions.component, renderer-type=org.primefaces.extensions.component.SwitchRenderer) created from: /myTab.xhtml at line 33 and column 28
Switch.java, PFE 4.0 tag:
Code: Select all
public Switch() {
setRendererType(DEFAULT_RENDERER);
}
Code: Select all
public Switch() {
}
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
applied it, please test: https://github.com/primefaces-extension ... 1e7b2aeae8
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Posts: 277
- Joined: 08 Jul 2013, 17:53
Thanks.
That actually didn't work, despite several google references to this being the answer.
I removed the renderer-type tag for switch in primefaces-extensions.taglib.xml and built the jar. This did remove the warnings.
That actually didn't work, despite several google references to this being the answer.
I removed the renderer-type tag for switch in primefaces-extensions.taglib.xml and built the jar. This did remove the warnings.
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
done
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests