• Post Reply Bookmark Topic Watch Topic
  • New Topic

refresh page with new data

 
Steinboch roicho
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a form that request a name, age and sex;
this data is passed to a backing bean named Person and then is is save in a database;

Then I made and listener that checks if the name(while typing) written in the inputText is all ready in database.
the listener is works, It returns the object Person from db;

but my question is: how do I refresh the bage with the new data, meaning the name, age and sex to be completed with the data taken from db?

I use richfaces, but if you know for jsf or another way please tell me.

thank you
 
Brendan Healey
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You want an autocomplete component, I have experience with the PrimeFaces <p:autoComplete>
component and it works for me. See www.primefaces.orgfor more details. I have no
connection with PrimeFaces other than to be an independent developer.

It seems scary to plumb in a new component library as a new JSF developer but the alternative
(loads of JavaScript, timeouts etc...) is far worse. You'll be pleasantly surprised at how easy it is
to get working.

Regards,
Brendan.
 
Steinboch roicho
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't need an autocomplet, I need my page to be completed with my new data found in db.
And I have to use richfaces, thanks for the site, I didn't know about primefaces.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!