2 Replies Latest reply on Jan 25, 2008 10:01 AM by norman.richards

    Raising events from s:link

    adamw

      Hello,

      don't you think it would be useful to add a following tag s:raise-event:

      <s:link value="Add new group" action="#{groupMod.add}">
       <s:raise-event type="org.jboss.seam.captureView" />
      </s:link>
      

      which would of course raise the given event when the link is clicked? Right now, I end up simulating a very similar functionality with by adding a "marker" action to my bean, and specifying the desired events behaviour in pages.xml.

      --
      Adam

        • 1. Re: Raising events from s:link
          pmuir

          -> JIRA :)

          • 2. Re: Raising events from s:link

            I've always thought in cases like this we would generally prefer an outcome like "newGroup" which could be associated with your action and a set of events on the server-side. (preferably through a clean url) This shouldn't take too much wrangling on pages.xml.

            I already worry that we made a huge mistake with the implementation of s:link, and it would be great if we didn't continue too far down that road with new things like this.