This content has been marked as final.
Show 4 replies
-
1. Re: facelets ui:composition
mail.micke Jun 26, 2008 4:28 PM (in response to koatto)ui:composition with EL works for me.
Just tested the following simple test:
with a req param called page with the value /WEB-INF/layout/template.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="https://ajax4jsf.dev.java.net/ajax" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:s="http://jboss.com/products/seam/taglib" template="#{param.page}"> <ui:define name="body"> #{param.page}
-
2. Re: facelets ui:composition
koatto Jun 26, 2008 5:49 PM (in response to koatto)I'm sorry.
The ui:insert only supports literals :17:45:54,531 ERROR [STDERR] com.sun.facelets.tag.TagAttributeException: /components/insert.xhtml @9,51 <ui:ins ert name="#{element.attributes.name}"> Must be Literal
any way to get around?
-
3. Re: facelets ui:composition
mail.micke Jun 26, 2008 6:20 PM (in response to koatto)I've got nothing, sorry.
To me it feels a bit strange to use a dynamic name for the ui:insert, curious about your usecase.
-
4. Re: facelets ui:composition
damianharvey.damianharvey.gmail.com Jun 26, 2008 6:20 PM (in response to koatto)Try using the richfaces include:
<a4j:include viewId="#{element.attributes.name}"/>
Cheers,
Damian.