Regarding <h:outputText ...>

Can I use < h:outputText value="#{name}" />Where the name is the id of inputText component on the page.If I am missing some thing then please help me as I am not able to display the value using component id. I have not to use any bean.Thanks.
[276 byte] By [Doga] at [2007-11-27 7:16:35]
# 1

no the value attribute refers to a JSF value expression. Thus you can do value="Hello World" or value="#{managedBean.propertyName}".

A component id is just a static id used in HTML that you use in dom.

I am assuming that you want to output text somewhere in the page that has been typed into an input text field. To do what you want you need a more rich environment than just JSF components. You can add something like ajax4jsf or use a component suite like Trinidad. THere are others as well.

Both would provide you seamless updates triggered by text completion in input text field and move the text to the output text field without having to push a button causing a page submit.

smurray_eriea at 2007-7-12 19:05:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...