Hi Marc,

Thank you very much for your reply. Yes, you are right, but I find an
exception. I don't know whether it is a bug or not. For a no commandlink
folder, e.g.

            <h:panelGroup style="white-space: nowrap;">
                <f:facet name="expand">
                    <t:graphicImage
value="/template/images/yellow-folder-open.png" rendered="#{t.nodeExpanded}"
border="0"/>
                </f:facet>
                <f:facet name="collapse">
                    <t:graphicImage
value="/template/images/yellow-folder-closed.png"
rendered="#{!t.nodeExpanded}" border="0"/>
                </f:facet>
                <h:outputText value="#{node.description}"
styleClass="nodeFolder"/>
                <h:outputText value=" (#{node.childCount})"
styleClass="childCount" rendered="#{!empty node.children}"/>
            </h:panelGroup>

The rendered code is as follows:
<td><img id="contentForm:clientTree:0:0:0:1:t2c"
src="/root/template/images/yellow-folder-closed.png" border="0"><span
style="white-space: nowrap;"><span class="nodeFolder">Folder Name</span>
<span class="childCount">(2)</span></span></td>

>From the code above, I found the folder img was not included in the nowrap
span. So I cannot let nowrap cover the whole line (img + name + (count)). Is
it a bug? Thank you.
Best regards,

Gus


Hi,

you need a panelGroup:

 

                                <f:facet name="funktion">

                                    <h:panelGroup
style="white-space:nowrap;">

                                        <h:commandLink immediate="true"
styleClass="#{t.nodeSelected ? 'documentSelected':'document'}"
actionListener="#{t.setNodeSelected}" action="#{navigation.startFunction}">

                                                   <t:graphicImage
value="/images/templates/system/document.png" />

                                            <h:outputText
value="#{node.description}" />

                                            <f:param name="functionId"
binding="#{navigation.nextFunction}" value="#{node.function}"/>

                                        </h:commandLink>

                                    </h:panelGroup>

                                </f:facet>

 

 

What do you think about it?

Marc

 

-- 
View this message in context: 
http://www.nabble.com/AW%3A-Nowrap-on-tree2-tf2088877.html#a5790055
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to