Simon Kitching wrote:
Steve Torrefranca wrote:
Hi,

How do we prevent form submission? I have a link that opens a new window: <t:commandLink value="LINK" onclick="window.open('attachments.xhtml?commEmailID=#{communication.id}')" />

My problem is, that the form that has the link gets submitted to the server as it opens a new link. How do we prevent such behavior?

This is a common javascript problem: add ";return false" to your onclick attribute.

Umm..and what Jeff said too :-). Presumably t:outputLink is also what you want..

Reply via email to