• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to provide auto submit on a JSF custom component  RSS feed

 
Yogesh Gnanapraksam
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards
Yogi
 
Yogesh Gnanapraksam
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any suggestions ?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yogesh Gnanapraksam wrote:any suggestions ?


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..
 
Yogesh Gnanapraksam
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim . I got the autosubmit future implemented.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!