• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Warnings  RSS feed

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm using a label and associating it with a text field. Pls. consider the folowing code snippet:



I get the following error:

WARNING: Unable to find component 'firstName' (calling findComponent on componen someBean

This looks strange when I'm using the same name.
Any help shall be highly appreciated.

Thanks,
Kunal
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add an id of firstName to your outputText component. Label's use an element's id attribute for the for attribute. So, in standard HTML it would look like:


[ April 24, 2007: Message edited by: Gregg Bolinger ]
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gregg, thnaks for the input. But, even this doesn't work.
As you suggested, I changed the code to look like below:



Even this doesn't work.
I'm still getting a warning saying:
Apr 25, 2007 10:36:44 AM com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
WARNING: Unable to find component with ID 'firstName' in view.


Any help shall be highly appreciated.

Thanks,
Reema
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!