aspose file tools
The moose likes JSF and the fly likes How to provide auto submit on a JSF custom component Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to provide auto submit on a JSF custom component" Watch "How to provide auto submit on a JSF custom component" New topic
Author

How to provide auto submit on a JSF custom component

Yogesh Gnanapraksam
Ranch Hand

Joined: Dec 17, 2009
Posts: 133
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

Joined: Dec 17, 2009
Posts: 133
any suggestions ?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

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


Customer surveys are for companies who didn't pay proper attention to begin with.
Yogesh Gnanapraksam
Ranch Hand

Joined: Dec 17, 2009
Posts: 133
Thanks Tim . I got the autosubmit future implemented.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to provide auto submit on a JSF custom component
 
Similar Threads
Extending JSF input text tag
UIDateInput Custom Component
AJAX Request
JSF Custom Component with two input fields
JSF complicated custom component