Hi Geert,

setting the form values myself works. But I think there is still an issue with the validation.
I tried this now in my MetaData class :

addConstrainedPropertyRules(new ConstrainedProperty("textArray").email(true));

my html form :

<form name="submit" action="${v SUBMISSION:FORM:submit/}">
<r:v name="SUBMISSION:PARAMS:submit" />
<input type="text" name="textArray" value="${v textArray_0}-${/v}" />
<input type="text" name="textArray" value="${v textArray_1}-${/v}" />
<input type="submit" />
</form>

And my element code :

SubmissionBean data = getSubmissionBean(SubmissionBean.class);
Validated validData = (Validated)data;
if (!validData.validate()) {
        valid = " not valid ";
} else {
        valid=" valid ";
}

I always get a 'not valid' even when I enter a valid mail address. It works when I don't use an array field.

Any ideas ?

Thanks

Henk

Geert Bevin wrote:
Hi Henk,

I'm afraid you will not be able to use the form generation for this since as far as RIFE is concerned there is only one value: 'FORM:INPUT:textArray', it just is present in several locations. I might be able to fix this by adding support for array indices to the form generation, but I can't get to it right away. This would then allow you to use 'FORM:INPUT:textArray:0' and 'FORM:INPUT:textArray:1' to refer to the individual values. If you're interested in this, please submit an issue to Jira. I might be able to get it done somewhere next week. In the meantime, you'll have to set the values manually into regular html input field tags.

Best regards,

Geert

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to