You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Giovanni Azua <gi...@imc.nl> on 2008/05/28 16:04:12 UTC
OT: AjaxTags passing parameters to callout ...
hi,
I would like to invoke an AjaxTags callout from a displaytag column. My
use-case is the following: I have a column "status" whose value can be
'Succeeded' or 'Failed'. If the value is Failed I would like to display
it as an hyperlink that on hover produces a callout with the Error
Message explaining the cause of that failure.
This is the callout example included in AjaxTags demo delivery:
<a href="javascript://nop/" class="definition">Vogons</a>
<-- "Vogons" is what is sent as request parameter to the action,
I would like it to be something else than the hyperlink display value -->
<ajax:callout baseUrl="${contextPath}/callout.view"
sourceClass="definition"
parameters="q={ajaxParameter}"
title="Definition" />
My problem is that I can't find a way to pass a parameter that is not
the hyperlink display value i.e. in my use-case I display as column
value 'Succeeded' whereas what I would like to pass as parameter to the
callout Action is the process ID so that it can fetch the appropriate
Error Message. But seems that the ajaxParameter only takes the display
value of the hyperlink?
TIA,
Regards,
Giovanni
PS: If you know any other callout alternative I will be happy to switch
from AjaxTags too ...
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org