• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 AJAX tag questions

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am learning how to use AJAX-enabled tags in Struts 2. Here is a code snippet:

1: <div style="text-align: right;">
2: <s:a theme="ajax" notifyTopics="/refresh">Refresh</s:a>
3: </div>
4: <s iv id="persons" theme="ajax" href="%{descrsUrl}"
5: loadingText="Loading..." indicator="indicator1"
6: listenTopics="/refresh"/>

Here are my questions:
1. I didn't see the 'refresh' topic declared anywhere in the file. Is it something that the <s:a> tag understands what to do with? And what exactly does line 2 mean?
2. What do lines 4 through 6 do here? I think I understand the id, theme, href, loadText and indicator attributes here.

Thanks in advance.

Haitao
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the same question.
 
reply
    Bookmark Topic Watch Topic
  • New Topic