mirror of
https://github.com/apache/struts.git
synced 2026-08-05 22:56:59 +00:00
Merge pull request #184 from sdutry/WW-4713-deprecation-phase
WW-4713 Added deprecation warnings as preparation to drop searchValue…
This commit is contained in:
@@ -123,6 +123,7 @@ public class Text extends ContextBean implements Param.UnnamedParametric {
|
||||
protected List<Object> values = Collections.emptyList();
|
||||
protected String actualName;
|
||||
protected String name;
|
||||
@Deprecated
|
||||
protected String searchStack;
|
||||
private boolean escapeHtml = false;
|
||||
private boolean escapeJavaScript = false;
|
||||
@@ -138,6 +139,7 @@ public class Text extends ContextBean implements Param.UnnamedParametric {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@StrutsTagAttribute(description="Search the stack if property is not found on resources", type = "Boolean", defaultValue = "false")
|
||||
public void setSearchValueStack(String searchStack) {
|
||||
this.searchStack = searchStack;
|
||||
|
||||
@@ -62,7 +62,10 @@ public class TextProviderHelper {
|
||||
* @param searchStack search stack for the key
|
||||
*
|
||||
* @return the message if found, otherwise the defaultMessage
|
||||
*
|
||||
* @deprecated The stack should never be searched for the key. Use the version without the searchStack boolean instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getText(String key, String defaultMessage, List<Object> args, ValueStack stack, boolean searchStack) {
|
||||
String msg = null;
|
||||
TextProvider tp = null;
|
||||
|
||||
@@ -34,6 +34,7 @@ public class TextTag extends ContextBeanTag {
|
||||
private static final long serialVersionUID = -3075088084198264581L;
|
||||
|
||||
protected String name;
|
||||
@Deprecated
|
||||
protected String searchValueStack;
|
||||
private boolean escapeHtml = false;
|
||||
private boolean escapeJavaScript = false;
|
||||
@@ -60,6 +61,7 @@ public class TextTag extends ContextBeanTag {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setSearchValueStack(String searchStack) {
|
||||
this.searchValueStack = searchStack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user