Re: [Dev] [VOTE] Release WSO2 Data Analytics Server 3.2.0 RC1

2018-03-14 Thread SajithAR Ariyarathna
Hi All, We are closing this vote, we will announce RC2 release soon. Thanks. On Thu, Mar 15, 2018 at 11:18 AM, Anusha Jayasundara wrote: > -1 , > > Missing client-truststore.jks file in several samples directories > including smart-home and apim-stats > > > > On Thu, Mar 15,

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

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

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

[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] Avoid loading multiple copies of React

2018-02-19 Thread SajithAR Ariyarathna
We need to improve the documents > 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 Ariyarathn

Re: [Dev] Avoid loading multiple copies of React

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

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

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, >

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

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

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. >

[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:

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 <sajit...@wso2.com> wrote: > Hi Devs, > > We are pleased to annou

[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:

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 >

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

[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,

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: >

[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]

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

2017-09-18 Thread SajithAR Ariyarathna
tecture] Multiple runtime support for C5 based products > > Thanks > Thusitha > > On Mon, Sep 18, 2017 at 10:41 AM, SajithAR Ariyarathna <sajit...@wso2.com> > wrote: > >> Hi Platform Team, >> >> According to carbon-utils [1], runtime 'conf' directory is at

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 <sajit...@wso2.com> 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,

[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]

[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

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 <sajit...@wso2.com> > wrote: >

[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]

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

2017-04-24 Thread SajithAR Ariyarathna
age details anywhere. >>>> We can get the language data from the browser.. that's how we do it >>>> anyway i think. We get the i18n based on the what language browser has >>>> configured to use. >>>> >>>> Thank you, >>&g

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

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

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

2017-03-29 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

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

2017-03-24 Thread SajithAR Ariyarathna
>>>> > wrote: >>>>> >>>>>> I don't think there is a feasible solution rather than loading i18n >>>>>> config file as a json object to the client side in the beginning of the >>>>>> app... i think from uuf side we

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 >

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

2017-03-23 Thread SajithAR Ariyarathna
Client-side JS > > *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 <sajit...@wso2.com> > wrote

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

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

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

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 <

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 >

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread SajithAR Ariyarathna
we need to implement 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 <sajit...@wso2.com> > wrote: > >> >> >> On Mon, Mar 6, 2017 at 8:17 PM, Denuwanthi De Silva <de

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread SajithAR Ariyarathna
On Mon, Mar 6, 2017 at 8:22 PM, SajithAR Ariyarathna <sajit...@wso2.com> wrote: > > > On Mon, Mar 6, 2017 at 8:17 PM, Denuwanthi De Silva <denuwan...@wso2.com> > wrote: > >> >> >> On Mon, Mar 6, 2017 at 6:51 PM, Denuwanthi De Silva <denuwan...@wso2.

Re: [Dev] [UUF] Handling Tab view

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

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 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, >> >>

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 >

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

2017-02-22 Thread SajithAR Ariyarathna
nt in 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 <sajit...@wso2.com> >

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

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

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

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

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

2017-02-06 Thread SajithAR Ariyarathna
have a {{secure}} helper but nobody seems 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 ne

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

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 <sajit...@wso2.com> wrote: > Hi Manu, > > Maybe if extend PageRedirectException from

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, >

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

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

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

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

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

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

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,

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

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]

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

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

2017-01-23 Thread SajithAR Ariyarathna
t, 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 <sajit...@wso2.com> > wrote: >

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

2017-01-23 Thread SajithAR Ariyarathna
UUF. >> >> Thanks & Regards >> 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 <sajit...@wso2.com

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]

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

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

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

2017-01-20 Thread SajithAR Ariyarathna
gt; Hi, >>> >>> 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. >>> >>

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

2017-01-19 Thread SajithAR Ariyarathna
n 20, 2017 at 10:13 AM, SajithAR Ariyarathna <sajit...@wso2.com> wrote: > Hi Indunil, >> >> claimProfileMap["required"] = Boolean.toString(claimForProfile[i]. >> getRequired()); >> > I don't see a particular reason to convert boolean to string. You c

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

2017-01-19 Thread SajithAR Ariyarathna
red":"true"}]. >>>> >>>> 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 Thangara

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

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.

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

2017-01-18 Thread SajithAR Ariyarathna
wrote: > @Kasun > You guys can hardcode this to the layout until then, if needed. > > On Wed, Jan 18, 2017 at 4:33 PM, SajithAR Ariyarathna <sajit...@wso2.com> > wrote: > >> Then it will be like, >> >> {{placeholder "favicon"}} >> {{favicon &qu

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

2017-01-18 Thread SajithAR Ariyarathna
the layout (not as a default > value)? will that work? > > On Wed, Jan 18, 2017 at 4:23 PM, Manuranga Perera <m...@wso2.com> wrote: > >> +1 >> >> On Wed, Jan 18, 2017 at 4:21 PM, SajithAR Ariyarathna <sajit...@wso2.com> >> wrote: >> >>> H

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] 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: > >>

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]

[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.

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

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] 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"

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

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,

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/

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]. > >

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 >

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

2016-11-11 Thread SajithAR Ariyarathna
> changes in the client side ). >> >> Regards >> Jo >> >> On Fri, Nov 11, 2016 at 2:42 PM, Yasima Dewmini <yas...@wso2.com> wrote: >> >>> Thank you Sajith for your input. >>> >>> >>> On Fri, Nov 11, 2016 at 2:26

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

[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] [VOTE] Release WSO2 MSF4J 2.1.0 RC3

2016-11-01 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

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
you point me a documentation 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 <sajit...@wso2.com> > wrote: > >> UUF Theme source structure should be as f

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

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

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

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] 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. >>

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

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: >

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

Re: [Dev] Renaming App Manager gateway cookie name to APPMSESSIONID from 'appmSamlSsoTokenId'

2016-06-28 Thread SajithAR Ariyarathna
+1 for APPMSESSIONID On Tue, Jun 28, 2016 at 2:23 PM, Ruwan Abeykoon wrote: > +1 APPMSESSIONID, yes "appmSamlSsoTokenId" looks ugly. > > Do we plan to support multiple authentication mechanisms per single > deployment? or is this going to be systemwide config? > > Cheers, >

Re: [Dev] [UUF] Page refreshing does not work properly in UUF apps

2016-06-23 Thread SajithAR Ariyarathna
This is something we have experienced with MSF4J 1.0.0. However, now we have migrated to MSF4J 1.1.0-SNAPSHOT & this problem doesn't occur anymore. Thanks. On Thu, Jun 23, 2016 at 9:57 PM, Sudharma Subasinghe wrote: > Hi, > > I tested with Chrome and firefox. It does not

Re: [Dev] [UUF] Programmatically add/remove/modify items on menu.

2016-06-10 Thread SajithAR Ariyarathna
As for now UUF only support for pre- configured menus. We are hoping to add menu disabling & modifying capability (these operation can be done in the server-side JS) in future releases. Thanks. On Fri, Jun 10, 2016 at 4:49 PM, Hemika Kodikara wrote: > Hi All, > > Is it

  1   2   >