I think it looks like the following needs to get done for the binding to
work on the post...

I hope this saves someone the struggle I went through on this today.

<binder>

 <binding property="questionAnswerItems[0].answerToQuestion"/>

 <binding property="questionAnswerItems[1].answerToQuestion"/>

.

.

.

 </binder>

On Tue, Dec 27, 2011 at 5:37 PM, Rollin Crittendon <[email protected]> wrote:

> Hello,
>
> I am making a customization to CAS using Maven overlays with CAS 3.4.8.
>
> I have customized login-webflow.xml, and all looked good except for array
> input.
>
> In a view I have a JSP-page that displays the elements of the form
> as-follows.
>
> The "userName" in the form binds perfectly, showing up in my
> answerFormData object.
> The array items DO show their initial values correctly, but never get set
> on submit, no matter what I try.
>
> I noticed in the validator that the ValidationContext value, context, has
> the submitted info in "mappingResults.source".
> Am I supposed to extract those mappings by hand in the validator?
>
> Is there a way to get this working that I missed?
> Any info is much appreciated.
>
> Rollin Crittendon
>
> ***<JSP-EXCERPT>***
> <form:form method="post" id="fm1" cssClass="fm-v clearfix"
> commandName="${commandName}" htmlEscape="true">
> .
> .
> .
>  <form:input path="userName"/>
> .
> .
> .
>  <c:forEach items="${answerFormData.questionAnswerItems}" var="answerItem"
> varStatus="loop">
>  .
>  .
>  .
>  <form:input path="testStringList[${loop.index}]" size="30"
> tabindex="${loop.index}" autocomplete="false" htmlEscape="true"
> type="text"/>
>  .
>  .
>  .
>  <input type="hidden" name="lt" value="${flowExecutionKey}" />
>                        <!-- input type="hidden" name="_flowExecutionKey"
> value="${flowExecutionKey}"/ -->
>                        <input type="hidden" name="_eventId" value="submit"
> />
>  <input class="btn-submit" name="_eventId_submit" accesskey="s"
> value="<spring:message code="asias.answerview.button.saveverification" />"
> tabindex="3" type="submit" />
> </form:form>
> ***************
> --
> You are currently subscribed to [email protected] as: [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>



-- 
=================
Rollin Crittendon

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to