2 Replies Latest reply on Sep 27, 2008 11:39 PM by bashan

    Seam webremote re-render

    bashan

      Hi,


      I have a webremote method.
      the method is doing some db updates, then I would like to re-render part of the screen.


      Is it possible to update a part of the screen with webremote, without needing get object data that will be updated manually?


      I simply want to do in the server something like:



      Contexts.getEventContext().set("someObject", myUpdatedObject);
      Renderer.instance().render("myFaceletsComponent.xhtml")





      and then updated only this fragment on the client.


      by the way, I want to re-render a facelets component. Is it possible to pass parameters in java code to the component?


      Thanks,
      Guy.

        • 1. Re: Seam webremote re-render

          I recommend you to use jsFunction instead of a webremote method, it is much more natural for dealing with this kind of problem.

          • 2. Re: Seam webremote re-render
            bashan

            Thanks,
            I thought about a way of not needing to re-rendering the entire JSF tree, since the code I want to refresh is actually a facelets component that can be in any page. If I have a page that has request parameters, and the whole JSF page is being rebuilt, it may cause me some problems...