Hi,

As mentioned in the Web App Developer’s Guide for Unified UI Framework [1],
"callOSGiService" is a function call of a server side JS API. So that
AFAIK, that can't be called from JS files in the public folder, where
client side logic resides.
I have requirement to call an OSGI service from a client side JS. Is it a
way to do that using UUF?

Following are the steps of the exact requirement.

   1. Invoke an OSGI service in onRequest() and will be filled the content
   of .hbs from the value returned in onRequest().
   2. Have a "submit" button in .hbs, where the onClick function is been
   implemented in a JS resides in the "public" folder.
   3. Inside the onClick function, need to call another OSGI service.

Without implementing the onClick function in "public" folder, is there any
other way to achieve that and call the OSGI service?


And I would like to know how the "module" function works? Is that cater our
requirement? Included module will be executed before the onRequest() method
or after? Please share if there are any sample using the module function.

[1]
https://docs.google.com/document/d/10UDdArHV1eYEfiONu8saqPnnJyUjH3vxOrv0k0rK5hc/edit#

Thanks and Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Email    indu...@wso2.com
Mobile   0772182255
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to