This content has been marked as final.
Show 2 replies
-
1. Re: Skip validation
ilya_shaikovsky Nov 8, 2010 4:11 AM (in response to flowerlin)so create your custom validator and use instead of just required="true"
-
2. Re: Skip validation
flowerlin Nov 22, 2010 6:18 AM (in response to ilya_shaikovsky)This custom validator will be invoked in both cases: when I submit from the component new_entry_ajax_region_#{id} or when I submit the whole form with the combobox inside. In the first case the special select item (#{msg.global_new_entry}) should be valid value, but in the second this value should be invalid. How can I differentiate the two cases in the validator? I don't know how to get the current action event in the validator.
A workaround I implemented is that my special item is replaced with command button next to the combobox. The difference is that now I can tell the button to process everything, but the combo.