How to provide auto submit on a JSF custom component
Yogesh Gnanapraksam
Ranch Hand
Joined: Dec 17, 2009
Posts: 133
posted
0
Hi,
I have created a JSF custom component by extending the JSF input text component.
I want the component value to be submitted as soon as the user changes the value and tabs out of the field.
Please suggest me how to accomplish this in my custom component.
Yes. Be patient. We don't get paid, so we respond when it's convenient and that may take a day or 2 sometimes.
Normally, you'd accomplish what you want by tying an AJAX request to the onblur event of your input control, but in your case, you have stated that you want the tag itself to automatically handle that.
You're going to have to make your tag's render routine generate the AJAX submit javascript and plug it into the "onblur" of the generated HTML INPUT control..
Customer surveys are for companies who didn't pay proper attention to begin with.
Yogesh Gnanapraksam
Ranch Hand
Joined: Dec 17, 2009
Posts: 133
posted
0
Thanks Tim . I got the autosubmit future implemented.