1 Reply Latest reply on Jan 19, 2010 2:10 PM by Tamas Malatinszki

    How can I get rich:message detail from javascript?

    gdfgd eqwe Novice
      HY!




      <rich:message id="msgEmailInput" for="emailInput" showDetail="true" ajaxRendered="false"  >                   
                              <f:facet id="facetEmailError" name="errorMarker">
                                  <script>          
                                  alert(#{rich:element('msgEmailInput')}.detail());              
                                  </script>
                              </f:facet>
                          </rich:message>





      I would like to get (and using later) the  error messages from rich:message.

      I try to query the following way: #{rich:element('msgEmailInput')}.detail() , but it does not work.



      Any idea for this?



      Thank you so much!