You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Anu Padki <AM...@lbl.gov> on 2005/10/10 21:30:13 UTC

tree2: Treebacker bean problems

Hello,

I am very new to JSF and myfaces. I downloaded the examples from the 
myfaces.org and am trying to compile the example code. My IDE is Eclipse 
3.1, exadel pro 3.0 is the plugin I use.
I get the problem with both the nightly source and the archived source.
I copied tomahawk jar in the web-inf/lib of the project. When I copy the 
TreeBacker get the following compiliation problems.


Type mismatch: cannot convert from TreeModelBase to TreeModel : Line 102
Should I just change the type to TreeModelBase, it being the concrete class?

The method expandAll() is undefined for the type HtmlTree : Line 117
The method expandPath(String[]) is undefined for the type HtmlTree : Line 164

I checked the jar it has all the classes, it has UITree from which HtmlTree 
is should inherit the above methods, as per document.

What am I doing wrong here?
Please advise.
- Anu 



Re: tree2: Treebacker bean problems

Posted by Martin Marinschek <ma...@gmail.com>.
This doesn't seem to be a MyFaces problem - rather a problem with your
setup, don't ask me what is wrong here. Maybe you are including
different versions of jar-files on your classpath?

regards,

Martin

On 10/10/05, Anu Padki <AM...@lbl.gov> wrote:
> Hello,
>
> I am very new to JSF and myfaces. I downloaded the examples from the
> myfaces.org and am trying to compile the example code. My IDE is Eclipse
> 3.1, exadel pro 3.0 is the plugin I use.
> I get the problem with both the nightly source and the archived source.
> I copied tomahawk jar in the web-inf/lib of the project. When I copy the
> TreeBacker get the following compiliation problems.
>
>
> Type mismatch: cannot convert from TreeModelBase to TreeModel : Line 102
> Should I just change the type to TreeModelBase, it being the concrete class?
>
> The method expandAll() is undefined for the type HtmlTree : Line 117
> The method expandPath(String[]) is undefined for the type HtmlTree : Line 164
>
> I checked the jar it has all the classes, it has UITree from which HtmlTree
> is should inherit the above methods, as per document.
>
> What am I doing wrong here?
> Please advise.
> - Anu
>
>
>
>


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German