• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JSF Validation in dataTable

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I want to validate the fields in the dataTable and the custom error message needs to be displayed on the top not beside the field.
I am able to display the error message beside the field.(<h:message for="email" style="color:red"/>).
But the error message is not displayed outside the dataTable.Can anyone help me please
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

keep the message tag seperately in panelGrid above the DataTable and declare the message tag as Globally like the code shown below,

<h:panelGrid id="panel1" columns="1" width="100%">
<h:messages id="message_queryDesign" globalOnly="true" layout="table" showDetail="true" errorClass="ERROR" infoClass="INFO" />
</h:panelGrid>

then it will work fine.





Thanks ,

A.Viswanath Yadav
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic