Sean,
After altering the order I constructed the "tree2" it worked! Added the parents then the children as I went along. Rather than constructing branches as I went along and adding the completed branch to the parent. If that makes sense?
This is reverse to how I did it in Web Galileo.
Feel you could do with some more warning/error messages though as it was fixed more by luck than judgement.
Regards,
Roger Lee
Internet communications are not secure and therefore NOTiFY does not accept legal responsibility for the contents of this message. Although NOTiFY operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of NOTiFY. Replies to this email may be monitored by NOTiFY for operational or business reasons.
----- Original Message ----- From: "Sean Schofield" <[EMAIL PROTECTED]>
To: "Roger Lee, NOTiFY" <[EMAIL PROTECTED]>; "MyFaces Discussion" <[email protected]>
Sent: Saturday, March 26, 2005 2:47 PM
Subject: Re: x:tree2
I can't think of a reason why your tree wouldn't display. I still think the most likely is that the "value" attribute is null b/c this causes the encodeChildren method to return without warning (something to be fixed in the future.) Any other problem and I would expect an exception thrown somewhere.
You mentioned that your jsp is identical to tree2.jsp. How is that possible? Tree2.jsp has facets that are specific to the data for that example. Unless your data is returning the same values for getType on the nodes as they are in the examples, this won't work. I would say that is the source of your problem but when this happens, you should get an IllegalArgumentException.
Why don't you post your code and jsp if you continue to have problems?
We're still working on the documentation for the components so its understandable if there is some confusion right now. :-)
sean
On Fri, 25 Mar 2005 18:01:01 -0000, Roger Lee, NOTiFY <[EMAIL PROTECTED]> wrote:> Are you assigning a value to the tree using something like <x:tree2 > value="#{foo}">? Also the data needs to be wrapped in TreeNodeBase or > your own custom class that implements TreeNode but it sounds like you > are doing that.
Yes my "backer" class does that. I have also taken the backer class
(TreeBacker.java) from the examples and used that. Still nothing displays.
My JSP is identical to tree2.jsp.
> 1.) Your tree has a rendered attribute of false
Where would this be set?
Regard,
Roger
Internet communications are not secure and therefore NOTiFY does not accept legal responsibility for the contents of this message. Although NOTiFY operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of NOTiFY. Replies to this email may be monitored by NOTiFY for operational or business reasons.
----- Original Message ----- From: "Sean Schofield" <[EMAIL PROTECTED]> To: "MyFaces Discussion" <[email protected]>; "Roger Lee, NOTiFY" <[EMAIL PROTECTED]> Sent: Friday, March 25, 2005 2:08 PM Subject: Re: x:tree2
> No error messages? Hmm. My guess is one of the following: > > 1.) Your tree has a rendered attribute of false > 2.) Your tree has a value of null for its value attribute. > > Neither of these cases generates a warning in the logs although that > might be a good idea? > > Are you assigning a value to the tree using something like <x:tree2 > value="#{foo}">? Also the data needs to be wrapped in TreeNodeBase or > your own custom class that implements TreeNode but it sounds like you > are doing that. > > sean > > > On Fri, 25 Mar 2005 11:45:44 -0000, Roger Lee, NOTiFY > <[EMAIL PROTECTED]> wrote: >> Using the example supplied with MyFaces I am trying to use the x:tree2 >> component. >> >> I have taken the backing class which I used with Web Galileo and >> converted >> it to use TreeNode. >> >> The JSP gets called and my "breakpoints" are displayed in the JBoss >> console, >> but no Tree is rendered or errors thrown. >> >> Any pointers to what I should checking/looking for? >> >> Thanks, >> >> Roger Lee >> >> >

