xiaoyun 发表于 2013-1-23 02:25:19

IoVC的组件属性绑定----@Bind

组件属性绑定

    我所接触到的基于JSF的Web应用中,位于UI界面上的一个界面元素或组件,想要显示数据,通常的写法是这样:
greeting.xhtml
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><h:inputText value="#{demo.helloduke.UserBean.name}"/>
页: [1]
查看完整版本: IoVC的组件属性绑定----@Bind