This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have kept <tr:inputHidden /> tag ouside the <tr:table /> in a jsp page. I have written some business logic in the getter method of this hidden component. The problem is this method is getting called twice, first time when the page is loaded and second time when i click on save method( correspondingly save() method is called). Is there any way to prevent the getter method invocation for the second time.
wel Kumar i am not an expert in JSF. but my suggestion is just check that either the method (which is called twice), are you using the same method in <tr:dataTable> or not. because if it is so, then the main reason is that whenever you navigate to this page first time this method got invoked by page load event of jsf. and the second time when you click it. so you may check it.
if i my solution is wrong then SORRY from my side. Regards
i am Java +ve Now !
Joined: Apr 08, 2008
Nope. Well i think page is getting refreshed on clicking save() method. well is there any way to stop page refreshing while clicking on save button so that getter method could not be invoked seocnd time.