Re: [Dev] Purpose of methods starting with "jsFunction" with respect to Jaggery Application

2016-04-14 Thread Manuranga Perera
This is a feature coming form Mozilla Rhino. These method will become
callable form JavaScript (Jaggery)  directly (ie: without using full java
name). When calling from JavaScript you have to use the name after
"jsFunction_"

[1]
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Embedding_tutorial#JavaScript_host_objects

On Tue, Apr 12, 2016 at 11:37 AM, Megala Uthayakumar 
wrote:

>
> Hi all,
>
> I am trying to access a method in java class from a simple jaggery
> application. In the repository jaggery, there are many methods that starts
> with jsFunction [1]. They are quite different from the normal java methods
> with regards to jaggery application. Could someone help me in understanding
> how those methods can be called effectively from a jaggery application ?
>
> [1]
> https://github.com/wso2/jaggery/blob/master/components/hostobjects/org.jaggeryjs.hostobjects.web/src/main/java/org/jaggeryjs/hostobjects/web/RequestHostObject.java
>
>
> Thanks.
>
> Regards,
> Megala
>
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Purpose of methods starting with "jsFunction" with respect to Jaggery Application

2016-04-12 Thread Megala Uthayakumar
Hi all,

I am trying to access a method in java class from a simple jaggery
application. In the repository jaggery, there are many methods that starts
with jsFunction [1]. They are quite different from the normal java methods
with regards to jaggery application. Could someone help me in understanding
how those methods can be called effectively from a jaggery application ?

[1]
https://github.com/wso2/jaggery/blob/master/components/hostobjects/org.jaggeryjs.hostobjects.web/src/main/java/org/jaggeryjs/hostobjects/web/RequestHostObject.java


Thanks.

Regards,
Megala

Megala Uthayakumar

Software Engineer
Mobile : 0779967122
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev