From bfa0d22c8c799e523da5bb8599bb5d9deb67f15d Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Fri, 16 Feb 2007 20:18:30 +0000 Subject: [PATCH] WW-1730 The refreshOnShow attribute in tabbedPanel does not work git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@508557 13f79535-47bb-0310-9956-ffa450edef68 --- core/src/main/resources/template/ajax/div.ftl | 3 +++ .../test/resources/org/apache/struts2/views/jsp/ui/div-1.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/core/src/main/resources/template/ajax/div.ftl b/core/src/main/resources/template/ajax/div.ftl index 81779c1db..15a479384 100644 --- a/core/src/main/resources/template/ajax/div.ftl +++ b/core/src/main/resources/template/ajax/div.ftl @@ -14,6 +14,9 @@ <#if parameters.stopTimerListenTopics?if_exists != ""> stopTimerListenTopics="${parameters.stopTimerListenTopics?html}"<#rt/> + <#if parameters.refreshOnShow?exists> + refreshOnShow="${parameters.refreshOnShow?string?html}"<#rt/> + <#include "/${parameters.templateDir}/ajax/ajax-common.ftl" /> <#include "/${parameters.templateDir}/simple/scripting-events.ftl" /> > diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/div-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/div-1.txt index 375227868..a6ad59b58 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/div-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/div-1.txt @@ -5,6 +5,7 @@ autoStart="true" startTimerListenTopics="h" stopTimerListenTopics="i" + refreshOnShow="true" id="mylabel" href="a" loadingText="b"