Hello folks, How can I stop Validation error being displayed 2 times for a tr:inputText in a tr:panelLabelAndMessage ?
When inputText is in a panelLabelAndMessage, I see 2 X mark before the inputText and 2 Detail message below the inputText. How can I stop the 2nd one from appearing ? Setting 'simpler="true"' in tr:inputText is not acceptable, as then no X mark nor Detail message shows up upon validation failure. BTW, when I have the inputText out of panelLabelAndMessage, it works normally (only 1 X and 1 Detail message) I noticed that someone else had the same problem with below link; http://myfaces.markmail.org/message/jdbtcpqrbmii4gmd?q=panelLabelAndMessage+validator Is there a solution this ? Any help is appreciated. Regards, -- ilker I have UI code like; <tr:panelLabelAndMessage for="ibdNum_inputTextId2"> <tr:inputText value="#{someManagedBean.someAttribute}" id="ibdNum_inputTextId2" required="false" validator= "#{someManagedBean.validate_someAttribute}" shortDesc="..some desc..."> </tr:inputText> </tr:panelLabelAndMessage> ManagedBean code with validator method like; public void validate_someAttribute(FacesContext _facesContext, UIComponent _UIComponent, Object _value){ if(...someLogic is true ....){ String __summary = "This Summary will be displayed in tr:messages "; String __detail = "This DetailMsg gets displayed 2 times"; FacesMessage __facesMessage = new FacesMessage(FacesMessage. SEVERITY_ERROR, __summary, __detail); ValidatorException __validatorException = new ValidatorException(__facesMessage); throw __validatorException; } } ________________________ Ilker Kiris CTSD - DASF Group Pershing LLC, a BNY Mellon company www.pershing.com Office: (201)-413-4635 Fax: (201)-413-9141 Email: iki...@pershing.com Information Classification: Public ****************************************************** IMPORTANT: Any information contained in this communication is intended for the use of the named individual or entity. All information contained in this communication is not intended or construed as an offer, solicitation, or a recommendation to purchase any security. Advice, suggestions or views presented in this communication are not necessarily those of Pershing LLC nor do they warrant a complete or accurate statement. If you are not an intended party to this communication, please notify the sender and delete/destroy any and all copies of this communication. Unintended recipients shall not review, reproduce, disseminate nor disclose any information contained in this communication. Pershing LLC reserves the right to monitor and retain all incoming and outgoing communications as permitted by applicable law. Email communications may contain viruses or other defects. Pershing LLC does not accept liability nor does it warrant that email communications are virus or defect free. ******************************************************