myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Bohmann <bernd.bohm...@atanion.com>
Subject Re: [tobago] Tag vs. component with facelets
Date Thu, 04 Oct 2007 13:48:11 GMT
Hello Zied,

maybe two Commands with the rendered attribute would be a better choice.

Regards

Bernd



Zied Hamdi wrote:
> Hi,
> 
> I have a little problem with runtime vs build-time tags:
> 
> I have a component page categories.xhtml containing the snippet:
> 
>                   <c:if test="#{not empty ajaxScope}">
> 
>                         <tc:attribute
> 
>                              name="renderedPartially"
> 
>                              value="#{ajaxScope}" />
> 
>                   </c:if>
> 
> 
> 
> 
> included by a page as follows:
> 
>                              <ui:include src="/contract/categories.xhtml">
> 
>                                    <ui:param
> 
>                                          name="ajaxScope"
> 
>                                          value=":page:mainInfoTabPanel" />
> 
>                              </ui:include>
> 
> 
> 
> The c:if evaluates correctly at build time and adds the attribute to its
> parent. But it seems tc:attribute evaluates at runtime: it finds null.
> 
> Having two varibales one runtime and one build time with the same value is a
> little barbar.
> 
> Anyone knows how to resolve this? Any idea is welcome.
> 
> Regards,
> Zied
> 

Mime
View raw message