You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by yazid <sm...@yahoo.fr> on 2006/12/27 18:30:11 UTC

Tobago : Problem with Node render

Hi all;
I have a recursive methid wich render a tree (DefaultMutableTreeNode) from a
XML doc; each XMl node is mapped on a user object node (name, id).
 
The problem is that the tree is rendred not with the name I've provided, but
with a the object name (like
:org.apache.myfaces.tobago.component.UITreeOldNode@a98e77) wich look like  a
String rep of  java object.
Please help.

-- 
View this message in context: http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065143
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tobago : Problem with Node render

Posted by yazid <sm...@yahoo.fr>.
Right,
 dam you're good
Thank you;

Volker Weber-4 wrote:
> 
> Hi Yazid,
> 
> did you set the attributes nameReference and idReference at the tc:tree
> tag?
> 
> Please post the relevant jsp and java code.
> 
> Regards,
>     Volker
> 
> 
> 2006/12/27, yazid <sm...@yahoo.fr>:
>>
>> Hi Matt;
>> I'm using Tobago tree (he have a renderer for node); I've filled the node
>> with the required field (name,id) in my Node class wich extends the demo
>> node classe ; MyNode=DemoNode+URL
>> The node passed to the tobago node analyser should have two param name
>> and
>> id.
>>
>>
>> Matt Tyson wrote:
>> >
>> > Yazid,
>> >
>> > Without more info, I'd say you are outputting the node variable itself
>> > (ie,
>> > <t:outputText value="node" /> instead of its appropriate property (
>> > node.identifier or something).
>> >
>> > Matt
>> >
>> > On 12/27/06, yazid <sm...@yahoo.fr> wrote:
>> >>
>> >>
>> >> Hi all;
>> >> I have a recursive methid wich render a tree (DefaultMutableTreeNode)
>> >> from
>> >> a
>> >> XML doc; each XMl node is mapped on a user object node (name, id).
>> >>
>> >> The problem is that the tree is rendred not with the name I've
>> provided,
>> >> but
>> >> with a the object name (like
>> >> :org.apache.myfaces.tobago.component.UITreeOldNode@a98e77) wich look
>> >> like  a
>> >> String rep of  java object.
>> >> Please help.
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065143
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065376
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8067360
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tobago : Problem with Node render

Posted by Volker Weber <we...@googlemail.com>.
Hi Yazid,

did you set the attributes nameReference and idReference at the tc:tree tag?

Please post the relevant jsp and java code.

Regards,
    Volker


2006/12/27, yazid <sm...@yahoo.fr>:
>
> Hi Matt;
> I'm using Tobago tree (he have a renderer for node); I've filled the node
> with the required field (name,id) in my Node class wich extends the demo
> node classe ; MyNode=DemoNode+URL
> The node passed to the tobago node analyser should have two param name and
> id.
>
>
> Matt Tyson wrote:
> >
> > Yazid,
> >
> > Without more info, I'd say you are outputting the node variable itself
> > (ie,
> > <t:outputText value="node" /> instead of its appropriate property (
> > node.identifier or something).
> >
> > Matt
> >
> > On 12/27/06, yazid <sm...@yahoo.fr> wrote:
> >>
> >>
> >> Hi all;
> >> I have a recursive methid wich render a tree (DefaultMutableTreeNode)
> >> from
> >> a
> >> XML doc; each XMl node is mapped on a user object node (name, id).
> >>
> >> The problem is that the tree is rendred not with the name I've provided,
> >> but
> >> with a the object name (like
> >> :org.apache.myfaces.tobago.component.UITreeOldNode@a98e77) wich look
> >> like  a
> >> String rep of  java object.
> >> Please help.
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065143
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065376
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: Tobago : Problem with Node render

Posted by yazid <sm...@yahoo.fr>.
Hi Matt;
I'm using Tobago tree (he have a renderer for node); I've filled the node
with the required field (name,id) in my Node class wich extends the demo
node classe ; MyNode=DemoNode+URL
The node passed to the tobago node analyser should have two param name and
id.


Matt Tyson wrote:
> 
> Yazid,
> 
> Without more info, I'd say you are outputting the node variable itself
> (ie,
> <t:outputText value="node" /> instead of its appropriate property (
> node.identifier or something).
> 
> Matt
> 
> On 12/27/06, yazid <sm...@yahoo.fr> wrote:
>>
>>
>> Hi all;
>> I have a recursive methid wich render a tree (DefaultMutableTreeNode)
>> from
>> a
>> XML doc; each XMl node is mapped on a user object node (name, id).
>>
>> The problem is that the tree is rendred not with the name I've provided,
>> but
>> with a the object name (like
>> :org.apache.myfaces.tobago.component.UITreeOldNode@a98e77) wich look
>> like  a
>> String rep of  java object.
>> Please help.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065143
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065376
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tobago : Problem with Node render

Posted by Matthew Tyson <ma...@gmail.com>.
Yazid,

Without more info, I'd say you are outputting the node variable itself (ie,
<t:outputText value="node" /> instead of its appropriate property (
node.identifier or something).

Matt

On 12/27/06, yazid <sm...@yahoo.fr> wrote:
>
>
> Hi all;
> I have a recursive methid wich render a tree (DefaultMutableTreeNode) from
> a
> XML doc; each XMl node is mapped on a user object node (name, id).
>
> The problem is that the tree is rendred not with the name I've provided,
> but
> with a the object name (like
> :org.apache.myfaces.tobago.component.UITreeOldNode@a98e77) wich look
> like  a
> String rep of  java object.
> Please help.
>
> --
> View this message in context:
> http://www.nabble.com/Tobago-%3A-Problem-with-Node-render-tf2886878.html#a8065143
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>