File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Ajax re-rendering with Richfaces a4j Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Ajax re-rendering with Richfaces a4j" Watch "Ajax re-rendering with Richfaces a4j" New topic
Author

Ajax re-rendering with Richfaces a4j

ala alal
Greenhorn

Joined: May 18, 2009
Posts: 8
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax re-rendering with Richfaces a4j
 
Similar Threads
how to skip validation phase only
Problem using valueChangeListener and onchange
Validation Problem ... again!
File browser button
Strange behavior with reRender attribute