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

2017-01-13 Thread Kishanthan Thangarajah
On Wed, Jan 11, 2017 at 6:15 PM, Sagara Gunathunga wrote: > > Shouldn't we add and maintain this doc in UUF Github repo itself ? > Its already added to github - https://github.com/wso2/carbon-uuf-maven-tools/tree/master/plugin > > Thanks ! > > On Wed, Jan 11, 2017 at 5:59 PM,

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

2017-01-12 Thread KasunG Gajasinghe
On Thu, Jan 12, 2017 at 11:39 PM, Manuranga Perera wrote: > @UUF team > > It's OK to provide a POST in theory, but we have to see what they are > going to do with it. I think they are trying to do a self accepting page. > In Jaggery is was very hard to unsaturated the code when

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

2017-01-12 Thread Manuranga Perera
@UUF team It's OK to provide a POST in theory, but we have to see what they are going to do with it. I think they are trying to do a self accepting page. In Jaggery is was very hard to unsaturated the code when same code is responsible for showing and adding (let say a new user). Let's not repeat

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

2017-01-11 Thread KasunG Gajasinghe
Hi Sajith, +1. Having one single method like #onRequest to handle both GET and POST is considered a bad practice as per HTTP specification since these HTTP methods serve different purposes entirely. In Servlets, we have #doGet and #doPost to handle GET and POST requests separately. Something to

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

2017-01-11 Thread Sagara Gunathunga
Shouldn't we add and maintain this doc in UUF Github repo itself ? Thanks ! On Wed, Jan 11, 2017 at 5:59 PM, SajithAR Ariyarathna wrote: > [+ShanM] > > On Wed, Jan 11, 2017 at 5:54 PM, Indunil Upeksha Rathnayake < > indu...@wso2.com> wrote: > >> Hi UUF team, >> >> I think

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]