[jboss-user] [JBoss Seam] - <s:link> and JavaScript

dahm do-not-reply at jboss.com
Thu Nov 30 09:23:27 EST 2006


Hello,

I've got a problem using the <s:link> tag. I'm using it in a data table
just like in the examples


  | <h:dataTable var="v" value="#{mydata}">
  | ...
  | <h:column>
  |    <s:link value="Delete" action="#{listAction.delete" linkStyle="button"
  | 	onclick="javascript:return confirm('Do you really want to do this?');"/>
  | </h:column>
  | ...
  | 

However, the code never ends up in the output, i.e. the HTML code.
Instead, Seam puts its own code there.


  | <input type="button"onclick="location.href='/iv/listData.seam?actionMethod=listData.delete&dataModelSelection=mydata%5B0%5D'" value="Delete" />
  | 

Is this impossible or can the Seam code and mine somehow live together in harmony :-)

Cheers
    Markus

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990034#3990034

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990034



More information about the jboss-user mailing list