尝试验证多行编辑框控件所需的内容时失败。我只使用简单的必需验证,如下所示:
<xp:inputTextarea
id="subject1"
rows="5"
style="width:99%"
value="${javascript:'#{compositeData.requestDocument.subject}'}"
multipleSeparator="#{javascript:@NewLine()}"
required="true">
<xp:this.validators>
<xp:validateRequired
message="Please explain the issue for which you need help." />
</xp:this.validators>
如果我输入多行而没有空行,则验证成功:
“foo 第 1 行 foo 第 2 行 foo 第 3 行”
但是如果我用空行输入多行,则验证失败:
“foo 1 号线
foo 线 3"
关于我做错了什么的任何想法?