File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Validation in dataTable

 
deepa durai
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
viswanath yadav
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic