As an alternative to frames, I've had good success with Tree2 and command links using a Facelets template with Tree2 in the template. You have to keep the tree state in a managed bean property for this to work (as described on the Tree2 wiki).
/dmc On 12/11/06, Oellien, F (Frank) <[EMAIL PROTECTED]> wrote:
Hello, I have a problem with commandLink and Tree2 in a multi-frames environment. My application has a left frame containing the tree2 and a right frame (name=workspaceContentFrame) which should represent the results of the commandLink action. I have set the target attribute in the commandLink. From reading several postings on mailing lists I have learned that setting target will not solve my problem and I have to add some Javascript to the commandLink to set the target on the form. This workaround works with Firefox (2) but not with IE6 or IE7. Has anybody a solution for this issue? Is there another way to solve the target problem with commandLink/Tree2? Thank you Frank <h:form id="workflowTreeForm" styleClass="tree" onsubmit="alert('OnSubmit: ' + document.forms['workflowTreeForm'].target)"> <t:tree2 id="workflowTree" value="#{workflowsBean.workflowTree}" var="node" varNodeToggler="t" clientSideToggle="false" showRootNode="false"> ... <f:facet name="workflow"> <h:panelGrid id="a" columns="2" cellpadding="2" cellspacing="0"> <t:graphicImage value="/images/module.gif" rendered="#{!node.iconSet}" border="0"/> <t:graphicImage value="#{node.iconPath}" rendered="#{node.iconSet}" border="0"/> <h:panelGroup> <t:commandLink immediate="true" id="LoadTest" target="workspaceContentFrame" action="#{workflowsBean.loadWorkflow}" actionListener="#{workflowsBean.selectTemplateID}" onmouseup="document.forms['workflowTreeForm'].target = this.target"> <h:outputText value="#{node.name}" styleClass="nodeFolder"/> <f:param name="workflowID" value="#{node.identifier}"/> </t:commandLink> </h:panelGroup> </h:panelGrid> </f:facet> </t:tree2> -------------------------------------- This message, including attachments, is confidential and may be privileged. If you are not an intended recipient, please notify the sender then delete and destroy the original message and all copies. You should not copy, forward and/or disclose this message, in whole or in part, without permission of the sender. --------------------------------------
-- David Chandler Development Coach learnjsf.com