jan
the target refers to the component whose content will be updated
<img id="loadingImage" src="images/loadingAnimation.gif" style="display:none"/>
<s:div id="parentDiv">
<s:form action="actionName">
<sx:a targets="parentDiv" showLoadingText="false"
indicator="loadingImage"/>
dialogContainer is too general and not a component per se
best to identify a div tag such as parentDiv
http://struts.apache.org/2.1.6/docs/dojo-anchor.html
Mit Freundlichen Grueben/
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
> Subject: [S2.1.2] sx:div targets AKA sx:a targets
> Date: Tue, 7 Jul 2009 19:56:21 +0200
> From: [email protected]
> To: [email protected]
>
> Wrong subject! ;)
>
> ________________________________
>
> Von: Jan Fröhlich [mailto:[email protected]]
> Gesendet: Di 07.07.2009 16:55
> An: Struts Users Mailing List
> Betreff: [S2.1.2] sx:div targets
>
>
>
> Hi all,
>
> I've seen this topic beeing discussed several times already, but I didn't
> find a solution that works for me.
>
> What I already got:
> I invoke an action with a sx:a (targets="dialogContainer"). The action opens
> a document and has two possible return values: "prompt" and "download".
> "prompt" means, that there are several information necessary before the
> document can be downloaded. It is type="tiles".
> "download" means, that the document is ready for download. It is
> type="stream".
>
> On the "prompt" page is a finish button, that has no targets set, so the
> download starts fine.
> If the action returns "download" immediately it shows the stream in the
> specified "dialogContainer".
>
> What I need is to modify the targets value out of my action.
>
> I tried it from within the action and with an interceptor, but it seems like
> I can't access the "targets" in the ValueStack.
> Another way I tried, was to use afterNotifyTopics and redirect the data to
> what I want - but that didn't work either. (Problem with the stream result)
>
> Can someone give me a hint, how I can possibly solve it?
> I even thought about modifying the freemarker template for the anchor tag -
> but I couldn't find the right spot, where to do it.
>
> Any help appreciated!
>
> Kind regards
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
>
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009