2 Replies Latest reply on Nov 11, 2006 8:55 PM by Gavin King

    Using s-link with a method in the action fails

    flo thomas Newbie

      Hi,
      I saw in the Seam Documentation that you can use a method and arguments as the action with s:link:
      <s:link value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
      however if I try this with my code, I get an error:

      <s:link value="Modify" action="#{bean.select(car)}" buttonClass="button" linkStyle="button"/>&#160;
      


      The error is:
      Error Parsing: #{bean.select(car)}
      Encountered "("...

      Does anyone have a clue why this might not work?

      Thanks