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 2023/04/09 09:20:00 UTC

[jira] [Updated] (WW-5302) Autogenerated html ID bases on unevaluated value of the name sttribute

     [ https://issues.apache.org/jira/browse/WW-5302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-5302:
------------------------------
    Description: 
Using tag like this

{code:html}
<s:set var="mainAction">entryEdit</s:set>

<s:submit cssClass="btn btn-warning" value="%{getText('weblogEdit.save')}" action="%{#mainAction}!saveDraft" />
{code}

renders:

{code:html}
<input type="submit" value="Save as Draft" id="entry____mainAction__saveDraft" name="action:entryAdd!saveDraft" class="btn btn-warning">
{code}

  was:
Using tag like this

{code:html}
<s:set var="mainAction">entryEdit</s:set>

<s:submit cssClass="btn btn-warning"
               value="%{getText('weblogEdit.save')}"
               action="%{#mainAction}!saveDraft"/>
{code}

renders:

{code:html}
<input type="submit" value="Save as Draft"
id="entry____mainAction__saveDraft" name="action:entryAdd!saveDraft"
class="btn btn-warning">
{code}


> Autogenerated html ID bases on unevaluated value of the name sttribute
> ----------------------------------------------------------------------
>
>                 Key: WW-5302
>                 URL: https://issues.apache.org/jira/browse/WW-5302
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>            Reporter: Lukasz Lenart
>            Priority: Major
>             Fix For: 6.2.0
>
>
> Using tag like this
> {code:html}
> <s:set var="mainAction">entryEdit</s:set>
> <s:submit cssClass="btn btn-warning" value="%{getText('weblogEdit.save')}" action="%{#mainAction}!saveDraft" />
> {code}
> renders:
> {code:html}
> <input type="submit" value="Save as Draft" id="entry____mainAction__saveDraft" name="action:entryAdd!saveDraft" class="btn btn-warning">
> {code}



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