You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Marcelo Carvalho Fernandes <mc...@gmail.com> on 2012/04/14 03:54:12 UTC
remoteLink that change it's text
Hi!
I have the following gsp code...
<g:each in="${productInstanceList}" status="i" var="productInstance">
<!-- display product properties ommited -->
<g:remoteLink action="addaction"
id="${i}"
update="[success:'what-to-put-here',failure:'error']"
on404="alert('not found');">
Select this product
</g:remoteLink>
</g:each>
How to have each remoteLink to change it's "Select this product" text to
what "addaction" renders?
The problem I'm facing is that I don't know what to put in 'what-to-put-here
' in order to achieve that.
Of course, I'm new to gsp tags. Any idea?
Thanks in advance,
----
Marcelo Carvalho Fernandes
+55 21 8272-7970
+55 21 2205-2786
Re: remoteLink that change it's text
Posted by Marcelo Carvalho Fernandes <mc...@gmail.com>.
Sorry! Wrong list!
----
Marcelo Carvalho Fernandes
+55 21 8272-7970
+55 21 2205-2786
On Fri, Apr 13, 2012 at 10:54 PM, Marcelo Carvalho Fernandes <
mcf2000@gmail.com> wrote:
> Hi!
>
> I have the following gsp code...
>
> <g:each in="${productInstanceList}" status="i" var="productInstance">
> <!-- display product properties ommited -->
> <g:remoteLink action="addaction"
> id="${i}"
> update="[success:'what-to-put-here',failure:'error']"
> on404="alert('not found');">
> Select this product
> </g:remoteLink>
> </g:each>
>
> How to have each remoteLink to change it's "Select this product" text to
> what "addaction" renders?
> The problem I'm facing is that I don't know what to put in '
> what-to-put-here' in order to achieve that.
>
> Of course, I'm new to gsp tags. Any idea?
>
> Thanks in advance,
>
> ----
> Marcelo Carvalho Fernandes
> +55 21 8272-7970
> +55 21 2205-2786
>