is possible to solve this problem?
- I have one h:inputText in a form - user add here for example ID of person
- and beside is the disabled h:inputText where will be shown a NAME of person (from data table ID,NAME)
- immediately after filling the first input but WITHOUT submitting a form
In case anyone is interested, I'll leave an example of the fourth option proposed by Tim.
Using the JSF2 AJAX enhancements (if your app uses JSF Version 2).
First the view
In the <f:ajax> the event attribute is a DHTML events whithout the on prefix, can also be valueChange and action, in the example we make the ajax request in the onkeyup event.
The render is a space-separated list of components that JSF renders on the client after the Ajax call returns from the server and,
The execute is a space-separated list of components that JSF executes on the server during the Ajax call, you can use @this for the current component, or @form,@all,@none
And the code for the Managed Bean
When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS