You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mansour <ma...@yahoo.com> on 2007/05/14 04:28:00 UTC
table tag - submit onclick
I am using table tag and I want some of the records to appear as a link
and to submit onClick. I am sure I am missing something. Here's a piece
of the code:
<tt:table value="accountsList" >
<tt:column title="Account Name" >
<s:form action="getAccountById">
<s:hidden name="id"/>
<s:a onclick="submit();" href="javascript://">
<s:property value="firstName" />
<s:property value="lastName" />
</s:a>
</s:form>
</tt:column>
<tt:column title="email">
<s:property value="id" />
</tt:column>
can any one help ? Any idea?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: table tag - submit onclick
Posted by Mansour <ma...@yahoo.com>.
I just found it. Thank you every one.
I just modified this:
<s:a onclick="submit();" href="javascript://">
to
<s:a onclick="parentNode.submit();" href="javascript://">
I added the "parentNode".
__
Mansour wrote:
> I am using table tag and I want some of the records to appear as a
> link and to submit onClick. I am sure I am missing something. Here's a
> piece of the code:
>
> <tt:table value="accountsList" >
> <tt:column title="Account Name" >
> <s:form action="getAccountById">
> <s:hidden name="id"/>
> <s:a onclick="submit();" href="javascript://">
> <s:property value="firstName" />
> <s:property value="lastName" />
> </s:a>
> </s:form>
> </tt:column>
> <tt:column title="email">
> <s:property value="id" />
> </tt:column>
>
>
>
> can any one help ? Any idea?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org