Difference between value and anchor tag for UIComponents in JSF

I am learning JSF and confused about these two attributes. What difference does it make if I use:

<h:inputText value="#{myBean.myProperty}/>"

instead of using:

<h:inputText binding="#{myBean.myProperty}/>"

+4
source share
1 answer

From the tag library API:

  • Value : javax.el.ValueExpression ( should be evaluated as java.lang.Object ). The current value of this component.
  • binding : javax.el.ValueExpression ( you need to evaluate javax.faces.component.UIComponent ). Binding ValueExpression this component to a property in the backup bean
+5
source

All Articles