<p:schedule> problem inside <ui:composition><ui:define>...<ui:define/><ui:composition/>
I am using p:schedule inside my project. It simply works with new fresh application and in the project also. But when i put this in project's template format ui:composition ui:define p:schedule ... ui:defi开发者_StackOverflow中文版ne ui:composition
then its not showing the schedular, as other components are showing??? Any kind suggestion will be appreciated. Immediate requirement :-(
It's a well known issue with Facelets.
As it is recommended here, Use <c:if> and <ui:include> only for clearly different chunks of xhtml. Enclose components in panels if you need to make them more unique. If you must, provide IDs, but beware that two included chunks of xhtml as siblings will cause you a Duplicate ID problem. For minor UI customisation depending on the state of the application, use the JSF component property, rendered="true/false".
If you use PrimeFaces, I can suggest you to use p:outputPanel component with rendered attribute instead of c:if.
精彩评论