On Tue, Sep 27, 2016 at 11:55 AM, Ben-10@Dev <
priya...@gmail.com> wrote:
> Hi Ard,
> I have tried to write response(JSON) on dobeforeRender but response
> also contain html so it's not able to parse JSON.
>
>
>
> On Tuesday, September 27, 2016 at 1:13:40 AM UTC+5:30, Ben-10@Dev wrote:
>>
>> Thanks Ard.
>> I have two forms/two component on same page. I don't want to submit both
>> on same stage. One form will be submit from ajax request and response of
>> that request will be shown at same time without affecting other form
>> values(without refreshing page).
>>
>> On Monday, September 26, 2016 at 10:43:41 PM UTC+5:30, a.schrijvers wrote:
>>>
>>> Hey Ben,
>>>
>>> for action requests we use the PRG pattern see [1], so your requirement
>>> is not possible with action requests. Don't you want to post to some rest
>>> endpoint? That seems to match your use case better. Otherwise to a
>>> org.hippoecm.hst.core.component.HstComponent#doBeforeServeResource method,
>>> see [2]
>>>
>>> HTH,
>>>
>>> Regards Ard
>>>
>>> [1]
https://en.wikipedia.org/wiki/Post/Redirect/Get
>>> [2]
>>>
https://www.onehippo.org/library/concepts/component-development/serve-a-dynamic-resource.html
>>>
>>> On Mon, Sep 26, 2016 at 6:55 PM, Ben-10@Dev <
priya...@gmail.com> wrote:
>>>>
>>>> Hi,
>>>> I have been sending ajax request to server. Once job has been done i
>>>> want to send a response to clinet with json data. i am not able to figure
>>>> out loop whole in code.
>>>> Case 1- Once i have code for response like this
>>>>
>>>>