我正在研究jenkin插件。我使用以下果冻脚本创建了一个表单。
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:section title="Catalyst Login">
<f:entry title="Catalyst Url" field="catUrl">
<f:textbox />
</f:entry>
<f:entry title="Username" field="catUser">
<f:textbox />
</f:entry>
<f:entry title="Password" field="catPass">
<f:textbox />
</f:entry>
<f:validateButton
title="${%Test Connection}" progress="${%Testing...}"
method="testConnection" with="catUrl,catUser,catPass" />
</f:section>
</j:jelly>
这个布局是多行和一列。我的意思是一行只显示一个输入框。 是否可以在一行中有两个输入框?
答案 0 :(得分:0)
尝试使用table
,您可以在其中操作行数和列数。
示例:
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:section title="Catalyst Login">
<table>
<tr>
<td>
<f:entry title="Username" field="catUser">
<f:textbox />
</f:entry>
</td>
<td>
<f:entry title="Password" field="catPass">
<f:textbox />
</f:entry>
</td>
</tr>
</table>
<f:validateButton
title="${%Test Connection}" progress="${%Testing...}"
method="testConnection" with="catUrl,catUser,catPass" />
</f:section>
</j:jelly>