2 Replies Latest reply on Jul 27, 2006 12:00 AM by peteroyle

    Remoting with Clickable Lists

    peteroyle

      Hi,

      I've got a dataTable that's backed by a @DataModel in the usual "Clickable Lists" fashion, with the ability to delete a row from the table by clicking a commandLink, causing a page refresh.

      What I'd realy like is to be able to call the delete() method of my SFSB via Seam.Component and still be able to use the @DataModelSelection (rather than having to send a primary key or anything). Is this possible?

      Thanks,

      Pete.

        • 1. Re: Remoting with Clickable Lists
          shane.bryzak

          I'm afraid I don't know how the @DataModelSelection magic works, but the remoting framework will only allow you to invoke a Seam component RPC-style, so anything you want to pass up will need to be expressed as a method parameter.

          • 2. Re: Remoting with Clickable Lists
            peteroyle

            Come to think of it @DataModel and @DataModelSelection seem to be just fancy wrappers for JSF's DataModel. If so then simply using something like Ajax4JSF's a4j:commandLink tag (instead of a h:commandLink) would probably work. I'll try this later tonight and report how it goes.

            Pete.