You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "RAUL (JIRA)" <ji...@apache.org> on 2007/12/11 22:21:34 UTC
[jira] Created: (WW-2369) s:select does not work with validation
framework
s:select does not work with validation framework
-------------------------------------------------
Key: WW-2369
URL: https://issues.apache.org/struts/browse/WW-2369
Project: Struts 2
Issue Type: Bug
Components: XML Validators
Affects Versions: 2.0.9
Environment: Struts 2.0.9, Jboss, JDK 6, Windows 2003 Server
Reporter: RAUL
Priority: Critical
I am using this in my jsp.
<s:select name="Books" tabindex="2" listKey="identity.value" listValue="name" id="toBooks"
list="%{lstBooks}" theme="css_xhtml" />
When validation fails, the original selection was wiped out. I also had to put the List 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 'toBooks', name 'Books': The requested list key '%{lstBooks}' 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] Commented: (WW-2369) s:select does not work with validation
framework
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42801 ]
Dave Newton commented on WW-2369:
---------------------------------
The list has to be available from either the session or via the action's prepare() method (or some other mechanism); that part, at least, is hardly an error.
> s:select does not work with validation framework
> -------------------------------------------------
>
> Key: WW-2369
> URL: https://issues.apache.org/struts/browse/WW-2369
> Project: Struts 2
> Issue Type: Bug
> Components: XML Validators
> Affects Versions: 2.0.9
> Environment: Struts 2.0.9, Jboss, JDK 6, Windows 2003 Server
> Reporter: RAUL
> Priority: Critical
>
> I am using this in my jsp.
> <s:select name="Books" tabindex="2" listKey="identity.value" listValue="name" id="toBooks"
> list="%{lstBooks}" theme="css_xhtml" />
> When validation fails, the original selection was wiped out. I also had to put the List 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 'toBooks', name 'Books': The requested list key '%{lstBooks}' 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.