You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jan Helbig (JIRA)" <ji...@apache.org> on 2007/09/10 11:56:34 UTC

[jira] Created: (WW-2165) default theme of textfield is unambiguously rendered

default theme of textfield is unambiguously  rendered
-----------------------------------------------------

                 Key: WW-2165
                 URL: https://issues.apache.org/struts/browse/WW-2165
             Project: Struts 2
          Issue Type: Bug
          Components: Views
    Affects Versions: 2.0.8
         Environment: WinXP, Spring 2.0.6, Struts 2.08, Apache Tomcat 5.5
            Reporter: Jan Helbig
            Priority: Minor


first case:
- render a html snippet with form (theme="simple") and textfield -> theme of textfield is simple

second case:
- render a html snippet with only textfield -> theme is default theme (xhtml)

workarround: specify the theme for the textfield

nevertheless there has to be an unambiguously way to retrieve the theme of the textfield

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WW-2165) default theme of textfield is unambiguously rendered

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes closed WW-2165.
----------------------------

    Resolution: Not A Problem

What exactly are you proposing? The default theme is set in the "org/apache/struts2/default.properties" file in the Struts 2 core .jar file (e.g., struts2-core-2.0.9.jar) via the following property

### Standard UI theme
### Change this to reflect which path should be used for JSP control tag templates by default
struts.ui.theme=xhtml

You can override this setting by creating a struts.properties file for your application and putting it at the root of the classpath.

The logic is that Struts 2 will use the default theme (specified in the properties file) unless overridden. It can be overriden at the form level or at the individual tag level. I don't see how this can be disambiguated more. If you have a specific example of how it can be better explained, feel free to re-open this ticket. I am closing the ticket for now.

> default theme of textfield is unambiguously  rendered
> -----------------------------------------------------
>
>                 Key: WW-2165
>                 URL: https://issues.apache.org/struts/browse/WW-2165
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: WinXP, Spring 2.0.6, Struts 2.08, Apache Tomcat 5.5
>            Reporter: Jan Helbig
>            Priority: Minor
>
> first case:
> - render a html snippet with form (theme="simple") and textfield -> theme of textfield is simple
> second case:
> - render a html snippet with only textfield -> theme is default theme (xhtml)
> workarround: specify the theme for the textfield
> nevertheless there has to be an unambiguously way to retrieve the theme of the textfield

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.