On 2006-12-23 Andrew Robinson wrote:
That should work,but your search method should only be called when the command button is pressed, not when the tree is expanded. If your action is being run on the node toggle, something is very wrong.
I've defined a validator for an input field included in the view. My action method does some validation as well and it appears i was mixing up messages issued by the field validator and the action method. So it seems it is the input field validator that is being run on node toggle, not the action method after all. I'm still having problems with client-side toggle. When the load the JSF view including the tree2 component in Firefox 2 the error console shows this message: Error: missing ; before statement Source File: https://proxy.dev.foo.org/luser/myapp/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11672096/tree2.HtmlTreeRenderer/javascript/tree.js Line: 22, Column: 7 Source Code: }Error 404: SRVE0190E: File not found: /faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11672096/tree2.HtmlTreeRenderer/javascript/tree.js The SRVE0190E code seems to be coming from the application server. When i access the URL directly from the browser i get this output: function treeNavClick(spanId, navImageId, image1, image2, nodeImgId, expandImg, collapseImg, cookieName, nodeId) { // ... }Error 404: SRVE0190E: File not found: /faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11672096/tree2.HtmlTreeRenderer/javascript/tree.js Which seems to be ok except for the error message in the end. Even though there's an error message it looks like tree.js is fully included in the response.

