1 Reply Latest reply on Jan 25, 2009 11:33 AM by Nick Belaevski

    best way to hightlight refreshed area

    Margot Media Newbie

      What is the best way to highlight the refreshed area?
      I can think about use of oncomplete attribute, but it's a little verbose.
      This is alsa a feature request: what about a way to describe the visual effect on target side instead of source side?

      Source side is something like that:

      <a4j:support reRender="area1" oncomplete="Effect.Appear('area1')"/>

      Target side would be instead (this is not possible now in RichFaces):

      <a4j:outputPanel id="area1" refreshEffect="Appear">
      Simple text
      <aj4:support ... reRender="area1"/>

      I think the second option is usually better.

        • 1. Re: best way to hightlight refreshed area
          Nick Belaevski Master


          Not a problem:

          <h:form id="form">
           <a4j:commandLink value="Update panel" reRender="box" />
           <rich:panel id="box">
           <h:outputText value="Text content" />
           <h:panelGroup rendered="#{ajaxContext.ajaxRequest}">
           <rich:effect type="Highlight" name="effectFunc" for="box" />
           <script type="text/javascript">