[ 
https://issues.apache.org/struts/browse/WW-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44510#action_44510
 ] 

fanfrank commented on WW-2501:
------------------------------

to sole this problem temporarily ,follow these steps:
1) change file "struts_dojo.js.uncompressed.js" in struts2-dojo-plugin-2.1.2.jar
line 17895: if(djg.execScript)   => if(this.executeScripts)

2) use div tag like this:
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
... ...
<sx:div id="publish" label="xxxx" href="/xxxx.jsp" separateScripts="false" 
executeScripts="true"/>
... ...
note: "separateScripts" is set to false and executeScripts is set to true

3) in xxx.jsp,the form must include the "name" attribute, for example:
<s:form id="editForm" name="editForm" action="addjob" namespace="/corp" >
              <s:doubleselect
        tooltip="Choose Your State"
         label="State"
        name="region" list="{'North', 'South'}"
        value="'South'"
        doubleValue="'Florida'"
        doubleList="top == 'North' ? {'Oregon', 'Washington'} : {'Texas', 
'Florida'}" 
        doubleName="state"
        headerKey="-1"
        headerValue="---------- Please Select ----------"
        emptyOption="true" />
<s:form>

done!



> No JavaScript in sx:div
> -----------------------
>
>                 Key: WW-2501
>                 URL: https://issues.apache.org/struts/browse/WW-2501
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.0
>            Reporter: Alberto José Rodríguez Rodríguez
>            Priority: Critical
>             Fix For: 2.1.3
>
>
> Time ago I noticed that javascript were removed in the pages linked by 
> <sx:div ..>.
> Parameters executeScripts and separateScripts don't solve the problem.

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

Reply via email to