Error: Type name xxx does not exist when it's in fact in the project? [message #212669] |
Sat, 19 April 2008 19:46  |
Eclipse User |
|
|
|
I'm stuck amending faces-con fig.xml. Adding a managed bean, that is
already coded and in the project, will not work because the bean cannot
seem to be found as illustrated here:
http://www.windofkeltia.com/j2ee/trouble/faces-config.jpg
I've also tried simply LoginBean, but to no avail.
Now, there is a warning in login.jsp (as you see in the picture), but
that's for a reference to this bean that I'm trying to set up on this line:
<h:inputText value="#{loginBean.name}"></h:inputText>
I'm following as best I can the following JSF tutorial and I'm at the
step reached by searching for the second occurrence of the string
"faces-config.xml" on the page below (if, for any reason, this little
bit of context is helpful). Though the tutorial was written 2 years ago
this next month and I'm using a bit later software for everything,
everything has been going well so far.
http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial -RC3/JSFTools_tutorial.html
I'm stumped--it's such a simple thing and I can't find a work-around.
Russ
|
|
|
Re: Error: Type name xxx does not exist when it's in fact in the project? [message #212678 is a reply to message #212669] |
Sun, 20 April 2008 01:50   |
Eclipse User |
|
|
|
Windofkeltia wrote:
> I'm stuck amending faces-con fig.xml. Adding a managed bean, that is
> already coded and in the project, will not work because the bean cannot
> seem to be found as illustrated here:
>
> http://www.windofkeltia.com/j2ee/trouble/faces-config.jpg
>
> I've also tried simply LoginBean, but to no avail.
>
> Now, there is a warning in login.jsp (as you see in the picture), but
> that's for a reference to this bean that I'm trying to set up on this line:
>
> <h:inputText value="#{loginBean.name}"></h:inputText>
>
> I'm following as best I can the following JSF tutorial and I'm at the
> step reached by searching for the second occurrence of the string
> "faces-config.xml" on the page below (if, for any reason, this little
> bit of context is helpful). Though the tutorial was written 2 years ago
> this next month and I'm using a bit later software for everything,
> everything has been going well so far.
>
> http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial -RC3/JSFTools_tutorial.html
>
>
>
> I'm stumped--it's such a simple thing and I can't find a work-around.
>
> Russ
Ah, the package path includes the bean name itself, so the Qualified
class name needed to be: com.tutorial.LoginBean.LoginBean.
|
|
|
Re: Error: Type name xxx does not exist when it's in fact in the project? [message #212685 is a reply to message #212678] |
Sun, 20 April 2008 02:32  |
Eclipse User |
|
|
|
Windofkeltia wrote:
> Windofkeltia wrote:
>> I'm stuck amending faces-con fig.xml. Adding a managed bean, that is
>> already coded and in the project, will not work because the bean
>> cannot seem to be found as illustrated here:
>>
>> http://www.windofkeltia.com/j2ee/trouble/faces-config.jpg
>>
>> I've also tried simply LoginBean, but to no avail.
>>
>> Now, there is a warning in login.jsp (as you see in the picture), but
>> that's for a reference to this bean that I'm trying to set up on this
>> line:
>>
>> <h:inputText value="#{loginBean.name}"></h:inputText>
>>
>> I'm following as best I can the following JSF tutorial and I'm at the
>> step reached by searching for the second occurrence of the string
>> "faces-config.xml" on the page below (if, for any reason, this little
>> bit of context is helpful). Though the tutorial was written 2 years
>> ago this next month and I'm using a bit later software for everything,
>> everything has been going well so far.
>>
>> http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial -RC3/JSFTools_tutorial.html
>>
>>
>>
>> I'm stumped--it's such a simple thing and I can't find a work-around.
>>
>> Russ
> Ah, the package path includes the bean name itself, so the Qualified
> class name needed to be: com.tutorial.LoginBean.LoginBean.
And, yes, I realize that I had mistyped the package name extending it
with "LoginBean".
|
|
|
Powered by
FUDForum. Page generated in 0.04624 seconds