Re: [Dev] Jaggery how to redirect the page with data(json)

2016-03-03 Thread SajithAR Ariyarathna
Hi Iqbal, As RuwanA mentioned this is not a Jaggery or Java limitation. Simply you cannot do this with HTTP. However there is a hack/workaround that you can try. You can stringify your JSON object and send it as a query param. var payload = {name: "sajith", age: 10}; var url = "http://example.co

Re: [Dev] [APPM] Mobile application binary file upload REST API

2016-04-06 Thread SajithAR Ariyarathna
Hi Thilini, ... in order to create a mobile app, we have to initially upload relevant > application binary and image files of app thumbnail, banner and screenshots > ... > What is the reason behind this? As I remember in the current AppM, both text data (app name, version , description etc.) and

Re: [Dev] [APPM] Mobile application binary file upload REST API

2016-04-07 Thread SajithAR Ariyarathna
x27;t thilini's approach be better? > > Thanks and Regards, > > Ruwan Yatawara > > Senior Software Engineer, > WSO2 Inc. > > email : ruw...@wso2.com > mobile : +94 77 9110413 > blog : http://ruwansrants.blogspot.com/ > www: :http://wso2.com > > > On Thu, Ap

Re: [Dev] [APPM] Mobile application binary file upload REST API

2016-04-08 Thread SajithAR Ariyarathna
AFAIK word "resource" is not used for other things in AppM API URLs. So +1 for "http://localhost:9763/api/appm/publisher/v1.0/apps/resources"; URL. Thanks. On Fri, Apr 8, 2016 at 7:42 PM, Ruwan Abeykoon wrote: > Hi Rasika, > Would the name *resources* confuse with other resources (e.g. Registr

Re: [Dev] [UUF] Exception Handling in UUF app

2017-03-19 Thread SajithAR Ariyarathna
On Mon, Mar 20, 2017 at 9:42 AM, Pushpalanka Jayawardhana wrote: > Hi All, > > Shall we add a section on 'Error handling' to the UUF best practices > documentation to capture information on this? > > +1 > On Thu, Feb 2, 2017 at 8:43 AM, Dakshika Jayathilaka > wrote: > >> +1 for KasunGs suggesti

Re: [Dev] [UUF] i18n properties file can not have keys with spaces

2017-03-20 Thread SajithAR Ariyarathna
UUF i18n property files are Java '.properties' files. So, if you want to have spaces in keys, then you need to escape them with backslashes (\). Please refer SO answer [1] for more info. [1] http://stackoverflow.com/a/11839219/1577286 On Mon, Mar 20, 2017 at 2:39 PM, Anuruddha Liyanarachchi < anu

Re: [Dev] [UUF] Exception Handling in UUF app

2017-03-20 Thread SajithAR Ariyarathna
quot;IdentityRecoveryException"}} ER10294: Error > during recovery process. {{secure "admin.user-mgt"}} {{e.message}} {{/secure}} > {{/javaErr}} >{{#unknownErr}} ER10299: Something went wrong. > {{/unknownErr}} >Please contact admin with

Re: [Dev] How can we add multi language support in javascript files

2017-03-23 Thread SajithAR Ariyarathna
Hi Prasanna, Is there a mechanism defined to use something like i18n in javascript ? Server-side JS or Client-side JS? On Thu, Mar 23, 2017 at 11:02 AM, Ayesha Dissanayaka wrote: > Hi Prasanna, > > Similar discussion was started sometime back in [1]. > Issues in [2], [3] have some suggestions.

Re: [Dev] How can we add multi language support in javascript files

2017-03-23 Thread SajithAR Ariyarathna
; *Prasanna Dangalla* > Senior Software Engineer, WSO2, Inc.; http://wso2.com/ > lean.enterprise.middleware > > > *cell: +94 718 11 27 51* > *twitter: @prasa77* > > On Thu, Mar 23, 2017 at 2:54 PM, SajithAR Ariyarathna > wrote: > >> Hi Prasanna, >> >> I

Re: [Dev] [IS 6.0.0][M5] Ensuring Proper Internationalization of UIs in Portal Apps

2017-03-23 Thread SajithAR Ariyarathna
@Manu, Is there a way to accomplish this through automated test? On Fri, Mar 24, 2017 at 8:06 AM, Nuwandi Wickramasinghe wrote: > AFAIK we need to manually check them. Also there are situations UI > messages and UI itself is created in JS files (front end or back end). Need > to validate them as

Re: [Dev] How can we add multi language support in javascript files

2017-03-24 Thread SajithAR Ariyarathna
, 2017 at 10:14 AM, Prasanna Dangalla >>>> wrote: >>>> >>>>> On Fri, Mar 24, 2017 at 12:53 AM, Nipuna Chandradasa >>>> > wrote: >>>>> >>>>>> I don't think there is a feasible solution rather than loading i18n

Re: [Dev] [UUF] Rendering fragment attach client side javascript twice

2017-03-28 Thread SajithAR Ariyarathna
I think this issue has been fixed in https://github.com/wso2/carbon-uuf-common/pull/49. @Chandana please confirm. On Wed, Mar 29, 2017 at 11:50 AM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi, > > I noticed that rendering fragments with public javascript, that the > javascript func

Re: [Dev] How to Wrap Java Exception in UUF

2017-04-14 Thread SajithAR Ariyarathna
Hi Gayesha, Gayan, This issue is fixed with PR https://github.com/wso2/carbon-uuf/pull/222 (already merged into the carbon-uuf/master). You can try-out the fix by moving to UUF 1.0.0-SNAPSHOT version. Please verify the fix. Thanks. On Tue, Mar 14, 2017 at 5:41 PM, Gayan Gunawardana wrote: > I

Re: [Dev] Is there a hard and fast rule to chose java 8 streams over for loops

2017-04-14 Thread SajithAR Ariyarathna
Its very hard to come-up with a hard & fast rule on when to use Stream API/Lambda or traditional loops. However, in the Carbon platform we have come-up with a rule of thumb for such scenario. *Always give the priority to code readability*. It doesn't matter whether you use Streams, Lambda, or tr

Re: [Dev] How can we add multi language support in javascript files

2017-04-24 Thread SajithAR Ariyarathna
son object to >>>> layout level or any other global level of the application. So on client >>>> side we can use the i18n language details anywhere. >>>> We can get the language data from the browser.. that's how we do it >>>> anyway i think. We get th

[Dev] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread SajithAR Ariyarathna
Hi Kernel Team, $subject? In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh startup script is replaced with $RUNTIME variable [1]. Do we need to pass that as an argument in the runtime startup script? [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-alpha/features/org.w

Re: [Dev] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread SajithAR Ariyarathna
i, Sep 8, 2017 at 4:16 PM, Thusitha Thilina Dayaratne < thusit...@wso2.com> wrote: > Hi Sajith, > > Why do you want to write a runtime specific script? > > Thanks > Thusitha > > On Fri, Sep 8, 2017 at 4:07 PM, SajithAR Ariyarathna > wrote: > >> Hi Kernel Team

[Dev] [C5} Inconsistent locations for runtime 'conf' directory and runtime 'deployment' directory

2017-09-17 Thread SajithAR Ariyarathna
Hi Platform Team, According to carbon-utils [1], runtime 'conf' directory is at /conf//. According to the carbon-deployment [2], runtime deployment directory is at /wso2//deployment/. I noticed an inconsistency here. Any particular reason behind this? IMO, runtime 'conf' directory should be at /ws

[Dev] ${ballerina.home} variable found in the netty-transports.yml config in carbon-tranposrts

2017-09-17 Thread SajithAR Ariyarathna
Hi All, I noticed $subject [1]. Any particular reason behind this? This Ballerina variable has been introduced in v4.2.3 and presents at the latest v6.0.7 too. IMO, this variable shouldn't be in the netty-transports.yml as this is not a Ballerina repo. [1] https://github.com/wso2/carbon-transpor

Re: [Dev] ${ballerina.home} variable found in the netty-transports.yml config in carbon-tranposrts

2017-09-17 Thread SajithAR Ariyarathna
On Mon, Sep 18, 2017 at 11:00 AM, SajithAR Ariyarathna wrote: > Hi All, > > I noticed $subject [1]. Any particular reason behind this? > > This Ballerina variable has been introduced in v4.2.3 and presents at the > latest v6.0.7 too. IMO, this variable shouldn't be in the

Re: [Dev] [C5} Inconsistent locations for runtime 'conf' directory and runtime 'deployment' directory

2017-09-17 Thread SajithAR Ariyarathna
t; [1] - [Architecture] Multiple runtime support for C5 based products > > Thanks > Thusitha > > On Mon, Sep 18, 2017 at 10:41 AM, SajithAR Ariyarathna > wrote: > >> Hi Platform Team, >> >> According to carbon-utils [1], runtime 'conf' directory is

[Dev] [C5] Why CarbonServerInfo service is registered before stopping the Startup Order resolver

2017-09-19 Thread SajithAR Ariyarathna
Hi Kernel Team, Any reason for $subject (see [1]). IMO, CarbonServerInfo should be registered after stopping the startup order resolver as the availability of CarbonServerInfo indicates the completion of the server startup. [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-alpha/core/src/main

Re: [Dev] npm executable gives errors in Windows build

2017-10-19 Thread SajithAR Ariyarathna
Hi Tanya, Raised issue [1] for this and created PR [2] resolve it. Please review and merge. [1] https://github.com/wso2/carbon-dashboards/issues/614 [2] https://github.com/wso2/carbon-dashboards/pull/615 Thanks. On Thu, Oct 19, 2017 at 9:03 AM, Tanya Madurapperuma wrote: > Hi, > > We have enc

[Dev] WSO2 Stream Processor 4.0.0-beta Released!

2017-11-23 Thread SajithAR Ariyarathna
Hi All, The WSO2 Analytics team is pleased to announce the release of *WSO2 Stream Processor Version 4.0.0 Beta*. WSO2 Analytics let digital business creating real-time, intelligent, actionable business insights, and data products which are achieved by WSO2 Stream Processor's real-time, increment

Re: [Dev] [UUF] Doesn't allow to create a p2 feature with name "feature" at the beginning

2016-08-08 Thread SajithAR Ariyarathna
Hi Niranjan, We are trying to create a p2-feature for our UUF sample application >>> "features-app". It has the artifactId >>> "org.wso2.carbon.uuf.features-app.feature". >>> When we build the feature, it creates a directory inside the zip file, with >>> the name org.wso2.carbon.uuf_1.0.0.SNAPSHO

Re: [Dev] Clarification on C5 permission model

2016-08-14 Thread SajithAR Ariyarathna
> > Any idea on defining the resources and actions (permission tree)? > We are still working on the UI (user management UI component) for this. Until it is completed you can define permission via CAAS APIs. Thanks. On Fri, Aug 12, 2016 at 12:02 PM, Vinod Kavinda wrote: > Thanks Thanuja. > @Ras

Re: [Dev] IOTS Device Management Console: Cannot "Save and Publish" a Policy for Advanced Virtual Fire Alarm

2016-08-16 Thread SajithAR Ariyarathna
[+RasikaP] On Tue, Aug 16, 2016 at 12:32 PM, Yesin Singhawansa wrote: > Hi, > > During my hands on with IOTS I tried to create a policy for the virtual > fire alarm in the IOTS device manager console. Whilst saving the policy in > the last step (step 4): > > >- When clicking to "Save and Pub

Re: [Dev] WSO2 Committers += Charitha Goonatileke

2016-08-25 Thread SajithAR Ariyarathna
Congratulations! On Thu, Aug 25, 2016 at 5:08 PM, Rasika Perera wrote: > Congratulations Charitha !!! > > On Thu, Aug 25, 2016 at 10:37 AM, Ruwan Yatawara wrote: > >> Hi All, >> >> It's my pleasure to announce Charitha Goonatileke as a WSO2 Committer. >> Charitha has been a valuable contributor

Re: [Dev] Couple of WARN logs are printed in console when logging to latest EMM pack

2016-09-01 Thread SajithAR Ariyarathna
Hi Rasika, The warn log is printed when a 404 error occurs for a static file. By looking at the attached logs, seems that 'Roboto-*' fonts are missing and they are referred in a CSS file in the 'uuf.unit.lib.form-validation' unit. Remove that reference form the CSS file to resolve this. Thanks.

Re: [Dev] [DS] Best Jquery / Javascript charting library to use in a gadget

2016-09-28 Thread SajithAR Ariyarathna
AFAIK, we use D3. We have used it in other products e.g. AppM, DS, Analytics etc. On Wed, Sep 28, 2016 at 2:53 PM, Indunil Upeksha Rathnayake < indu...@wso2.com> wrote: > Hi, > > I am working on including several graphs into a gadget of an internal > dashboard. Appreciate your help on identifying

Re: [Dev] [UUF] Why some artefacts are put inside tar?

2016-10-18 Thread SajithAR Ariyarathna
Hi Ruwan, Current UUF Maven plugin bundles UUF Themes as .tar archives to identify them separately (from UUF Components). This is a temporary workaround. In future, both UUF Themes and Components will be bundle as .zip files. I'm currently working on this. Thanks. On Tue, Oct 18, 2016 at 3:43 PM

Re: [Dev] [UUF] maven plugin 1.0.0-m5 fails. Error creating assembly archive make-jar: You must set at least one file.

2016-10-24 Thread SajithAR Ariyarathna
UUF Theme source structure should be as following. |-- src | |-- main | | |-- public/ | | |-- theme.yaml |-- pom.xml On Mon, Oct 24, 2016 at 5:23 PM, Ruwan Abeykoon wrote: > Hi UUF team, > I get the $subject while building the UUF application for IS. Any documen

Re: [Dev] [UUF] maven plugin 1.0.0-m5 fails. Error creating assembly archive make-jar: You must set at least one file.

2016-10-24 Thread SajithAR Ariyarathna
tation of the structure, if there is any; > please. That will help us to move faster. > > Cheers, > Ruwan > > On Mon, Oct 24, 2016 at 5:44 PM, SajithAR Ariyarathna > wrote: > >> UUF Theme source structure should be as following. >> >> >> |-- src

Re: [Dev] [VOTE] Release WSO2 MSF4J 2.1.0 RC3

2016-10-31 Thread SajithAR Ariyarathna
Hi All, I have tested - Dynamically registering microservices It works fine for above case. [x] Stable - go ahead and release Thanks. On Mon, Oct 31, 2016 at 8:41 PM, Thusitha Thilina Dayaratne < thusit...@wso2.com> wrote: > Hi Devs, > > This is the 3rd Release Candidate of WSO2 MSF4J(Micr

[Dev] WSO2 Carbon Unified UI Framework 1.0.0-M7 Released!

2016-11-04 Thread SajithAR Ariyarathna
Hi All, We are pleased to announce the seventh milestone of WSO2 Carbon Unified UI Framework (UUF). You can download the UUF server distribution at [1]. *Changes list (compared with 1.0.0-m6 version):* - Following JS functions are added. - module("module-name") - Loads the JS

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread SajithAR Ariyarathna
UUF does not do client-side rendering (as per 1.0.0-m7 release). What you can do is, put the Handlebars template (that you want in the client-side) inside the public directory e.g. .../public/templates/my-template.hbs and in the client-side, get that template using AJAX and render it. On Fri, Nov

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread SajithAR Ariyarathna
t;> Regards >> Jo >> >> On Fri, Nov 11, 2016 at 2:42 PM, Yasima Dewmini wrote: >> >>> Thank you Sajith for your input. >>> >>> >>> On Fri, Nov 11, 2016 at 2:26 PM, SajithAR Ariyarathna >> > wrote: >>> >>>&g

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread SajithAR Ariyarathna
[+Kishanthan] On Fri, Nov 11, 2016 at 5:08 PM, Chanaka Jayasena wrote: > +1 for reusing the same template in both client side and server side. For > that I think we need the support from UUF side. > > If there is handebars helper method we defined such way that it will > render the server side t

Re: [Dev] [UUF] Empty fragment dir

2016-11-11 Thread SajithAR Ariyarathna
> > Does UUF framework alow components with no fragment dir? Yes. On Fri, Nov 11, 2016 at 6:36 PM, Manuranga Perera wrote: > Does UUF framework alow components with no fragment dir? > I think it should be possible, asking people to create empty dir doesn't > make sense [1]. > > [1] https://gith

Re: [Dev] [Jaggery] Sending CID embedded images in email

2016-11-21 Thread SajithAR Ariyarathna
Looking at the SenderHostObject code [1], it seems that 'sender' module doesn't have a way to do $subject. SenderHostObject waraps javax.mail API. Refer [2] on how to $subject with javax.mail API. [1] https://github.com/wso2/jaggery-extensions/blob/ master/email/resources/org.jaggeryjs.modules.ema

Re: [Dev] [APIM][C5] Using UUF common libraries

2016-12-21 Thread SajithAR Ariyarathna
Even though jquery and font_wso2 are libraries, we have added them into the default theme as they are required for the theme to work properly. You can do the same. Add theme_wso2, jquery and font_wso2 to your theme. On Wed, Dec 21, 2016 at 12:04 PM, Yasima Dewmini wrote: > Hi, > > I need to use

Re: [Dev] Reading config.yaml file from client side

2016-12-23 Thread SajithAR Ariyarathna
Most of the time, cliet-side JSs are executed after DOM is fully loaded (means in the document.ready() function). That's why 'sendToClient' puts the variable in the bottom-js position. So, if you are dong DOM manipulations in your JSs, please do them in document.ready(). Anyway, I think "sendToCli

Re: [Dev] Few UUF improvements

2016-12-23 Thread SajithAR Ariyarathna
You can put the "route.js" into a fragment (e.g. "router" fragment} and include that fragment where ever you need, in a fragment or a page. "router" fragment's HBS will look like this: {{js "js/router.js"}} In fact, instead of including the fragment in every place you can push the "router" fragm

Re: [Dev] [UUF] [IS] Invoke an OSGI service from a client side JS

2017-01-04 Thread SajithAR Ariyarathna
Hi Indunil, Can you explain your exact requirement? Seems that what you want to do is, save some data (obtained in a HTML form) using an OSGi service in a form POST submit. If so, then you can do this in the onRequest function. Don't specify any 'action' for your HTML form, so when you submit it

Re: [Dev] Issue in carbon-uuf-common feature

2017-01-05 Thread SajithAR Ariyarathna
This is due to the changes introduced bu the UUF Maven plugin 1.0.0-m9 version [1]. Current UUF Core is only compatible with UUF Maven plugin 1.0.0-m9, but the uuf-commons is still on 1.0.0-m6 version. We are in the process of releasing carbon-uuf-common 1.0.0-m1 and carbon-uuf 1.0.0-m9 on top of

[Dev] WSO2 Carbon Unified UI Framework 1.0.0-M9 Released!

2017-01-08 Thread SajithAR Ariyarathna
Hi All, We are pleased to announce the *ninth milestone* of WSO2 Carbon Unified UI Framework (UUF). You can download the UUF server distribution at [1]. UUF is an UI framework that let webapp developers to build shareable UI components and to build webapps by composing those UI components. *Cha

Re: [Dev] [UUF] Document onRequest() method in the UUF developer's guide

2017-01-11 Thread SajithAR Ariyarathna
[+ShanM] On Wed, Jan 11, 2017 at 5:54 PM, Indunil Upeksha Rathnayake < indu...@wso2.com> wrote: > Hi UUF team, > > I think it's better to give some description about the "onRequest()" > method and how it works in [1], since for a beginner, it might be somewhat > difficult to understand. > > [1] h

Re: [Dev] Print UUF Application URLs in server startup logs

2017-01-16 Thread SajithAR Ariyarathna
Hi All, This feature is implemented and available in the latest snapshot (1.0.0-SNAPSHOT) of 'carbon-uuf'. Thanks. On Fri, Jan 13, 2017 at 10:28 AM, KasunG Gajasinghe wrote: > > On Fri, Jan 13, 2017 at 10:14 AM, Kishanthan Thangarajah < > kishant...@wso2.com> wrote: > >> https://github.com/wso

Re: [Dev] [UUF] Feature request - Get the default favicon from the app.yaml

2017-01-18 Thread SajithAR Ariyarathna
How about defining a default favicon in the layout? We have a feature called 'default value for a placeholer', basically when defining a placeholder (using the {{placeholder}} helper) you can set a default value for that placeholder. So if no other value set to that placeholder, the default value

Re: [Dev] [UUF] Feature request - Get the default favicon from the app.yaml

2017-01-18 Thread SajithAR Ariyarathna
as a default > value)? will that work? > > On Wed, Jan 18, 2017 at 4:23 PM, Manuranga Perera wrote: > >> +1 >> >> On Wed, Jan 18, 2017 at 4:21 PM, SajithAR Ariyarathna >> wrote: >> >>> How about defining a default favicon in the layout? &

Re: [Dev] [UUF] Feature request - Get the default favicon from the app.yaml

2017-01-18 Thread SajithAR Ariyarathna
t; You guys can hardcode this to the layout until then, if needed. > > On Wed, Jan 18, 2017 at 4:33 PM, SajithAR Ariyarathna > wrote: > >> Then it will be like, >> >> {{placeholder "favicon"}} >> {{favicon "img/wso2.png"}} >> >> whi

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-19 Thread SajithAR Ariyarathna
+{UUF Team] On Thu, Jan 19, 2017 at 5:34 PM, Indunil Upeksha Rathnayake < indu...@wso2.com> wrote: > Hi, > > Having some problem when using sendToClient() method in the UUF Server > Side JS API. I am trying to send an array with a set of map elements as in > [1] including some boolean values. Whe

Re: [Dev] [UUF] User Portal's Localization properties are not working in Safari browser

2017-01-19 Thread SajithAR Ariyarathna
@KasunG We intended 'en-US' as the fall-back locale. But we have done a case-sensitive comparison (basically not doing a case-insensitive comparison) when figuring-out the correct locale. Will fix this soon. On Thu, Jan 19, 2017 at 9:57 PM, KasunG Gajasinghe wrote: > > Using the Accept-Language

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-19 Thread SajithAR Ariyarathna
ue"}]. >>>> >>>> But passing as a boolean value it works. Is that an acceptable behavior? >>>> >>>> Thanks and Regards >>>> >>>> On Thu, Jan 19, 2017 at 7:08 PM, Kishanthan Thangarajah < >>>> kishant...@wso2.com

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-19 Thread SajithAR Ariyarathna
.html#A1147187 Thanks. On Fri, Jan 20, 2017 at 10:13 AM, SajithAR Ariyarathna wrote: > Hi Indunil, >> >> claimProfileMap["required"] = Boolean.toString(claimForProfile[i]. >> getRequired()); >> > I don't see a particular reason to convert bool

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-20 Thread SajithAR Ariyarathna
t;>> >>> Thanks all for your responses. Yes in my case it doesn't need to >>> convert boolean to string. But if needed, as sajith mentioned, seems like >>> have to import that class in the script with Java.type Nashorn >>> extension. >>> >>> T

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-20 Thread SajithAR Ariyarathna
> > On Sat, Jan 21, 2017 at 6:20 AM, Danushka Fernando > wrote: > >> Hi All >> I found that default error pages like 404 error page which comes from UUF >> doesn't use app's basic layout. And I couldn't find a way to override it. >> Is there a way of achieving this. >> > Are you referring to the

Re: [Dev] [UUF] Feature request - Print a custom message in console on startup.

2017-01-22 Thread SajithAR Ariyarathna
Hi Manu, ATM, it is not possible to get the protocol, domain or IP address, and port of the underlying HTTP transport due to API limitation in CarbonTransport. Hoping to put a request for this. On Sun, Jan 22, 2017 at 5:34 PM, Manuranga Perera wrote: > > Actually Shariq, it is not a clickable li

Re: [Dev] Carbon UUF Maven Plugin's sample links get directed to 404- Not found

2017-01-22 Thread SajithAR Ariyarathna
Thanks for the PR Kalpa. PR [1] has been merged. [1] https://github.com/wso2/carbon-uuf-maven-tools/pull/49 On Sun, Jan 22, 2017 at 7:48 PM, Kalpa Welivitigoda wrote: > Hi Ayesha, > > Thanks for reporting, [1] fixes the reported issue. > > [1] https://github.com/wso2/carbon-uuf-maven-tools/pull

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread SajithAR Ariyarathna
s >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 <+94%2071%20633%202729> >> >> On Sat, Jan 21, 2017 at 10:18 AM, SajithAR Ariyarathna > > wrote: >> >>> On Sat, Jan 21, 2017 at 6:

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread SajithAR Ariyarathna
component, it's comes form default theme, he can't change it. > (-1 for changing the default theme as above, because this means every one > who don't have that config will get an error) > > On Mon, Jan 23, 2017 at 1:55 PM, SajithAR Ariyarathna > wrote: > >> IMO,

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread SajithAR Ariyarathna
When you import another component in your app as a dependency, your app and that dependency agree to use the same theme as your app (theme is defined in the app level, not in the component level). Which means that there is a *contract* between the theme, app, and dependency component(s). So setting

Re: [Dev] [UUF] Localization of Page titles

2017-01-23 Thread SajithAR Ariyarathna
Correcting little bit more: {{title (t "user-portal.title.home") " | " (t @config.appName)}} . Value of the *appName* configuration should be a i18n key too. Currently common foundation component doesn't use i18n for the *appName* configuration [1]. @Minoli, shall we fix it? [1] https://github

Re: [Dev] [UUF] Localization of Page titles

2017-01-23 Thread SajithAR Ariyarathna
On Mon, Jan 23, 2017 at 10:09 PM, Manuranga Perera wrote: > In that case why do we need a config.appName at all? We can just do > following > > {{title (t "user-portal.title.home") " | " (t "app-name")}} > +1, we don't need the appName config > > > (on a side note, why does everything has to be

Re: [Dev] [UUF] Correcting third party library folder structure

2017-01-23 Thread SajithAR Ariyarathna
> > All* /public* folders will have its local */js* and */css* files in its > respective folders while a third party library will reside in* /lib . *This > will ensure a clean and manageable structure for */extensions* etc. for a > particular library. +1 On Mon, Jan 23, 2017 at 10:42 PM, Thusitha

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread SajithAR Ariyarathna
> > Dependency shouldn't have to agree to anything, that's the whole meaning > of dependency. eg: if you are using apache HTTP client as a dependency, > apache HTTP client team doesn't have to agree to any contract, you have to. > Contract is offered by the dependency and followed by the dependent,

Re: [Dev] [UUF][IS-6] Enable i18n support in javascript.

2017-01-23 Thread SajithAR Ariyarathna
The way you have done in [1] is acceptable & correct. However in some situations we need i18n support in the server-side JS (e.g. sending an error 'sendError' with a message). @Chandana, shall we create an issue for this? We need to have i18n in the common foundation compoent's pages [3]. Please c

Re: [Dev] Introducing onGet, onPost functions for UUF

2017-01-24 Thread SajithAR Ariyarathna
IMO, we don't need PUT, DELETE for serving web pages. PUT & DELETE are needed for a REST API, and UUF has a way to deploy microservices for REST APIs. So I don't see a requirement for 'onPut', 'onDelete' functions in server-side JS. On Wed, Jan 25, 2017 at 10:48 AM, Lakshman Udayakantha wrote: >

Re: [Dev] Carbon UUF Maven Plugin's sample links get directed to 404- Not found

2017-01-29 Thread SajithAR Ariyarathna
Regards, > Nira > > On Mon, Jan 23, 2017 at 12:04 PM, SajithAR Ariyarathna > wrote: > >> Thanks for the PR Kalpa. PR [1] has been merged. >> >> [1] https://github.com/wso2/carbon-uuf-maven-tools/pull/49 >> >> On Sun, Jan 22, 2017 at 7:48 PM, Kalpa

Re: [Dev] Fwd: Why re-write User class? Why re-wrap RealmService?

2017-02-01 Thread SajithAR Ariyarathna
On Wed, Feb 1, 2017 at 5:12 PM, KasunG Gajasinghe wrote: > Hi Shariq, > > On Wed, Feb 1, 2017 at 4:45 PM, Muhammed Shariq wrote: > >> >> On Wed, Feb 1, 2017 at 1:10 AM, KasunG Gajasinghe >> wrote: >> >>> Hi Manu, >>> >>> #1. Because UUF's #createSession function expects an instance >>> of org.w

Re: [Dev] [UUF] Cannot use sendRedirect within try

2017-02-01 Thread SajithAR Ariyarathna
Hi Manu, Maybe if extend PageRedirectException from Throwable instead Exception > it'll work > This wouldn't work as Nashorn JS try-catch is equivalent to Java, which mean that it catches Throwable. Thanks. On Wed, Feb 1, 2017 at 6:54 PM, Manuranga Perera wrote: > @UUF team, > > Maybe if exten

Re: [Dev] [UUF] Cannot use sendRedirect within try

2017-02-01 Thread SajithAR Ariyarathna
Hi Ayesha, Observing below error when sendRedirect is used within a try. > Can you point the source where this is hapenning. Thanks. On Wed, Feb 1, 2017 at 6:57 PM, SajithAR Ariyarathna wrote: > Hi Manu, > > Maybe if extend PageRedirectException from Throwable instead Exception &

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-05 Thread SajithAR Ariyarathna
Rajitha's query is not about sharing common JS logic, rather he wants a custom authenticator to UUF. IMO, "pluggable custom authenticators" is a missing feature in UUF. IS guys needs need the same thing and they have proposed to use MSF4J interceptors [1]. We need to come-up with a better solution

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread SajithAR Ariyarathna
to know that. >>>Need to get documented. >>>2. >>> >>>As I pointed in above [1] thread, auth has to happen at UUF layer >>>rather than MS4J layer, because only at UUF layer we know if it needs >>> auth >>>at all. Right

Re: [Dev] [UUF] UUF-Client renderFragment fails with warning "Content is empty."

2017-02-16 Thread SajithAR Ariyarathna
Hi Roshan, Thanks for the PR. I have put some comments, please have a look. Thanks. On Thu, Feb 16, 2017 at 3:01 PM, Roshan Wijesena wrote: > It seems Kasun is right, > > the object "data" is by-default coming as html/text. so we don't need use > it as 'data.html' . > > Since this is a blocker

Re: [Dev] Issue when running UUFMicroservice on top of IBM JDK 8

2017-02-21 Thread SajithAR Ariyarathna
According to [2] (see "Oracle content" section) IBM JDK 8 has Nashorn in it. So, UUF should work in IBM JDK :). Regarding your issue, According to the error log in [1] it seems like a CNF problem. Log says the it cannot find "java.lang.Class$Atomic" class. CNF exception is thrown from the static b

Re: [Dev] Issue when running UUFMicroservice on top of IBM JDK 8

2017-02-22 Thread SajithAR Ariyarathna
j/util/RuntimeAnnotations.java#L55 Thanks. Thanks > Thusitha > > On Wed, Feb 22, 2017 at 1:07 PM, SajithAR Ariyarathna > wrote: > >> According to [2] (see "Oracle content" section) IBM JDK 8 has Nashorn in >> it. So, UUF should work in IBM JDK :). >> >

Re: [Dev] Issue when running UUFMicroservice on top of IBM JDK 8

2017-02-22 Thread SajithAR Ariyarathna
n order to change the Service path at Runtime. > I've created the issue[1] to track this. > > [1] - https://github.com/wso2/msf4j/issues/355 > > Great :) > Thanks > Thusitha > > > On Thu, Feb 23, 2017 at 12:01 AM, SajithAR Ariyarathna > wrote: > >> H

Re: [Dev] [UUF] [IS-6] Update Google Guava version

2017-03-01 Thread SajithAR Ariyarathna
[+Chandana] On Thu, Mar 2, 2017 at 11:42 AM, Ayesha Dissanayaka wrote: > Hi, > > Can we update guava.version and guava.version.range [1] to match latest > released version(21) in next uuf release. > > While writing UI tests for IS-6 User-Portal with selenium to resolve some > issues such as bel

Re: [Dev] uuf maven plugin version of carbon-uuf and uuf-commons

2017-03-06 Thread SajithAR Ariyarathna
[+Chandana] On Mon, Mar 6, 2017 at 11:06 AM, KasunG Gajasinghe wrote: > Hi Denuwanthi, > > Will this affect the IS admin portal development? If so, on what degree? > > Thanks. > > On Mon, Mar 6, 2017 at 10:42 AM, Denuwanthi De Silva > wrote: > >> Hi, >> >> IS 6.0.0 M5 development will be moving

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread SajithAR Ariyarathna
I think you have misunderstood the page concept. In UUF, Page is the whole thing (markup) that covers the browser window. So you *cannot* insert a page into another page. With that in mind, let's brak down the UI in [1]. - Left pane has 4 links, seems that those are app level menus. So, IMO each

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread SajithAR Ariyarathna
On Mon, Mar 6, 2017 at 8:17 PM, Denuwanthi De Silva wrote: > > > On Mon, Mar 6, 2017 at 6:51 PM, Denuwanthi De Silva > wrote: > >> Thank you for the detailed description Sajith. >> >> >> On Mon, Mar 6, 2017 at 6:47 PM, SajithAR Ariyarathna >> wro

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread SajithAR Ariyarathna
On Mon, Mar 6, 2017 at 8:22 PM, SajithAR Ariyarathna wrote: > > > On Mon, Mar 6, 2017 at 8:17 PM, Denuwanthi De Silva > wrote: > >> >> >> On Mon, Mar 6, 2017 at 6:51 PM, Denuwanthi De Silva >> wrote: >> >>> Thank you for the detailed descr

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread SajithAR Ariyarathna
lement it? > Correct, ATM we don't support '@selected'. I think we can support it easily. > > On Mon, Mar 6, 2017 at 2:52 PM, SajithAR Ariyarathna > wrote: > >> >> >> On Mon, Mar 6, 2017 at 8:17 PM, Denuwanthi De Silva >> wrote: >> >&

Re: [Dev] Setup the WebSocket security in msf4j WebSocket server

2017-12-07 Thread SajithAR Ariyarathna
[+ MSF4J & transport folks] Kindly requests your assistance on this. Thanks. On Fri, Dec 8, 2017 at 10:12 AM, Sivaramya Sivanathan wrote: > Hi all, > > I am using msf4j 2.4.3 WebSocket server for the siddhi-io-websocket unit > test. Can anyone guide me how to setup the WebSocket security in m

Re: [Dev] [C5] Where are the HTTP Access Logs stored?

2017-12-10 Thread SajithAR Ariyarathna
+Yasara On Mon, Dec 11, 2017 at 12:31 PM, Dulanja Liyanage wrote: > Hi All, > > $subject please. > > I'm trying to find the access logs in Stream Processor 4.0.0 - Beta 2. > > Couldn't find a clue from following files as well: > > /conf/dashboard/log4j2.xml > /wso2/dashboard/bin/bootstrap/loggin

[Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC1

2017-12-20 Thread SajithAR Ariyarathna
Hi Devs, We are pleased to announce the release candidate of WSO2 Stream Processor 4.0.0. This is the Release Candidate version 1 of the WSO2 Stream Processor 4.0.0 Please download, test the product and vote. Vote will be open for 72 hours or as needed. Known issues: https://github.com/wso2/pro

Re: [Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC1

2017-12-21 Thread SajithAR Ariyarathna
Hi Devs, We are calling-off this vote as we have found some issues related to log-in into web apps. We will do a RC2 and call for a vote soon. Thanks. On Thu, Dec 21, 2017 at 12:26 PM, SajithAR Ariyarathna wrote: > Hi Devs, > > We are pleased to announce the release candidate of WS

[Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2017-12-21 Thread SajithAR Ariyarathna
Hi Devs, We are pleased to announce the release candidate of WSO2 Stream Processor 4.0.0. This is the Release Candidate version 2 of the WSO2 Stream Processor 4.0.0 Please download, test the product and vote. Vote will be open for 72 hours or as needed. Known issues: https://github.com/wso2/pro

Re: [Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2018-01-09 Thread SajithAR Ariyarathna
Hi All, PR https://github.com/wso2/carbon-kernel/pull/1668 has been raised to fix this issue in Carbon Kernel. Thanks. On Mon, Jan 8, 2018 at 11:01 AM, Rukshani Weerasinha wrote: > Hello Raveen, > > Thank you for the feedback. Now I have updated the link as you specified. > > Best Regards, > R

Re: [Dev] Shared ScriptEngine object for every authentication script

2018-01-14 Thread SajithAR Ariyarathna
Hi Maduranga, Few suggestions: - In JS: Lets rename the primary function that starts the execution of the script to "main" (currently its anonymous). - There are two different Bindings: - Global Bindings - Visible to all scripts & engines in the JVM. - You can put stateless stuff in this bind

Re: [Dev] Logging in JavaScript used in conditional authentication

2018-01-18 Thread SajithAR Ariyarathna
On Wed, Jan 17, 2018 at 10:38 PM, Thusitha Kalugamage wrote: > Hi Maduranga, > > I'm not sure whether we can have a 1 to 1 mapping between Apache commons > logging and all the methods available for console object or not. But > wouldn't it be confusing for the user to support a limited set of meth

Re: [Dev] [IoTS] IoTS 3.1.0-Update11 throw intermittent exception due to concurrency issue.

2018-01-23 Thread SajithAR Ariyarathna
Hi Rasika, Regarding your code snippet: > try { > operationMappingDAO.updateOperationMapping(operationId, enrolmentId, > org.wso2.carbon.device.mgt.core.dto.operation.mgt.Operation.PushNotificationStatus.COMPLETED); > notificationStrategy.execute(new NotificationContext(deviceId, > oper

Re: [Dev] Avoid loading multiple copies of React

2018-02-19 Thread SajithAR Ariyarathna
Hi Nisala, global.React = React > Can we do above in the parent Widget ( https://www.npmjs.com/package/@wso2-dashboards/widget)? So that the some widget author doesn't need React as a dependency. On Thu, Feb 15, 2018 at 1:22 PM, Nisala Nanayakkara wrote: > Hi Aruna, > > +1 for the approach. We

Re: [Dev] Avoid loading multiple copies of React

2018-02-19 Thread SajithAR Ariyarathna
> Thanks, > Nisala > > On Tue, Feb 20, 2018 at 9:09 AM, SajithAR Ariyarathna > wrote: > >> Hi Nisala, >> >> global.React = React >>> >> Can we do above in the parent Widget (https://www.npmjs.com/package >> /@wso2-dashboards/widget)? So

Re: [Dev] Avoid loading multiple copies of React

2018-02-19 Thread SajithAR Ariyarathna
cuments > related "Creating Custom Widgets"[1] with this change. > > [1] - https://docs.wso2.com/display/SP400/Creating+Custom+Widgets > Let's add this to [1] > > > Thanks, > Nisala > > On Tue, Feb 20, 2018 at 10:14 AM, SajithAR Ariyarathna > wrot

[Dev] Please review and merge PR

2018-02-21 Thread SajithAR Ariyarathna
Hi Devs, Please review & merged PR https://github.com/wso2/carbon-appmgt/pull/709 which fixes https://github.com/wso2/carbon-appmgt/issues/708 . Thanks. -- Sajith Janaprasad Ariyarathna Senior Software Engineer; WSO2, Inc.; http://wso2.com/

Re: [Dev] Design Review : User Preferences in Carbon Dashboard Widgets

2018-02-22 Thread SajithAR Ariyarathna
Hi Devs, On Tue, Feb 20, 2018 at 7:06 PM, Irindu Nugawela wrote: > Hi All, > I am implementing a feature for Widget Configuration Panel of Carbon > Dashboard's designer view, > to allow users(dashboard designers) to configure the properties of the > widgets such as the widget background color,

Re: [Dev] Review and merge PR for reading conf folder path by carbon

2018-03-13 Thread SajithAR Ariyarathna
PR is merged. Fix will be available in carbon-analytics v1.3.22 version. Thanks. On Tue, Mar 13, 2018 at 7:56 PM, Lasantha Dharmakeerthi wrote: > Hi all, > > Spark Analytics Executor read the conf folder path as following way. Since > IoT server has changed the folder structure it is causing an

Re: [Dev] [Architecture] [VOTE] Release WSO2 Stream Processor 4.1.0 RC1

2018-03-14 Thread SajithAR Ariyarathna
Hi All, We are calling off this vote. We will do a RC2 release soon. Thanks. On Thu, Mar 15, 2018 at 8:54 AM, Sriskandarajah Suhothayan wrote: > -1 > In Mac, the graphics of the editor event flow is not rendering correctly. > > Please check the attached image. > > On Thu, Mar 15, 2018 at 12:46

  1   2   >