You need to use the "url" tag to construct the "href" for all the ajaxtags.
musachy
Dariusz Wojtas wrote:
> I have found possible other problem:
> To show it I have created 3 similar autocompletes, differing only in
> href.
> They all should load data from action '/listy/kontrahenci.action'
> and the '/esu' application prefix. That should result in link to:
> '/esu/listy/kontrahenci.action'
>
> sample a) works this way (correctly), but both b) and c) produce
> '/esu/esu/listy/kontrahenci.action'
> which means that the app prefix is added twice and the action cannot
> be found by the tag.
>
> a)
> <s:autocompleter theme="ajax" href="/listy/kontrahenci.action" />
>
> b)
> <s:url id="linkA" namespace="/listy" action="kontrahenci" />
> <s:autocompleter theme="ajax" href="%{linkA}" />
>
> c)
> <s:url id="linkB" value="/listy/kontrahenci.action" />
> <s:autocompleter theme="ajax" href="%{linkB}"/>
>
> Am I doing something wrong in b) and c) ?
>
> Dariusz Wojtas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)