Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ajax re-rendering with Richfaces a4j  RSS feed

 
ala alal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a master detail that can be compiled many times with two buttons: one to save infos, and one to undo the operation and close the panel without save it.
With the commandLink "Insert new" I show the panel and the two buttons setting the variables rendoquadro=true and rendopulsanti=true.



The problem is: if I press Insert New, compile some fields and then press Undo, the press Insert New again the input fields keep old inserted values when I want to be them blank. When I press Save or Undo the backing method called create a new Object and assign it to the variable np_b.first_committente.
With the Save button (without immediate attribute) everything is fine: if I press Insert New, compile fields, Save and then i click Insert New again all fields are blank; that not happens with undo, problably because of immediate attribute that is the only difference between the two buttons.
How can I solve it?

Thanks,

Alessandro.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!