Forums Register Login

What does # mean in <af:outputText value="#{bindings.DepartmentId.inputValue}"> ??

+Pie Number of slices to send: Send
Can anyone please explain what are we doing in this statement :

<af:outputText value="#{bindings.DepartmentId.inputValue}"

What does # stand for?
+Pie Number of slices to send: Send
Welcome to the JavaRanch, VJ!

The original Expression Language used "$" to indicate substitutable text, where the "${}" expression would be replaced with its corresponding value computed from model data.

However, that's a one-way trip. JSF requires the ability to also WRITE to model data. So the "#{}" expression format was created. The "#{}" expression indicates a REFERENCE to a value, not the value itself, so you can both read and write it.

In the case of the 'action="#{bean.method}"' construct, the reference is to an action method in a backing bean. That method must have a specific signature (no arguments, returns a navigation string). JSF invokes the action method automatically, so that's why the correct notation is 'action="#{bean.method}"' and not 'action="#{bean.method()}"'. The View Template does not "call" the method, just tells JSF what the method to be called is.
Your mind is under my control .... your will is now mine .... read this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 816 times.
Similar Threads
notary sojak
How to debug an af:tree (oracle.adf.view.rich.component.rich.data.RichTree) renderer ?
Deployment
What is a Monitor in thread ?
Assertion ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:48:19.