3 Replies Latest reply on Dec 28, 2005 10:05 AM by gavin.king

    @DataModelSelectionIndex doesnt work

    udo.krass

      Hi,

      i added a conversation context and it will work with an commandLink.
      It will not work with a commandButton. Why? I don't understand that.
      I found that site which explains how i can user a button in a datatable.
      http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters
      Should i better use that way???

      Thanks for any hints!

        • 1. Re: @DataModelSelectionIndex doesnt work
          rorschach

          I'm using the current CVS version of Seam, and the @DataModelSelectionIndex is not being injected to my Conversation scoped stateful bean.

          Stepping into my code after clicking the command link, the bucket holding the index remains at zero.

          Prior to ugrading to the current CVS build, the DataModel was not being 'outjected' into the correct scope, this is now working fine. But the @DataModelSelectionIndex annotation is not working as expected.

          Any word on this?

          • 2. Re: @DataModelSelectionIndex doesnt work
            rorschach

            After reviewing the 'booking' example once more, I see it has changed significantly.

            Reworking...

            • 3. Re: @DataModelSelectionIndex doesnt work
              gavin.king

              Well, this feature is working perfectly in the booking demo, so I guess you can make it work by copying that.

              I did not make any conceptual change to this stuff. I only fixed bugs.