答案 0 :(得分:0)
您需要定义外部表单,如下图所示:
embedded:app:forms/file_name.html
示例表格:
<!-- file_name.html -->
<form role="form" name="formName">
<h1>Form Title</h1>
<div class="form-group">
<label for="userName-field">Name :</label>
<input required cam-variable-name="userName" cam-variable-type="String" class="form-control" />
</div>
<div class="form-group">
<label for="password-field">Password :</label>
<input required type="password" cam-variable-name="password" cam-variable-type="String" class="form-control"/>
</div>
</form>