0 Replies Latest reply on Jan 19, 2010 5:47 AM by bb bb

    get rich:message error details from javascript

    bb bb Master

      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!