Yes originally nothing was been shown in the JSP.
The rendered HTML only had the < head > < title > showing. Even a heading inside a < verbatim > wasn't appearing.
Maybe it was cached earlier version. The populated tree did suddenly appear!
Anyway thanks for all your help and suggestions.
Regards,
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: "Roger Lee, NOTiFY" <[EMAIL PROTECTED]>; "MyFaces Discussion" <[email protected]>
Sent: Monday, March 28, 2005 2:34 PM
Subject: Re: x:tree2 problem - Fixed
Roger,
I looked at the code that you sent me offlist. I'm glad you got everything working but your explanation of what solved the problem seems a bit odd. Originally you were reporting a blank page right? That is to say, *absolutely* without even a root node right?
As I said earlier that seems to only be possible if the root node is null (and yes we should add a warning there.) Yet your code seemed to have created a non-null root node in its call to createTreeStructureLoanSelection. Even if the order in which children added affected things, it still wouldn't change the fact that your root node is not null.
Actually, I thought of one other situation where your tree could be blank. That would be if there was no visible HTML rendered inside of the appropriate facets. I checked your JSP and you have a facet for the "loanHierarchy" type so I don't understand how you could possibly have gotten a blank page. I would have expected an emtpy root folder (that couldn't be expanded) at a *minimum.*
Are you sure you didn't experience something like this instead? If not, then possibly you were running off a cached version of the component tree or something?
sean
On Mon, 28 Mar 2005 09:00:27 +0100, Roger Lee, NOTiFY <[EMAIL PROTECTED]> wrote: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
>> >>
>> >>
>> >
>>
>>
>

