You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Matt Raible (JIRA)" <ji...@apache.org> on 2007/08/07 18:52:38 UTC

[jira] Created: (WW-2090) should detect when there's only one error and emit no
  • tags
  • <s:fielderror> should detect when there's only one error and emit no <li> tags
    ------------------------------------------------------------------------------
    
                     Key: WW-2090
                     URL: https://issues.apache.org/struts/browse/WW-2090
                 Project: Struts 2
              Issue Type: Improvement
              Components: Views
        Affects Versions: 2.0.9
                Reporter: Matt Raible
    
    
    When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    
    <s:textfield name="company"/> 
    <span style="color: red"><s:fielderror name="company"/></span>
    
    Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Updated: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    Ted Husted updated WW-2090:
    ---------------------------
    
                Flags: [Patch]
        Fix Version/s:     (was: 2.1.3)
                       2.1.1
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >            Assignee: James Holmes
    >             Fix For: 2.1.1
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Updated: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "James Holmes (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    James Holmes updated WW-2090:
    -----------------------------
    
        Fix Version/s: Future
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >             Fix For: Future
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Assigned: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "James Holmes (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    James Holmes reassigned WW-2090:
    --------------------------------
    
        Assignee: James Holmes
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >            Assignee: James Holmes
    >             Fix For: Future
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Updated: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "Don Brown (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    Don Brown updated WW-2090:
    --------------------------
    
        Fix Version/s:     (was: 2.0.11)
                       2.1.0
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >            Assignee: James Holmes
    >             Fix For: 2.1.0
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Updated: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "James Holmes (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    James Holmes updated WW-2090:
    -----------------------------
    
        Fix Version/s:     (was: 2.0.10)
                       2.0.11
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >            Assignee: James Holmes
    >             Fix For: 2.0.11
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Updated: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "Matt Raible (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    Matt Raible updated WW-2090:
    ----------------------------
    
        Attachment: fielderror.ftl
    
    Attached template that only renders a single line with wrapping <span> tags. Does not do any sort of line breaks - which you can do with CSS if necessary.
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >             Fix For: Future
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Updated: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "James Holmes (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    James Holmes updated WW-2090:
    -----------------------------
    
        Fix Version/s:     (was: Future)
                       2.0.10
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >            Assignee: James Holmes
    >             Fix For: 2.0.10
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Resolved: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "Tom Schneider (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    Tom Schneider resolved WW-2090.
    -------------------------------
    
        Resolution: Fixed
          Assignee: Tom Schneider
    
    At this point, I think it would be risky to modify the behavior of the default template.  Existing applications would be required to update their pages if we make this change.  Since the default behavior can be easily overridden by having a customized ftl template, I'm marking this WON'T FIX.
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Plugin - Tags
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >            Assignee: Tom Schneider
    >             Fix For: 2.1.1
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Commented: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "James Holmes (JIRA)" <ji...@apache.org>.
        [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41758 ] 
    
    James Holmes commented on WW-2090:
    ----------------------------------
    
    I'm not sure what we should do here from a "framework default" perspective. Currently, you can alter this behavior by overriding the template. I do that on a project already.
    
    What do others think?
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    
    

    [jira] Assigned: (WW-2090) should detect when there's only one error and emit no
  • tags
  • Posted by "James Holmes (JIRA)" <ji...@apache.org>.
         [ https://issues.apache.org/struts/browse/WW-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
    
    James Holmes reassigned WW-2090:
    --------------------------------
    
        Assignee:     (was: James Holmes)
    
    > <s:fielderror> should detect when there's only one error and emit no <li> tags
    > ------------------------------------------------------------------------------
    >
    >                 Key: WW-2090
    >                 URL: https://issues.apache.org/struts/browse/WW-2090
    >             Project: Struts 2
    >          Issue Type: Improvement
    >          Components: Views
    >    Affects Versions: 2.0.9
    >            Reporter: Matt Raible
    >             Fix For: 2.1.1
    >
    >         Attachments: fielderror.ftl
    >
    >
    > When using the "simple" theme, it's desirable that no HTML is rendered with the error messages.
    > <s:textfield name="company"/> 
    > <span style="color: red"><s:fielderror name="company"/></span>
    > Currently, it renders an <li> around any field errors.
    
    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.