[jira] [Commented] (WW-5240) doubleOnchange attribute of the doubleselect tag doesn't call method

2022-10-11 Thread James Hartleroad (Jira)


[ 
https://issues.apache.org/jira/browse/WW-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17615892#comment-17615892
 ] 

James Hartleroad commented on WW-5240:
--

ok, so not a bug.

If I wanted to create an enhancement and follow the contributing guidelines to 
add it, would that be ok or am I missing a fundamental point that it just 
shouldn't be there?

> doubleOnchange attribute of the doubleselect tag doesn't call method
> 
>
> Key: WW-5240
> URL: https://issues.apache.org/jira/browse/WW-5240
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 6.0.0
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 6.1.0
>
>
> When setting up a doubleselect tag with a call to a java script on the 
> doubleOnchange attribute, the java script is not called.
> For example a jsp with the following doubleselect
> {code}
>                      id="selectapp" name="selectapp" 
> list="appreleaseMap.keySet()" onchange="app2select()"
>                     doubleId="selectrel" doubleName="selectrel" 
> doubleList="appreleaseMap.get(top)"
>                     doubleOnchange="rel2select()" />
> {code}
> and a java script file with (alerts added for debugging)
> {code:javascript}
> function app2select() { 
>   alert('app2select'); 
>   var elmnt = document.getElementById('selectapp'); 
>   var value = elmnt.value; 
>   alert('value is:' + value); 
>   document.getElementById('applid').value = value; 
>   document.getElementById('release').value = ''; 
> }
> function rel2select() { 
>   alert('rel2select'); 
>   var elmnt = document.getElementById('selectrel'); 
>   var value = elmnt.value; 
>   alert('value=' + value); 
>   document.getElementById('release').value = value; 
> }
> {code}
> The app2select is called when selecting the first element, but the rel2select 
> is not called when selecting the 2nd element.
> Per information I found on the web I updated the 
> template/simple2/doubleselect.ftl by adding the following and then it worked. 
> {code}
> <#if parameters.doubleOnchange??><#t/>
>     onchange="<#outputformat 
> 'JavaScript'>${parameters.doubleOnchange}"
> <#t/>
> {code}



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


[jira] [Commented] (WW-5240) doubleOnchange attribute of the doubleselect tag doesn't call method

2022-10-06 Thread James Hartleroad (Jira)


[ 
https://issues.apache.org/jira/browse/WW-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17613574#comment-17613574
 ] 

James Hartleroad commented on WW-5240:
--

I looked in the 6.0.0 structs code and it has the same problem.  I also did a 
comparison of the template/simple code from the repository vs. what I have in 
template/simple2 and there were no differences, so I believe it is an issue 
with the Structs.

> doubleOnchange attribute of the doubleselect tag doesn't call method
> 
>
> Key: WW-5240
> URL: https://issues.apache.org/jira/browse/WW-5240
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 6.0.0
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 6.1.0
>
>
> When setting up a doubleselect tag with a call to a java script on the 
> doubleOnchange attribute, the java script is not called.
> For example a jsp with the following doubleselect
> {code}
>                      id="selectapp" name="selectapp" 
> list="appreleaseMap.keySet()" onchange="app2select()"
>                     doubleId="selectrel" doubleName="selectrel" 
> doubleList="appreleaseMap.get(top)"
>                     doubleOnchange="rel2select()" />
> {code}
> and a java script file with (alerts added for debugging)
> {code:javascript}
> function app2select() { 
>   alert('app2select'); 
>   var elmnt = document.getElementById('selectapp'); 
>   var value = elmnt.value; 
>   alert('value is:' + value); 
>   document.getElementById('applid').value = value; 
>   document.getElementById('release').value = ''; 
> }
> function rel2select() { 
>   alert('rel2select'); 
>   var elmnt = document.getElementById('selectrel'); 
>   var value = elmnt.value; 
>   alert('value=' + value); 
>   document.getElementById('release').value = value; 
> }
> {code}
> The app2select is called when selecting the first element, but the rel2select 
> is not called when selecting the 2nd element.
> Per information I found on the web I updated the 
> template/simple2/doubleselect.ftl by adding the following and then it worked. 
> {code}
> <#if parameters.doubleOnchange??><#t/>
>     onchange="<#outputformat 
> 'JavaScript'>${parameters.doubleOnchange}"
> <#t/>
> {code}



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


[jira] [Updated] (WW-5240) doubleOnchange attribute of the doubleselect tag doesn't call method

2022-10-05 Thread James Hartleroad (Jira)


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

James Hartleroad updated WW-5240:
-
Description: 
When setting up a doubleselect tag with a call to a java script on the 
doubleOnchange attribute, the java script is not called.

For example a jsp with the following doubleselect



and a java script file with (alerts added for debugging)

function app2select()

{     alert('app2select');     var elmnt = 
document.getElementById('selectapp');     var value = elmnt.value;     
alert('value is:' + value);     document.getElementById('applid').value = 
value;     document.getElementById('release').value = ''; }

function rel2select()

{     alert('rel2select');     var elmnt = 
document.getElementById('selectrel');     var value = elmnt.value;     
alert('value=' + value);     document.getElementById('release').value = value; }

The app2select is called when selecting the first element, but the rel2select 
is not called when selecting the 2nd element.

Per information I found on the web I updated the 
template/simple2/doubleselect.ftl by adding the following and then it worked. 

<#if parameters.doubleOnchange??><#t/>
    onchange="<#outputformat 
'JavaScript'>${parameters.doubleOnchange}"
    <#t/>

  was:
When setting up a doubleselect tag with a call to a java script on the 
doubleOnchange attribute, the java script is not called.

For example a jsp with the following doubleselect



and a java script file with (alerts added for debugging)

function app2select() {
    alert('app2select');
    var elmnt = document.getElementById('selectapp');
    var value = elmnt.value;
    alert('value is:' + value);
    document.getElementById('applid').value = value;
    document.getElementById('release').value = '';
}
function rel2select() {
    alert('rel2select');
    var elmnt = document.getElementById('selectrel');
    var value = elmnt.value;
    alert('value=' + value);
    document.getElementById('release').value = value;
}

The app2select is called when selecting the first element, but the rel2select 
is not called when selecting the 2nd element.

Per information I found on the web I updated the doubleselect.ftl by adding the 
following and then it worked. 

<#if parameters.doubleOnchange??><#t/>
    onchange="<#outputformat 
'JavaScript'>${parameters.doubleOnchange}"
    <#t/>


> doubleOnchange attribute of the doubleselect tag doesn't call method
> 
>
> Key: WW-5240
> URL: https://issues.apache.org/jira/browse/WW-5240
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 6.0.0
>Reporter: James Hartleroad
>Priority: Minor
>
> When setting up a doubleselect tag with a call to a java script on the 
> doubleOnchange attribute, the java script is not called.
> For example a jsp with the following doubleselect
>                      id="selectapp" name="selectapp" 
> list="appreleaseMap.keySet()" onchange="app2select()"
>                     doubleId="selectrel" doubleName="selectrel" 
> doubleList="appreleaseMap.get(top)"
>                     doubleOnchange="rel2select()" />
> and a java script file with (alerts added for debugging)
> function app2select()
> {     alert('app2select');     var elmnt = 
> document.getElementById('selectapp');     var value = elmnt.value;     
> alert('value is:' + value);     document.getElementById('applid').value = 
> value;     document.getElementById('release').value = ''; }
> function rel2select()
> {     alert('rel2select');     var elmnt = 
> document.getElementById('selectrel');     var value = elmnt.value;     
> alert('value=' + value);     document.getElementById('release').value = 
> value; }
> The app2select is called when selecting the first element, but the rel2select 
> is not called when selecting the 2nd element.
> Per information I found on the web I updated the 
> template/simple2/doubleselect.ftl by adding the following and then it worked. 
> <#if parameters.doubleOnchange??><#t/>
>     onchange="<#outputformat 
> 'JavaScript'>${parameters.doubleOnchange}"
>     <#t/>



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


[jira] [Created] (WW-5240) doubleOnchange attribute of the doubleselect tag doesn't call method

2022-10-05 Thread James Hartleroad (Jira)
James Hartleroad created WW-5240:


 Summary: doubleOnchange attribute of the doubleselect tag doesn't 
call method
 Key: WW-5240
 URL: https://issues.apache.org/jira/browse/WW-5240
 Project: Struts 2
  Issue Type: Bug
Affects Versions: 6.0.0
Reporter: James Hartleroad


When setting up a doubleselect tag with a call to a java script on the 
doubleOnchange attribute, the java script is not called.

For example a jsp with the following doubleselect



and a java script file with (alerts added for debugging)

function app2select() {
    alert('app2select');
    var elmnt = document.getElementById('selectapp');
    var value = elmnt.value;
    alert('value is:' + value);
    document.getElementById('applid').value = value;
    document.getElementById('release').value = '';
}
function rel2select() {
    alert('rel2select');
    var elmnt = document.getElementById('selectrel');
    var value = elmnt.value;
    alert('value=' + value);
    document.getElementById('release').value = value;
}

The app2select is called when selecting the first element, but the rel2select 
is not called when selecting the 2nd element.

Per information I found on the web I updated the doubleselect.ftl by adding the 
following and then it worked. 

<#if parameters.doubleOnchange??><#t/>
    onchange="<#outputformat 
'JavaScript'>${parameters.doubleOnchange}"
    <#t/>



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


[jira] [Commented] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-23 Thread James Hartleroad (Jira)


[ 
https://issues.apache.org/jira/browse/WW-5099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17237605#comment-17237605
 ] 

James Hartleroad commented on WW-5099:
--

Re-created the patch using the master branch.

> Upgrade JFreeChart plugin to the latest version of JFreeChart
> -
>
> Key: WW-5099
> URL: https://issues.apache.org/jira/browse/WW-5099
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - JFreeChart
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 2.6
>
> Attachments: jfreechart_patch.txt
>
>
> Upgrade JFreeChart to the newest version.
> Today that is jcommon version 1.0.24 and jfreechart 1.5.1
> Updating jfreechart to 1.5.1 will require a import statement and code changes 
> due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-23 Thread James Hartleroad (Jira)


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

James Hartleroad updated WW-5099:
-
Attachment: jfreechart_patch.txt

> Upgrade JFreeChart plugin to the latest version of JFreeChart
> -
>
> Key: WW-5099
> URL: https://issues.apache.org/jira/browse/WW-5099
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - JFreeChart
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 2.6
>
> Attachments: jfreechart_patch.txt
>
>
> Upgrade JFreeChart to the newest version.
> Today that is jcommon version 1.0.24 and jfreechart 1.5.1
> Updating jfreechart to 1.5.1 will require a import statement and code changes 
> due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-23 Thread James Hartleroad (Jira)


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

James Hartleroad updated WW-5099:
-
Attachment: (was: patchfile_v2.5.x.txt)

> Upgrade JFreeChart plugin to the latest version of JFreeChart
> -
>
> Key: WW-5099
> URL: https://issues.apache.org/jira/browse/WW-5099
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - JFreeChart
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 2.6
>
> Attachments: jfreechart_patch.txt
>
>
> Upgrade JFreeChart to the newest version.
> Today that is jcommon version 1.0.24 and jfreechart 1.5.1
> Updating jfreechart to 1.5.1 will require a import statement and code changes 
> due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-20 Thread James Hartleroad (Jira)


[ 
https://issues.apache.org/jira/browse/WW-5099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17236468#comment-17236468
 ] 

James Hartleroad commented on WW-5099:
--

patchfile_v2.5.x.txt was built off of the struts-2-5-x branch

> Upgrade JFreeChart plugin to the latest version of JFreeChart
> -
>
> Key: WW-5099
> URL: https://issues.apache.org/jira/browse/WW-5099
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - JFreeChart
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 2.6
>
> Attachments: patchfile_v2.5.x.txt
>
>
> Upgrade JFreeChart to the newest version.
> Today that is jcommon version 1.0.24 and jfreechart 1.5.1
> Updating jfreechart to 1.5.1 will require a import statement and code changes 
> due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-20 Thread James Hartleroad (Jira)


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

James Hartleroad updated WW-5099:
-
Attachment: patchfile_v2.5.x.txt

> Upgrade JFreeChart plugin to the latest version of JFreeChart
> -
>
> Key: WW-5099
> URL: https://issues.apache.org/jira/browse/WW-5099
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - JFreeChart
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 2.6
>
> Attachments: patchfile_v2.5.x.txt
>
>
> Upgrade JFreeChart to the newest version.
> Today that is jcommon version 1.0.24 and jfreechart 1.5.1
> Updating jfreechart to 1.5.1 will require a import statement and code changes 
> due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-20 Thread James Hartleroad (Jira)


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

James Hartleroad updated WW-5099:
-
Attachment: (was: patchfile.txt)

> Upgrade JFreeChart plugin to the latest version of JFreeChart
> -
>
> Key: WW-5099
> URL: https://issues.apache.org/jira/browse/WW-5099
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - JFreeChart
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 2.6
>
>
> Upgrade JFreeChart to the newest version.
> Today that is jcommon version 1.0.24 and jfreechart 1.5.1
> Updating jfreechart to 1.5.1 will require a import statement and code changes 
> due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-20 Thread James Hartleroad (Jira)


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

James Hartleroad updated WW-5099:
-
Attachment: patchfile.txt

> Upgrade JFreeChart plugin to the latest version of JFreeChart
> -
>
> Key: WW-5099
> URL: https://issues.apache.org/jira/browse/WW-5099
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - JFreeChart
>Reporter: James Hartleroad
>Priority: Minor
> Fix For: 2.6
>
> Attachments: patchfile.txt
>
>
> Upgrade JFreeChart to the newest version.
> Today that is jcommon version 1.0.24 and jfreechart 1.5.1
> Updating jfreechart to 1.5.1 will require a import statement and code changes 
> due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (WW-5099) Upgrade JFreeChart plugin to the latest version of JFreeChart

2020-11-20 Thread James Hartleroad (Jira)
James Hartleroad created WW-5099:


 Summary: Upgrade JFreeChart plugin to the latest version of 
JFreeChart
 Key: WW-5099
 URL: https://issues.apache.org/jira/browse/WW-5099
 Project: Struts 2
  Issue Type: Improvement
  Components: Plugin - JFreeChart
Reporter: James Hartleroad
 Fix For: 2.6


Upgrade JFreeChart to the newest version.

Today that is jcommon version 1.0.24 and jfreechart 1.5.1

Updating jfreechart to 1.5.1 will require a import statement and code changes 
due to class name and method name changes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)