更新时间:2022-12-23 10:47:48
您需要通过#{cc.attrs.<name>}
引用复合组件属性值,其中<name>
是属性名称.因此,应该这样做:
You need to reference composite component attribute values by #{cc.attrs.<name>}
where <name>
is the attribute name. So, this should do:
<h:inputText value="#{cc.attrs.model.vorname}">
<composite:xxx>
标签文档
<composite:xxx>
tag documentation 无关与具体问题无关,组合中的所有<html><head><body>
都是不必要的.我建议使用<ui:component>
,因为这更加清楚.有关示例,请参见我们的复合组件Wiki页面.
Unrelated to the concrete problem, all that <html><head><body>
in the composite is unnecessary. I suggest to use <ui:component>
since that's more clear. See also our composite component wiki page for examples.