Jaggery is a framework to write webapps and HTTP-focused web services for all aspects of the application: front-end, communication, Server-side logic and persistence in pure Javascript.
Questions tagged [jaggery-js]
54 questions
1
vote
1 answer
How to configure, develop and running jaggery project using developer studio using eclipse for WSO2
I couldn't find the proper tutorial for,
How to configure, develop and running jaggery project using developer studio using eclipse for WSO2.
Any help is highly appreciated.
Thanks!!

George Viju
- 413
- 1
- 5
- 23
1
vote
1 answer
WSO2 Jaggery - how to parse a number into an integer
In this simple jaggery code
for(var i=0;i<10;i++){
print(i);
}
Output was like
0.0
1.0
....
I need to parse these outputs into integer. I tried parseInt(i) method but it also gave the same result. What could be the reason for that?

Dimuthu
- 7,946
- 6
- 22
- 37
1
vote
1 answer
Jaggery JS Convert WSRequest to JSON
I am calling a data service from a jaggery js app using http://jaggeryjs.org/apidocs/ws.jag . The data comes back in XML with members .responseText and .responseE4X. Is there an easy way to convert this response to JSON? Is there a parameter I…

Chris Ridmann
- 2,836
- 4
- 18
- 19
0
votes
0 answers
Base64 Can't encode é special character
When we encode the string including the 'é' special character, it displays this error in the log.
login:jag Cannot convert org.mozilla.javascript.NativeArray@6da663da
to byte[]
The error is caused when running the
var encodedString =…

Sahan Randika
- 47
- 1
- 14
0
votes
1 answer
Using variable as 'id' attribute in javascript
I have following jaggery code for UI where I am fetching values from user via UI.
<%
for (i = 0; i < applicationAttributes.length; i++) {
%>
…

Vithursa Mahendrarajah
- 1,194
- 2
- 15
- 28
0
votes
1 answer
Call a web service with JSON payload from jaggery
I'm trying to call a rest web service which accept JSON payload from WSO2 store jaggery app.
I used WSRequest and it is allowed to send only xml payload.
Is there any way which we can call a web service with a JSON payload from jaggery.

Chintha
- 95
- 9
0
votes
2 answers
WSO IS 5.3.0: user dashboard not working out of the box
I'm evaluating WSO2 identity server for a customer of mine and currently we ponder whether to write our own user dashboard or use WSO2's version of it.
According to WSO 5.3.0 it's as easy as opening /dashboard. I don't find anything about how to…

SunTsu
- 13
- 4
0
votes
1 answer
WSO2 api manager jaggery extensions
In wso2 api manager we extended the store a bit with custom jaggery code. Now we would like to send an email from within the jaggery code. According to the jaggeryjs documentation this should be possible with the "new email.Sender" function.…

TomB_Trisco
- 11
- 2
0
votes
2 answers
how to get current date and time in jaggery js?
I am working in wso2 data analytical server. I'm using query to get data based on timestamp but I have given time stamp manually. Please tell me how to get current date and time together in milliseconds in jaggery js ?
user7397952
0
votes
1 answer
How to process ServerSide XSLT using SOAP web service response from within Rhino?
I am trying to perform a ServerSide transform using the input of a SOAP web service response and file based XSLT from within Rhino. I have very little (but growing) JAVA / JS experience. Looking for some pointers on how to convert the sample I have…

Rob Church
- 168
- 10
0
votes
1 answer
how to exceeds 64K limit using jaggery
I am using jaggery. I have a page very big (HTML and jaggery) and I receive:
Generated bytecode for method exceeds 64K limit
I need know if exist any way to pass this restriction.

maikelm
- 403
- 6
- 30
0
votes
1 answer
Jaggery file changes not displaying
I am new to working with .jag files , I supposed to change the interface in web application.just need to add the option in drop down list.
Is that changing .jag file is enough?
I need to add following code (new option in drop down) under select…

AM.Firnas
- 41
- 8
0
votes
1 answer
Efficient way to call jquery method in jaggerry
I want to use this jquery function inside my jaggery file:
$.inArray(value, array)
What is the most efficient way of doing it?
Jquery is already imported in the file using a