嗨,我正在學習使用Tiles 2的struts 2,單詞「topic」顯示頻率很高... 什麼是話題?什麼是Struts2中的TOPIC
例如:
了SX:標籤(特別是AJAX模板)和div標籤支持ajax的事件系統,提供與廣播事件話題的能力。您可以使用listenTopics屬性中的逗號分隔列表指定要聽的主題。這意味着當主題發佈時,通常通過ajax模板,href屬性中指定的URL將被重新請求。
<sx:div theme="ajax" id="weather" href="http://www.weather.com/weather?zip=97239"
loadingText="Loading weather information..."
errorText="Unable to contact weather server"
listenTopics="weather_topic,some_topic">Placeholder...
</sx:div>
<sx:a id="link1"
theme="ajax"
href="refreshWeather.action"
notifyTopics="weather_topic,other_topic"
errorText="An Error ocurred">Refresh</sx:a>