• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UiViewRoot - findComponent dont work

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to add a class to the input with validation error, so I have created a class that implements PhaseListener, and in the method BeforePhase I do this


So, facesContexts return me the ids with messages (validation problems), but if findcomponent return me null;

This happens only withs lists/datatables, for example, if the id = formValidacion:listaPrescripciones:0:j_id511, dont work, but if I sent formValidacion:listaPrescripciones:j_id511 give me the component!!! why??

And, if I add a 'error' class to ui component, like this


If I pass formValidacion:listaPrescripciones:j_id511, then jsf add error class to all the same components in the list/row, not for the row
Any help please?
 
reply
    Bookmark Topic Watch Topic
  • New Topic