cancel
Showing results for 
Search instead for 
Did you mean: 

Passing params to a webscript embedded in a dialog

boneill
Star Contributor
Star Contributor
Hi All,

I have a webscript for searching based on a search term.  A user fills in an input value and clicks a button which submits the form with an action pointing back to the webscript so that results can be displayed.   It works fine standalone but when embedded in a jsf dialog it does not pass any arguments to the webscript js so my search always returns an empty resultset. 

Can you pass arguments to the webscript from a dialog in this manner, ie form submit.  If so, how do you reference them in the javascript file (controller).  All help really appreciated as I have been bashing my head for 2 days.

Regards

Brian
2 REPLIES 2

amarendra_thaku
Champ in-the-making
Champ in-the-making
Look at JSF tag library.You can use the <fSmiley Tonguearam> tag to pass the the parameter
Regards
Amarendra

boneill
Star Contributor
Star Contributor
Thanks for the response.  The jsp page that includes the webscript has only one line, a r:Webscript tag to point at the url for the webscript.  So how would you use the fSmiley Tonguearam tag to pass arguments to the webscript when a submit occurs from a form on the webscript. 

Regards