You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jane Jiang (JIRA)" <ji...@apache.org> on 2007/09/21 19:52:36 UTC
[jira] Created: (WW-2197) s:optiontransferselect does not work with
validation framework
s:optiontransferselect does not work with validation framework
--------------------------------------------------------------
Key: WW-2197
URL: https://issues.apache.org/struts/browse/WW-2197
Project: Struts 2
Issue Type: Bug
Components: Validation, Value Stack, Views
Affects Versions: 2.0.9
Environment: Tomcat 5.5
Reporter: Jane Jiang
I am using this in my jsp.
<s:optiontransferselect id="toDualIcText"
leftTitle="List of All ICs:"
rightTitle="Assigned Dual ICs"
list="%{#application.lookupService.getList(@gov.nih.nci.iscs.oracle.acr.constants.ApplicationConstants@PHS_ORG_CODE_LIST)}"
doubleName="acr.toDualIcText"
doubleList="%{#session.toDualIcsList}"
listKey="phsOrgCode" listValue="phsOrgCode" multiple="true" allowUpDownOnLeft="false" allowUpDownOnRight="false" />
When validation fails, the original selection was wiped out. I also had to put the doubleList in session. If it is in the request, I would get this error
Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', id 'toDualIcText', name 'acr.toDualIcText': The requested list key '%{acr.toDualIcsList}' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WW-2197) s:optiontransferselect does not work
with validation framework
Posted by "Jeromy Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeromy Evans resolved WW-2197.
------------------------------
Resolution: Fixed
Not a problem.
The user's issue relates to the validation workflow and isn't specific to the optiontransferselect component. The user can overcome this by ensuring the referenced collections are populated and a getter visible in the case of a validation failure.
Just to be sure, I created a webapp for struts2.1.3-SNAPSHOT to verifies that there's no problem. It contains only one optiontransferselect and a custom validator on the left selection.
I'll attach the example to this issue.
> s:optiontransferselect does not work with validation framework
> --------------------------------------------------------------
>
> Key: WW-2197
> URL: https://issues.apache.org/struts/browse/WW-2197
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags, Value Stack, XML Validators
> Affects Versions: 2.0.9
> Environment: Tomcat 5.5
> Reporter: Jane Jiang
> Assignee: Jeromy Evans
> Fix For: 2.1.3
>
>
> I am using this in my jsp.
> <s:optiontransferselect id="toDualIcText"
> leftTitle="List of All ICs:"
> rightTitle="Assigned Dual ICs"
> list="%{#application.lookupService.getList(@gov.nih.nci.iscs.oracle.acr.constants.ApplicationConstants@PHS_ORG_CODE_LIST)}"
> doubleName="acr.toDualIcText"
> doubleList="%{#session.toDualIcsList}"
> listKey="phsOrgCode" listValue="phsOrgCode" multiple="true" allowUpDownOnLeft="false" allowUpDownOnRight="false" />
> When validation fails, the original selection was wiped out. I also had to put the doubleList in session. If it is in the request, I would get this error
> Servlet.service() for servlet jsp threw exception
> tag 'select', field 'list', id 'toDualIcText', name 'acr.toDualIcText': The requested list key '%{acr.toDualIcsList}' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2197) s:optiontransferselect does not work with
validation framework
Posted by "Jeromy Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeromy Evans updated WW-2197:
-----------------------------
Attachment: optiontransferselect-0.1-src.zip
optiontransferselect-0.1.war
Example war and src attached.
> s:optiontransferselect does not work with validation framework
> --------------------------------------------------------------
>
> Key: WW-2197
> URL: https://issues.apache.org/struts/browse/WW-2197
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags, Value Stack, XML Validators
> Affects Versions: 2.0.9
> Environment: Tomcat 5.5
> Reporter: Jane Jiang
> Assignee: Jeromy Evans
> Fix For: 2.1.3
>
> Attachments: optiontransferselect-0.1-src.zip, optiontransferselect-0.1.war
>
>
> I am using this in my jsp.
> <s:optiontransferselect id="toDualIcText"
> leftTitle="List of All ICs:"
> rightTitle="Assigned Dual ICs"
> list="%{#application.lookupService.getList(@gov.nih.nci.iscs.oracle.acr.constants.ApplicationConstants@PHS_ORG_CODE_LIST)}"
> doubleName="acr.toDualIcText"
> doubleList="%{#session.toDualIcsList}"
> listKey="phsOrgCode" listValue="phsOrgCode" multiple="true" allowUpDownOnLeft="false" allowUpDownOnRight="false" />
> When validation fails, the original selection was wiped out. I also had to put the doubleList in session. If it is in the request, I would get this error
> Servlet.service() for servlet jsp threw exception
> tag 'select', field 'list', id 'toDualIcText', name 'acr.toDualIcText': The requested list key '%{acr.toDualIcsList}' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2197) s:optiontransferselect does not work with
validation framework
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes updated WW-2197:
-----------------------------
Fix Version/s: 2.0.12
> s:optiontransferselect does not work with validation framework
> --------------------------------------------------------------
>
> Key: WW-2197
> URL: https://issues.apache.org/struts/browse/WW-2197
> Project: Struts 2
> Issue Type: Bug
> Components: Validation, Value Stack, Views
> Affects Versions: 2.0.9
> Environment: Tomcat 5.5
> Reporter: Jane Jiang
> Fix For: 2.0.12
>
>
> I am using this in my jsp.
> <s:optiontransferselect id="toDualIcText"
> leftTitle="List of All ICs:"
> rightTitle="Assigned Dual ICs"
> list="%{#application.lookupService.getList(@gov.nih.nci.iscs.oracle.acr.constants.ApplicationConstants@PHS_ORG_CODE_LIST)}"
> doubleName="acr.toDualIcText"
> doubleList="%{#session.toDualIcsList}"
> listKey="phsOrgCode" listValue="phsOrgCode" multiple="true" allowUpDownOnLeft="false" allowUpDownOnRight="false" />
> When validation fails, the original selection was wiped out. I also had to put the doubleList in session. If it is in the request, I would get this error
> Servlet.service() for servlet jsp threw exception
> tag 'select', field 'list', id 'toDualIcText', name 'acr.toDualIcText': The requested list key '%{acr.toDualIcsList}' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WW-2197) s:optiontransferselect does not work
with validation framework
Posted by "Jeromy Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeromy Evans reassigned WW-2197:
--------------------------------
Assignee: Jeromy Evans
> s:optiontransferselect does not work with validation framework
> --------------------------------------------------------------
>
> Key: WW-2197
> URL: https://issues.apache.org/struts/browse/WW-2197
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags, Value Stack, XML Validators
> Affects Versions: 2.0.9
> Environment: Tomcat 5.5
> Reporter: Jane Jiang
> Assignee: Jeromy Evans
> Fix For: 2.1.3
>
>
> I am using this in my jsp.
> <s:optiontransferselect id="toDualIcText"
> leftTitle="List of All ICs:"
> rightTitle="Assigned Dual ICs"
> list="%{#application.lookupService.getList(@gov.nih.nci.iscs.oracle.acr.constants.ApplicationConstants@PHS_ORG_CODE_LIST)}"
> doubleName="acr.toDualIcText"
> doubleList="%{#session.toDualIcsList}"
> listKey="phsOrgCode" listValue="phsOrgCode" multiple="true" allowUpDownOnLeft="false" allowUpDownOnRight="false" />
> When validation fails, the original selection was wiped out. I also had to put the doubleList in session. If it is in the request, I would get this error
> Servlet.service() for servlet jsp threw exception
> tag 'select', field 'list', id 'toDualIcText', name 'acr.toDualIcText': The requested list key '%{acr.toDualIcsList}' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.