• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help: Clear Function for JSF  RSS feed

The Developer
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

I have a page with several jsf textfields in which the first half is being populated by my first bean and the other is being populated by my second bean. I would like to know on how anyone of you would go about clearing all the textfields if you have two beans populating them?

What I tried doing is calling my second bean's reset() method as the second bean is the one saving all the information to the database. After which I tried calling the instance of my first bean to clear the rest of the fields, below is my code.

The problem with the above approach is that it doesn't clear all fields in one click, you need to click it the second time to clear everything. If you have any other solution please help.

Thank you.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!