Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Problem in displaying the error message in WebGrid
posted

Hi,

I have put a <inputText> in a web grid. I want to perform validation on this text box.

I have used a validator attribute of inputText which is validating the data but I am not able to print the

error message. Below is code:  

<

ig:gridView id="accountGridView" pageSize="5"

dataSource="#{advancedSearchController.advancedSearchCriteria.accountCriteria}"

binding="#{advancedSearchController.accountListGrid}">

<ig:column>

<h:inputText id="accNoComp" value="#{DATA_ROW.accountNumber}"

validator="GUIValidator" />

<f:facet name="header">

<h:outputText value="Account" />

</f:facet>

<font color="red">

<h:message for="accNoComp" id="accNoValidationMsg"/>

</font>

</ig:column>

<ig:column>

<h:commandButton value="Remove" actionListener="#{advancedSearchController.removeAccountNumber}" />

</ig:column>

</ig:gridView>

Can anyone tell me how to print the error message below the text box present

in the WebGrid?