Hi experts,
I implemented a jsf.ajax.get for one of my clients. It is not too hard, if you don’t try to do it with the jsf.ajax.request function. Should I provide a code example?
Ciao Frank
> Am 10.09.2015 um 16:20 schrieb Manfred Riem (JIRA) <jira-no-reply_at_java.net>:
>
>
> [ https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Manfred Riem closed JAVASERVERFACES_SPEC_PUBLIC-907.
> ----------------------------------------------------
>
> Resolution: Won't Fix
>
> As the jsf.ajax.request requires a POST because of how it is being processed and too many changes would be needed to support another method and that one can easily write a JavaScript function that execute a GET to a given URL yourself I am closing this as "Won't Fix".
>
> Note jsf.ajax.response can be used to process the response coming from the server with your custom GET.
>
>> Improve Ajax Http.Get support to (re)render parts of the page
>> -------------------------------------------------------------
>>
>> Key: JAVASERVERFACES_SPEC_PUBLIC-907
>> URL: https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-907
>> Project: javaserverfaces-spec-public
>> Issue Type: Improvement
>> Components: Ajax/JavaScript
>> Affects Versions: 2.1
>> Environment: Operating System: All
>> Platform: All
>> Reporter: mwessendorf
>> Assignee: Manfred Riem
>> Priority: Critical
>>
>> The current JavaScript Ajax API should be improved to have a simplified version
>> that allows to "just" render (several) components, via GET.
>> A use case would be:
>> -You have a client side callback that get's invoked (e.g. when a
>> Bayeux/WebSocket notification arrives). Inside the callback you are simply only
>> interested in (re)rendering some components.
>> Today it would look like:
>> webSocket.onmessage = function(evt)
>> {
>> // work with evt.data.....
>> jsf.ajax.request('jsfForm:dummyBtn',null,{render:'listComp'});
>> };
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.2.3#6260)