File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes h:commandButton  immediate='true' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "h:commandButton  immediate= Watch "h:commandButton  immediate= New topic

h:commandButton immediate='true'

vaitheeswaran subramanian

Joined: Jan 06, 2005
Posts: 15
I am using IBM JSF that comes with RAD 7.5.
I have a form with a submit button on clicking which I want validation to be performed and another button on clicking which I want the model to be updated without performing the validation.
I thought immediate='true' does that. But what I am finding is that the model does not get updated when immediate is set to true. It skips the validation phase though.
Is there a way of having command button skip the validation yet update model?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Do you really think it's a good idea to be able to set a value with data that may not be valid?

An IDE is no substitute for an Intelligent Developer.
vaitheeswaran subramanian

Joined: Jan 06, 2005
Posts: 15
Well, What I want is to be able to navigate to a different form, fill that up and then come back to the same form and continue from where I left. So, unless I update the model, I will not be able to get back back to the original screen to continue my work. I want a button to do just this. I know I can open the form in a child window, but, I will have to write java script to refrsh the parent window which is not a neat thing to do.
I agree. Here's the link:
subject: h:commandButton immediate='true'
It's not a secret anymore!