You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/07/02 01:50:50 UTC
DO NOT REPLY [Bug 21254] New: -
nested:messagePresent tag does not append parent name to indexed property
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21254>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21254
nested:messagePresent tag does not append parent name to indexed property
Summary: nested:messagePresent tag does not append parent name to
indexed property
Product: Struts
Version: 1.1RC2
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: feng.wu@21st.com
Validation of indexed property in struts-validator example
application (in type.jsp) is broken. Specifically the page has an
indexed property nameList[].value. After I switched to Struts 1.1
final, the validation error message no longer shows up.
In request scope, I saw ActionError saved for property
nameList[0].value. In type.jsp the following code is used to output
errors for this property:
<nested:messagesPresent property="value"
<br
<ul
<nested:messages id="error" property="value"
<li<bean:write name="error"/</li
</nested:messages
</ul
</nested:messagesPresent
It seems nested:message can no longer match up "value" with
"nameList[0].value".
I can work around the problem by mannualy generating the property attribute
like this:
<nested:messagesPresent property='<%= "nameList[" + i + "].value" %'
But this kind of defeated the purpose of nested tags.
Per David Graham, this is broked in RC2 as well. It was working in RC1.
Please also see http://www.mail-archive.com/struts-user%
40jakarta.apache.org/msg71566.html
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org