Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

rendered or not rendered <ui:components>

843844Nov 4 2009 — edited Nov 5 2009
Hello,

I got a ui:composition with different layers within. One layer error.xhtml should only viewed even
when an error occurs. So I expected to add a rendered attribute like this:

  <ui:include src="error.xhtml"  rendered="#{Bean.isError}"/>
within
<ui:composition template="layout.xhtml"
   ....    
    <ui:define name="content">   
       <ui:include src="top.xhtml" />
       <ui:include src="middle.xhtml" />
       <ui:include src="foot.xhtml" />
       <ui:include src="error.xhtml"/>
     </ui:define>  
    
</ui:composition>
So it does not work, while native ui does not allow this attribute.

What is the common way gain what I want ?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2009
Added on Nov 4 2009
5 comments
357 views