我的JSF自定义组件的代码:
<composite:interface name="translation">
<composite:attribute name="fieldName"/>
<composite:attribute name="required" default="true" />
</composite:interface>
<composite:implementation>
<h:inputText required="#{cc.attrs.required}" requiredMessage="Please enter #{cc.attrs.fieldName} in english"/>
</composite:implementation>
如果我指定所需要的属性如下这工作正常:
<comp:translation fieldName="myTranslation" required="true" />
但是,如果我给EL在我的合成成分的必要属性不工作:
<comp:translation fieldName="myTranslation" required="#{param['someButtonId'] != null}" />
我们可以给EL在复合材料部件的属性? 如果是的话,那么我很想念?