Changes between Initial Version and Version 1 of Ticket #14784


Ignore:
Timestamp:
Feb 13, 2012, 11:24:57 PM (8 years ago)
Author:
Douglas Hays
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14784

    • Property Status changed from new to assigned
    • Property Milestone changed from tbd to 1.8
  • Ticket #14784 – Description

    initial v1  
    1 I am using Struts2 2.3.1.2 and Dojo 1.7.1. Struts2 allows population of a Map by setting the name of field to be like: <input ... name="mapName['mapKey']" .../>
     1I am using Struts2 2.3.1.2 and Dojo 1.7.1. Struts2 allows population of a Map by setting the name of field to be like: <input ... name="mapName!['mapKey']" .../>
    22
    3 Currently in Struts, or more specifically OpenSymphony's xwork library they validate parameter names using the following regex:
     3Currently in Struts, or more specifically !OpenSymphony's xwork library they validate parameter names using the following regex:
    44{{{
    55"\w+((\.\w+)|(\[\d+\])|(\(\d+\))|(\['\w+'\])|(\('\w+'\)))*"
     
    99http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-RelationshiptoParameterNames
    1010
    11 My problem here is that _FormWidget and MappedTextBox both replace ' with &quot; for the nameAttrSetting property thus replacing my single quotes with &quot; making my parameter name no longer pass the above mentioned regex.
     11My problem here is that _FormWidget and !MappedTextBox both replace ' with &quot; for the nameAttrSetting property thus replacing my single quotes with &quot; making my parameter name no longer pass the above mentioned regex.
    1212
    13 The code in both _FormWidget.js and MappedTextBox.js makes reference to http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.3.2 however the text in the link does not mention replacing single quote, it talks about replacing double quote with &quot;
     13The code in both _FormWidget.js and !MappedTextBox.js make references to http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.3.2 however the text in the link does not mention replacing single quote, it talks about replacing double quote with &quot;
    1414
    1515I believe the the replacement here is in error and it should be replacing double quote and not single quote.