Within my Javascript code on the client side, I have constructed a List of Strings that appears in the Javascript console like this:
["No address provided.", "No telephone number provided."]
When I send this data to my Controller as one of the parameters from my GSP using an ajax call, the controller interprets it differently:
No address provided.,No telephone number provided.
It sees the list as a single string without the square brackets. Here is how I am passing the parameters:
<button id="save" onclick = "${remoteFunction(controller: 'customer',
action: 'saveModifiedIndividualRecord',
params: '\'uniqueId=\' + uniqueId + \'&secondaryId=\' + secondaryId + \'&redIssuesRemoved=\' + removedRedIssues + \'&yellowIssuesRemoved=\' + removedYellowIssues')}"> Save </button>
Is there any way to ensure that the Controller recognizes the input as a List and not just a String?