[
https://issues.apache.org/struts/browse/WW-1766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-1766.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.7
> 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.0.7
>
>
> 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.