2 Replies Latest reply on Dec 7, 2012 9:25 AM by robinho

    Alternative for Richfaces.hideModalPanel('id')

    robinho Newbie

      Hey everyone,


      I am migrating my application from RF 3.3.2 to RF 4.2.3 right now and i've been wondering if there is a alternative for the Richfaces.hideModalPanel() function.

      My use case is a popupPanel that gets closed by a commandButton when no errors have occured. This is my Button.


      <a4j:commandButton value="#{msg.action_save}" type="submit"



                                      oncomplete="#{facesContext.maximumSeverity != 'Error' ? 'Richfaces.hideModalPanel(\'savePanel\');':'return 0;'}" />


      So the problem is, in this construction where i check for Errors I can not use the #{rich:component('savePanel')}.hide() method

      and the Richfaces.hideModalPanel is no longer available in RF4

      Is there a good alternative for this?


      Thanks in advance