I’m new in jsf, and can’t find how to do the next thing:
I’m trying to create a form with 8 fields (inputs). after the user enters data into the first input, when he onblur’s that input I want to make a select query and get all other fields values and then fill the inputs with those values.
I think it’s can be done using ajax? I can’t find any example that does this.
Any help will be appriciated,
Thank’s In Advance.
Yes, Ajax can be used for this. You just attach a
<f:ajax>to the first input which hooks on theblurevent and has a listener which prepares the desired data and finally re-renders the other inputs.E.g.
with