提交 823a6da6 编写于 作者: K kohsuke

supporting form field binding

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15877 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b7eb2111
......@@ -26,14 +26,20 @@ THE SOFTWARE.
<st:documentation>
&lt;input type="checkbox"> tag that takes true/false for @checked, which is more Jelly friendly.
<st:attribute name="name" use="required" />
<st:attribute name="checked" use="required" />
<st:attribute name="name" />
<st:attribute name="checked" />
<st:attribute name="value" />
<st:attribute name="id" />
<st:attribute name="onclick" />
<st:attribute name="class" />
<st:attribute name="field">
Used for databinding. TBD.
</st:attribute>
</st:documentation>
<input type="checkbox" name="${attrs.name}" value="${attrs.value}"
<f:prepareDatabinding />
<input type="checkbox"
name="${h.defaulted(attrs.name,'_.'+attrs.field)}"
value="${attrs.value}"
onclick="${attrs.onclick}" id="${attrs.id}" class="${h.ifThenElse(attrs.negative!=null,'negative',null)}"
checked="${h.ifThenElse(attrs.checked,'true',null)}"/>
checked="${h.ifThenElse(h.defaulted(attrs.checked,instance[attrs.field]),'true',null)}"/>
</j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册