myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michał 'Gandalf' Stawicki" <stawi...@gmail.com>
Subject Re: [tree2] expand folder by clickling on folder name
Date Thu, 19 Jul 2007 14:57:14 GMT
<f:facet name="objectProperties">
				
				    <t:commandLink
					styleClass="properties"
					actionListener="#{t.setNodeSelected}">
					<t:outputText
					    value="#{node.description}"
					    style="#{t.nodeSelected ? 'font-weight: bold; color: #FF3366' : ''}" />
					<t:updateActionListener
					    property="#{reservationsManager.selectedNode}"
					    value="#{node}"/>
					<f:param name="docNum" value="#{node.identifier}"/>
				    </t:commandLink>
				</t:panelGrid>
			    </f:facet>

In the setSelectedNode(TreeNode node) method, for ex.:

String id = treeBinding.getNodeId();
				String [] path = treeBinding.getPathInformation(id);
				treeBinding.expandPath(path);



On 19/07/07, Tomzi <ThomasZillinger@gmx.at> wrote:
>
> I'd like to have to open a folder not only by clicking on +/- but also when I
> click on the folders name - Is there a way to accomplish that with tree2?
> --
> View this message in context: http://www.nabble.com/-tree2--expand-folder-by-clickling-on-folder-name-tf4110244.html#a11687822
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Michał Stawicki

stawicki@gmail.com
http://stawicki.jasliska.pl
Mime
View raw message