No, this is a good place to ask. The tree2 component doesn't work seemlessly with facelets. Fixing that is on the todo list.
http://issues.apache.org/jira/browse/TOMAHAWK-47 A quick workaround is to use the following attribute names instead: // Tree2 attributes public static final String SHOW_NAV = "org.apache.myfaces.tree2.SHOW_NAV"; public static final String SHOW_LINES = "org.apache.myfaces.tree2.SHOW_LINES"; public static final String CLIENT_SIDE_TOGGLE = "org.apache.myfaces.tree2.CLIENT_SIDE_TOGGLE"; public static final String SHOW_ROOT_NODE = "org.apache.myfaces.tree2.SHOW_ROOT_NODE"; public static final String PRESERVE_TOGGLE = "org.apache.myfaces.tree2.PRESERVE_TOGGLE"; Ie, org.apache.myfaces.tree2.CLIENT_SIDE_TOGGLE="true" However, this will break at some future point when we fix the issues with tree2. You can also quickly write a facelets component handler to alias each of these properities to the fully-qualified name. Just follow the simple example here. https://facelets.dev.java.net/nonav/docs/dev/docbook.html#dev-meta-component You can also go into the myfaces source code and change the definitions in JFSAttr to remove the fully-qualified names -- this has been a popular approach :) There's a similar issue with some of the t:dataTable attributes, also fixable in the same ways. On 3/30/06, Nahrwold, Helge <[EMAIL PROTECTED]> wrote: > Good morning, > > is his the wrong place to ask this question? > Should I ask this in the dev-mailinglist? > > Regards, > Helge > > > -----Ursprüngliche Nachricht----- > > Von: Nahrwold, Helge [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 29. März 2006 16:15 > > An: MyFaces Discussion > > Betreff: RE: Problems with tree2 and facelets > > > > Hello again, > > > > I could isolate my problem. > > The tree2 works perfect when I access the content page directly. > > > > Normally there is a login page before the content site. If I come from the > > login (so I had a request over JSF before) then the tree2 needs "one" > > following request before it open the nodes. > > Without this request the nodes will be closed as first. > > > > But why? Is this a known problem? > > > > The backing bean for the login page only returns a key for the > > navigation-cases in the faces-config. > > > > Thanks, > > Helge > > > > > -----Ursprüngliche Nachricht----- > > > Von: Nahrwold, Helge [mailto:[EMAIL PROTECTED] > > > Gesendet: Mittwoch, 29. März 2006 14:00 > > > An: [email protected] > > > Betreff: Problems with tree2 and facelets > > > > > > Hi, > > > > > > i need some help with Tree2 and Suns JSF RI with Facelets. > > > The tree2 is clientSideToggle="true" and (normally) > > showRootNode="false". > > > > > > I entered the site with a new browser window. I open some nodes and > > click > > > on > > > a commandLink. > > > After reload all opened nodes are closed again. Next time this is no > > > problem. > > > > > > #1 showRootNode is false > > > The actionListener of the commandLink is not called when I click on > > it... > > > > > > #2 showRootNode is true > > > The actionListener of the commandLink is called when I click on it... > > > > > > But I want no rootNode. I have tried the example from > > > http://www.irian.at/myfaces/tree2HideRoot.jsf but there is still the > > same > > > problem. > > > > > > Does anybody know a solution for my problem? > > > > > > Thanks for help, > > > Helge Nahrwold >

