Hello Bernd how are you?

Was I right when I said to Volker you're on holidays? If yes I hope it was
memorable.

I can't figure out what you meant by two commands, did you mean applying the
rendered attribute on the command instead of c:if and have two commands, my
c:if is only a workaround the NullPointerException I have mentioned in the
last mail?
to be more explicit : this is my case. The c:if can be removed, it is there
only in the case the attribute ajaxScope is not specified.

<tc:tree

      xmlns="http://www.w3.org/1999/xhtml";

      xmlns:f="http://java.sun.com/jsf/core";

      xmlns:h="http://java.sun.com/jsf/html";

      xmlns:t="http://myfaces.apache.org/tomahawk";

      xmlns:tc="http://myfaces.apache.org/tobago/component";

      xmlns:tx="http://myfaces.apache.org/tobago/extension";

      xmlns:c="http://java.sun.com/jstl/core";

      id="categoriesTree"

      value="#{contractCtrl.categoriesRoot}"

      state="#{contractCtrl.treeState}"

      showIcons="true"

      mutable="true"

      nameReference="userObject.embedded.name">

      <f:actionListener type="
fr.into.services.controller.CategoryEditionListener" />

      <f:facet name="treeNodeCommand">

            <tc:command actionListener="#{contractCtrl.selectCategory}">

                  <c:if test="#{not empty ajaxScope}">

                        <tc:attribute

                             name="renderedPartially"

                             value="#{ajaxScope}" />



                  </c:if>

            </tc:command>

      </f:facet>



</tc:tree>




2007/10/4, Bernd Bohmann <[EMAIL PROTECTED]>:
>
> 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
> >
>



-- 
Zied Hamdi
zatreex.sourceforge.net

Reply via email to