You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Bob Tiernay (JIRA)" <ji...@apache.org> on 2009/03/12 05:08:02 UTC

[jira] Created: (WW-3033) s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'

s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'
--------------------------------------------------------------------------------------------------------

                 Key: WW-3033
                 URL: https://issues.apache.org/struts/browse/WW-3033
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tags
    Affects Versions: 2.1.6
            Reporter: Bob Tiernay


<s:form id="order-details-form" ...

produces:

<form id="order_details_form" ...


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


[jira] Resolved: (WW-3033) s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'

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

Musachy Barroso resolved WW-3033.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.7

created by https://issues.apache.org/struts/browse/WW-2351

> s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3033
>                 URL: https://issues.apache.org/struts/browse/WW-3033
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.1.6
>            Reporter: Bob Tiernay
>             Fix For: 2.1.7
>
>
> <s:form id="order-details-form" ...
> produces:
> <form id="order_details_form" ...

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


[jira] Commented: (WW-3033) s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'

Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45705#action_45705 ] 

Philip Luppens commented on WW-3033:
------------------------------------

>From what I recall, this has to do with the Javascript generation where using dashes would result in errors (can anyone confirm?). I do agree that we should make this more clear in the documentation though.

> s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3033
>                 URL: https://issues.apache.org/struts/browse/WW-3033
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.1.6
>            Reporter: Bob Tiernay
>
> <s:form id="order-details-form" ...
> produces:
> <form id="order_details_form" ...

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


[jira] Commented: (WW-3033) s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'

Posted by "Bob Tiernay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45706#action_45706 ] 

Bob Tiernay commented on WW-3033:
---------------------------------

I have just updated my app from 2.0.11 and this broke all my jquery javascript that relies on the preservation of id attributes as specified in the tag invocation. I'm sure I'm not alone in my situation. The other tags seem to generate markup correctly. Is there a way to disable this functionality? If not, perhaps there should be a struts property that affects this behavior and certainly updated documentation and added to the migration guide.

Thanks in advance,

Bob 

> s:form tag generates markup with id attribute values containing hypens '-' replaced with underscores '_'
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3033
>                 URL: https://issues.apache.org/struts/browse/WW-3033
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.1.6
>            Reporter: Bob Tiernay
>
> <s:form id="order-details-form" ...
> produces:
> <form id="order_details_form" ...

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