3 Replies Latest reply on May 10, 2011 11:06 AM by Markus L

    Display error message panel with client side validation

    Markus L Newbie

      Hi!

       

      I am using Richfaces 4 with Mojarra 2.0.4 and I am evaluating the new client side validation in RF4.

       

      It all works as expected so far.

       

      But how would I wrap <rich:messages/> with a <rich:panel> and only display that panel when a error message occurs. Obviously I can't use any rendered-attribute, since we are on the client side and there is no Render Response Phase!

       

      So is there any JavaScript hook I could use to change the class style of that panel from display:none to something else? Or maybe there is a component function I could call to make the panel visible? I couldn't find anything regarding that issue in the documentation.

       

      Suggestions or working solutions are most welcome!

       

      Cheers