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 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
Author

h:commandButton immediate='true'

vaitheeswaran subramanian
Greenhorn

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: 15641
    
  15

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


Customer surveys are for companies who didn't pay proper attention to begin with.
vaitheeswaran subramanian
Greenhorn

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: http://aspose.com/file-tools
 
subject: h:commandButton immediate='true'
 
Similar Threads
handling cancel action effectively
Is Backing bean Required
validation in radio buttons
Typical Validation Issue - Solutions?
how to create type button in JSF using SUN RI