I tried the 'url' way first, but it did not work for me. 'url' but it creates links with double application context in front for autocompletes. samples b) and c) show this.
Dariusz Wojtas On 12/14/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:
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) ?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]