This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: More form buttons and validationpmuir Apr 13, 2007 5:14 AM (in response to mvlach)Using two forms is the simplest way to do this. 
- 
        2. Re: More form buttons and validationmvlach Apr 18, 2007 7:56 AM (in response to mvlach)Thanks, I know it, but I dont know how to disable validation. When sumbiting first button, I would like to validate field via medatadata (@NotNull), but when I click on the second button (on same form) I would like to call listener action without validation. 
 Mila
- 
        3. Re: More form buttons and validationpmuir Apr 18, 2007 8:32 AM (in response to mvlach)@NotNull doesn't really work (see the Seam Problems FAQ on the wiki). 
 It's hard to disable validation depending on which button is pressed using the standard JSF/Seam validation stuff. You would need to cook up your own solution, or, as I mentioned, use two forms.
- 
        4. Re: More form buttons and validationapp4you Apr 18, 2007 8:56 AM (in response to mvlach)miloslav.vlach, 
 This is a general JSF thing. You can do this:
 <h:commandButton immediate="true" onclick="bCancel=true" value="Upload Attachment"/>
 
     
    