You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2026/10/12 18:45:00 UTC

[jira] [Created] (WW-5769) Remove deprecated UIBean default theme/template directory setters and fields

Lukasz Lenart created WW-5769:
---------------------------------

             Summary: Remove deprecated UIBean default theme/template directory setters and fields
                 Key: WW-5769
                 URL: https://issues.apache.org/jira/browse/WW-5769
             Project: Struts 2
          Issue Type: Task
          Components: Core Tags
            Reporter: Lukasz Lenart
             Fix For: 8.0.0


[WW-5768|https://issues.apache.org/jira/browse/WW-5768] moved the last fallback step of {{UIBean.getTheme()}} / {{getTemplateDir()}} to {{ScopedConstantProvider}}. That left these members unread and deprecated for removal since 7.5.0:
* {{UIBean#setDefaultUITheme(String)}} and the {{defaultUITheme}} field
* {{UIBean#setDefaultTemplateDir(String)}} and the {{defaultTemplateDir}} field

Remove them. Code that called the setters should set {{struts.ui.theme}} / {{struts.ui.templateDir}} globally or per package with {{<scoped-constant>}}. Code that builds a component by hand should set a {{ScopedConstantProvider}}. Mention this in the 8.0.0 migration guide.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)