• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

findcomponent returns null value

Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can someone please let me know why I get the null for find component? I only get the form01 value which is NOT NULL. rest the component is null.

Please help.

I also tried below, but no luck.



Saloon Keeper
Posts: 25653
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I'd have to RTFM to be sure, but I don't think you can code a complex component ID into findComponent. I think you have to do a findComponent on pnreviewform, then run a findComponent on that to get msg3output.

Although in most cases, it's probably going to be easier to just bind the msg3output control straight to the backing bean using the "binding=" attribute.

Just because I take people to task here for overusing bindings doesn't mean that binding is useless. It just has its place, that's all.

Incidentally, my own personal recommendation is to avoid using raw HTML in JSF view definitions. You can use the panelGrid control in place of the raw table definitions. Same end result, but more JSF-friendly.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic