Hi Wolfgang,

you're indeed right, I get the same problem when trying your example. You could use an outputText as a workaround to display the values.

I tried to figure out the source of the problem and saw that during rendering the page the value binding of the specific inputText is null (i.e. method UIOutput.getValue()). I don't understand it though. You should probably file an issue for that. Maybe somebody of the MyFaces crew has any idea how to solve this problem. It has to be something that is connected to tree2 because - as you mentioned - there is no problem using the inputText outside the tree2 component.

Cheers,

Christopher


Wolfgang schrieb:
Hi,

yes I am sure! Everything is rendered fine besides the value text. I tried t:inputField and h:inputField but both same effect

What else do you see? Can you be sure that facade "expandNode" is rendered?

Wolfgang schrieb:
Hi,

does anyone know why the value of an h:inputText is not shown in a t:tree2 component?
I put the inputText outside of the tree and there it works fine...

<t:tree2 id="treeGoSlim"
            value="#{functionalPageTree.modelBase}"
            var="node"
            showRootNode="false"
            showLines="true">

       <f:facet name="expandNode">

           <h:panelGrid id="treeGrid" columns="2">
               <h:commandLink value="#{node.description}"
actionListener="#{functionalPageTree.addChildren}"
                              immediate="true"/>
               <h:panelGrid>

                   <h:inputText value="100%"
style="font-size:9;color:black;text-align:center;height:11;background:#84BC73;border-style:none"
                                size="40"
                                disabled="true"/>

                   <h:inputText value="80%"
style="font-size:9;color:black;text-align:center;height:11;background:lightgray;border-style:none"
                                size="30"
                                disabled="true"/>

               </h:panelGrid>
           </h:panelGrid>

       </f:facet>

   </t:tree2>


Cheers
Wolfgang





Reply via email to