Forums Register Login

How to set a String value to OutputText component in backing bean.

+Pie Number of slices to send: Send

hi all,

I am a newbie to jsf. I am learning jsf and i got struck with a problem.

Is it possible to set a String Value like "Welcome" to an outputText component from backing bean.

i.e. outputText value="value comes from backing bean when action is perfomed. "/>

outputText value="" id="msg"/>
commanButton action="#{myBean.setValue}" value="submit"/>

In backingBean: is it possible to get the outputText component with the help of Id and set a value to it..


Waiting for the response.
+Pie Number of slices to send: Send
Normally you provide the value for the outputText tag from a backing bean, like so:


In that case, there's no need to provide the value to the bean, since the bean already knows the value.
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3486 times.
Similar Threads
Actions don't work inside a dataTable column?
JSF portlet form fields retrieval
Input row select on data table does not get called
Dynamic Component in JSF
Displaying Data Without DataTable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:45:50.