开发者

Evaluating expression of Facelets components in Richfaces sort

开发者 https://www.devze.com 2023-01-17 07:08 出处:网络
I have some problem evaluating expression in a Facelets component defined in a .taglib.xml SortField2.getExpression()

I have some problem evaluating expression in a Facelets component defined in a .taglib.xml

SortField2.getExpression() 

gives me the value "#{sortBy}" instead of evaluating the value.

My component (a simple column) is defined as:

  <ui:composition>
      <rich:column sortBy="#{sortBy}" width=开发者_JS百科"#{width}" styleClass="#{styleClass}">
          <f:facet name="header">#{header}</f:facet>
          <ui:insert />
      </rich:column>
  </ui:composition>

I see that in TagValueExpression there is a "original" field which contains my value, but unfortunately it is private.

Any idea on how to extract it?

Also posted on Richfaces Forum

Thank you for your help.


You may be able to get "sortExpression" to work, instead of using "sortBy".

Also, instead of #{sortBy}, would ${sortBy} do any good? (A long shot)

0

精彩评论

暂无评论...
验证码 换一张
取 消