You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2007/05/18 14:40:43 UTC

[jira] Updated: (WW-1766) s:div tag needs the scriptSeparation attribute

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

Musachy Barroso updated WW-1766:
--------------------------------

    Fix Version/s:     (was: 2.0.7)
                   2.1.0

> s:div tag needs the scriptSeparation attribute
> ----------------------------------------------
>
>                 Key: WW-1766
>                 URL: https://issues.apache.org/struts/browse/WW-1766
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Views
>    Affects Versions: 2.0.6
>         Environment: All
>            Reporter: Clifford Adams
>         Assigned To: Musachy Barroso
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> The s:div tag has most of the attributes of the dojo ContentPane widget. But not the scriptSeparation attribute. This causes an issue with included forms and client-side javascript validation. For example:
> A page with an included form and results div like this will not work:
> <s:div theme="ajax" href="PersonByAge_input.action" executeScripts="true" />
> <s:div id="resultBox" theme="ajax"  />
> if the form attempts to use [theme="css_xhtml" validate="true"] because the generated validation javascript gets stripped out before being included in the s:div
> If the page is changed to:
> <div dojoType="ContentPane" href="<s:url action="PersonByAge_input"/>" scriptSeparation="false" executeScripts="true" ></div>
> <s:div id="resultBox" theme="ajax"  />
> then it works just fine.

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